|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
// 下拉框数据接口
|
|
|
|
|
import { GetClientListByCode } from '/@/api/common'
|
|
|
|
|
import { GetClientListByCode, GetUserList } from '/@/api/common'
|
|
|
|
|
// 引入字典数据
|
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
|
// 客户类别下拉框数据
|
|
|
|
@ -179,11 +179,41 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'registContractName',
|
|
|
|
|
label: '联系人',
|
|
|
|
|
label: '用户',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'userId',
|
|
|
|
|
label: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'userName',
|
|
|
|
|
label: '用户',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
api: GetUserList,
|
|
|
|
|
labelField: 'label',
|
|
|
|
|
valueField: 'label',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.userId = obj.value
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.userId = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'registContractEmail',
|
|
|
|
|
label: '联系邮箱',
|
|
|
|
|