From ca7febfd03af9f1dc4016b7c761bd326080f3508 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期五, 22 十二月 2023 18:14:27 +0800
Subject: [PATCH] qxtj

---
 src/views/hosp/project/index.vue |   42 +++++++++++++-----------------------------
 1 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue
index bb9506f..c5e0882 100644
--- a/src/views/hosp/project/index.vue
+++ b/src/views/hosp/project/index.vue
@@ -64,7 +64,7 @@
             width="110px" /> -->
           <el-table-column label="鍙備笌灏忕粨" align="center" prop="needReport" :show-overflow-tooltip="true" width="110px">
             <template slot-scope="scope">
-              <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.proCheckMethod" />
+              <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.needReport" />
             </template>
           </el-table-column>
           <el-table-column label="鏄惁绌鸿吂" align="center" prop="proCheckMethod" :show-overflow-tooltip="true" width="110px">
@@ -326,8 +326,8 @@
             </div>
             <div class="pag" v-if="List == false">
               <div class="pag1">
-                <pagination v-show="total > 0" :total="total" :page.sync="querycharge.page"
-                  :limit.sync="querycharge.pageSize" @pagination="getListByXmId" />
+                <pagination v-show="total > 0" :total="total" :page.sync="queryParam.page"
+                  :limit.sync="queryParam.pageSize" @pagination="getListByXmId" />
               </div>
             </div>
           </el-col>
@@ -572,6 +572,9 @@
     handleAdd(row) {
       // this.reset();
       this.loading = true;
+      this.form.proPrice = 0.00
+      this.form.proName = ""
+      this.form.proId = null
       ProjectTree().then((response) => {
         if (response.code == 200) {
           this.loading = false;
@@ -820,7 +823,7 @@
         deptName: null,
         consumablesList: [],
         tjStandardList: [],
-        proStatus: "鍚敤",
+        proStatus: "0",
       };
       this.resetForm("form");
     },
@@ -967,11 +970,6 @@
           this.showRentPrise = true;
         }
         this.form.deptId = Number(this.form.deptId);
-        if (this.form.proStatus === 0) {
-          this.form.proStatus = "鍚敤";
-        } else {
-          this.form.proStatus = "鍋滅敤";
-        }
         if (this.form.proStandard === 0) {
           this.showPrise = true;
           this.showRentPrise = false;
@@ -979,6 +977,7 @@
           this.showPrise = false;
           this.showRentPrise = true;
         }
+        this.form.proStatus =  this.form.proStatus.toString()
         this.form.consumablesList = response.data.consumablesList;
         this.form.tjStandardList = response.data.tjStandardList;
         if (this.form.tjStandardList != null) {
@@ -1086,11 +1085,8 @@
                   }
                 });
               }
-              if (this.form.proStatus === "鍚敤") {
-                this.form.proStatus = 0;
-              } else {
-                this.form.proStatus = 1;
-              }
+              
+              
               updateProject(this.form).then((response) => {
                 this.$modal.msgSuccess("淇敼鎴愬姛");
                 this.cancel();
@@ -1106,11 +1102,7 @@
                 this.$message.error("璇峰~鍐欑埗椤瑰悕绉版垨绉戝鍚嶇О");
                 this.open = true;
               } else {
-                if (this.form.proStatus === "鍚敤") {
-                  this.form.proStatus = 0;
-                } else {
-                  this.form.proStatus = 1;
-                }
+               
                 addProject(this.form).then((response) => {
                   this.$modal.msgSuccess("鏂板鎴愬姛");
                   this.cancel();
@@ -1156,11 +1148,7 @@
                   }
                 });
               }
-              if (this.form.proStatus === "鍚敤") {
-                this.form.proStatus = 0;
-              } else {
-                this.form.proStatus = 1;
-              }
+        
               updateProject(this.form).then((response) => {
                 this.$modal.msgSuccess("淇敼鎴愬姛");
                 this.cancel();
@@ -1176,11 +1164,7 @@
                 this.$message.error("璇峰~鍐欑埗椤瑰悕绉版垨绉戝鍚嶇О");
                 this.open = true;
               } else {
-                if (this.form.proStatus === "鍚敤") {
-                  this.form.proStatus = 0;
-                } else {
-                  this.form.proStatus = 1;
-                }
+              
                 addProject(this.form).then((response) => {
                   this.$modal.msgSuccess("鏂板鎴愬姛");
                   this.cancel();

--
Gitblit v1.8.0