|
|
@ -688,8 +688,8 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
|
|
|
|
colProps: { className: 'edt-picker ant-col ant-col-5' },
|
|
|
|
colProps: { className: 'edt-picker ant-col ant-col-5' },
|
|
|
|
componentProps: {
|
|
|
|
componentProps: {
|
|
|
|
allowClear: true,
|
|
|
|
allowClear: true,
|
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
|
valueFormat: 'YYYY-MM-DD'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'closingDate',
|
|
|
|
field: 'closingDate',
|
|
|
@ -2798,7 +2798,6 @@ export const otherInfoFormSchema: FormSchema[] = [
|
|
|
|
|
|
|
|
|
|
|
|
// 客户类别下拉框数据
|
|
|
|
// 客户类别下拉框数据
|
|
|
|
const customTypeDict = ref([])
|
|
|
|
const customTypeDict = ref([])
|
|
|
|
const companyDict = ref([])
|
|
|
|
|
|
|
|
const personList = ref([])
|
|
|
|
const personList = ref([])
|
|
|
|
getDictOption('djy_cust_prop').then((data) => {
|
|
|
|
getDictOption('djy_cust_prop').then((data) => {
|
|
|
|
customTypeDict.value = data
|
|
|
|
customTypeDict.value = data
|
|
|
@ -2825,14 +2824,6 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (v: string, obj) => {
|
|
|
|
onChange: (v: string, obj) => {
|
|
|
|
GetClientListByCode({ code: v }).then((res) => {
|
|
|
|
|
|
|
|
const { data } = res
|
|
|
|
|
|
|
|
data.forEach((item) => {
|
|
|
|
|
|
|
|
item['label'] = item.shortName
|
|
|
|
|
|
|
|
item['value'] = item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
companyDict.value = data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.customerTypeName = obj.label
|
|
|
|
formModel.customerTypeName = obj.label
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -2849,29 +2840,28 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'customerId',
|
|
|
|
field: 'customerName',
|
|
|
|
label: '客户名称',
|
|
|
|
label: '客户名称',
|
|
|
|
defaultValue: null,
|
|
|
|
defaultValue: null,
|
|
|
|
component: 'Select',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
colProps: { span: 12 },
|
|
|
|
colProps: { span: 12 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
options: companyDict.value,
|
|
|
|
api: GetClientListByCode,
|
|
|
|
allowClear: true,
|
|
|
|
params: { code: formModel.customerType },
|
|
|
|
showSearch: true,
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
showName: 'shortName',
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
valueField: 'shortName',
|
|
|
|
},
|
|
|
|
immediate: false,
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.name = null
|
|
|
|
formModel.name = null
|
|
|
|
formModel.customerName = obj.label
|
|
|
|
formModel.customerId = obj.id
|
|
|
|
formModel.customerContactId = null
|
|
|
|
formModel.customerContactId = null
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.email = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
formModel.tel = ''
|
|
|
|
}
|
|
|
|
|
|
|
|
// 设置关系人下拉
|
|
|
|
// 设置关系人下拉
|
|
|
|
GetOrderContactListByClientId({ id: v }).then((res) => {
|
|
|
|
GetOrderContactListByClientId({ id: obj.id }).then((res) => {
|
|
|
|
personList.value = res.data.map((item) => {
|
|
|
|
personList.value = res.data.map((item) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
label: item.name,
|
|
|
|
label: item.name,
|
|
|
@ -2881,12 +2871,13 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'customerName',
|
|
|
|
field: 'customerId',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
@ -2923,6 +2914,12 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: '职位',
|
|
|
|
|
|
|
|
field: 'duty',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
colProps: { span: 12 }
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'customerContactId',
|
|
|
|
field: 'customerContactId',
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
@ -2948,7 +2945,6 @@ export const personFormSchema: FormSchema[] = [
|
|
|
|
label: '手机',
|
|
|
|
label: '手机',
|
|
|
|
field: 'mobile',
|
|
|
|
field: 'mobile',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
rules: [
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pattern: /^1\d{10}$/,
|
|
|
|
pattern: /^1\d{10}$/,
|
|
|
|