|
|
|
@ -6,24 +6,8 @@ import { FormSchema } from '/@/components/Table'
|
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
|
import { getOptions } from '/@/hooks/dict'
|
|
|
|
|
import {
|
|
|
|
|
// GetControllerClientList,
|
|
|
|
|
GetClientSourceDetailSelectList,
|
|
|
|
|
GetVesselSelectList,
|
|
|
|
|
GetVoynoSelectList,
|
|
|
|
|
GetClientLanesSelectList,
|
|
|
|
|
GetSaleList,
|
|
|
|
|
GetDeptList,
|
|
|
|
|
GetCustomerServiceList,
|
|
|
|
|
GetVouchingClerkList,
|
|
|
|
|
GetClientPortSelectList,
|
|
|
|
|
// GetYardClientList,
|
|
|
|
|
// GetCustomClientList,
|
|
|
|
|
// GetTruckClientList,
|
|
|
|
|
// GetAgentClientList,
|
|
|
|
|
GetWareHouseClientList,
|
|
|
|
|
GetIssueTypeSelectList,
|
|
|
|
|
GetClientFrtSelectList,
|
|
|
|
|
GetServiceSelectList,
|
|
|
|
|
GetPackageSelectList,
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
@ -490,15 +474,14 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetVoynoSelectList,
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetVoynoSelectList'),
|
|
|
|
|
labelField: 'voyNo',
|
|
|
|
|
valueField: 'voyNo',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '船司航线',
|
|
|
|
@ -517,10 +500,9 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetClientLanesSelectList,
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientLanesSelectList'),
|
|
|
|
|
labelField: 'laneName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -591,12 +573,11 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetSaleList,
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -709,23 +690,16 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetDeptList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetDeptList().then((res) => {
|
|
|
|
|
resolve(res)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'orgName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '客服员',
|
|
|
|
@ -739,12 +713,11 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetCustomerServiceList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'userName',
|
|
|
|
@ -768,12 +741,11 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetCustomerServiceList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetCustomerServiceList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'userName',
|
|
|
|
@ -797,12 +769,11 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetVouchingClerkList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = optionsStore.getOptionsByCode('GetVouchingClerkList')
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.userName = `${e.userCode}/${e.userName}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'userName',
|
|
|
|
@ -824,12 +795,11 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetSaleList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetSaleList,
|
|
|
|
|
labelField: 'userName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -1017,12 +987,12 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((item) => {
|
|
|
|
|
item.portName = `${item.portName}(${item.ediCode})`
|
|
|
|
|
})
|
|
|
|
|
console.log(data)
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'portName',
|
|
|
|
@ -1154,12 +1124,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'ediCode',
|
|
|
|
@ -1262,12 +1231,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'portName',
|
|
|
|
@ -1360,12 +1328,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'ediCode',
|
|
|
|
@ -1442,12 +1409,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'ediCode',
|
|
|
|
@ -1532,12 +1498,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'ediCode',
|
|
|
|
@ -1613,12 +1578,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetIssueTypeSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetIssueTypeSelectList,
|
|
|
|
|
labelField: 'billType',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -1651,12 +1615,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.ediCode = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'ediCode',
|
|
|
|
@ -1692,12 +1655,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientFrtSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetClientFrtSelectList,
|
|
|
|
|
labelField: 'cnName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -1725,12 +1687,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'portName',
|
|
|
|
@ -1770,12 +1731,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
const data = JSON.parse(JSON.stringify(optionsStore.getOptionsByCode('GetClientPortSelectList')))
|
|
|
|
|
data.forEach((e) => {
|
|
|
|
|
e.portName = `${e.portName}/${e.ediCode}`
|
|
|
|
|
})
|
|
|
|
|
resolve({ data })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
labelField: 'portName',
|
|
|
|
@ -1810,12 +1770,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetServiceSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetServiceSelectList,
|
|
|
|
|
labelField: 'enName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
@ -2292,23 +2251,23 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: ({ formActionType, formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetPackageSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetPackageSelectList,
|
|
|
|
|
labelField: 'packageName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
ListData.goodsName.forEach((item) => {
|
|
|
|
|
if (item.value == e) {
|
|
|
|
|
formModel.kindPkgsName = item.label
|
|
|
|
|
}
|
|
|
|
|
GetPackageSelectList().then((res) => {
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
formModel.kindPkgsName = item.cnExplain
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
formActionType ? formActionType.submit() : null
|
|
|
|
|
}, 10)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
formActionType ? formActionType.submit() : null
|
|
|
|
|
}, 10)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
@ -2361,12 +2320,11 @@ export const cargoInfoFormSchema3: FormSchema[] = [
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetPackageSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetPackageSelectList,
|
|
|
|
|
labelField: 'packageName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|