|
|
@ -15,7 +15,7 @@ import {
|
|
|
|
GetAgentCnClientList,
|
|
|
|
GetAgentCnClientList,
|
|
|
|
GetClientPortSelectList,
|
|
|
|
GetClientPortSelectList,
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
import { GetClientListByCode } from '/@/api/common'
|
|
|
|
import { GetClientListByCode, GetSupplierListByCode } from '/@/api/common'
|
|
|
|
import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns'
|
|
|
|
import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns'
|
|
|
|
export const TFData = [
|
|
|
|
export const TFData = [
|
|
|
|
{ value: true, label: '是' },
|
|
|
|
{ value: true, label: '是' },
|
|
|
@ -139,26 +139,26 @@ export const schemas: FormSchema[] = [
|
|
|
|
options: TFData,
|
|
|
|
options: TFData,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
label: '结算方式',
|
|
|
|
// label: '结算方式',
|
|
|
|
field: 'stlName',
|
|
|
|
// field: 'stlName',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
required: false,
|
|
|
|
// required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
componentProps: () => {
|
|
|
|
// componentProps: () => {
|
|
|
|
return {
|
|
|
|
// return {
|
|
|
|
api: GetClientStlModeSelectList,
|
|
|
|
// api: GetClientStlModeSelectList,
|
|
|
|
immediate: true,
|
|
|
|
// immediate: true,
|
|
|
|
labelField: 'stlName',
|
|
|
|
// labelField: 'stlName',
|
|
|
|
valueField: 'id',
|
|
|
|
// valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
// resultField: 'data',
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '币别',
|
|
|
|
label: '币别',
|
|
|
|
field: 'currency',
|
|
|
|
field: 'currency',
|
|
|
@ -264,34 +264,35 @@ export const schemas: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// label: '国外代理',
|
|
|
|
|
|
|
|
// field: 'forwarderId',
|
|
|
|
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
|
|
|
|
// required: false,
|
|
|
|
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// api: GetSupplierListByCode,
|
|
|
|
|
|
|
|
// params: { code: 'agent' },
|
|
|
|
|
|
|
|
// labelField: 'shortName',
|
|
|
|
|
|
|
|
// valueField: 'id',
|
|
|
|
|
|
|
|
// resultField: 'data',
|
|
|
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// onChange: (e, obj) => {
|
|
|
|
|
|
|
|
// if (e) {
|
|
|
|
|
|
|
|
// formModel.forwarder = obj.label
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// formModel.forwarder = ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '国外代理',
|
|
|
|
label: '卸货港',
|
|
|
|
field: 'forwarderId',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: GetAgentCnClientList,
|
|
|
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
|
|
|
if (e) {
|
|
|
|
|
|
|
|
formModel.forwarder = obj.label
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
formModel.forwarder = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '港口(国外)',
|
|
|
|
|
|
|
|
field: 'dischargePortId',
|
|
|
|
field: 'dischargePortId',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
@ -320,7 +321,7 @@ export const schemas: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '港口(国内)',
|
|
|
|
label: '装货港',
|
|
|
|
field: 'loadPortId',
|
|
|
|
field: 'loadPortId',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|