szh_zidingyibiaoti
张同海 2 years ago
parent aa66b622b6
commit da413bc847

@ -951,13 +951,17 @@ export default {
this.form = this.$form.createForm(this)
if (this.BookingId) {
BookingTruckInitFromBookingOrder({ bookingId: this.BookingId }).then(res => {
console.log(res, 'BookingTruckInitFromBookingOrder')
this.form.setFieldsValue({ ...res.data.ext })
if (res.data.ext.contaList) {
res.data.ext.contaList.forEach((item, index) => {
item.WebKey = index + 1
})
this.ContactsData = res.data.ext.contaList
if (res.data.succ) {
console.log(res, 'BookingTruckInitFromBookingOrder')
this.form.setFieldsValue({ ...res.data.ext })
if (res.data.ext.contaList) {
res.data.ext.contaList.forEach((item, index) => {
item.WebKey = index + 1
})
this.ContactsData = res.data.ext.contaList
}
} else {
this.$message.error(`${res.data.msg}`)
}
})
}

@ -1145,9 +1145,7 @@ export default {
this.$message.error('请选择数据')
return false
}
CancelTask({
PKIds: pkIdArr
})
CancelTask(pkIdArr)
.then(res => {
if (res.success) {
this.$message.success('取消任务成功')
@ -1170,9 +1168,7 @@ export default {
this.$message.error('请选择数据')
return false
}
CompleteTask({
PKIds: pkIdArr
})
CompleteTask(pkIdArr)
.then(res => {
if (res.success) {
this.$message.success('已完成任务')

Loading…
Cancel
Save