|
|
|
@ -209,29 +209,29 @@ export default {
|
|
|
|
|
parSedOrderList: {
|
|
|
|
|
handler(nval, oval) {
|
|
|
|
|
// this.inLoading = true
|
|
|
|
|
if (this.id !== this.details.id) { return false }
|
|
|
|
|
// console.log('== 父组件中传参分单发生变化 ==', nval, this.id, this.details.id, nval.length > 0 ? nval[0].hblno : '== 分单号为空 ==')
|
|
|
|
|
this.inSecLoad = true
|
|
|
|
|
const _data = JSON.parse(JSON.stringify(nval))
|
|
|
|
|
if (_data.length > 0) {
|
|
|
|
|
if (!_data[this.editIndex].bookingEDIExt) {
|
|
|
|
|
_data[this.editIndex].bookingEDIExt = {
|
|
|
|
|
weiTuoFang: '',
|
|
|
|
|
ediAttn: '',
|
|
|
|
|
ediAttnTel: '',
|
|
|
|
|
ediAttnMail: ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.editDetails = _data[this.editIndex]
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.inSecLoad = false
|
|
|
|
|
}, 1500)
|
|
|
|
|
} else {
|
|
|
|
|
this.editDetails = null
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.inSecLoad = false
|
|
|
|
|
}, 1500)
|
|
|
|
|
}
|
|
|
|
|
// if (this.id !== this.details.id) { return false }
|
|
|
|
|
// // console.log('== 父组件中传参分单发生变化 ==', nval, this.id, this.details.id, nval.length > 0 ? nval[0].hblno : '== 分单号为空 ==')
|
|
|
|
|
// this.inSecLoad = true
|
|
|
|
|
// const _data = JSON.parse(JSON.stringify(nval))
|
|
|
|
|
// if (_data.length > 0) {
|
|
|
|
|
// if (!_data[this.editIndex].bookingEDIExt) {
|
|
|
|
|
// _data[this.editIndex].bookingEDIExt = {
|
|
|
|
|
// weiTuoFang: '',
|
|
|
|
|
// ediAttn: '',
|
|
|
|
|
// ediAttnTel: '',
|
|
|
|
|
// ediAttnMail: ''
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// this.editDetails = _data[this.editIndex]
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.inSecLoad = false
|
|
|
|
|
// }, 1500)
|
|
|
|
|
// } else {
|
|
|
|
|
// this.editDetails = null
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.inSecLoad = false
|
|
|
|
|
// }, 1500)
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
deep: true
|
|
|
|
|
},
|
|
|
|
@ -277,10 +277,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
init(data = {}) {
|
|
|
|
|
// console.log('== 分单初始化 ==', data)
|
|
|
|
|
console.log('== 分单初始化 ==', data)
|
|
|
|
|
let _this = this
|
|
|
|
|
if (this.parSedOrderList.length > 0) {
|
|
|
|
|
if (Object.keys(data).length > 0) {
|
|
|
|
|
this.sedOrderList = JSON.parse(JSON.stringify(data))
|
|
|
|
|
} else if (this.parSedOrderList.length > 0) {
|
|
|
|
|
this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList))
|
|
|
|
|
}
|
|
|
|
|
if (this.sedOrderList.length > 0) {
|
|
|
|
|
// this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList))
|
|
|
|
|
this.sedOrderList.map((item, index) => {
|
|
|
|
|
item.isNoSave = false
|
|
|
|
|
// console.log('初始获取列表,保存状态', index, item.isNoSave)
|
|
|
|
@ -303,7 +308,7 @@ export default {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
_this.$refs.goodsTable.init()
|
|
|
|
|
}, 2000)
|
|
|
|
|
// console.log('分单加载完成', this.inSecLoad)
|
|
|
|
|
console.log('分单加载完成', this.inSecLoad)
|
|
|
|
|
}, 200)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|