diff --git a/src/api/finance/purchasingrequisition.ts b/src/api/finance/purchasingrequisition.ts index 64c1ea1..84b49f4 100644 --- a/src/api/finance/purchasingrequisition.ts +++ b/src/api/finance/purchasingrequisition.ts @@ -188,6 +188,20 @@ export function getDeptMembers() { }); } +/** + * 保存采购代表(指定单人或部门多人) + * @param id 采购申请ID + * @param representorTeacherNo 指定采购代表人(单人,用户ID或工号) + * @param representors 部门多人由系统抽取(多人,用户ID或工号逗号分隔) + */ +export function saveRepresentor(id: number, representorTeacherNo?: string, representors?: string) { + return request({ + url: '/purchase/purchasingapply/saveRepresentor', + method: 'post', + data: { id, representorTeacherNo, representors } + }); +} + /** * 文件归档:按文件类型打包下载该申请单下所有附件的下载地址(GET 请求,浏览器直接下载 zip) * @param purchaseId 采购申请ID diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index c778943..8b2f3e0 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -169,6 +169,7 @@ interface FileItem { url?: string; uid?: number; id?: string; // 文件ID + fileTitle?: string; // 文件标题(用于显示) } interface UploadFileItem { diff --git a/src/views/finance/purchaseagent/form.vue b/src/views/finance/purchaseagent/form.vue index 9b1208c..03242b5 100644 --- a/src/views/finance/purchaseagent/form.vue +++ b/src/views/finance/purchaseagent/form.vue @@ -1,28 +1,48 @@ - + + + + + + + + + +