feat(project-demand): 更新项目需求汇总功能

- 新增 getProjectName 方法,用于项目名称关键词匹配- 修改远程搜索方法,使用 getProjectName 替代 getRequirementName
- 更新 ProjectApply 组件,调整专项资金输入框显示逻辑
- 移除 proxy 配置中的注释
This commit is contained in:
dj
2025-05-05 17:53:55 +08:00
parent f105485714
commit d76ef8ff9c
3 changed files with 20 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
<script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {addPlan, getRequirementName} from "@/api/project-demand/summary";
import {addPlan, getProjectName, getRequirementName} from "@/api/project-demand/summary";
import {getSubCompOpt} from "@/api/user/user";
import {filterRequirementName} from "@/api/project-demand";
@@ -84,14 +84,14 @@ const searchConfig = ref([
remote: true,
remoteMethod:async (val)=>{
if(val){
const res=await getRequirementName(val)
const res=await getProjectName(val)
if(res.code==1000){
let optionObj={}
let optionsMap = new Map();
res.data.forEach(item=>{
res.data.rows.forEach(item=>{
optionObj={
value:item,
label:item
value:item.projectName,
label:item.projectName
}
optionsMap.set(optionObj.value, optionObj);
})