箱管 调整

szh-new
张同海 3 months ago
parent 450a361418
commit 64ed883fe9

@ -50,12 +50,6 @@ export const columns: BasicColumn[] = [
sorter: true, sorter: true,
width: 150, width: 150,
}, },
{
title: '箱型箱量',
dataIndex: 'ctntotal',
sorter: true,
width: 200,
},
{ {
title: '已提箱', title: '已提箱',
dataIndex: 'pickupCtntotal', dataIndex: 'pickupCtntotal',
@ -218,7 +212,7 @@ export const formSchema: FormSchema[] = [
field: 'oldContainerOwner', field: 'oldContainerOwner',
label: '原箱主', label: '原箱主',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: true,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {

@ -811,12 +811,12 @@
data: 'dropoffDate', data: 'dropoffDate',
}, },
{ {
title: '箱港口', title: '箱港口',
width: 120, width: 120,
data: 'cntrno', data: 'dropoffPort',
}, },
{ {
title: '箱港口', title: '箱港口',
width: 120, width: 120,
data: 'pickupPort', data: 'pickupPort',
}, },

@ -394,7 +394,7 @@ export const formSchema: FormSchema[] = [
field: 'oldContainerOwner', field: 'oldContainerOwner',
label: '原箱主', label: '原箱主',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: true,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {

@ -403,7 +403,7 @@ export const formSchema: FormSchema[] = [
field: 'rentCustomerName', field: 'rentCustomerName',
label: '租箱客户', label: '租箱客户',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: true,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {

@ -512,6 +512,16 @@
width: 120, width: 120,
data: 'portCode', data: 'portCode',
}, },
{
title: '提箱港口ID',
width: 120,
data: 'pickupPortid',
},
{
title: '提箱港口五字码',
width: 120,
data: 'pickupPortCode',
},
{ {
title: '当前状态ID', title: '当前状态ID',
width: 120, width: 120,
@ -706,6 +716,21 @@
format: '0', format: '0',
readOnly: true, readOnly: true,
}, },
{
title: '提箱港口',
width: 120,
data: 'pickupPort',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data
if (!PortDict.value.length) PortDict.value = res
const dict = res.map((res) => {
return res.portName
})
process(dict)
},
},
{ {
title: '当前港口', title: '当前港口',
width: 120, width: 120,
@ -720,6 +745,7 @@
}) })
process(dict) process(dict)
}, },
readOnly: true,
}, },
// { // {
// title: '', // title: '',
@ -746,7 +772,7 @@
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
// //
hiddenColumns: { hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
indicators: true, indicators: true,
}, },
// //
@ -775,7 +801,7 @@
list.value[changes[0][0]]['ctnall'] = dict?.ctnName list.value[changes[0][0]]['ctnall'] = dict?.ctnName
list.value[changes[0][0]]['ctnCode'] = dict?.ediCode list.value[changes[0][0]]['ctnCode'] = dict?.ediCode
} }
if (changes[0][1] === 'port') { if (changes[0][1] === 'port' || changes[0][1] === 'pickupPort') {
const res = PortDict.value.length const res = PortDict.value.length
? PortDict.value ? PortDict.value
: (await GetClientPortSelectList())?.data : (await GetClientPortSelectList())?.data
@ -790,6 +816,11 @@
list.value[changes[0][0]]['portid'] = dict?.id list.value[changes[0][0]]['portid'] = dict?.id
list.value[changes[0][0]]['portCode'] = dict?.ediCode list.value[changes[0][0]]['portCode'] = dict?.ediCode
} }
if (changes[0][1] === 'pickupPort') {
list.value[changes[0][0]]['pickupPort'] = dict?.portName
list.value[changes[0][0]]['pickupPortid'] = dict?.id
list.value[changes[0][0]]['pickupPortCode'] = dict?.ediCode
}
} }
if (changes[0][1] === 'ctnSource') { if (changes[0][1] === 'ctnSource') {
const res = ctnsourceDict.value.length const res = ctnsourceDict.value.length
@ -944,7 +975,7 @@
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
// //
hiddenColumns: { hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
indicators: true, indicators: true,
}, },
// // // //

@ -154,7 +154,7 @@ export const formSchema: FormSchema[] = [
field: 'BuyContainerOwner', field: 'BuyContainerOwner',
label: '购箱单位', label: '购箱单位',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: true,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {

Loading…
Cancel
Save