|
|
|
@ -20,6 +20,7 @@ import {
|
|
|
|
|
getDeptList,
|
|
|
|
|
GetFeeCurrencySelectList,
|
|
|
|
|
GetUserList,
|
|
|
|
|
GetAllClientList,
|
|
|
|
|
} from '/@/api/common'
|
|
|
|
|
import { GetClientSourceDetailSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { getOrgTree } from '/@/api/system/org'
|
|
|
|
@ -546,39 +547,67 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
|
field: 'pcorpId',
|
|
|
|
|
label: '所属集团',
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
treeData: OrgTree,
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
api: GetAllClientList,
|
|
|
|
|
labelField: 'shortName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
if (e) {
|
|
|
|
|
const ForTree = (data, key, callback) => {
|
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
|
if (data[i].value == key) {
|
|
|
|
|
return callback(data[i], i, data)
|
|
|
|
|
}
|
|
|
|
|
if (data[i].children) {
|
|
|
|
|
ForTree(data[i].children, key, callback)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj: any = {}
|
|
|
|
|
ForTree(OrgTree, e, (item, index, arr) => {
|
|
|
|
|
obj = item
|
|
|
|
|
})
|
|
|
|
|
formModel.pcorpName = obj.title
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.pcorpId = obj.value
|
|
|
|
|
formModel.pcorpName = obj.label
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.pcorpId = ''
|
|
|
|
|
formModel.pcorpName = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'pcorpId',
|
|
|
|
|
// label: '所属集团',
|
|
|
|
|
// component: 'TreeSelect',
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
// return {
|
|
|
|
|
// treeData: OrgTree,
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
// },
|
|
|
|
|
// onChange: (e) => {
|
|
|
|
|
// if (e) {
|
|
|
|
|
// const ForTree = (data, key, callback) => {
|
|
|
|
|
// for (let i = 0; i < data.length; i++) {
|
|
|
|
|
// if (data[i].value == key) {
|
|
|
|
|
// return callback(data[i], i, data)
|
|
|
|
|
// }
|
|
|
|
|
// if (data[i].children) {
|
|
|
|
|
// ForTree(data[i].children, key, callback)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// let obj: any = {}
|
|
|
|
|
// ForTree(OrgTree, e, (item, index, arr) => {
|
|
|
|
|
// obj = item
|
|
|
|
|
// })
|
|
|
|
|
// formModel.pcorpName = obj.title
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'Divider1',
|
|
|
|
|
component: 'Divider',
|
|
|
|
|