From d7cd1f0f06b0de974a787025ad6909d252e09752 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 18 二月 2025 23:34:00 +0800
Subject: [PATCH] 项目增加建设性质字段
---
src/views/projectEngineering/projectLibrary/component/BasicInfo.vue | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue b/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue
index 8cacff2..22b8c0f 100644
--- a/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue
+++ b/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue
@@ -71,7 +71,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="椤圭洰鐘舵��" label-width="100px" prop="projectstatus" style="width: 100%">
- <el-select v-model="projectForm.projectStatus" clearable placeholder="璇烽�夋嫨" style="width: 100%">
+ <el-select v-model="projectForm.projectStatus" clearable placeholder="璇烽�夋嫨" @change="handleProjectStatusChange" style="width: 100%">
<el-option v-for="item in dict.type.sys_project_status" :key="item.value" :label="item.label"
:value="item.value"/>
</el-select>
@@ -269,6 +269,19 @@
<span style="margin-left: 2px">鍏�</span>
</el-form-item>
</el-col>
+ <el-col :span="6">
+ <el-form-item label="寤鸿鎬ц川" label-width="100px" prop="constructionNature" style="width: 100%; min-width: 260px">
+ <el-select
+ v-model="projectForm.constructionNature"
+ clearable
+ placeholder="璇烽�夋嫨"
+ style="width: 100%"
+ >
+ <el-option v-for="item in dict.type.construction_nature" :key="item.value" :label="item.label"
+ :value="item.value"/>
+ </el-select>
+ </el-form-item>
+ </el-col>
</el-row>
<el-row :gutter="0">
<el-col :span="18">
@@ -324,7 +337,7 @@
export default {
name: 'BasicInfo',
dicts: ['sys_funding_type', 'sys_investment_type', 'sys_project_type', 'sys_project_status', 'sys_competent_department'
- , 'sys_administrative_divisions', 'sys_centralized_management', 'sys_approval_type', 'sys_key_categories', 'sys_annual_plan'],
+ , 'sys_administrative_divisions', 'sys_centralized_management', 'sys_approval_type', 'sys_key_categories', 'sys_annual_plan', 'construction_nature'],
components: {
Map,
TagList,
@@ -348,7 +361,7 @@
projectName: '',
projectCode: '',
projectType: '',
- projectStatus: 'working',
+ projectStatus: 'pendding',
fundType: '',
investType: '',
importanceType: '',
@@ -373,6 +386,7 @@
projectAddress: '',
engineeringIdList: [],
content: '',
+ constructionNature: '',
contact: '',
projectOwnerUnit: null,
planStartTime: '',
@@ -438,6 +452,16 @@
localStorage.setItem("projectForm", JSON.stringify(this.projectForm));
},
methods: {
+ handleProjectStatusChange(value) {
+ // 鏍规嵁閫変腑鐨� projectStatus 淇敼 anotherField 鐨勫��
+ if (value === 'working' || value === 'stop') {
+ this.projectForm.projectPhase = '瀹炴柦闃舵';
+ } else if (value === 'finish') {
+ this.projectForm.projectPhase = '绔e伐鎶曠敤闃舵';
+ } else if (value === 'pendding') {
+ this.projectForm.projectPhase = '鍌ㄥ瑙勫垝闃舵';
+ }
+ },
getProjectInfo(id) {
getProject(id).then(res => {
this.projectForm = res.data;
--
Gitblit v1.8.0