From 1220305988d776c62bcfbe4a7d98ae1886d532dc Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 15 十二月 2023 18:14:37 +0800
Subject: [PATCH] su

---
 src/views/hosp/project/index.vue |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue
index 53b27e3..5bdb7ba 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('');
@@ -553,6 +553,7 @@
       this.open = true;
       this.title = "浣撴椤圭洰淇℃伅缁存姢";
       this.form.deptId = this.queryParams.deptId
+      this.form.proCheckMethod = "N"
       if (this.key = "Y") {
         gettreeList().then((response) => {
           this.deptOptionstree = response.data;
@@ -563,23 +564,29 @@
 
     // 鎵撳紑input寮规
     getDetailed() {
-      if (this.form.proParentId) {
+      if (this.selectList) {
         if (this.selectList.proName === "涓荤被鐩�") {
           this.dialogTableVisible = false;
-        } else {
+        }else{
           this.dialogTableVisible = true;
           this.getlistSfxm()
+        }
+      } else if (this.form.proParentId) {
+        if (this.form.proParentId != 0) {
+          this.dialogTableVisible = true;
+          this.getlistSfxm()
+        } else if (this.form.proParentId == 0) {
+          this.dialogTableVisible = false;
         }
       } else {
         this.$message.error("璇烽�夋嫨涓婚」鍚嶇О");
       }
-
-
     },
 
     obtain(vals) {
       if (this.projectOptions) {
         this.selectList = vals;
+        console.log(this.selectList)
       }
       if (this.selectList.proName === "涓荤被鐩�") {
         this.showPrise = true;
@@ -802,7 +809,6 @@
               //鑻辨枃瀛楁瘝 8 鍍忕礌
               flexWidth += 8;
             } else if (char >= '\u4e00' && char <= '\u9fa5') {
-              console.log(22222)
               //涓枃鏂囧瓧 15 鍍忕礌
               flexWidth += 15;
             } else {
@@ -909,6 +915,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