采购单
This commit is contained in:
@ -225,11 +225,12 @@ const handleUpdate = async (row?: ConfigVO) => {
|
||||
const submitForm = () => {
|
||||
configFormRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
buttonLoading.value = true;
|
||||
// buttonLoading.value = true;
|
||||
if (form.value.id) {
|
||||
form.value.userId = form.value.userId ? form.value.userId?.join(',') : '';
|
||||
await updateConfig(form.value).finally(() => (buttonLoading.value = false));
|
||||
} else {
|
||||
form.value.userId = form.value.userId.join(',');
|
||||
form.value.userId = form.value.userId?.join(',');
|
||||
await addConfig(form.value).finally(() => (buttonLoading.value = false));
|
||||
}
|
||||
proxy?.$modal.msgSuccess('操作成功');
|
||||
@ -271,7 +272,7 @@ const handleExport = () => {
|
||||
// };
|
||||
/** 查询部门下拉树结构 */
|
||||
const getDeptTree = async () => {
|
||||
const res = await deptTreeSelect({ isShow: '1', deptId: 100 });
|
||||
const res = await deptTreeSelect({ isShow: '1' });
|
||||
deptList.value = filterDisabledDept(res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user