项目编号修改为下拉搜索框

This commit is contained in:
zhangsir
2024-08-29 16:40:01 +08:00
parent 207518d0ef
commit d89cc8ea11
3 changed files with 55 additions and 4 deletions

View File

@@ -150,7 +150,8 @@
<div class="num" v-if="projectInfo.boeFlag === 1">
<div class="num_text">项目编号</div>
<div class="num_input">
<a-input style="border-radius: 8px;" show-count allowClear maxlength="30" v-model:value="projectInfo.numValue" placeholder="请输入项目编号" />
<!-- <a-input style="border-radius: 8px;" show-count allowClear maxlength="30" v-model:value="projectInfo.numValue" placeholder="请输入项目编号" /> -->
<ProjectNumber v-model:value="projectInfo.numValue" v-model:label="projectInfo.numLabel"></ProjectNumber>
</div>
</div>
</div>
@@ -275,7 +276,7 @@ import * as api2 from "../../api/indexAudit";
import {validateName} from "@/api/index1";
import dayjs from "dayjs";
import {scrollLoad} from "@/api/method";
import ProjectNumber from "@/components/project/ProjectNumber";
export default {
name: "projectAdd",
components: {
@@ -285,6 +286,7 @@ export default {
TrainClass,
NameInput,
OrgClass,
ProjectNumber
},
setup() {
const store = useStore();
@@ -342,7 +344,8 @@ export default {
});
watch(()=>state.projectInfo.boeFlag,(val)=>{
if(!val){
state.projectInfo.numValue = ''
state.projectInfo.numValue = null
state.projectInfo.numLabel = null
}
})