|
@@ -4,7 +4,7 @@
|
|
<u-form ref="uForm">
|
|
<u-form ref="uForm">
|
|
<view class="form_top">基本信息</view>
|
|
<view class="form_top">基本信息</view>
|
|
<u-form-item label-width='260' :borderBottom="false" class="label_css" label="车牌号">
|
|
<u-form-item label-width='260' :borderBottom="false" class="label_css" label="车牌号">
|
|
- <u-input v-model="list.carNo" input-align="right" placeholder="--" disabled />
|
|
|
|
|
|
+ <u-input v-model="datalist.carNo" input-align="right" placeholder="--" disabled />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<!-- <u-form-item label-width='150' :borderBottom="false" label="起点">
|
|
<!-- <u-form-item label-width='150' :borderBottom="false" label="起点">
|
|
<view class="place">
|
|
<view class="place">
|
|
@@ -18,23 +18,23 @@
|
|
</u-form-item> -->
|
|
</u-form-item> -->
|
|
|
|
|
|
<u-form-item label-width='260' :borderBottom="false" label="油耗(升)">
|
|
<u-form-item label-width='260' :borderBottom="false" label="油耗(升)">
|
|
- <u-input v-model="list.fillingDetailInfo.oilConsumption" input-align="right" placeholder="--"
|
|
|
|
|
|
+ <u-input v-model="datalist.fillingDetailInfo.oilConsumption" input-align="right" placeholder="--"
|
|
disabled />
|
|
disabled />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label-width='260' :borderBottom="false" label="油耗单价(元)">
|
|
<u-form-item label-width='260' :borderBottom="false" label="油耗单价(元)">
|
|
<u-input input-align="right" placeholder="--" disabled
|
|
<u-input input-align="right" placeholder="--" disabled
|
|
- v-model="list.fillingDetailInfo.currentOilPrice" />
|
|
|
|
|
|
+ v-model="datalist.fillingDetailInfo.currentOilPrice" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label-width='260' :borderBottom="false" label="金额(元)">
|
|
<u-form-item label-width='260' :borderBottom="false" label="金额(元)">
|
|
<u-input input-align="right" placeholder="--" disabled
|
|
<u-input input-align="right" placeholder="--" disabled
|
|
- v-model="list.fillingDetailInfo.currentConsumption" />
|
|
|
|
|
|
+ v-model="datalist.fillingDetailInfo.currentConsumption" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label-width='260' :borderBottom="false" label="申请时间">
|
|
<u-form-item label-width='260' :borderBottom="false" label="申请时间">
|
|
- <u-input input-align="right" placeholder="--" disabled v-model="list.fillingDetailInfo.createDate" />
|
|
|
|
|
|
+ <u-input input-align="right" placeholder="--" disabled v-model="datalist.fillingDetailInfo.createDate" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label-width='150' :borderBottom="false" label="备注">
|
|
<u-form-item label-width='150' :borderBottom="false" label="备注">
|
|
<view class="place">
|
|
<view class="place">
|
|
- {{list.remark}}
|
|
|
|
|
|
+ {{datalist.remark}}
|
|
</view>
|
|
</view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
@@ -132,11 +132,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-form>
|
|
</u-form>
|
|
- <view v-if='list.taskId' style='padding:10px;z-index: 12;' class='flex bottom-btn'>
|
|
|
|
- <u-button v-if='list.approveStatus||isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>
|
|
|
|
|
|
+ <view v-if='datalist.taskId' style='padding:10px;z-index: 12;' class='flex bottom-btn'>
|
|
|
|
+ <u-button v-if='datalist.approveStatus||isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>
|
|
驳回
|
|
驳回
|
|
</u-button>
|
|
</u-button>
|
|
- <u-button v-if='list.approveStatus||isSHowBtn' @click='pass' type="success" class="btn2">通过
|
|
|
|
|
|
+ <u-button v-if='datalist.approveStatus||isSHowBtn' @click='pass' type="success" class="btn2">通过
|
|
</u-button>
|
|
</u-button>
|
|
</view>
|
|
</view>
|
|
<view v-if='show' class="shade">
|
|
<view v-if='show' class="shade">
|
|
@@ -219,7 +219,7 @@
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
fileUrl: [],
|
|
fileUrl: [],
|
|
- list: {
|
|
|
|
|
|
+ datalist: {
|
|
fillingDetailInfo: {
|
|
fillingDetailInfo: {
|
|
oilConsumption: ''
|
|
oilConsumption: ''
|
|
},
|
|
},
|
|
@@ -239,6 +239,7 @@
|
|
url: "",
|
|
url: "",
|
|
imgShow: false,
|
|
imgShow: false,
|
|
height: 200,
|
|
height: 200,
|
|
|
|
+ list:[],
|
|
autoHeight: true,
|
|
autoHeight: true,
|
|
border: false,
|
|
border: false,
|
|
rejectInfo: "",
|
|
rejectInfo: "",
|
|
@@ -265,10 +266,17 @@
|
|
//播放轨迹
|
|
//播放轨迹
|
|
playPlace() {
|
|
playPlace() {
|
|
console.log("tiaozhuan")
|
|
console.log("tiaozhuan")
|
|
|
|
+ if(this.list.length<=0){
|
|
|
|
+ this.$api.msg('暂无轨迹')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/task/playMap?startDate=" + this.datalist.amountDeadline + "&endDate=" + this
|
|
url: "/pages/task/playMap?startDate=" + this.datalist.amountDeadline + "&endDate=" + this
|
|
- .datalist.amountDeadline.createDate
|
|
|
|
|
|
+ .datalist.createDate
|
|
})
|
|
})
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: "/pages/task/playMap?startDate=2023-02-20 01:00:00&endDate=2023-02-20 24:00:00"
|
|
|
|
+ // })
|
|
// startDate: "2023-02-20 01:00:00",
|
|
// startDate: "2023-02-20 01:00:00",
|
|
// endDate: "2023-02-20 24:00:00",
|
|
// endDate: "2023-02-20 24:00:00",
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
@@ -340,17 +348,17 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
|
|
- that.list = res.data.data
|
|
|
|
|
|
+ that.datalist = res.data.data
|
|
let urlList = []
|
|
let urlList = []
|
|
- console.log(this.list)
|
|
|
|
- if (that.list.fillingDetailInfo.addressUrl) {
|
|
|
|
- let datalist = that.list.fillingDetailInfo.addressUrl.split(",")
|
|
|
|
|
|
+ console.log(this.datalist)
|
|
|
|
+ if (that.datalist.fillingDetailInfo.addressUrl) {
|
|
|
|
+ let datalist = that.datalist.fillingDetailInfo.addressUrl.split(",")
|
|
for (let j = 0; j < datalist.length; j++) {
|
|
for (let j = 0; j < datalist.length; j++) {
|
|
urlList.push({
|
|
urlList.push({
|
|
url: datalist[j]
|
|
url: datalist[j]
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- that.list.fillingDetailInfo.urlList = urlList
|
|
|
|
|
|
+ that.datalist.fillingDetailInfo.urlList = urlList
|
|
}
|
|
}
|
|
|
|
|
|
// 审核流程
|
|
// 审核流程
|
|
@@ -505,11 +513,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.auditList = response.data.data
|
|
this.auditList = response.data.data
|
|
- var time2 = new Date(this.list.createDate).getTime()
|
|
|
|
|
|
+ var time2 = new Date(this.datalist.createDate).getTime()
|
|
var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
|
|
var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
|
|
this.auditList.unshift({
|
|
this.auditList.unshift({
|
|
- operatorTitle: this.list.creater.substring(0, 2),
|
|
|
|
- operatorName: this.list.creater,
|
|
|
|
|
|
+ operatorTitle: this.datalist.creater.substring(0, 2),
|
|
|
|
+ operatorName: this.datalist.creater,
|
|
updateDate: time3,
|
|
updateDate: time3,
|
|
auditMind: '',
|
|
auditMind: '',
|
|
desc: '发起申请',
|
|
desc: '发起申请',
|
|
@@ -525,16 +533,16 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
await this.$api.doRequest('post', '/CarPostionController/api/gettrack', {
|
|
await this.$api.doRequest('post', '/CarPostionController/api/gettrack', {
|
|
- // startDate:this.datalist.amountDeadline ,
|
|
|
|
- // endDate: this.datalist.amountDeadline.createDate,
|
|
|
|
- startDate: "2023-02-20 01:00:00",
|
|
|
|
- endDate: "2023-02-20 24:00:00",
|
|
|
|
|
|
+ startDate:this.datalist.amountDeadline ,
|
|
|
|
+ endDate: this.datalist.createDate,
|
|
|
|
+ // startDate: "2023-02-20 01:00:00",
|
|
|
|
+ // endDate: "2023-02-20 24:00:00",
|
|
|
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
// uni.hideLoading()
|
|
// uni.hideLoading()
|
|
-
|
|
|
|
|
|
+ this.list=JSON.parse(res.data.data)
|
|
let _list = JSON.parse(res.data.data)
|
|
let _list = JSON.parse(res.data.data)
|
|
this.latitude = _list[0].lat
|
|
this.latitude = _list[0].lat
|
|
this.longitude = _list[0].lng
|
|
this.longitude = _list[0].lng
|
|
@@ -597,7 +605,7 @@
|
|
info = that.auditMind + "##" + that.fileUrl.toString()
|
|
info = that.auditMind + "##" + that.fileUrl.toString()
|
|
}
|
|
}
|
|
that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
- taskId: that.list.taskId,
|
|
|
|
|
|
+ taskId: that.datalist.taskId,
|
|
approved: false,
|
|
approved: false,
|
|
auditMind: info ? info : "",
|
|
auditMind: info ? info : "",
|
|
needReapply: true,
|
|
needReapply: true,
|
|
@@ -606,7 +614,7 @@
|
|
that.show = false
|
|
that.show = false
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
if (that.everyCheck) {
|
|
if (that.everyCheck) {
|
|
- helper.setAudit(that.list)
|
|
|
|
|
|
+ helper.setAudit(that.datalist)
|
|
} else {
|
|
} else {
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
}
|
|
}
|
|
@@ -630,7 +638,7 @@
|
|
info = that.auditMind + "##" + that.fileUrl.toString()
|
|
info = that.auditMind + "##" + that.fileUrl.toString()
|
|
}
|
|
}
|
|
that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
- taskId: that.list.taskId,
|
|
|
|
|
|
+ taskId: that.datalist.taskId,
|
|
approved: true,
|
|
approved: true,
|
|
auditMind: info ? info : "",
|
|
auditMind: info ? info : "",
|
|
needReapply: true,
|
|
needReapply: true,
|
|
@@ -639,7 +647,7 @@
|
|
that.show = false
|
|
that.show = false
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
if (that.everyCheck) {
|
|
if (that.everyCheck) {
|
|
- helper.setAudit(that.list)
|
|
|
|
|
|
+ helper.setAudit(that.datalist)
|
|
} else {
|
|
} else {
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
}
|
|
}
|
|
@@ -650,14 +658,14 @@
|
|
},
|
|
},
|
|
//审核方法
|
|
//审核方法
|
|
audit(item, index, status, status2, reason) {
|
|
audit(item, index, status, status2, reason) {
|
|
- if (index < this.list.length) {
|
|
|
|
|
|
+ if (index < this.datalist.length) {
|
|
this.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
this.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
taskId: item.taskId,
|
|
taskId: item.taskId,
|
|
approved: status,
|
|
approved: status,
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
needReapply: status2 != undefined ? true : false,
|
|
needReapply: status2 != undefined ? true : false,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.audit(this.list[index + 1], index + 1, status)
|
|
|
|
|
|
+ this.audit(this.datalist[index + 1], index + 1, status)
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
if (status == true) {
|
|
if (status == true) {
|