|
|
@ -1717,7 +1717,6 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
field: 'isPreOrder',
|
|
|
|
field: 'isPreOrder',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
defaultValue: false,
|
|
|
|
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1730,7 +1729,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [
|
|
|
|
show: ({ values }) => {
|
|
|
|
show: ({ values }) => {
|
|
|
|
return !values.isPreOrder
|
|
|
|
return !values.isPreOrder
|
|
|
|
},
|
|
|
|
},
|
|
|
|
defaultValue: null,
|
|
|
|
// defaultValue: '',
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -2082,7 +2081,7 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: GetCustomerServiceList,
|
|
|
|
api: GetCustomerServiceList,
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
labelField: 'pinYinCode',
|
|
|
@ -2093,6 +2092,7 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
immediate: false,
|
|
|
|
immediate: false,
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm({ key: 'operatorName', value: obj}) : null
|
|
|
|
if (e && obj) {
|
|
|
|
if (e && obj) {
|
|
|
|
formModel.operatorId = obj.id
|
|
|
|
formModel.operatorId = obj.id
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2705,7 +2705,7 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
formModel.name = ''
|
|
|
|
formModel.name = ''
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
formActionType ? formActionType.linkageForm(v) : null
|
|
|
|
formActionType ? formActionType.linkageForm({ key: 'customerType', value: v }) : null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2713,7 +2713,7 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'customerId',
|
|
|
|
field: 'customerId',
|
|
|
|
label: '客户名称',
|
|
|
|
label: '客户名称',
|
|
|
|
defaultValue: '',
|
|
|
|
defaultValue: null,
|
|
|
|
component: 'Select',
|
|
|
|
component: 'Select',
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
@ -2730,6 +2730,7 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(v, 222)
|
|
|
|
// 设置关系人下拉
|
|
|
|
// 设置关系人下拉
|
|
|
|
GetOrderContactListByClientId({ id: v }).then(res => {
|
|
|
|
GetOrderContactListByClientId({ id: v }).then(res => {
|
|
|
|
personList.value = res.data.map(item => {
|
|
|
|
personList.value = res.data.map(item => {
|
|
|
@ -2740,6 +2741,7 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
mobile: item.mobile
|
|
|
|
mobile: item.mobile
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(personList.value)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2752,26 +2754,30 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'customerContactId',
|
|
|
|
field: 'name',
|
|
|
|
label: '联系人',
|
|
|
|
label: '联系人',
|
|
|
|
component: 'Select',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
required: false,
|
|
|
|
required: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
dynamicDisabled: false,
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
options: personList.value,
|
|
|
|
option: personList.value,
|
|
|
|
|
|
|
|
mode: 'SECRET_COMBOBOX_MODE_DO_NOT_USE',
|
|
|
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
|
|
|
valueField: 'label',
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mode: 'SECRET_COMBOBOX_MODE_DO_NOT_USE',
|
|
|
|
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (v && obj) {
|
|
|
|
formModel.name = obj.label
|
|
|
|
formModel.customerContactId = obj.value
|
|
|
|
formModel.email = obj.email
|
|
|
|
formModel.email = obj.email
|
|
|
|
formModel.mobile = obj.mobile
|
|
|
|
formModel.mobile = obj.mobile
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
formModel.name = null
|
|
|
|
if (!v && (!obj || obj == {})){
|
|
|
|
|
|
|
|
formModel.customerContactId = null
|
|
|
|
formModel.email = null
|
|
|
|
formModel.email = null
|
|
|
|
formModel.mobile = null
|
|
|
|
formModel.mobile = null
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2780,7 +2786,7 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'name',
|
|
|
|
field: 'customerContactId',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
@ -2813,7 +2819,12 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
label: '备注',
|
|
|
|
label: '备注',
|
|
|
|
defaultValue: '',
|
|
|
|
defaultValue: '',
|
|
|
|
component: 'InputTextArea',
|
|
|
|
component: 'InputTextArea',
|
|
|
|
colProps: { span: 24 }
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
autoSize: {
|
|
|
|
|
|
|
|
minRows: 10
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|