From 93594afdf8567822384ad3b893e612c1cff082b8 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 06 一月 2025 18:00:14 +0800 Subject: [PATCH] 检查检验结果弹框 --- src/views/hosp/project/index.vue | 61 +++++++++++++++++++++--------- 1 files changed, 43 insertions(+), 18 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index aed11fc..1413453 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -24,6 +24,7 @@ :default-expanded-keys="treeId" highlight-current @node-click="handleNodeClick" + :render-content="renderContent" /> </div> </div> @@ -181,12 +182,20 @@ :show-overflow-tooltip="true" /> <el-table-column - label="涓村簥鎰忎箟" + label="缁撴灉绫诲瀷" align="center" - prop="proMeaning" - width="350px" + prop="resultType" + width="110px" :show-overflow-tooltip="true" - /> + > + <template slot-scope="scope"> + <dict-tag + :options="dict.type.tj_result_type" + :value="scope.row.resultType" + /> + </template> + </el-table-column> + <!-- <el-table-column label="妫�鏌ユ柟寮�" align="center" prop="proCheckMethod" :show-overflow-tooltip="true" width="110px" /> --> <el-table-column @@ -226,19 +235,12 @@ > </el-table-column> <el-table-column - label="椤圭洰绫诲瀷" + label="涓村簥鎰忎箟" align="center" - prop="resultType" - width="110px" + prop="proMeaning" + width="350px" :show-overflow-tooltip="true" - > - <template slot-scope="scope"> - <dict-tag - :options="dict.type.tj_result_type" - :value="scope.row.resultType" - /> - </template> - </el-table-column> + /> <el-table-column label="澶囨敞" prop="remark" @@ -1066,6 +1068,8 @@ lisXmmc: "", proMetering: "", proScope: "", + proSex:'2', + resultType: "", // 鍒濆鍊� }, // 琛ㄥ崟鏍¢獙 rules: { @@ -1126,6 +1130,9 @@ created() { this.getConsumables(); this.getDeptList(); + this.getDeptTree(); + }, + mounted() { this.getDeptTree(); }, methods: { @@ -1191,6 +1198,7 @@ this.form.proPrice = 0.0; this.form.proName = ""; this.form.proId = null; + this.form.resultType = "1"; // ProjectTree getlist().then((response) => { if (response.code == 200) { @@ -1301,6 +1309,7 @@ this.List = true; listSfxm(this.querycharge).then((response) => { this.sfxmList = response.rows; + response.rows.forEach((item, index) => { item.newID = (this.querycharge.pageNum - 1) * this.querycharge.pageSize + @@ -1326,6 +1335,7 @@ handleNodecharge(data) { this.queryParam.id = data.id; + this.List = false; this.getListByXmId(); }, @@ -1383,6 +1393,19 @@ this.deptOptions = response.data; this.treeId.push(this.deptOptions[0].id); }); + }, + + renderContent(h, { node, data }) { + return h( + "span", + { + style: { + color: data.status === "1" ? "red" : "inherit", // 鍔ㄦ�佽缃鑹� + fontSize: "14px", + }, + }, + data.label // 鏄剧ず鑺傜偣鐨� label + ); }, // 绛涢�夎妭鐐� @@ -1491,6 +1514,7 @@ consumablesList: [], tjStandardList: [], proStatus: "0", + resultType: "1", }; this.resetForm("form"); }, @@ -1649,7 +1673,6 @@ this.proParent = false; getProject(proId).then((response) => { console.log(response, 999); - this.form = response.data; if (this.form.proParentId === "0") { this.showPrise = true; @@ -1945,12 +1968,14 @@ height: 1000px; /* 璁剧疆鍐呭鐨勯珮搴︼紝浠ヨЕ鍙戝瀭鐩存粴鍔ㄦ潯 */ } - - .el-table__header-wrapper .el-checkbox { display: none; } +.red-text { + color: red !important; +} + .pag { display: flex; justify-content: center; -- Gitblit v1.8.0