海运出口详情bug

szh-new
lijingjia 4 months ago
parent 8e67d10d6d
commit 9602ecdc73

@ -1472,6 +1472,7 @@
result: remark ? 2 : 1,
ids: [id.value],
businessType: '1',
taskTypeName: route.query.status
}
if (remark) postData['remark'] = remark
loading.value = true

@ -2094,8 +2094,13 @@ export const cargoInfoFormSchema2: FormSchema[] = [
},
},
{
label: '包装',
label: '包装id',
field: 'kindPkgs',
component: 'Input',
},
{
label: '包装',
field: 'kindPkgsName',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
@ -2110,6 +2115,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [
immediate: false,
onChange: (e, obj) => {
if (e && obj) {
formModel.kindPkgs = obj.id
setTimeout(() => {
formActionType ? formActionType.submit() : null
}, 10)

@ -285,6 +285,8 @@
const list = ref<any>([])
const moreTList = ref<any>([])
const moreData = ref<any>([[]])
//
const mainPkgs = ref([])
//
const columns = [
{
@ -364,6 +366,8 @@
// (process)
source: async (query, process) => {
const res = (await GetPackageSelectList({ queryKey: query }))?.data
console.log(res)
mainPkgs.value = res
const dict = res.map((res) => {
return res.packageName
})
@ -599,11 +603,11 @@
{
title: '包装',
width: 120,
data: 'kindPkgs',
data: 'kindPkgsName',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = await GetPackageSelectList({ querykey: query })?.data
const res = (await GetPackageSelectList({ querykey: query }))?.data
const dict = res.map((res) => {
return res.packageName
})
@ -1612,7 +1616,7 @@
//
afterValidate: function (isValid, value, row, prop, source) {
if (!isValid) {
hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
hotmain.value.hotInstance.setDataAtRowProp(row, prop, '')
}
},
columns: columns,
@ -1641,15 +1645,7 @@
list.value[changes[0][0]]['tareWeight'] = dict?.ctnWeight
}
if (changes[0][1] === 'kindPkgsName') {
const res = kindPkgsDict.value.length
? kindPkgsDict.value
: (await GetPackageSelectList())?.data
if (!kindPkgsDict.value.length) {
kindPkgsDict.value.splice(0)
res.forEach((e) => {
kindPkgsDict.value.push(e)
})
}
const res = mainPkgs.value
const item = res.filter((item) => {
return item.packageName === changes[0][3]
})
@ -1658,9 +1654,7 @@
list.value[changes[0][0]]['kindPkgsName'] = dict?.packageName
}
if (changes[0][1] === 'weightTypeName') {
const res = weightTypeDict.value.length
? weightTypeDict.value
: (await getDictDropDown({ code: 'weight_type' }))?.data
const res = await getDictOption('weight_type')
if (!weightTypeDict.value.length) {
res.forEach((e) => {
weightTypeDict.value.push(e)

Loading…
Cancel
Save