采购单

This commit is contained in:
Teo
2025-08-15 00:22:03 +08:00
parent 802fd82d02
commit ae979b47c0
4 changed files with 23 additions and 10 deletions

View File

@ -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);
};