|
|
|
@ -2,10 +2,9 @@
|
|
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import { GetTaskPlatEnumDict } from './api'
|
|
|
|
|
import { GetClientListByCode,GetCarrierSelectList } from '/@/api/common'
|
|
|
|
|
import { GetClientListByCode,GetCarrierSelectList,GetControllerClientList } from '/@/api/common'
|
|
|
|
|
import { pl } from 'element-plus/es/locales.mjs'
|
|
|
|
|
import {
|
|
|
|
|
GetControllerClientList,
|
|
|
|
|
GetCustomerServiceList,
|
|
|
|
|
GetSaleList,
|
|
|
|
|
GetVesselSelectList,
|
|
|
|
@ -110,24 +109,19 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: () => {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
GetControllerClientList().then((res) => {
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
if (item.codeName) item.shortName = item.codeName + '/' + item.shortName
|
|
|
|
|
})
|
|
|
|
|
resolve(res)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
immediate: false,
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
valueField: 'codeName',
|
|
|
|
|
api: GetControllerClientList,
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
showName: 'shortName',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|