From 72af108154b75c3d8ec2448041e9e9a0fccdec9e Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期五, 26 四月 2024 14:52:49 +0800 Subject: [PATCH] su --- src/views/doctor/check/index.vue | 63 +++++++++++++++++++++++++++++-- 1 files changed, 58 insertions(+), 5 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index add7c44..f387b40 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -357,6 +357,14 @@ 寤鸿锛� </td> <td style="border: 1px solid #dfe6ec; border-collapse: collapse" colspan="2"> + <div style="margin: 0 0px 10px 15px"> + <el-button type="primary" @click="propoChange" + >蹇嵎寤鸿</el-button + > + <el-button type="primary" @click="proposalChange" + >鐢熸垚寤鸿</el-button + > + </div> <el-input type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" v-model="proParentList.remark" rows="7"> </el-input> </td> @@ -481,6 +489,14 @@ </td> </tr> <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> + <div style="margin: 0 0px 10px 15px"> + <el-button type="primary" @click="propoChange" class="height:100px" + >蹇嵎寤鸿</el-button + > + <el-button type="primary" @click="proposalChange" + >鐢熸垚寤鸿</el-button + > + </div> <td style="border: 1px solid #dfe6ec; border-collapse: collapse"> 寤鸿锛� </td> @@ -570,11 +586,15 @@ <el-button @click="jianqians = false">鍙� 娑�</el-button> </span> </el-dialog> + <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> + <createproposal ref="createproposal" :creatobj="creatobj" :textarea1="proParentList.remark" /> </div> </template> <script> +import proposal from "@/components/proposal"; +import createproposal from "@/components/createproposal"; import { getInfoById } from "@/api/hosp/history"; import jianqianwenzhen from "@/components/jianqianwenzhen"; import Public from "@/components/public"; @@ -599,9 +619,13 @@ export default { dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"], name: "check", - components: { Public, Historicalreport, jianqianwenzhen }, + components: { Public, Historicalreport, jianqianwenzhen,createproposal,proposal }, data() { return { + creatobj:{}, + dataText: [], + propform: {}, + cusobj: {}, baogaoqian: true, baogaohou: false, flags: false, @@ -913,6 +937,30 @@ hb() { if (this.queryParams.tjNumber != "") { this.submitForm(); + } + }, + propoChange() { + this.cusobj = { sex: this.tableAll.cusSex, isZj: 1 }; + this.$refs.proposal.open = true; + this.$refs.proposal.title = "寤鸿鏂规"; + // this.$refs.proposal.getList(); + }, + eventchange(data) { + this.dataText = data + data.forEach((item) => { + this.proParentList.remark += item.advice; + }); + }, + proposalChange() { + if (this.proParentList.remark) { + this.creatobj = {proParentList:this.proParentList.remark, isZj: 1} + this.$refs.createproposal.open = true; + this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢"; + }else{ + this.$message({ + type: "warning ", + message: "璇峰厛濉啓鎬绘寤鸿", + }); } }, @@ -1549,10 +1597,13 @@ }); }) .catch((action) => { - this.$message({ + if(action === "cancel"){ + this.$message({ type: "warning", - message: action === "cancel" ? "鏀惧純淇濆瓨骞剁寮�" : "鍋滅暀鍦ㄥ綋鍓嶉〉闈�", + message: "鏀惧純淇濆瓨骞剁寮�", }); + } + this.proName = this.Parentcheck.proName; this.nums = tab.name; this.proId = tab.name; @@ -1732,10 +1783,12 @@ }); }) .catch((action) => { - this.$message({ + if(action === "cancel"){ + this.$message({ type: "warning", - message: action === "cancel" ? "鏀惧純淇濆瓨骞剁寮�" : "鍋滅暀鍦ㄥ綋鍓嶉〉闈�", + message: "鏀惧純淇濆瓨骞剁寮�", }); + } this.proName = item.proName; this.nums = proParentId; this.proId = proParentId; -- Gitblit v1.8.0