From 501af39a14e9a4cafb754a8c0edd0972721aeea2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com>
Date: Wed, 4 Mar 2026 10:28:32 +0800
Subject: [PATCH] =?UTF-8?q?feat(purchase):=20=E5=B1=A5=E7=BA=A6=E9=AA=8C?=
=?UTF-8?q?=E6=94=B6=E4=BA=BA=E5=91=98=E9=80=89=E6=8B=A9=E6=94=B9=E4=B8=BA?=
=?UTF-8?q?el-select=E4=B8=8B=E6=8B=89+=E8=BF=9C=E7=A8=8B=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1. 采购人员和资产管理员改为el-select组件,支持remote远程搜索
2. 搜索时调用后端接口模糊匹配教职工姓名或工号
3. 下拉选项显示格式为 姓名 (工号)
---
src/api/purchase/purchasingrequisition.ts | 22 +++
.../accept/AcceptCommonForm.vue | 130 ++++++++++++++----
2 files changed, 127 insertions(+), 25 deletions(-)
diff --git a/src/api/purchase/purchasingrequisition.ts b/src/api/purchase/purchasingrequisition.ts
index 5f78f36..71eaf34 100644
--- a/src/api/purchase/purchasingrequisition.ts
+++ b/src/api/purchase/purchasingrequisition.ts
@@ -225,6 +225,28 @@ export function getDeptMembers() {
});
}
+/**
+ * 获取二级部门列表(供履约验收选择部门用)
+ */
+export function getSecondDeptList() {
+ return request({
+ url: '/purchase/purchasingapply/getSecondDeptList',
+ method: 'get'
+ });
+}
+
+/**
+ * 搜索教职工(供履约验收选择人员用)
+ * @param keyword 搜索关键字(姓名/工号)
+ */
+export function searchTeachers(keyword: string) {
+ return request({
+ url: '/purchase/purchasingapply/searchTeachers',
+ method: 'get',
+ params: { keyword }
+ });
+}
+
/**
* 保存采购代表(指定单人或部门多人)
* @param id 采购申请ID
diff --git a/src/views/purchase/purchasingrequisition/accept/AcceptCommonForm.vue b/src/views/purchase/purchasingrequisition/accept/AcceptCommonForm.vue
index 020c586..65151e1 100644
--- a/src/views/purchase/purchasingrequisition/accept/AcceptCommonForm.vue
+++ b/src/views/purchase/purchasingrequisition/accept/AcceptCommonForm.vue
@@ -64,12 +64,54 @@
-
+
+
+ {{ item.name }}
+ {{ item.teacherNo }}
+
+
-
+
+
+ {{ item.name }}
+ {{ item.teacherNo }}
+
+
@@ -90,7 +132,7 @@