|
@@ -10,12 +10,12 @@
|
|
<view class="title">车牌号</view>
|
|
<view class="title">车牌号</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
|
|
|
|
- <!-- <input :disabled='titleBtn=="申请报销"' v-model='detailData.carNo' placeholder="请输入车牌号" maxlength="7"></input> -->
|
|
|
|
|
|
+ <input :disabled='titleBtn=="申请报销"' v-model='detailData.carNo' placeholder="请输入车牌号" maxlength="7"></input>
|
|
</view>
|
|
</view>
|
|
- <picker :range="carNolist" range-key="carNo" @change='carnopicker($event)'
|
|
|
|
|
|
+ <!-- <picker :range="carNolist" range-key="carNo" @change='carnopicker($event)'
|
|
:disabled='titleBtn=="申请报销"' mode="selector">
|
|
:disabled='titleBtn=="申请报销"' mode="selector">
|
|
<view >{{detailData.carNo?detailData.carNo:'请选择车牌号'}}</view>
|
|
<view >{{detailData.carNo?detailData.carNo:'请选择车牌号'}}</view>
|
|
- </picker>
|
|
|
|
|
|
+ </picker> -->
|
|
</view>
|
|
</view>
|
|
<view @click='startTrack' class="button" v-if='titleBtn=="开始轨迹"'>{{titleBtn}}</view>
|
|
<view @click='startTrack' class="button" v-if='titleBtn=="开始轨迹"'>{{titleBtn}}</view>
|
|
<view @click='endTrack' class="button1" v-if='titleBtn=="结束轨迹"'>{{titleBtn}}</view>
|
|
<view @click='endTrack' class="button1" v-if='titleBtn=="结束轨迹"'>{{titleBtn}}</view>
|
|
@@ -88,32 +88,32 @@
|
|
uni.$off("page-popup-submit")
|
|
uni.$off("page-popup-submit")
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
- this.$api.doRequest('get', '/carInfo/selectCars', { currentPage:1,
|
|
|
|
- pageSize:9999,
|
|
|
|
- compId: uni.getStorageSync('pcUserInfo').compId,})
|
|
|
|
- .then(res1 => {
|
|
|
|
- if(res1.data.code==200){
|
|
|
|
- this.carNolist=res1.data.data.records
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
- });
|
|
|
|
|
|
+ // this.$api.doRequest('get', '/carInfo/selectCars', { currentPage:1,
|
|
|
|
+ // pageSize:9999,
|
|
|
|
+ // compId: uni.getStorageSync('pcUserInfo').compId,})
|
|
|
|
+ // .then(res1 => {
|
|
|
|
+ // if(res1.data.code==200){
|
|
|
|
+ // this.carNolist=res1.data.data.records
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // .catch(res => {
|
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
|
+ // });
|
|
this.id = options.id
|
|
this.id = options.id
|
|
that = this
|
|
that = this
|
|
|
|
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.$api.doRequest('post', '/CarPostionController/api/getlocation', {currentPage:1,
|
|
|
|
- pageSize:9999,compId: uni.getStorageSync('pcUserInfo').compId,})
|
|
|
|
- .then(res1 => {
|
|
|
|
- // if(res1.data.code==200){
|
|
|
|
- console.log(res1,11111111)
|
|
|
|
- // }
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
- });
|
|
|
|
|
|
+ // this.$api.doRequest('post', '/CarPostionController/api/getlocation', {currentPage:1,
|
|
|
|
+ // pageSize:9999,compId: uni.getStorageSync('pcUserInfo').compId,})
|
|
|
|
+ // .then(res1 => {
|
|
|
|
+ // // if(res1.data.code==200){
|
|
|
|
+ // console.log(res1,11111111)
|
|
|
|
+ // // }
|
|
|
|
+ // })
|
|
|
|
+ // .catch(res => {
|
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
|
+ // });
|
|
var that = this
|
|
var that = this
|
|
if (this.id) {
|
|
if (this.id) {
|
|
console.log(1111111)
|
|
console.log(1111111)
|