|
|
@ -7,14 +7,36 @@ import {
|
|
|
|
GetFeeCodeSelectList,
|
|
|
|
GetFeeCodeSelectList,
|
|
|
|
GetFeeCurrencySelectList,
|
|
|
|
GetFeeCurrencySelectList,
|
|
|
|
} from '/@/views/operation/CustomerReconciliation/api.js'
|
|
|
|
} from '/@/views/operation/CustomerReconciliation/api.js'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
GetClientStlModeSelectList,
|
|
|
|
|
|
|
|
GetVesselSelectList,
|
|
|
|
|
|
|
|
GetVoynoSelectList,
|
|
|
|
|
|
|
|
GetAgentCnClientList,
|
|
|
|
|
|
|
|
GetClientPortSelectList,
|
|
|
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
|
|
|
|
import { GetClientListByCode } from '/@/api/common'
|
|
|
|
import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns'
|
|
|
|
import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns'
|
|
|
|
export const RQueryArr = ['currency']
|
|
|
|
export const TFData = [
|
|
|
|
|
|
|
|
{ value: true, label: '是' },
|
|
|
|
|
|
|
|
{ value: false, label: '否' },
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
export const RQueryArr = [
|
|
|
|
|
|
|
|
'customerId',
|
|
|
|
|
|
|
|
'createTime',
|
|
|
|
|
|
|
|
'billType',
|
|
|
|
|
|
|
|
'isDebit',
|
|
|
|
|
|
|
|
'stlName',
|
|
|
|
|
|
|
|
'currency',
|
|
|
|
|
|
|
|
'feeName',
|
|
|
|
|
|
|
|
'forwarderId',
|
|
|
|
|
|
|
|
'dischargePortId',
|
|
|
|
|
|
|
|
'loadPortId',
|
|
|
|
|
|
|
|
]
|
|
|
|
// 表单
|
|
|
|
// 表单
|
|
|
|
export const schemas: FormSchema[] = [
|
|
|
|
export const schemas: FormSchema[] = [
|
|
|
|
{ field: 'mblno', component: 'Input', label: '主提单号', colProps: { span: 4 } },
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '币别',
|
|
|
|
label: '费用对象',
|
|
|
|
field: 'currency',
|
|
|
|
field: 'customerId',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
@ -23,14 +45,14 @@ export const schemas: FormSchema[] = [
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: () => {
|
|
|
|
api: () => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
GetFeeCurrencySelectList().then((res) => {
|
|
|
|
GetClientListByCode().then((res) => {
|
|
|
|
console.log(res, 111111111111111111111111)
|
|
|
|
console.log(res)
|
|
|
|
resolve(res)
|
|
|
|
resolve(res)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
labelField: 'name',
|
|
|
|
labelField: 'shortName',
|
|
|
|
valueField: 'codeName',
|
|
|
|
valueField: 'codeName',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
@ -39,39 +61,35 @@ export const schemas: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// label: '费用对象',
|
|
|
|
field: 'customNo',
|
|
|
|
// field: 'customerId',
|
|
|
|
component: 'Input',
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
label: '编号检索',
|
|
|
|
// required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
},
|
|
|
|
// componentProps: () => {
|
|
|
|
{
|
|
|
|
// return {
|
|
|
|
field: 'etd',
|
|
|
|
// api: () => {
|
|
|
|
label: '业务日期',
|
|
|
|
// return new Promise((resolve) => {
|
|
|
|
component: 'RangePicker',
|
|
|
|
// GetFeeCodeSelectList().then((res) => {
|
|
|
|
required: false,
|
|
|
|
// res.data.forEach((item) => {
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// item.label = item.code + '-' + item.name
|
|
|
|
colProps: { span: 7 },
|
|
|
|
// })
|
|
|
|
componentProps: {
|
|
|
|
// resolve(res)
|
|
|
|
allowClear: true,
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
// immediate: false,
|
|
|
|
field: 'createTime',
|
|
|
|
// valueField: 'id',
|
|
|
|
label: '费用日期',
|
|
|
|
// resultField: 'data',
|
|
|
|
component: 'RangePicker',
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
required: false,
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// },
|
|
|
|
colProps: { span: 6 },
|
|
|
|
// }
|
|
|
|
componentProps: {
|
|
|
|
// },
|
|
|
|
allowClear: true,
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// { field: 'field1', component: 'Input', label: '编号检索', colProps: { span: 4 } },
|
|
|
|
},
|
|
|
|
// { field: 'field2', component: 'DatePicker', label: '从业务日期', colProps: { span: 4 } },
|
|
|
|
|
|
|
|
// { field: 'field3', component: 'DatePicker', label: '到业务日期', colProps: { span: 3 } },
|
|
|
|
|
|
|
|
// { field: 'field4', component: 'DatePicker', label: '从费用日期', colProps: { span: 3 } },
|
|
|
|
|
|
|
|
// { field: 'field5', component: 'DatePicker', label: '到费用日期', colProps: { span: 3 } },
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'CZ',
|
|
|
|
field: 'CZ',
|
|
|
|
component: 'Button',
|
|
|
|
component: 'Button',
|
|
|
@ -89,52 +107,130 @@ export const schemas: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// field: 'billType',
|
|
|
|
field: 'billType',
|
|
|
|
// component: 'Select',
|
|
|
|
component: 'Select',
|
|
|
|
// componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
// options: billTypeData,
|
|
|
|
options: billTypeData,
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// label: '收付类型',
|
|
|
|
label: '收付类型',
|
|
|
|
// colProps: { span: 2 },
|
|
|
|
colProps: { span: 2 },
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
// { field: 'field7', component: 'Select', label: 'FRT', colProps: { span: 2 } },
|
|
|
|
field: 'isDebit',
|
|
|
|
// { field: 'field7', component: 'Select', label: '包含已到账', colProps: { span: 2 } },
|
|
|
|
component: 'Select',
|
|
|
|
// { field: 'field7', component: 'Select', label: '是否开票', colProps: { span: 2 } },
|
|
|
|
label: '是否对账',
|
|
|
|
// { field: 'field7', component: 'Select', label: '是否垫付', colProps: { span: 2 } },
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// { field: 'field6', component: 'Select', label: '委托单位', colProps: { span: 3 } },
|
|
|
|
colProps: { span: 2 },
|
|
|
|
// {
|
|
|
|
componentProps: {
|
|
|
|
// label: '费用名称',
|
|
|
|
options: TFData,
|
|
|
|
// field: 'field9',
|
|
|
|
},
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
},
|
|
|
|
// required: false,
|
|
|
|
{
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
label: '结算方式',
|
|
|
|
// colProps: { span: 3 },
|
|
|
|
field: 'stlName',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
// componentProps: () => {
|
|
|
|
required: false,
|
|
|
|
// return {
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// api: () => {
|
|
|
|
colProps: { span: 4 },
|
|
|
|
// return new Promise((resolve) => {
|
|
|
|
componentProps: () => {
|
|
|
|
// GetFeeCodeSelectList().then((res) => {
|
|
|
|
return {
|
|
|
|
// res.data.forEach((item) => {
|
|
|
|
api: GetClientStlModeSelectList,
|
|
|
|
// item.label = item.code + '-' + item.name
|
|
|
|
immediate: false,
|
|
|
|
// })
|
|
|
|
labelField: 'stlName',
|
|
|
|
// resolve(res)
|
|
|
|
valueField: 'id',
|
|
|
|
// })
|
|
|
|
resultField: 'data',
|
|
|
|
// })
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
// },
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
// immediate: false,
|
|
|
|
},
|
|
|
|
// valueField: 'id',
|
|
|
|
}
|
|
|
|
// resultField: 'data',
|
|
|
|
},
|
|
|
|
// mode: 'multiple',
|
|
|
|
},
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
{
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
label: '币别',
|
|
|
|
// },
|
|
|
|
field: 'currency',
|
|
|
|
// }
|
|
|
|
component: 'ApiSelect',
|
|
|
|
// },
|
|
|
|
required: false,
|
|
|
|
// },
|
|
|
|
dynamicDisabled: false,
|
|
|
|
// { field: 'field9', component: 'Select', label: '费用范围', colProps: { span: 3 } },
|
|
|
|
colProps: { span: 3 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: GetFeeCurrencySelectList,
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
labelField: 'name',
|
|
|
|
|
|
|
|
valueField: 'codeName',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '费用名称',
|
|
|
|
|
|
|
|
field: 'feeName',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: () => {
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
|
|
|
GetFeeCodeSelectList().then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
item.label = item.code + '-' + item.name
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
// mode: 'multiple',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'isSeaFreight',
|
|
|
|
|
|
|
|
component: 'Select',
|
|
|
|
|
|
|
|
label: '是否海运费',
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 3 },
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
options: TFData,
|
|
|
|
|
|
|
|
onchange: (e) => {
|
|
|
|
|
|
|
|
if (e) {
|
|
|
|
|
|
|
|
formModel.feeName = '海运费'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '船名',
|
|
|
|
|
|
|
|
field: 'vessel',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 3 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: GetVesselSelectList,
|
|
|
|
|
|
|
|
labelField: 'vesselName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'CS',
|
|
|
|
field: 'CS',
|
|
|
|
component: 'Button',
|
|
|
|
component: 'Button',
|
|
|
@ -152,15 +248,112 @@ export const schemas: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// { field: 'field9', component: 'Select', label: '船名', colProps: { span: 4 } },
|
|
|
|
|
|
|
|
// { field: 'field9', component: 'Input', label: '航次', colProps: { span: 4 } },
|
|
|
|
{
|
|
|
|
// { field: 'field7', component: 'Select', label: '含海运费业务', colProps: { span: 2 } },
|
|
|
|
label: '航次',
|
|
|
|
// { field: 'field7', component: 'Switch', label: '记忆查询', colProps: { span: 2 } },
|
|
|
|
field: 'voyno',
|
|
|
|
// { field: 'field9', component: 'Select', label: '港口(国外)', colProps: { span: 3 } },
|
|
|
|
component: 'ApiSelect',
|
|
|
|
// { field: 'field9', component: 'Select', label: '港口(国内)', colProps: { span: 3 } },
|
|
|
|
required: false,
|
|
|
|
// { field: 'field9', component: 'Select', label: '国外代理', colProps: { span: 3 } },
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: GetVoynoSelectList,
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
labelField: 'voyNo',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
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',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 3 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: () => {
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.ediCode) item.cnName = item.ediCode + '/' + item.cnName
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
labelField: 'cnName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '港口(国内)',
|
|
|
|
|
|
|
|
field: 'loadPortId',
|
|
|
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
api: () => {
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.ediCode) item.cnName = item.ediCode + '/' + item.cnName
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
resolve(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
labelField: 'cnName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
//左列表
|
|
|
|
|
|
|
|
export const columnsL: BasicColumn[] = [
|
|
|
|
export const columnsL: BasicColumn[] = [
|
|
|
|
{ title: '业务类型', dataIndex: 'businessTypeName', align: 'left' },
|
|
|
|
{ title: '业务类型', dataIndex: 'businessTypeName', align: 'left' },
|
|
|
|
{ title: '委托单位', dataIndex: 'customerName', align: 'left' },
|
|
|
|
{ title: '委托单位', dataIndex: 'customerName', align: 'left' },
|
|
|
|