|
|
|
@ -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}`)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|