|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { Tag } from 'ant-design-vue'
|
|
|
|
import { Tag } from 'ant-design-vue'
|
|
|
|
// 字典
|
|
|
|
// 字典
|
|
|
@ -16,13 +17,9 @@ import {
|
|
|
|
GetCustomerServiceList,
|
|
|
|
GetCustomerServiceList,
|
|
|
|
GetOperatorUserList,
|
|
|
|
GetOperatorUserList,
|
|
|
|
GetVouchingClerkList,
|
|
|
|
GetVouchingClerkList,
|
|
|
|
|
|
|
|
GetClientSourceSelectList,
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
const sourceDetailId = ref<any>([])
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
import { placeholderSign } from 'element-plus/es/components/table-v2/src/private'
|
|
|
|
|
|
|
|
import { max } from 'lodash'
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
// exports {}
|
|
|
|
// exports {}
|
|
|
|
let ClientFrtList = []
|
|
|
|
let ClientFrtList = []
|
|
|
|
const res: API.DataResult = await getClientFrtSelectList()
|
|
|
|
const res: API.DataResult = await getClientFrtSelectList()
|
|
|
@ -929,71 +926,79 @@ export const formSchema: FormSchema[] = [
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
componentProps: ({ formActionType, formModel }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
allowClear: true,
|
|
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientSourceSelectList'),
|
|
|
|
|
|
|
|
labelField: 'sourceName',
|
|
|
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onChange: async (e, obj) => {
|
|
|
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
|
|
|
formModel.sourceId = obj.value
|
|
|
|
|
|
|
|
formModel.sourceName = obj.label
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
|
|
|
formModel.sourceId = ''
|
|
|
|
|
|
|
|
formModel.sourceName = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (e) {
|
|
|
|
|
|
|
|
if (formActionType) {
|
|
|
|
|
|
|
|
const { updateSchema } = formActionType
|
|
|
|
|
|
|
|
let Arr: any = []
|
|
|
|
|
|
|
|
await GetClientSourceDetailSelectList({ id: e }).then((res) => {
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
Arr.push({ label: item.detailName, value: item.id })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
updateSchema({
|
|
|
|
|
|
|
|
label: '来源明细',
|
|
|
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
|
|
|
component: 'Select',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
dynamicDisabled: ({ values }) => {
|
|
|
|
|
|
|
|
return !values.sourceId
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
allowClear: true,
|
|
|
|
|
|
|
|
options: Arr,
|
|
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
|
|
|
formModel.sourceDetailId = obj.value
|
|
|
|
|
|
|
|
formModel.sourceDetailName = obj.label
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
|
|
|
formModel.sourceDetailId = ''
|
|
|
|
|
|
|
|
formModel.sourceDetailName = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
formModel.sourceDetailId = ''
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// label: '业务来源',
|
|
|
|
|
|
|
|
// field: 'sourceId',
|
|
|
|
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
|
|
|
|
// required: false,
|
|
|
|
|
|
|
|
// dynamicDisabled: false,
|
|
|
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
|
|
|
// componentProps: ({ formActionType, formModel }) => {
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
|
|
|
// option: optionsStore.getOptionsByCode('GetClientSourceSelectList'),
|
|
|
|
|
|
|
|
// labelField: 'sourceName',
|
|
|
|
|
|
|
|
// valueField: 'id',
|
|
|
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// onChange: async (e, obj) => {
|
|
|
|
|
|
|
|
// if (e && obj) {
|
|
|
|
|
|
|
|
// formModel.sourceId = obj.value
|
|
|
|
|
|
|
|
// formModel.sourceName = obj.label
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!e && !obj) {
|
|
|
|
|
|
|
|
// formModel.sourceId = ''
|
|
|
|
|
|
|
|
// formModel.sourceName = ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (e) {
|
|
|
|
|
|
|
|
// if (formActionType) {
|
|
|
|
|
|
|
|
// const { updateSchema } = formActionType
|
|
|
|
|
|
|
|
// let Arr: any = []
|
|
|
|
|
|
|
|
// await GetClientSourceDetailSelectList({ id: e }).then((res) => {
|
|
|
|
|
|
|
|
// res.data.forEach((item) => {
|
|
|
|
|
|
|
|
// Arr.push({ label: item.detailName, value: item.id })
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// updateSchema({
|
|
|
|
|
|
|
|
// label: '来源明细',
|
|
|
|
|
|
|
|
// field: 'sourceDetailId',
|
|
|
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
|
|
|
// required: false,
|
|
|
|
|
|
|
|
// dynamicDisabled: ({ values }) => {
|
|
|
|
|
|
|
|
// return !values.sourceId
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
|
|
|
// componentProps: ({ formModel }) => {
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
|
|
|
// options: Arr,
|
|
|
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// onChange: (e, obj) => {
|
|
|
|
|
|
|
|
// if (e && obj) {
|
|
|
|
|
|
|
|
// formModel.sourceDetailId = obj.value
|
|
|
|
|
|
|
|
// formModel.sourceDetailName = obj.label
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!e && !obj) {
|
|
|
|
|
|
|
|
// formModel.sourceDetailId = ''
|
|
|
|
|
|
|
|
// formModel.sourceDetailName = ''
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// formModel.sourceDetailId = ''
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// },
|
|
|
|
// 来源明细Name
|
|
|
|
// 来源明细Name
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
@ -1001,11 +1006,11 @@ export const formSchema: FormSchema[] = [
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
|
|
|
label: '来源明细',
|
|
|
|
label: '来源明细',
|
|
|
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
component: 'Select',
|
|
|
|
component: 'Select',
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
colProps: { span: 4 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|