|
|
|
@ -768,6 +768,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
|
colProps: { span: 5 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showTime: true,
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1721,8 +1722,9 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetClientGoodsList,
|
|
|
|
|
labelField: 'goodName',
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'goodName',
|
|
|
|
|
showName: 'goodName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
@ -2292,12 +2294,9 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formActionType, formModel }) => {
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientSourceSelectList'),
|
|
|
|
|
labelField: 'sourceName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
@ -2307,53 +2306,52 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
onChange: async (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.sourceCode = obj.sourceCode
|
|
|
|
|
formModel.sourceDetailId = null
|
|
|
|
|
formModel.sourceDetailName = null
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.sourceCode = null
|
|
|
|
|
}
|
|
|
|
|
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: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: Arr,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
formModel.sourceDetailId = ''
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '来源明细',
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
field: 'sourceDetailName',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: ({ values }) => {
|
|
|
|
|
return !values.sourceId
|
|
|
|
|
},
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetClientSourceDetailSelectList,
|
|
|
|
|
params: {
|
|
|
|
|
id: formModel.sourceId
|
|
|
|
|
},
|
|
|
|
|
immediate: false,
|
|
|
|
|
labelField: 'detailName',
|
|
|
|
|
valueField: 'detailName',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
|
if (v && obj) {
|
|
|
|
|
console.log(obj)
|
|
|
|
|
formModel.sourceDetailId = obj.id
|
|
|
|
|
}
|
|
|
|
|
if (!v && !obj) {
|
|
|
|
|
formModel.sourceDetailId = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|