|
|
|
@ -252,7 +252,7 @@
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
details: { type: Object, default: {} },
|
|
|
|
|
isLockBooking: { type: Boolean, default: false },
|
|
|
|
|
isLockBooking: { type: Boolean, default: false }
|
|
|
|
|
})
|
|
|
|
|
// 判断页面进入源
|
|
|
|
|
const source = 'edit'
|
|
|
|
@ -1259,7 +1259,6 @@
|
|
|
|
|
},
|
|
|
|
|
])
|
|
|
|
|
function init(data, hot) {
|
|
|
|
|
console.log(data)
|
|
|
|
|
const { ctnInfo } = data
|
|
|
|
|
if (ctnInfo && ctnInfo.length > 0) {
|
|
|
|
|
totalPkgs.value = 0
|
|
|
|
@ -1618,32 +1617,17 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
watch(
|
|
|
|
|
list.value,
|
|
|
|
|
() => props.details,
|
|
|
|
|
(val) => {
|
|
|
|
|
let a = 0
|
|
|
|
|
let b = 0
|
|
|
|
|
val.forEach((item) => {
|
|
|
|
|
if (item.selected) {
|
|
|
|
|
a += 1
|
|
|
|
|
} else {
|
|
|
|
|
b += 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (a == 0) {
|
|
|
|
|
allCheck.value = false
|
|
|
|
|
}
|
|
|
|
|
if (b == 0) {
|
|
|
|
|
allCheck.value = true
|
|
|
|
|
}
|
|
|
|
|
if (a != 0 && b != 0) {
|
|
|
|
|
someCheck.value = true
|
|
|
|
|
} else {
|
|
|
|
|
someCheck.value = false
|
|
|
|
|
// 渲染表格数据
|
|
|
|
|
if (val.ctnInfo && val.ctnInfo.length) {
|
|
|
|
|
const hot = hotmain.value.hotInstance
|
|
|
|
|
init(val, hot)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
deep: true,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
// 表格配置项
|
|
|
|
|
const settings = {
|
|
|
|
|