箱管 调整

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

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

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

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

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

@ -512,6 +512,16 @@
width: 120,
data: 'portCode',
},
{
title: '提箱港口ID',
width: 120,
data: 'pickupPortid',
},
{
title: '提箱港口五字码',
width: 120,
data: 'pickupPortCode',
},
{
title: '当前状态ID',
width: 120,
@ -706,6 +716,21 @@
format: '0',
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: '当前港口',
width: 120,
@ -720,6 +745,7 @@
})
process(dict)
},
readOnly: true,
},
// {
// title: '',
@ -746,7 +772,7 @@
fixedColumnsLeft: 1,
//
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,
},
//
@ -775,7 +801,7 @@
list.value[changes[0][0]]['ctnall'] = dict?.ctnName
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
? PortDict.value
: (await GetClientPortSelectList())?.data
@ -790,6 +816,11 @@
list.value[changes[0][0]]['portid'] = dict?.id
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') {
const res = ctnsourceDict.value.length
@ -944,7 +975,7 @@
fixedColumnsLeft: 1,
//
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,
},
// //

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

Loading…
Cancel
Save