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