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