From 876f43e0fd34e084cc8a179a20afb51fe612eca3 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期六, 09 十二月 2023 18:59:31 +0800 Subject: [PATCH] qxtj --- src/views/system/tijianall/index.vue | 86 ++++++++++++++----------------------------- 1 files changed, 28 insertions(+), 58 deletions(-) diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue index d53d886..6ec80ab 100644 --- a/src/views/system/tijianall/index.vue +++ b/src/views/system/tijianall/index.vue @@ -469,7 +469,7 @@ > <el-button type="primary" - @click="inputChange" + @click="inputChanges" v-show="lishi" size="mini" :disabled="confirm" @@ -639,40 +639,7 @@ ></iframe> </div> </el-dialog> - <el-drawer - title="鍘嗗彶浣撴璁板綍" - :visible.sync="table" - direction="rtl" - size="50%" - > - <el-table :data="HistoryList" style="width: 95%; margin-left: 20px"> - <el-table-column - property="tjNum" - label="浣撴鍙�" - align="center" - :show-overflow-tooltip="true" - ></el-table-column> - <el-table-column - property="userName" - label="濮撳悕" - align="center" - :show-overflow-tooltip="true" - ></el-table-column> - <el-table-column - property="tjTime" - label="浣撴鏃堕棿" - align="center" - :show-overflow-tooltip="true" - ></el-table-column> - <el-table-column - property="tjProName" - label="浣撴椤圭洰" - align="center" - :show-overflow-tooltip="true" - ></el-table-column> - </el-table> - </el-drawer> - <el-dialog + <el-dialog title="鎻愮ず" :visible.sync="dialogVisiblese" width="30%" @@ -684,6 +651,7 @@ <el-button type="primary" @click="copes">纭� 瀹�</el-button> </span> </el-dialog> + <historyTj :cusIdCard="form.cusIdcard" ref="historyTj"></historyTj> </div> </template> @@ -704,9 +672,10 @@ } from "@/api/system/tijian"; import { MessageBox } from "element-ui"; import VTreeTransfer from "../tijian/TreeTransfer.vue"; +import historyTj from "@/components/historyTj/index"; export default { components: { - VTreeTransfer, + VTreeTransfer,historyTj }, dicts: [ "dict_user_national", @@ -748,6 +717,7 @@ // } // }; return { + proIdList: [], tableDatas: [], dialogVisiblese: false, lishi: false, @@ -970,24 +940,27 @@ this.form.cusBrithday = birthday; this.form.age = age; } - let cusIdCard = this.form.cusIdcard; - getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { - if (res.code == 200) { + + // let cusIdCard = this.form.cusIdcard; + // getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { + // if (res.code == 200) { this.table = true; this.lishi = true; - this.HistoryList = res.data; - } - }); + // this.HistoryList = res.data; + // } + // }); } else { // return this.$message.error("璇疯緭鍏ユ纭殑韬唤璇佸彿锛�");; } }, + inputChanges(){ + this.$refs.historyTj.getlist(); + }, cope() { let cusIdCard = this.form.cusIdcard; getHistryTjOrderProByCusIdCard(cusIdCard).then((res) => { - console.log(res); this.copeList = res.data; - if (res.data.length != 0) { + if (res.msg !="鏆傛棤鍘嗗彶璁板綍") { this.dialogVisiblese = true; } else { this.$message.warning("鏆傛棤鍘嗗彶浣撴璁板綍锛�"); @@ -1005,21 +978,24 @@ } let _this = this; - console.log(this.tableDatas.length); if (this.tableDatas.length != 0) { - this.tableDatas.forEach((item) => { - _this.pacId = this.tableDatas.pacId; - _this.proId = this.tableDatas.proId; - console.log(_this.pacId, 888); - }); - + this.tableDatas.forEach((item) => { + if (item.pacId != null) { + _this.pacId = item.pacId; + } else { + item.list.forEach((items) => { + _this.proIdList.push(items.proId); + console.log(_this.pacId, 888); + }); + } + }); } else { _this.pacId = ""; } let data = { cusId, pacId: _this.pacId, - proIds: _this.proId, + proIds: _this.proIdList, }; getaddtTransition(data).then((response) => { if (response.msg === "鎿嶄綔鎴愬姛") { @@ -1339,7 +1315,6 @@ // 鐐瑰嚮澶氶�夋鑾峰彇閫変腑鏁版嵁 handleSelectionChange(selection, row) { this.tableData = selection; - console.log(this.tableData); if (selection.length > 1) { let del_row = selection.shift(); this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 @@ -1452,15 +1427,11 @@ // 鏈�鍚庢彁浜ゆ寜閽� submitPrice() { let _this = this; - console.log(_this.tableData1.length, 111); if (_this.tableData1.length > 0) { let userId = this.form.cusIdcard; - console.log(userId, 222); let tjType = this.form.tjType == 2 ? "涓汉" : "鍥㈤槦"; - console.log(this.tableData[0], 444); if (this.tableData[0]) { var pacId = this.tableData[0].pacId; - console.log(pacId, 333); } // let copeWith = this.TotalPrice1; // let paidIn = this.TotalPrice; @@ -1474,7 +1445,6 @@ // } let data; if (pacId) { - console.log(pacId); data = { pacId, department: this.form.department, -- Gitblit v1.8.0