| | |
| | | }, |
| | | |
| | | handleSelectionChange(val) { |
| | | console.log(val); |
| | | /* console.log(val); |
| | | if (val.length > 1) { |
| | | let del_row = val.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | // console.log(val, 999); |
| | | } */ |
| | | |
| | | if (val.length > 0) { |
| | | const selectedRow = val[0]; |
| | | // console.log(val[0], 555); |
| | | /* if (!selectedRow.mzh) { |
| | | this.$refs.tb.toggleRowSelection(selectedRow, false); |
| | | this.$message.warning("当前行无有效门诊号,不能选中"); |
| | | return; |
| | | } */ |
| | | // const selectedRow = val[0]; |
| | | |
| | | this.selectedFirstTable = selectedRow; |
| | | console.log("当前选中的行数据:", this.selectedFirstTable); |
| | | this.selectedFirstTable = val; |
| | | // console.log("当前选中的行数据:", this.selectedFirstTable); |
| | | const code = this.queryParams.tjNum; |
| | | if (!code) { |
| | | this.$message.warning("体检号不能为空!"); |
| | |
| | | this.checkList = response.data; |
| | | this.loading = false; |
| | | }); |
| | | // this.fetchRightTableData(selectedRow); |
| | | } else { |
| | | this.selectedFirstTable = null; |
| | | this.checkList = []; |
| | |
| | | tongbu(row) { |
| | | this.$modal.loading("正在同步,请稍候..."); |
| | | this.setTime(); |
| | | // console.log(val, 66); |
| | | this.selectedFirstTable.tjnum = this.queryParams.tjNum; |
| | | console.log(this.selectedFirstTable,this.selectedSecondTable[0],455555); |
| | | |
| | | const requestData = { |
| | | pacs: this.selectedFirstTable, // 左侧表格选中数据 |
| | | pacs: this.selectedFirstTable.map((item) => ({ |
| | | ...item, |
| | | tjNum: this.queryParams.tjNum, |
| | | })),// 左侧表格选中数据 |
| | | tj: this.selectedSecondTable[0], // 右侧表格选中数据 |
| | | }; |
| | | |