From d0594c96b1905f461ebf4dbdcc49a5c6230f1102 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 26 十二月 2023 15:33:00 +0800 Subject: [PATCH] su --- src/views/hosp/project/index.vue | 47 +++++++++++++++++------------------------------ 1 files changed, 17 insertions(+), 30 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index bb9506f..90638db 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> @@ -472,7 +472,10 @@ }, // 琛ㄥ崟鍙傛暟 form: { - needReport :"Y" + needReport :"Y", + proName:"", + proPrice:"", + sfxmId:"", }, // 琛ㄥ崟鏍¢獙 rules: { @@ -572,6 +575,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 +826,7 @@ deptName: null, consumablesList: [], tjStandardList: [], - proStatus: "鍚敤", + proStatus: "0", }; this.resetForm("form"); }, @@ -967,11 +973,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 +980,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 +1088,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 +1105,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 +1151,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 +1167,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