Merge branch 'dev' of http://git.excellentkk.cn/mkm/OfficeApp
This commit is contained in:
commit
e2ab8552aa
27
api/property.js
Normal file
27
api/property.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import oahttp from "@/utils/logistics.js";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 车辆列表
|
||||||
|
*/
|
||||||
|
export const getvehicleList = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 车辆详情
|
||||||
|
export const getvehicleDetail = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 显示轨迹
|
||||||
|
export const locusApi = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 签约列表
|
||||||
|
export const getAgencyList = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 签约公司详情
|
||||||
|
export const getAgencyDetail = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 车辆租赁
|
||||||
|
export const leaseApi = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 生成合同
|
||||||
|
export const contractApi = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 申请驳回
|
||||||
|
export const overruleApi = (data) => oahttp.get('/courierLstData', data)
|
||||||
|
// 资产详情
|
||||||
|
// export const getpropertyDetil = (data) => oahttp.get('/lstDetail', data)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新商机
|
||||||
|
*/
|
||||||
|
// export const informationOpportunityUpdate = (data) => oahttp.post('/information/opportunity_update', data)
|
13
pages.json
13
pages.json
@ -571,7 +571,18 @@
|
|||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
}]
|
, {
|
||||||
|
"path": "property/agencyList",
|
||||||
|
"style": {
|
||||||
|
|
||||||
|
"navigationBarTitleText": "签约列表",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#0122C7",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
}],
|
}],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
|
78
subpkg/property/agencyList.vue
Normal file
78
subpkg/property/agencyList.vue
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
<template>
|
||||||
|
<view class="box">
|
||||||
|
<view class="li" v-for="item,index in dataList" :key="index" @tap="navgo('/subpkg/property/chosseCompany')">
|
||||||
|
<view class="date">
|
||||||
|
<!-- 2023.07.24 -->
|
||||||
|
<!-- {{item.}} -->
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
<!-- {{item.}} -->
|
||||||
|
</view>
|
||||||
|
<view class="detail">
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getAgencyList,
|
||||||
|
} from "@/api/property.js"
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList: [1, 1, 1]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
navgo(url) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
getAgencyList().then(res => {
|
||||||
|
// this.dataList=res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.box {
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.li {}
|
||||||
|
|
||||||
|
.li {
|
||||||
|
background-color: #fff;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.date {
|
||||||
|
background-color: #FF7C32;
|
||||||
|
color: white;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
// width: 170rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
// background-color: lightyellow;
|
||||||
|
max-width: 450rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail {
|
||||||
|
// background-color: black;
|
||||||
|
// width: 50rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,4 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="date">
|
||||||
|
2022年12月12日提出申请
|
||||||
|
</view>
|
||||||
<view class="cards">
|
<view class="cards">
|
||||||
<view class="cards_head">
|
<view class="cards_head">
|
||||||
<view class="cards_head_top">
|
<view class="cards_head_top">
|
||||||
@ -27,12 +31,6 @@
|
|||||||
<text>担任职务 :</text>
|
<text>担任职务 :</text>
|
||||||
<text>{item.master_position}</text>
|
<text>{item.master_position}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
|
||||||
<u-checkbox-group>
|
|
||||||
<u-checkbox active-color="#0122C7" v-model="checked" shape="square" label=""></u-checkbox>
|
|
||||||
</u-checkbox-group>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="" @click="copyPhone()">
|
<view class="" @click="copyPhone()">
|
||||||
<text>联系电话 :</text>
|
<text>联系电话 :</text>
|
||||||
@ -45,14 +43,79 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="car_info">
|
||||||
|
<view class="car_type">
|
||||||
|
<text v-if="true">空闲车辆</text>
|
||||||
|
<text v-else>自有车辆</text>
|
||||||
|
</view>
|
||||||
|
<view class="car_li" v-for="item,index in carList">
|
||||||
|
车牌号: 川Y103D2
|
||||||
|
<view class="" style="float: right;display: flex;">
|
||||||
|
<text style="margin-right: 10rpx;">租赁车辆</text>
|
||||||
|
<u-checkbox-group v-model="checked">
|
||||||
|
<u-checkbox active-color="#0122C7" :label="item" :name="item" shape="square"
|
||||||
|
label=""></u-checkbox>
|
||||||
|
</u-checkbox-group>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="btns">
|
||||||
|
<u-button type="primary" @click="showPop=true" style="margin-bottom: 20rpx;width: 100%;" color="#FF7C32"
|
||||||
|
text="申请驳回"></u-button>
|
||||||
|
<u-button type="primary" text="生成合同" color="#0122C7"></u-button>
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
<u-modal :show="showPop" @close="showPop=false" @confirm="confirm" :closeOnClickOverlay="true"
|
||||||
|
title="请输入驳回理由">
|
||||||
|
<view class="slot-content">
|
||||||
|
<!-- <u--input placeholder="请输入内容" type="number" v-model="newCarNum"></u--input> -->
|
||||||
|
<u--textarea v-model="overruleValue" placeholder="请输入内容" class="textarea_cls"></u--textarea>
|
||||||
|
</view>
|
||||||
|
</u-modal>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
getAgencyDetail,
|
||||||
|
contractApi,
|
||||||
|
overruleApi
|
||||||
|
} from "@/api/property.js"
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
overruleValue: "",
|
||||||
|
showPop: false,
|
||||||
|
checked: [],
|
||||||
|
carList: [1, 2]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
confirm() {
|
||||||
|
console.log(this.overruleValue)
|
||||||
|
this.showPop = false
|
||||||
|
},
|
||||||
|
navTo(url) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.date {
|
||||||
|
padding: 10rpx 28rpx 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
|
|
||||||
margin: 28rpx;
|
margin: 28rpx;
|
||||||
@ -131,4 +194,31 @@
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.car_info {
|
||||||
|
padding: 10rpx 28rpx 0;
|
||||||
|
|
||||||
|
.car_type {
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.car_li {
|
||||||
|
background-color: white;
|
||||||
|
margin-bottom: 17.54rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btns {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 5rpx;
|
||||||
|
width: 100%;
|
||||||
|
padding: 10rpx 28rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textarea_cls {
|
||||||
|
width: 70vw;
|
||||||
|
border: 1px solid #DADBDE;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -1,63 +1,118 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<u-sticky bgColor="#0122C7" style="width: 100vw">
|
<!-- <view class="serch">
|
||||||
<u-tabs :list="tabLists" @change="sectionChange" lineColor="#fff" :scrollable="false" lineWidth="40"
|
<u-search placeholder="输入车牌号进行搜索" :show-action="true" bg-color="white" v-model="keywords" @search="serchFn"
|
||||||
inactiveStyle="color:#fff" activeStyle="color:#fff"></u-tabs>
|
@custom="serchFn"></u-search>
|
||||||
</u-sticky>
|
</view> -->
|
||||||
<view class="serch">
|
<view class="info">
|
||||||
<u-search placeholder="输入车牌号进行搜索" :show-action="true" bg-color="white" v-model="keywords"></u-search>
|
<text>可监管车辆数量 10</text>
|
||||||
|
<view @click="showPop=true" class="not_leased">
|
||||||
|
<view class="">
|
||||||
|
租赁 10
|
||||||
|
</view>
|
||||||
|
<view class="triangle-up" v-if="1">
|
||||||
|
</view>
|
||||||
|
<view class="message_bottom" v-if="1">
|
||||||
|
可再租赁车辆:2辆
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<text>自有车辆 10</text>
|
||||||
|
</view>
|
||||||
|
<!-- 公告栏 -->
|
||||||
|
<view class="application_tit">
|
||||||
|
<view class="head" @click="navgo('/subpkg/property/agencyList')">
|
||||||
|
<text>签约申请</text>
|
||||||
|
<view style="display: flex;">
|
||||||
|
<text>更多 </text>
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="curNow==0" class="personnel_list">
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view class="li" @click="navgo('/subpkg/property/chosseCompany')"
|
||||||
|
v-for="item,index in applicationList.slice(0, 2)">
|
||||||
|
<view class="date">
|
||||||
|
<!-- {{item.}} -->
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
<!-- {{item.}} -->
|
||||||
|
</view>
|
||||||
|
<view class="detail">
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view v-if="true" class="personnel_list">
|
||||||
<view v-if="dataList.length">
|
<view v-if="dataList.length">
|
||||||
<view class="cards" v-for="item,index in dataList" :key="index">
|
<view class="cards" v-for="item,index in dataList" :key="index"
|
||||||
|
@click="navgo('/subpkg/property/vehicle_a')">
|
||||||
<view class="cards_head">
|
<view class="cards_head">
|
||||||
<text>XSDSDSD</text>
|
<text><!-- {{item.}} --></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cards_content">
|
<view class="cards_content">
|
||||||
<view class="right">
|
<view class="right">
|
||||||
|
<!-- 已出租 -->
|
||||||
|
<view v-if="1">
|
||||||
|
<view class="li">
|
||||||
|
<text>使用人: </text>
|
||||||
|
<text> <!-- {{item.}} --></text>
|
||||||
|
<view style="float: right;">
|
||||||
|
<text style="color: green;" v-if="true">自有车辆</text>
|
||||||
|
<text style="color: orange;" v-else>租赁车辆</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<text>联系方式: </text>
|
||||||
|
<text><!-- {{item.}} --></text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<text>所属公司: </text>
|
||||||
|
<text> <!-- {{item.}} --> </text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<text>签约时间: </text>
|
||||||
|
<text> <!-- {{item.}} --> </text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<!-- 未出租 -->
|
||||||
|
<view class="" v-else>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>车牌号: </text>
|
<text>车牌号: </text>
|
||||||
<text> { item.name }</text>
|
<text> <!-- {{item.}} --></text>
|
||||||
</view>
|
|
||||||
<view class="li">
|
|
||||||
<text>行驶总里程: </text>
|
|
||||||
<text>{ item.phone }</text>
|
|
||||||
<view style="float: right;">
|
<view style="float: right;">
|
||||||
<u-checkbox-group v-model="checked">
|
<text style="color: green;" v-if="true">自有车辆</text>
|
||||||
<u-checkbox active-color="#0122C7" :label="item" :name="item" shape="square"
|
<text style="color: orange;" v-else>租赁车辆</text>
|
||||||
label=""></u-checkbox>
|
|
||||||
</u-checkbox-group>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>本公司签约时间: </text>
|
暂未出租,快去选择承租对象吧!
|
||||||
<text> 所属片区 </text>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="dataList.length==0&&!isNewCheck">
|
<view v-if="dataList.length==0&&!isNewCheck">
|
||||||
<view class="empty">
|
<view class="empty">
|
||||||
<view>
|
<!-- <view>
|
||||||
当前没有可以签约的的车辆,快去签约新车吧!
|
当前没有可以签约的的车辆,快去签约新车吧!
|
||||||
</view>
|
</view> -->
|
||||||
<u-button @click="showPop=true" type="primary" style="background-color: #0122C7;border: none;"
|
<!-- <u-button @click="showPop=true" type="primary" style="background-color: #0122C7;border: none;"
|
||||||
class="btn">
|
class="btn">
|
||||||
签约新车</u-button>
|
签约新车</u-button> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 0 60rpx;" v-if="isNewCheck">
|
<!-- <view style="padding: 0 60rpx;" v-if="isNewCheck">
|
||||||
你已发起租赁{{newCarNum}}两新车的申请,后台正在为您加急处理中,请稍后~~
|
你已发起租赁{{newCarNum}}两新车的申请,后台正在为您加急处理中,请稍后~~
|
||||||
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<!--
|
||||||
|
|
||||||
<view v-else>
|
<view v-else>
|
||||||
|
|
||||||
<view class="personnel_list" @click="toDetail('/subpkg/property/vehicle_a')">
|
<view class="personnel_list" @click="toDetail('/subpkg/property/vehicle_a')">
|
||||||
<view class="cards">
|
<view class="cards">
|
||||||
<view class="cards_head">
|
<view class="cards_head">
|
||||||
@ -102,21 +157,24 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<u-modal :show="showPop" @close="showPop=false" @confirm="confirm" :closeOnClickOverlay="true"
|
<u-modal :show="showPop" @close="showPop=false" @confirm="confirm" :closeOnClickOverlay="true"
|
||||||
:title="newcarTit">
|
:title="newcarTit">
|
||||||
<view class="slot-content">
|
<view class="slot-content">
|
||||||
<u--input placeholder="请输入内容" type="number" v-model="newCarNum"></u--input>
|
<u--input placeholder="请输入内容" type="number" v-model="newCarNum"></u--input>
|
||||||
</view>
|
</view>
|
||||||
</u-modal>
|
</u-modal>
|
||||||
|
<!-- <u-modal @close="show=false" @cancel="show=false" @confirm="relieveFn" :show="show" :showCancelButton="true"
|
||||||
|
:showConfirmButton='true' :content='content'></u-modal> -->
|
||||||
<view class="" v-if='!curNow && dataList.length>0'>
|
<view class="" v-if='!curNow && dataList.length>0'>
|
||||||
<view class="add" @click="showPop=true">
|
<!-- <view class="add" @click="showPop=true">
|
||||||
<u-icon name="plus-circle" color="#0122C7" size="60"></u-icon>
|
<u-icon name="plus-circle" color="#0122C7" size="60"></u-icon>
|
||||||
签约新车
|
签约新车
|
||||||
</view>
|
</view> -->
|
||||||
<mybtn position="position" text="签约" @click="signFn">
|
<!-- <mybtn position="position" text="签约" @click="signFn">
|
||||||
<u-icon name="edit-pen-fill" color="white" size="20"></u-icon>
|
<u-icon name="edit-pen-fill" color="white" size="20"></u-icon>
|
||||||
</mybtn>
|
</mybtn> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -125,19 +183,25 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import mybtn from "@/components/mybtn/mybtn.vue"
|
import {
|
||||||
|
getvehicleList,
|
||||||
|
getAgencyList,
|
||||||
|
leaseApi
|
||||||
|
} from "@/api/property.js"
|
||||||
|
// import mybtn from "@/components/mybtn/mybtn.vue"
|
||||||
import {
|
import {
|
||||||
Toast
|
Toast
|
||||||
} from "../../libs/uniApi";
|
} from "../../libs/uniApi";
|
||||||
// Toast("请至少选择一辆车")
|
// Toast("请至少选择一辆车")
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
mybtn
|
// mybtn
|
||||||
},
|
},
|
||||||
name: "vehicle",
|
name: "vehicle",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isNewCheck: false,
|
applicationList: [1, 1],
|
||||||
|
isNewCheck: true,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
dataList: [1, 2, 3],
|
dataList: [1, 2, 3],
|
||||||
tabLists: [{
|
tabLists: [{
|
||||||
@ -146,31 +210,43 @@
|
|||||||
name: '已出租'
|
name: '已出租'
|
||||||
}, ],
|
}, ],
|
||||||
curNow: 0,
|
curNow: 0,
|
||||||
checked: 0,
|
|
||||||
keywords: "",
|
keywords: "",
|
||||||
newCarNum: "",
|
newCarNum: "",
|
||||||
newcarTit: "请输入你想要的车辆数量"
|
newcarTit: "请输入您需要租赁的车辆数量(上限为2)"
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
getvehicleList().then(res => {
|
||||||
|
// this.getvehicleList = res
|
||||||
|
})
|
||||||
|
getAgencyList().then(res => {
|
||||||
|
// this.applicationList=res
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
signFn() {
|
signFn() {
|
||||||
console.log(this.checked)
|
|
||||||
if (!this.checked.length) Toast("请至少选择一辆车")
|
|
||||||
else {
|
|
||||||
this.toDetail("/subpkg/property/chosseCompany")
|
this.toDetail("/subpkg/property/chosseCompany")
|
||||||
}
|
|
||||||
},
|
|
||||||
confirm() {
|
|
||||||
if (!this.newCarNum) return
|
|
||||||
console.log(this.newCarNum)
|
|
||||||
this.showPop = false
|
|
||||||
this.isNewCheck = true
|
|
||||||
// this.newCarNum = ""
|
|
||||||
|
|
||||||
},
|
},
|
||||||
toDetail(url) {
|
// serchFn() {
|
||||||
|
// console.log(this.keywords)
|
||||||
|
// },
|
||||||
|
confirm() {
|
||||||
|
if (!this.newCarNum) return
|
||||||
|
// leaseApi().then(res=>{})
|
||||||
|
this.showPop = false
|
||||||
|
this.isNewCheck = true
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
navgo(url) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url
|
url
|
||||||
})
|
})
|
||||||
@ -189,18 +265,89 @@
|
|||||||
margin: 28rpx 28rpx 0 28rpx;
|
margin: 28rpx 28rpx 0 28rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add {
|
.info {
|
||||||
position: fixed;
|
display: flex;
|
||||||
bottom: 100rpx;
|
justify-content: space-around;
|
||||||
right: 0;
|
margin: 10rpx 0 0 0;
|
||||||
|
|
||||||
|
.not_leased {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
// background-color: red;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.triangle-up {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 5px solid transparent;
|
||||||
|
border-right: 5px solid transparent;
|
||||||
|
border-bottom: 10px solid rgba(0, 0, 0, .5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.message_bottom {
|
||||||
|
background-color: rgba(0, 0, 0, .5);
|
||||||
|
color: white;
|
||||||
|
// transform: translateX();
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.application_tit {
|
||||||
|
background-color: white;
|
||||||
|
padding: 20rpx;
|
||||||
|
width: 694rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
margin: 20rpx auto 0;
|
||||||
|
|
||||||
|
.head {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
.li {
|
||||||
|
margin: 10rpx 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.date {
|
||||||
|
background-color: #FF7C32;
|
||||||
|
color: white;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
// width: 170rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
// background-color: lightyellow;
|
||||||
|
max-width: 450rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
/* 让文本不换行 */
|
||||||
|
overflow: hidden;
|
||||||
|
/* 隐藏溢出的文本 */
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail {
|
||||||
|
// background-color: black;
|
||||||
|
// width: 50rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.personnel_list {
|
.personnel_list {
|
||||||
padding: 28rpx 0;
|
padding: 28rpx 0;
|
||||||
margin-bottom: 130rpx;
|
margin-bottom: 130rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
padding-top: 200rpx;
|
padding-top: 200rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -212,8 +359,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// height: 80vh;
|
// height: 80vh;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
}
|
}
|
||||||
@ -276,7 +421,7 @@
|
|||||||
// color: red;
|
// color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
// background-color: red;
|
|
||||||
text:nth-child(1) {
|
text:nth-child(1) {
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
|
@ -22,37 +22,41 @@
|
|||||||
<view class="personnel_list" @click="toDetail('/subpkg/property/vehicle')">
|
<view class="personnel_list" @click="toDetail('/subpkg/property/vehicle')">
|
||||||
<view class="cards">
|
<view class="cards">
|
||||||
<view class="cards_head">
|
<view class="cards_head">
|
||||||
<text>车牌号</text>
|
<text><!-- <!-- {{datas.}} --> --></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cards_content">
|
<view class="cards_content">
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>行驶总里程: </text>
|
<text>行驶总里程: </text>
|
||||||
<text> { item.name }</text>
|
<text> <!-- {{datas.}} --></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>本公司签约时间: </text>
|
<text>本公司签约时间: </text>
|
||||||
<text>{ item.phone }</text>
|
<text><!-- {{datas.}} --></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>承租公司: </text>
|
<text>承租公司: </text>
|
||||||
<text> 所属片区 </text>
|
<text><!-- {{datas.}} --> </text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>负责人: </text>
|
<text>负责人: </text>
|
||||||
<text> 所属片区 </text>
|
<text><!-- {{datas.}} --> </text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>联系方式: </text>
|
<text>联系方式: </text>
|
||||||
<text> 所属片区 </text>
|
<text> <!-- {{datas.}} --> </text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>所属区域: </text>
|
<text>所属区域: </text>
|
||||||
<text> 所属片区 </text>
|
<text> <!-- {{datas.}} --></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<text>承租时间: </text>
|
<text>签约时间: </text>
|
||||||
<text> 所属片区 </text>
|
<text><!-- {{datas.}} --> </text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<text>到期时间: </text>
|
||||||
|
<text> <!-- {{datas.}} --> </text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -62,13 +66,13 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-calendar @close='showDate=false' :show="showDate" @confirm="dataFn"></u-calendar>
|
<u-calendar @close='showDate=false' color="#0122C7" :show="showDate" @confirm="dateFn"></u-calendar>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 没有车辆 -->
|
<!-- 没有车辆 -->
|
||||||
<view class="" v-else>
|
<!-- <view class="" v-else>
|
||||||
<view class="" v-if="!isMycar">
|
<view class="" v-if="!isMycar">
|
||||||
<view class="empty_car">
|
<view class="empty_car">
|
||||||
<view>
|
<view>
|
||||||
@ -91,6 +95,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -99,9 +105,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import mybtn from "@/components/mybtn/mybtn.vue"
|
import mybtn from "@/components/mybtn/mybtn.vue"
|
||||||
import {
|
import {
|
||||||
taskTricycleDetail,
|
getvehicleDetail,
|
||||||
taskAddTricycleCoordinate
|
locusApi
|
||||||
} from "@/api/task.js"
|
} from "@/api/property.js"
|
||||||
import {
|
import {
|
||||||
Toast
|
Toast
|
||||||
} from "../../libs/uniApi";
|
} from "../../libs/uniApi";
|
||||||
@ -113,10 +119,11 @@
|
|||||||
return {
|
return {
|
||||||
allMap: false,
|
allMap: false,
|
||||||
showDate: false,
|
showDate: false,
|
||||||
isMycar: false,
|
// isMycar: false,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
|
datas: {},
|
||||||
queryData: "请选择时间",
|
queryData: "请选择时间",
|
||||||
myCarnum: "",
|
// myCarnum: "",
|
||||||
mapClass: 'custom-map',
|
mapClass: 'custom-map',
|
||||||
scale: 17,
|
scale: 17,
|
||||||
markers: [
|
markers: [
|
||||||
@ -141,164 +148,29 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
// getvehicleDetail().then(res => {
|
||||||
|
// this.datas = res
|
||||||
|
// })
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fousFn() {
|
|
||||||
uni.hideKeyboard()
|
dateFn(e) {
|
||||||
this.showDate = true
|
// console.log(e)
|
||||||
},
|
|
||||||
dataFn(e) {
|
|
||||||
console.log(e)
|
|
||||||
this.queryData = e[0]
|
this.queryData = e[0]
|
||||||
this.showDate = false
|
this.showDate = false
|
||||||
},
|
},
|
||||||
confirm() {
|
// confirm() {
|
||||||
if (this.myCarnum) {
|
// if (this.myCarnum) {
|
||||||
console.log(this.myCarnum)
|
// console.log(this.myCarnum)
|
||||||
this.showPop = false
|
// this.showPop = false
|
||||||
this.isMycar = true
|
// this.isMycar = true
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
showPloyline() {
|
showPloyline() {
|
||||||
// points: points,
|
// console.log(this.queryData)
|
||||||
// color: "#0091ff",
|
// this.queryData
|
||||||
// dottedLine: true,
|
|
||||||
// width: 30,
|
|
||||||
let points = [{
|
let points = [{
|
||||||
latitude: 28.916022,
|
|
||||||
longitude: 105.442732,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916848,
|
|
||||||
longitude: 105.443175,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916918,
|
|
||||||
longitude: 105.443269,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917041,
|
|
||||||
longitude: 105.443466,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917073,
|
|
||||||
longitude: 105.443522,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.91705,
|
|
||||||
longitude: 105.443607,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917057,
|
|
||||||
longitude: 105.443643,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916925,
|
|
||||||
longitude: 105.443546,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916796,
|
|
||||||
longitude: 105.443466,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916615,
|
|
||||||
longitude: 105.443344,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916437,
|
|
||||||
longitude: 105.443274,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916356,
|
|
||||||
longitude: 105.443222,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916515,
|
|
||||||
longitude: 105.442643,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916591,
|
|
||||||
longitude: 105.442448,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916944,
|
|
||||||
longitude: 105.442338,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.91706,
|
|
||||||
longitude: 105.442376,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917169,
|
|
||||||
longitude: 105.442489,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917345,
|
|
||||||
longitude: 105.442601,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917433,
|
|
||||||
longitude: 105.442663,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917461,
|
|
||||||
longitude: 105.442683,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917461,
|
|
||||||
longitude: 105.442683,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917518,
|
|
||||||
longitude: 105.442874,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917537,
|
|
||||||
longitude: 105.443032,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917537,
|
|
||||||
longitude: 105.443032,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917497,
|
|
||||||
longitude: 105.443198,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917409,
|
|
||||||
longitude: 105.443256,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.91732,
|
|
||||||
longitude: 105.443318,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917234,
|
|
||||||
longitude: 105.443442,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.917072,
|
|
||||||
longitude: 105.443497,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916977,
|
|
||||||
longitude: 105.443539,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916867,
|
|
||||||
longitude: 105.443529,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916867,
|
|
||||||
longitude: 105.443529,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916761,
|
|
||||||
longitude: 105.443404,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
latitude: 28.916722,
|
latitude: 28.916722,
|
||||||
longitude: 105.443274,
|
longitude: 105.443274,
|
||||||
},
|
},
|
||||||
@ -307,6 +179,10 @@
|
|||||||
longitude: 105.443132,
|
longitude: 105.443132,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
// locusApi().then(res => {
|
||||||
|
// points=res
|
||||||
|
// })
|
||||||
|
|
||||||
this.polyline = [{
|
this.polyline = [{
|
||||||
points: points,
|
points: points,
|
||||||
color: "#0091ff",
|
color: "#0091ff",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user