Merge branch 'dev' of http://47.94.165.164:13000/geg-gas/geg-gas-web into dev
This commit is contained in:
@ -295,23 +295,7 @@
|
||||
];
|
||||
const departmentSchema: FormSchema[] = [
|
||||
{
|
||||
field: 'departmentNature',
|
||||
label: '部门性质',
|
||||
component: 'ApiSelect',
|
||||
colProps: { lg: 12, md: 12 },
|
||||
componentProps: {
|
||||
placeholder: '请选择部门性质',
|
||||
api: getDicDetailList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
showSearch: true,
|
||||
params: {
|
||||
itemId: '1739893799685373953'
|
||||
},
|
||||
getPopupContainer: () => document.body
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '基础信息',
|
||||
field: 'custodian',
|
||||
label: '负责人',
|
||||
component: 'Input',
|
||||
@ -408,6 +392,28 @@
|
||||
}
|
||||
];
|
||||
|
||||
const systemSchema: FormSchema[] = [
|
||||
{
|
||||
title: '关联系统信息',
|
||||
field: 'suCode',
|
||||
label: '供应商编码',
|
||||
component: 'Input',
|
||||
colProps: { lg: 12, md: 12 },
|
||||
},
|
||||
{
|
||||
field: 'cuCode',
|
||||
label: '客户编码',
|
||||
component: 'Input',
|
||||
colProps: { lg: 12, md: 12 },
|
||||
},
|
||||
{
|
||||
field: 'staCode',
|
||||
label: '接收站编码',
|
||||
component: 'Input',
|
||||
colProps: { lg: 12, md: 12 },
|
||||
},
|
||||
]
|
||||
|
||||
const emit = defineEmits(['success', 'register']);
|
||||
const isUpdate = ref(true);
|
||||
const { notification } = useMessage();
|
||||
@ -415,7 +421,7 @@
|
||||
|
||||
const [registerForm, { resetFields, setFieldsValue, updateSchema, validate, resetSchema }] = useForm({
|
||||
labelWidth: 100,
|
||||
schemas: [...schema, ...companySchema],
|
||||
schemas: [...schema, ...companySchema,...systemSchema],
|
||||
showActionButtonGroup: false,
|
||||
baseColProps: { lg: 12, md: 24 }
|
||||
});
|
||||
@ -434,7 +440,7 @@
|
||||
rowId.value = data.record.id;
|
||||
const info = await getDepartment(rowId.value);
|
||||
info.departmentLabel = info.departmentLabel?.split(',');
|
||||
resetSchema(info.departmentType ? [...schema, ...companySchema] : [...schema, ...departmentSchema]);
|
||||
resetSchema(info.departmentType ? [...schema, ...companySchema, ...systemSchema] : [...schema, ...departmentSchema, ...systemSchema]);
|
||||
setFieldsValue({
|
||||
...info
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user