diff --git a/src/api/purchase/purchasingrequisition.ts b/src/api/purchase/purchasingrequisition.ts index d35e74c..fed90cd 100644 --- a/src/api/purchase/purchasingrequisition.ts +++ b/src/api/purchase/purchasingrequisition.ts @@ -205,15 +205,6 @@ export function startFileFlow(id: number, representorTeacherNo?: string, represe }); } -/** - * 获取部门下人员(用于选采购代表人) - */ -export function getDeptMembers() { - return request({ - url: '/purchase/purchasingapply/getDeptMembers', - method: 'get', - }); -} /** * 获取二级部门列表(供履约验收选择部门用) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index efccca2..eb6d7b3 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -804,12 +804,9 @@
文件审批状态
- 撤回 - 暂存 - 运行中 + 运行中 完成 作废 - 终止
diff --git a/src/views/purchase/purchasingrequisition/index.vue b/src/views/purchase/purchasingrequisition/index.vue index 726991f..3e7c7ab 100644 --- a/src/views/purchase/purchasingrequisition/index.vue +++ b/src/views/purchase/purchasingrequisition/index.vue @@ -459,57 +459,10 @@ - - - - - - - - 采购代表 - 评委 - - - - - 指定采购代表人 - 部门多人系统抽取 - - - - - - - - - - - - - - - + + + @@ -523,10 +476,6 @@ import { submitObj, getApplyTemplateDownloadUrl, getFileApplyTemplateDownloadUrl, - getDeptMembers, - saveRepresentor, - listDownloadUrls, - updateFiles, exportPurchaseApply, } from '/@/api/purchase/purchasingrequisition'; import { useMessage, useMessageBox } from '/@/hooks/message'; @@ -675,52 +624,10 @@ const representorForm = reactive({ multiIds: [] as string[], identity: 'purchase_rep' as 'purchase_rep' | 'judge', }); -const representorDeptMembers = ref([]); + const representorSubmitting = ref(false); -const openRepresentorDialog = async (row: any) => { - representorCurrentRow.value = row; - representorForm.mode = 'single'; - representorForm.teacherNo = ''; - representorForm.multiIds = []; - representorDialogVisible.value = true; - try { - const res = await getDeptMembers(); - representorDeptMembers.value = res?.data || []; - } catch (_) { - representorDeptMembers.value = []; - } -}; -const handleSaveRepresentor = async () => { - const row = representorCurrentRow.value; - const id = row?.id ?? row?.purchaseId; - if (id == null || id === '') { - useMessage().warning('无法获取申请单ID'); - return; - } - if (representorForm.mode === 'single' && !representorForm.teacherNo) { - useMessage().warning('请选择采购代表人'); - return; - } - if (representorForm.mode === 'multi' && !representorForm.multiIds.length) { - useMessage().warning('请选择部门多人'); - return; - } - representorSubmitting.value = true; - try { - const teacherNo = representorForm.mode === 'single' ? representorForm.teacherNo : undefined; - const multiIds = representorForm.mode === 'multi' ? representorForm.multiIds.join(',') : undefined; - await saveRepresentor(Number(id), teacherNo, multiIds, representorForm.identity); - useMessage().success('保存采购代表成功'); - representorDialogVisible.value = false; - getDataList(); - } catch (e: any) { - useMessage().error(e?.msg || '保存采购代表失败'); - } finally { - representorSubmitting.value = false; - } -}; /** * 定义响应式表格数据