|
|
@ -1636,7 +1636,7 @@
|
|
|
|
// 这里定义了编辑,自动填充和拷贝数据的处理逻辑
|
|
|
|
// 这里定义了编辑,自动填充和拷贝数据的处理逻辑
|
|
|
|
if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
|
|
|
|
if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
|
|
|
|
let dict: any = {}
|
|
|
|
let dict: any = {}
|
|
|
|
|
|
|
|
// 选择箱型联动逻辑
|
|
|
|
if (changes[0][1] === 'ctn') {
|
|
|
|
if (changes[0][1] === 'ctn') {
|
|
|
|
const res = ctnDict.value.length ? ctnDict.value : (await GetCtnSelectList())?.data
|
|
|
|
const res = ctnDict.value.length ? ctnDict.value : (await GetCtnSelectList())?.data
|
|
|
|
if (!ctnDict.value.length) ctnDict.value = res
|
|
|
|
if (!ctnDict.value.length) ctnDict.value = res
|
|
|
@ -1644,7 +1644,7 @@
|
|
|
|
return item.ctnName === changes[0][3]
|
|
|
|
return item.ctnName === changes[0][3]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (item) dict = item[0]
|
|
|
|
if (item) dict = item[0]
|
|
|
|
|
|
|
|
console.log(dict)
|
|
|
|
list.value[changes[0][0]]['ctn'] = dict?.ctnName
|
|
|
|
list.value[changes[0][0]]['ctn'] = dict?.ctnName
|
|
|
|
list.value[changes[0][0]]['ctnCode'] = dict?.edicode
|
|
|
|
list.value[changes[0][0]]['ctnCode'] = dict?.edicode
|
|
|
|
list.value[changes[0][0]]['size'] = dict?.ctnSize
|
|
|
|
list.value[changes[0][0]]['size'] = dict?.ctnSize
|
|
|
@ -1654,6 +1654,7 @@
|
|
|
|
OTeu.value = dict.teu
|
|
|
|
OTeu.value = dict.teu
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.value[changes[0][0]]['tareWeight'] = dict?.ctnWeight
|
|
|
|
list.value[changes[0][0]]['tareWeight'] = dict?.ctnWeight
|
|
|
|
|
|
|
|
console.log(list.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (changes[0][1] === 'kindPkgsName') {
|
|
|
|
if (changes[0][1] === 'kindPkgsName') {
|
|
|
|
const res = kindPkgsDict.value.length
|
|
|
|
const res = kindPkgsDict.value.length
|
|
|
|