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