|
|
|
@ -11,7 +11,8 @@ import {
|
|
|
|
|
GetClientSourceDetailSelectList,
|
|
|
|
|
GetDeptList,
|
|
|
|
|
GetPackageSelectList,
|
|
|
|
|
GetOrderContactListByClientId
|
|
|
|
|
GetOrderContactListByClientId,
|
|
|
|
|
GetShippingBillTemplateSelectList
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
@ -976,13 +977,6 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
|
|
|
|
|
// mailingInfo表单
|
|
|
|
|
export const mailingInfoFormSchemaL: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'shipperContent',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'shipper',
|
|
|
|
@ -991,48 +985,75 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
label: '发货人',
|
|
|
|
|
field: 'shipperId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'fhr',
|
|
|
|
|
component: 'SelectTextArea',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
label: '发货人',
|
|
|
|
|
details: formModel,
|
|
|
|
|
field: 'shipper',
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
switch (e.type) {
|
|
|
|
|
case 'Content':
|
|
|
|
|
formModel[`shipper${e.type}`] = e.res
|
|
|
|
|
break
|
|
|
|
|
case 'Id':
|
|
|
|
|
formModel.shipper = e.res.label
|
|
|
|
|
formModel.shipperId = e.res.id
|
|
|
|
|
formModel.shipperContent = e.res.content
|
|
|
|
|
break
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetShippingBillTemplateSelectList,
|
|
|
|
|
params: { type: 2 },
|
|
|
|
|
labelField: 'templateName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
if (obj) {
|
|
|
|
|
formModel.shipper = obj.label
|
|
|
|
|
formModel.shipperContent = obj.content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'consigneeContent',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
label: ' ',
|
|
|
|
|
field: 'shipperContent',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
slice: [30, 35, 40]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'fhr',
|
|
|
|
|
// component: 'SelectTextArea',
|
|
|
|
|
// colProps: { span: 24 },
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// label: '发货人',
|
|
|
|
|
// details: formModel,
|
|
|
|
|
// field: 'shipper',
|
|
|
|
|
// onChange: (e) => {
|
|
|
|
|
// if (e) {
|
|
|
|
|
// switch (e.type) {
|
|
|
|
|
// case 'Content':
|
|
|
|
|
// formModel[`shipper${e.type}`] = e.res
|
|
|
|
|
// break
|
|
|
|
|
// case 'Id':
|
|
|
|
|
// formModel.shipper = e.res.label
|
|
|
|
|
// formModel.shipperId = e.res.id
|
|
|
|
|
// formModel.shipperContent = e.res.content
|
|
|
|
|
// break
|
|
|
|
|
// default:
|
|
|
|
|
// break
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'consignee',
|
|
|
|
@ -1048,39 +1069,73 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'shr',
|
|
|
|
|
component: 'SelectTextArea',
|
|
|
|
|
label: '收货人',
|
|
|
|
|
field: 'consigneeId',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
label: '收货人',
|
|
|
|
|
details: formModel,
|
|
|
|
|
field: 'consignee',
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
switch (e.type) {
|
|
|
|
|
case 'Content':
|
|
|
|
|
formModel[`consignee${e.type}`] = e.res
|
|
|
|
|
break
|
|
|
|
|
case 'Id':
|
|
|
|
|
formModel.consignee = e.res.label
|
|
|
|
|
formModel.consigneeId = e.res.value
|
|
|
|
|
formModel.consigneeContent = e.res.content
|
|
|
|
|
break
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetShippingBillTemplateSelectList,
|
|
|
|
|
params: { type: 1 },
|
|
|
|
|
labelField: 'templateName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
if (obj) {
|
|
|
|
|
formModel.consignee = obj.label
|
|
|
|
|
formModel.consigneeContent = obj.content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'shr',
|
|
|
|
|
// component: 'SelectTextArea',
|
|
|
|
|
// colProps: { span: 24 },
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// label: '收货人',
|
|
|
|
|
// details: formModel,
|
|
|
|
|
// field: 'consignee',
|
|
|
|
|
// onChange: (e) => {
|
|
|
|
|
// if (e) {
|
|
|
|
|
// switch (e.type) {
|
|
|
|
|
// case 'Content':
|
|
|
|
|
// formModel[`consignee${e.type}`] = e.res
|
|
|
|
|
// break
|
|
|
|
|
// case 'Id':
|
|
|
|
|
// formModel.consignee = e.res.label
|
|
|
|
|
// formModel.consigneeId = e.res.value
|
|
|
|
|
// formModel.consigneeContent = e.res.content
|
|
|
|
|
// break
|
|
|
|
|
// default:
|
|
|
|
|
// break
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'notifyPartyContent',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
show: false,
|
|
|
|
|
label: ' ',
|
|
|
|
|
field: 'consigneeContent',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
slice: [30, 35, 40]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
@ -1118,39 +1173,80 @@ export const mailingInfoFormSchemaL: FormSchema[] = [
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tzr',
|
|
|
|
|
component: 'SelectTextArea',
|
|
|
|
|
label: '通知人',
|
|
|
|
|
field: 'notifyPartyId',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
label: '通知人',
|
|
|
|
|
details: formModel,
|
|
|
|
|
field: 'notifyParty',
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
switch (e.type) {
|
|
|
|
|
case 'Content':
|
|
|
|
|
formModel[`notifyParty${e.type}`] = e.res
|
|
|
|
|
break
|
|
|
|
|
case 'Id':
|
|
|
|
|
formModel.notifyParty = e.res.label
|
|
|
|
|
formModel.notifyPartyId = e.res.value
|
|
|
|
|
formModel.notifyPartyContent = e.res.content
|
|
|
|
|
break
|
|
|
|
|
case 'Content2':
|
|
|
|
|
formModel.secondNotifyPartyContent = e.res
|
|
|
|
|
break
|
|
|
|
|
case 'Id2':
|
|
|
|
|
formModel.secondNotifyParty = e.res.label
|
|
|
|
|
formModel.secondNotifyPartyId = e.res.value
|
|
|
|
|
break
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetShippingBillTemplateSelectList,
|
|
|
|
|
params: { type: 3 },
|
|
|
|
|
labelField: 'templateName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
if (obj) {
|
|
|
|
|
formModel.notifyParty = obj.label
|
|
|
|
|
formModel.notifyPartyContent = obj.content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'tzr',
|
|
|
|
|
// component: 'SelectTextArea',
|
|
|
|
|
// colProps: { span: 24 },
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// label: '通知人',
|
|
|
|
|
// details: formModel,
|
|
|
|
|
// field: 'notifyParty',
|
|
|
|
|
// onChange: (e) => {
|
|
|
|
|
// if (e) {
|
|
|
|
|
// switch (e.type) {
|
|
|
|
|
// case 'Content':
|
|
|
|
|
// formModel[`notifyParty${e.type}`] = e.res
|
|
|
|
|
// break
|
|
|
|
|
// case 'Id':
|
|
|
|
|
// formModel.notifyParty = e.res.label
|
|
|
|
|
// formModel.notifyPartyId = e.res.value
|
|
|
|
|
// formModel.notifyPartyContent = e.res.content
|
|
|
|
|
// break
|
|
|
|
|
// case 'Content2':
|
|
|
|
|
// formModel.secondNotifyPartyContent = e.res
|
|
|
|
|
// break
|
|
|
|
|
// case 'Id2':
|
|
|
|
|
// formModel.secondNotifyParty = e.res.label
|
|
|
|
|
// formModel.secondNotifyPartyId = e.res.value
|
|
|
|
|
// break
|
|
|
|
|
// default:
|
|
|
|
|
// break
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: ' ',
|
|
|
|
|
field: 'notifyPartyContent',
|
|
|
|
|
component: 'InputTextArea',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
slice: [30, 35, 40]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
@ -2004,8 +2100,8 @@ export const cargoInfoFormSchema1: FormSchema[] = [
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
slice: [30, 35, 40]
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
@ -2550,7 +2646,7 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetServiceSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
labelField: 'enName',
|
|
|
|
|
labelField: 'cnName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|