|
|
|
@ -5,7 +5,7 @@ import { ref, unref } from 'vue'
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
|
// 下拉框数据接口
|
|
|
|
|
import { GetClientListByCode, GetCarrierSelectList } from '/@/api/common'
|
|
|
|
|
import { GetClientListByCode, GetCarrierSelectList, GetControllerClientList } from '/@/api/common'
|
|
|
|
|
import {
|
|
|
|
|
GetPackageSelectList,
|
|
|
|
|
GetOrderContactListByClientId,
|
|
|
|
@ -22,7 +22,8 @@ import {
|
|
|
|
|
GetDeptList,
|
|
|
|
|
GetSaleList,
|
|
|
|
|
GetCustomerServiceList,
|
|
|
|
|
GetVouchingClerkList
|
|
|
|
|
GetVouchingClerkList,
|
|
|
|
|
GetLaneUserList
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
@ -98,8 +99,7 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetClientListByCode,
|
|
|
|
|
params: { code: 'controller' },
|
|
|
|
|
api: GetControllerClientList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'shortName',
|
|
|
|
|
showName: 'shortName',
|
|
|
|
@ -108,7 +108,7 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
formActionType ? formActionType.linkageForm(obj) : null
|
|
|
|
|
formActionType ? formActionType.linkageForm({ key: 'customerName', value: obj}) : null
|
|
|
|
|
}, 10)
|
|
|
|
|
formModel.customerId = obj.id
|
|
|
|
|
}
|
|
|
|
@ -2174,33 +2174,66 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '航线',
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'laneId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
required: false,
|
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
|
// colProps: { span: 12 },
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// option: optionsStore.getOptionsByCode('GetClientLanesSelectList'),
|
|
|
|
|
// labelField: 'laneName',
|
|
|
|
|
// valueField: 'id',
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
// },
|
|
|
|
|
// onChange: (e, obj) => {
|
|
|
|
|
// if (e && obj) {
|
|
|
|
|
// formModel.lane = obj.label
|
|
|
|
|
// formModel.laneCode = obj.ediCode
|
|
|
|
|
// }
|
|
|
|
|
// if (!e && !obj) {
|
|
|
|
|
// formModel.lane = null
|
|
|
|
|
// formModel.laneCode = null
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '航线',
|
|
|
|
|
field: 'laner',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientLanesSelectList'),
|
|
|
|
|
labelField: 'laneName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
api: GetLaneUserList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'userName',
|
|
|
|
|
showName: 'userName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.lane = obj.label
|
|
|
|
|
formModel.laneCode = obj.ediCode
|
|
|
|
|
formModel.lanerId = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.lane = null
|
|
|
|
|
formModel.laneCode = null
|
|
|
|
|
formModel.lanerId = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'lanerId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '单证',
|
|
|
|
|
field: 'docName',
|
|
|
|
@ -2215,8 +2248,6 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'userName',
|
|
|
|
|
showName: 'userName',
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|