|
|
@ -478,7 +478,7 @@ export default {
|
|
|
|
this.inPageLoading = true
|
|
|
|
this.inPageLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.$message.loading({ content: '加载中...' });
|
|
|
|
this.$message.loading({ content: '加载中...' });
|
|
|
|
// console.log('4.1 == 获取详情 ==', this.id)
|
|
|
|
console.log('4.1 == 获取详情 ==', this.id)
|
|
|
|
BookingOrderGet({
|
|
|
|
BookingOrderGet({
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -512,7 +512,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
// console.log(' 1. === 主单获取信息更新 ===')
|
|
|
|
console.log(' 1. === 主单获取信息更新 ===')
|
|
|
|
this.inChildLoading = false
|
|
|
|
this.inChildLoading = false
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: false })
|
|
|
|
}, 1500)
|
|
|
|
}, 1500)
|
|
|
@ -527,7 +527,7 @@ export default {
|
|
|
|
const { detail, type } = data
|
|
|
|
const { detail, type } = data
|
|
|
|
// console.log('对比更新内容', this.ifCompare(this.bookingDetails, detail), !this.inChildLoading, this.ifCompare(this.bookingDetails, detail) && !this.inChildLoading)
|
|
|
|
// console.log('对比更新内容', this.ifCompare(this.bookingDetails, detail), !this.inChildLoading, this.ifCompare(this.bookingDetails, detail) && !this.inChildLoading)
|
|
|
|
if (this.ifCompare(this.bookingDetails, detail) && !this.inChildLoading) {
|
|
|
|
if (this.ifCompare(this.bookingDetails, detail) && !this.inChildLoading) {
|
|
|
|
// console.log('2. == 这里子组件进行了更新 == ', type)
|
|
|
|
console.log('2. == 这里子组件进行了更新 == ', type)
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: true })
|
|
|
|
this.checkSaveFun({ type: 'details', hasChange: true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.bookingDetails = detail
|
|
|
|
this.bookingDetails = detail
|
|
|
@ -664,7 +664,7 @@ export default {
|
|
|
|
const arr = Object.keys(this.bookingList)
|
|
|
|
const arr = Object.keys(this.bookingList)
|
|
|
|
const index = arr.indexOf(nowId.toString())
|
|
|
|
const index = arr.indexOf(nowId.toString())
|
|
|
|
if (type === 'prev') {
|
|
|
|
if (type === 'prev') {
|
|
|
|
if (index === 0) {
|
|
|
|
if (index < 1) {
|
|
|
|
this.$message.error('当前已经是第一票')
|
|
|
|
this.$message.error('当前已经是第一票')
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -724,7 +724,7 @@ export default {
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
const arr = data.map((item, index) => {
|
|
|
|
return item.isNoSave
|
|
|
|
return item.isNoSave
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// console.log('3. === 分单更新 ===')
|
|
|
|
console.log('3. === 分单更新 ===')
|
|
|
|
if (arr.includes(true)) {
|
|
|
|
if (arr.includes(true)) {
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: true })
|
|
|
|
this.checkSaveFun({ type: 'hbList', hasChange: true })
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -746,7 +746,7 @@ export default {
|
|
|
|
const key = this.$route.fullPath
|
|
|
|
const key = this.$route.fullPath
|
|
|
|
this.$set(lastPages, key, $data)
|
|
|
|
this.$set(lastPages, key, $data)
|
|
|
|
this.setNeedSavePages(lastPages)
|
|
|
|
this.setNeedSavePages(lastPages)
|
|
|
|
// console.log('== vuex 配置更新信息 ==', this.needSavePages)
|
|
|
|
console.log('== vuex 配置更新信息 ==', this.needSavePages)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
calc(num1, num2, calcStr) {
|
|
|
|
calc(num1, num2, calcStr) {
|
|
|
|
var str1; // 转换为字符串的数字
|
|
|
|
var str1; // 转换为字符串的数字
|
|
|
|