From e19defd15577e70c8e55593d7fe44bab1cbe1a66 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 11 六月 2024 11:00:27 +0800 Subject: [PATCH] qxtj --- src/views/doctor/checkAll/index.vue | 77 ++++++++++++++++++++++++++++---------- 1 files changed, 57 insertions(+), 20 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index 6f0c246..8de4fc4 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -67,8 +67,12 @@ /> </el-select> </el-form-item> - <el-form-item> - <el-button type="primary" size="mini" @click="submitForm" style="margin-right:15px;" + <el-form-item> + <el-button + type="primary" + size="mini" + @click="submitForm" + style="margin-right: 15px" >鎼滅储</el-button > <el-button size="mini" @click="resetQuery">閲嶇疆</el-button> @@ -182,17 +186,25 @@ <template slot-scope="scope"> <el-button fixed="right" + title="澶勬柟" + type="text" + size="mini" + @click.stop="rowClick(scope.row)" + icon="el-icon-edit-outline" + ></el-button> + <el-button + fixed="right" title="璇︽儏" type="text" size="mini" - @click="handleClick(scope.row)" + @click.stop="handleClick(scope.row)" icon="el-icon-document-copy" ></el-button> <!-- <el-button type="text" size="mini" @click="generate(scope.row)" v-if="scope.row.tjStatus=='1'">鐢熸垚</el-button> --> <el-button type="text" size="mini" - @click="viewReport(scope.row)" + @click.stop="viewReport(scope.row)" v-if="scope.row.tjStatus == '1'" title="棰勮" icon="el-icon-view" @@ -202,7 +214,7 @@ size="mini" v-if="scope.row.tjStatus == '1'" title="鎾ら攢" - @click="getRevoke(scope.row)" + @click.stop="getRevoke(scope.row)" icon="el-icon-refresh-left" ></el-button> </template> @@ -575,13 +587,22 @@ </el-input> </el-form-item> </el-form> - <div slot="footer" class="dialog-footers" v-if="tjproject == '0'"> + <div slot="footer" class="dialog-footers" > <el-button type="primary" - @click="determine" - :disabled="isdisabled" - >鎻愪氦骞剁敓鎴愭姤鍛�</el-button + size="mini" + @click.stop="rowClick" + icon="el-icon-edit-outline" + >寮�澶勬柟</el-button > + <div v-if="tjproject == '0'" style="padding-left:10px ;"> + <el-button + type="primary" + @click="determine" + :disabled="isdisabled" + >鎻愪氦骞剁敓鎴愭姤鍛�</el-button + > + </div> </div> </div> </el-col> @@ -1047,6 +1068,7 @@ </span> </el-dialog> <Packages ref="bbb" :baogao="baogao" /> + <Prescription ref="Pre" :preObj="preObj" /> <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> <createproposal ref="createproposal" :creatobj="creatobj" /> @@ -1064,6 +1086,7 @@ <script> import jianqianwenzhen from "@/components/jianqianwenzhen"; import Packages from "@/components/Packages"; +import Prescription from "@/components/Prescription"; import proposal from "@/components/proposal"; import createproposal from "@/components/createproposal"; import { @@ -1098,6 +1121,7 @@ Packages, proposal, createproposal, + Prescription, }, dicts: [ "dict_tjtype", @@ -1113,6 +1137,7 @@ name: "checkAll", data() { return { + preObj: {}, baogao: [], flags: false, jianqianwenzhendata: [], @@ -1123,7 +1148,7 @@ hosproy: true, remarks: "", remark: "", - creatobj:{}, + creatobj: {}, propdialog: false, proIds: "", cusobj: {}, @@ -1469,6 +1494,16 @@ }); }, + rowClick(row) { + if(row.tjNumber){ + this.preObj = row; + }else{ + this.preObj = this.tableAll; + } + this.$refs.Pre.open = true; + this.$refs.Pre.title = "澶勬柟"; + }, + // 鍗曢�夋寜閽� radioChange(value) { this.loading = true; @@ -1490,10 +1525,10 @@ // this.$refs.proposal.getList(); }, eventchange(data) { - this.dataText = data - console.log(this.textarea1 ) - if(this.textarea1 == null ){ - this.textarea1 = "" + this.dataText = data; + console.log(this.textarea1); + if (this.textarea1 == null) { + this.textarea1 = ""; } data.forEach((item) => { this.textarea1 += item.advice; @@ -1501,14 +1536,14 @@ }, proposalChange() { if (this.textarea1) { - this.creatobj = {proParentList:this.textarea1, isZj: 0} + this.creatobj = { proParentList: this.textarea1, isZj: 0 }; this.$refs.createproposal.open = true; this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢"; - }else{ + } else { this.$message({ - type: "warning ", - message: "璇峰厛濉啓鎬绘寤鸿", - }); + type: "warning ", + message: "璇峰厛濉啓鎬绘寤鸿", + }); } }, radiotjprojectChange() { @@ -1641,6 +1676,7 @@ // 鐐瑰嚮璇︽儏 handleClick(row) { + this.$refs.Pre.open = false; this.tableAll = row; this.tjproject = "0"; // if (this.tableAll.cusSex === 0) { @@ -1946,7 +1982,8 @@ .dialog-footers { /* margin-top: 5px; */ - margin-left: calc(100% - 15%); + display: flex; + margin-left: calc(100% - 25%); } textarea { -- Gitblit v1.8.0