修改采购申请部门筛选问题

This commit is contained in:
吴红兵
2026-03-12 17:14:46 +08:00
parent c54a8d05bb
commit 533fd7c952
2 changed files with 5 additions and 5 deletions

View File

@@ -274,7 +274,7 @@ export function getArchiveDownloadUrl(purchaseId: string | number) {
}
/**
* 下载审批表:导出采购审批表 Word 文档apply.docx 模板,仅占位符替换
* 下载审批表:导出采购审批表 PDF 文档apply.docx 模板)
* @param id 采购申请ID
*/
export function getApplyTemplateDownloadUrl(id: string | number) {
@@ -282,7 +282,7 @@ export function getApplyTemplateDownloadUrl(id: string | number) {
}
/**
* 下载文件审批表:导出招标文件审批表 Word 文档fileapply.docx 模板)
* 下载文件审批表:导出招标文件审批表 PDF 文档fileapply.docx 模板)
* @param id 采购申请ID
*/
export function getFileApplyTemplateDownloadUrl(id: string | number) {

View File

@@ -78,7 +78,7 @@
</el-form-item>
<el-form-item label="需求部门" prop="deptId">
<el-select v-model="state.queryForm.deptCode" placeholder="请选择需求部门" clearable filterable style="width: 200px">
<el-option v-for="item in secondDeptList" :key="item.id" :label="item.name" :value="item.id" />
<el-option v-for="item in secondDeptList" :key="item.id" :label="item.deptName" :value="item.deptCode" />
</el-select>
</el-form-item>
<el-form-item>
@@ -1352,8 +1352,8 @@ const loadSecondDeptList = async () => {
const res = await getDeptListByLevelTwo();
if (res.data && Array.isArray(res.data)) {
secondDeptList.value = res.data.map((item: any) => ({
id: item.id || item.deptId,
name: item.name || item.deptName,
deptCode: item.deptCode,
deptName: item.deptName,
}));
}
} catch (err) {