修改采购申请部门筛选问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user