feat(purchase): 履约验收人员选择改为el-select下拉+远程搜索

1. 采购人员和资产管理员改为el-select组件,支持remote远程搜索
2. 搜索时调用后端接口模糊匹配教职工姓名或工号
3. 下拉选项显示格式为 姓名 (工号)
This commit is contained in:
吴红兵
2026-03-04 10:28:32 +08:00
parent 1abc557699
commit 501af39a14
2 changed files with 127 additions and 25 deletions

View File

@@ -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