|
|
|
@ -88,8 +88,8 @@
|
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
|
@changeTotal="changeTotalFun"
|
|
|
|
|
@changeCtnInfo="changeCtnInfoFun"
|
|
|
|
|
v-if="!inPageLoading"
|
|
|
|
|
></goodsTable>
|
|
|
|
|
<!-- v-if="!inPageLoading" -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="tab-content2" class="tab-content" v-show="mainOrderActiveKey === '2-2'">
|
|
|
|
@ -614,6 +614,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
const hbListChange = !!this.needSavePages[key].hbList
|
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: hbListChange })
|
|
|
|
|
console.log('== details 发生变化 - 路由变化1 ==')
|
|
|
|
|
this.inChildLoading = false
|
|
|
|
|
}, 500)
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
@ -659,6 +660,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
const hbListChange = !!this.needSavePages[key].hbList
|
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: hbListChange })
|
|
|
|
|
console.log('== details 发生变化 - 路由变化2 ==')
|
|
|
|
|
this.inChildLoading = false
|
|
|
|
|
}, 500)
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
@ -721,7 +723,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
const hbListChange = !!this.needSavePages[key].hbList
|
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: hbListChange })
|
|
|
|
|
console.log(`详情历史改变数据:${detailsChange}, 分单历史改变数据: ${hbListChange}`)
|
|
|
|
|
console.log('== details 发生变化 - 路由变化3 ==')
|
|
|
|
|
// console.log(`详情历史改变数据:${detailsChange}, 分单历史改变数据: ${hbListChange}`)
|
|
|
|
|
this.inChildLoading = false
|
|
|
|
|
}, 500)
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
@ -744,6 +747,7 @@ export default {
|
|
|
|
|
const hbListChange = !!this.needSavePages[key].hbList
|
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: hbListChange })
|
|
|
|
|
this.inChildLoading = false
|
|
|
|
|
console.log('== details 发生变化 - 路由变化4 ==')
|
|
|
|
|
}, 500)
|
|
|
|
|
}
|
|
|
|
|
this.$refs.basicInfo.$refs.basicFrom.clearValidate()
|
|
|
|
@ -1064,10 +1068,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
const $BookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...res.data.bookingEDIExt }
|
|
|
|
|
this.$set(this, 'bookingDetails', { ...this.bookingDetails, ...newData, ...{ bookingEDIExt: $BookingEDIExt } })
|
|
|
|
|
this.inPageLoading = false
|
|
|
|
|
this.getDefaultVal()
|
|
|
|
|
this.inPageLoading = false
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
|
// 问题在这里呦
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
|
console.log('== details 发生变化 - 加载完成 ==')
|
|
|
|
|
}, 1200)
|
|
|
|
|
this.detailsLoadOver = true
|
|
|
|
|
this.inChildLoading = false
|
|
|
|
|
this.$message.success({ content: '加载完成' })
|
|
|
|
@ -1111,6 +1119,7 @@ export default {
|
|
|
|
|
const { detail, type } = data
|
|
|
|
|
if (this.ifCompare(this.bookingDetails, detail) && !this.inChildLoading) {
|
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: true })
|
|
|
|
|
console.log('== details 发生变化 - changeDetailFun ==', data)
|
|
|
|
|
}
|
|
|
|
|
this.bookingDetails = detail
|
|
|
|
|
},
|
|
|
|
@ -1481,6 +1490,7 @@ export default {
|
|
|
|
|
}, 200)
|
|
|
|
|
},
|
|
|
|
|
changeHBFun(data) {
|
|
|
|
|
console.log('== details 发生变化 - changeHBFun ==')
|
|
|
|
|
const arr = []
|
|
|
|
|
data.map((item, index) => {
|
|
|
|
|
arr.push(item.isNoSave)
|
|
|
|
@ -1493,6 +1503,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
checkSaveFun(data) {
|
|
|
|
|
console.log('== details 发生变化 - 保存 ==', data, this.inGoodsSave, this.detailsLoadOver)
|
|
|
|
|
if (this.inGoodsSave) {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
@ -1509,6 +1520,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.$set(lastPages, key, $data)
|
|
|
|
|
this.setNeedSavePages(lastPages)
|
|
|
|
|
console.log('保存信息设置完成', this.needSavePages)
|
|
|
|
|
},
|
|
|
|
|
inGoodsSaveFun(data) {
|
|
|
|
|
this.inGoodsSave = data
|
|
|
|
|