| | |
| | | // } |
| | | // }; |
| | | return { |
| | | proIdList: [], |
| | | tableDatas: [], |
| | | dialogVisiblese: false, |
| | | lishi: false, |
| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | 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 === "操作成功") { |
| | |
| | | // 点击多选框获取选中数据 |
| | | 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); //设置这一行取消选中 |
| | |
| | | // 最后提交按钮 |
| | | 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; |
| | |
| | | // } |
| | | let data; |
| | | if (pacId) { |
| | | console.log(pacId); |
| | | data = { |
| | | pacId, |
| | | department: this.form.department, |