From f0ad3b00ae1cdbd12f64d870927f96ec6b7593a3 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 21 六月 2024 12:03:04 +0800 Subject: [PATCH] qxtj --- src/views/doctor/checkAll/index.vue | 103 ++++++++++++++++++++++++++++++++++----------------- 1 files changed, 69 insertions(+), 34 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index 5bdc2b9..8de4fc4 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -68,7 +68,11 @@ </el-select> </el-form-item> <el-form-item> - <el-button type="primary" size="mini" @click="submitForm" + <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,33 +1068,16 @@ </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" /> + <el-dialog title="甯哥敤寤鸿缁存姢" :visible.sync="propdialog" width="500px" append-to-body > - <el-form ref="form" :model="propform" label-width="80px"> - <el-form-item label="寤鸿鏍囬" prop="title"> - <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> - </el-form-item> - <el-form-item label="蹇嵎鏍囩" prop="title"> - <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> - </el-form-item> - <el-form-item label="寤鸿鍐呭" prop="advice"> - <el-input - type="textarea" - v-model="propform.advice" - :autosize="{ minRows: 9, maxRows: 10 }" - placeholder="璇疯緭鍏ュ缓璁�" - /> - </el-form-item> - </el-form> - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitpropForm">纭� 瀹�</el-button> - <el-button @click="cancel">鍙� 娑�</el-button> - </div> </el-dialog> </div> </template> @@ -1082,7 +1086,9 @@ <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 { getcheckList, getTjdetailList, @@ -1114,6 +1120,8 @@ jianqianwenzhen, Packages, proposal, + createproposal, + Prescription, }, dicts: [ "dict_tjtype", @@ -1129,6 +1137,7 @@ name: "checkAll", data() { return { + preObj: {}, baogao: [], flags: false, jianqianwenzhendata: [], @@ -1139,8 +1148,8 @@ hosproy: true, remarks: "", remark: "", + creatobj: {}, propdialog: false, - propform: {}, proIds: "", cusobj: {}, xiaojie: "", @@ -1209,6 +1218,7 @@ Deptobj: "", // 鐐瑰嚮鍙傛暟 changedate: [], + dataText: [], status: {}, // 鏌ヨ鍙傛暟 queryParams: { @@ -1484,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; @@ -1499,18 +1519,32 @@ }); }, propoChange() { - this.cusobj = { sex: this.tableAll.cusSex, isZj: 1 }; + this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 }; this.$refs.proposal.open = true; this.$refs.proposal.title = "寤鸿鏂规"; // this.$refs.proposal.getList(); }, eventchange(data) { + this.dataText = data; + console.log(this.textarea1); + if (this.textarea1 == null) { + this.textarea1 = ""; + } data.forEach((item) => { - this.textarea1 += item.advice + this.textarea1 += item.advice; }); }, proposalChange() { - this.propdialog = true; + if (this.textarea1) { + this.creatobj = { proParentList: this.textarea1, isZj: 0 }; + this.$refs.createproposal.open = true; + this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢"; + } else { + this.$message({ + type: "warning ", + message: "璇峰厛濉啓鎬绘寤鸿", + }); + } }, radiotjprojectChange() { if (this.tjproject == "0") { @@ -1642,6 +1676,7 @@ // 鐐瑰嚮璇︽儏 handleClick(row) { + this.$refs.Pre.open = false; this.tableAll = row; this.tjproject = "0"; // if (this.tableAll.cusSex === 0) { @@ -1785,7 +1820,6 @@ cancel() { this.propdialog = false; }, - submitpropForm() {}, // 鏄惁鍏抽棴寮圭獥 handleClose(done) { @@ -1948,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