From ae10aec8b64ee09160879429ddcfa57963e7cf05 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期三, 06 十二月 2023 18:36:43 +0800 Subject: [PATCH] su --- src/views/system/tijianall/index.vue | 27 ++++++++++++--------------- 1 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue index d53d886..df77394 100644 --- a/src/views/system/tijianall/index.vue +++ b/src/views/system/tijianall/index.vue @@ -748,6 +748,7 @@ // } // }; return { + proIdList: [], tableDatas: [], dialogVisiblese: false, lishi: false, @@ -985,7 +986,6 @@ cope() { let cusIdCard = this.form.cusIdcard; getHistryTjOrderProByCusIdCard(cusIdCard).then((res) => { - console.log(res); this.copeList = res.data; if (res.data.length != 0) { this.dialogVisiblese = true; @@ -1005,21 +1005,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 +1342,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 +1454,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 +1472,6 @@ // } let data; if (pacId) { - console.log(pacId); data = { pacId, department: this.form.department, -- Gitblit v1.8.0