From c3567454dcc7b6978370f5257e918c1774b58247 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期四, 14 十二月 2023 18:04:56 +0800 Subject: [PATCH] su --- src/views/hosp/project/index.vue | 54 ++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 34 insertions(+), 20 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 9e59571..3749c75 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -54,8 +54,9 @@ <el-table-column label="椤圭洰鍚嶇О" prop="proName" fixed="left" :width="flexColumnWidth('rwdtypeName')" /> <el-table-column label="椤圭洰浠锋牸(鍗曚綅/鍏�)" align="center" prop="proPrice" width="75px" :show-overflow-tooltip="true"></el-table-column> - <el-table-column label="绉戝鍚嶇О" align="center" prop="deptName" width="110px" :show-overflow-tooltip="true" /> + <!-- <el-table-column label="绉戝鍚嶇О" align="center" prop="deptName" width="110px" :show-overflow-tooltip="true" /> --> <el-table-column label="妫�鏌ョ被鍒�" align="center" prop="proCheckType" width="110px" :show-overflow-tooltip="true" /> + <el-table-column label="榛樿鍊�" align="center" prop="proDefault" width="110px" :show-overflow-tooltip="true" /> <el-table-column label="涓村簥鎰忎箟" align="center" prop="proMeaning" width="350px" :show-overflow-tooltip="true" /> <!-- <el-table-column label="妫�鏌ユ柟寮�" align="center" prop="proCheckMethod" :show-overflow-tooltip="true" width="110px" /> --> @@ -356,7 +357,6 @@ components: { Treeselect, IconSelect }, data() { let checkPhoneNum = (rule, value, callback) => { - console.log(value) let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); if (value == "" && value == undefined && !value) { return callback(''); @@ -563,17 +563,15 @@ // 鎵撳紑input寮规 getDetailed() { - if (this.form.proParentId) { - if (this.selectList.proName === "涓荤被鐩�") { - this.dialogTableVisible = false; - } else { - this.dialogTableVisible = true; - this.getlistSfxm() - } + + if (this.form.proParentId == 0) { + this.dialogTableVisible = false; + } else if (this.form.proParentId != 0) { + this.dialogTableVisible = true; + this.getlistSfxm() } else { this.$message.error("璇烽�夋嫨涓婚」鍚嶇О"); } - }, @@ -685,16 +683,26 @@ let data = { deptId: this.queryParams.deptId, }; + this.loading = true ProjectTree(data).then((response) => { - this.projectList = this.handleTree(response.data.list, "proId"); - this.ListId.push(this.projectList[0].proId) - this.key = response.data.key - // if (this.key == "Y") { - // this.key = response.data.key - // } else if (response.data.key == "N") { - // this.key = response.data.key - // } - this.loading = false; + if (response.code == 200) { + if (response.data.list.length >= 1) { + this.projectList = this.handleTree(response.data.list, "proId"); + this.ListId.push(this.projectList[0].proId) + this.key = response.data.key + } else { + this.projectList = [] + } + + + // if (this.key == "Y") { + // this.key = response.data.key + // } else if (response.data.key == "N") { + // this.key = response.data.key + // } + this.loading = false; + } + }); }, selectSingleRow({ row, rowIndex }) { @@ -792,7 +800,6 @@ //鑻辨枃瀛楁瘝 8 鍍忕礌 flexWidth += 8; } else if (char >= '\u4e00' && char <= '\u9fa5') { - console.log(22222) //涓枃鏂囧瓧 15 鍍忕礌 flexWidth += 15; } else { @@ -899,6 +906,13 @@ const proId = row.proId || this.ids; getProject(proId).then((response) => { this.form = response.data; + if (this.form.proParentId === "0") { + this.showPrise = true; + this.showRentPrise = false; + } else { + this.showPrise = false; + this.showRentPrise = true; + } this.form.deptId = Number(this.form.deptId) if (this.form.proStatus === 0) { this.form.proStatus = "鍚敤"; -- Gitblit v1.8.0