| | |
| | | align="center" |
| | | label="选择" |
| | | width="40" |
| | | :selectable="isSelectable" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | } |
| | | console.log("Query Params:", this.queryParams); |
| | | }, |
| | | isSelectable(row) { |
| | | return !!row.mzh; |
| | | }, |
| | | // isSelectable(row) { |
| | | // return !!row.mzh; |
| | | // }, |
| | | tableRowClassName({ row }) { |
| | | return !row.mzh ? "row-disabled" : ""; |
| | | }, |
| | |
| | | fetchRightTableData() { |
| | | const code = queryParams.tjNum; |
| | | // if (!code) return; |
| | | |
| | | getJyTjList(code).then((response) => { |
| | | this.checkList = response.data; |
| | | this.loading = false; |
| | |
| | | |
| | | handleSelectionChangeSecond(selectedRows) { |
| | | this.selectedSecondTable = selectedRows; |
| | | if (selectedRows.length > 1) { |
| | | if (selectedRows.length > 1) { |
| | | let del_row = selectedRows.shift(); |
| | | this.$refs.tab1.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | |
| | | this.loading = false; |
| | | this.exaLists = res.data; |
| | | // const code = this.exaLists[0].mzh; |
| | | if ( |
| | | this.exaLists && |
| | | this.exaLists.length > 0 && |
| | | this.exaLists[0].mzh |
| | | ) { |
| | | const code = this.queryParams.tjNum; |
| | | |
| | | getJyTjList(code).then((response) => { |
| | | this.checkList = response.data; |
| | | }); |
| | | } else { |
| | | this.$message.error("查询失败,请稍后重试"); |
| | | } |
| | | const code = this.queryParams.tjNum; |
| | | getJyTjList(code).then((response) => { |
| | | this.checkList = response.data; |
| | | }); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | this.setTime(); |
| | | const requestData = { |
| | | lis: this.selectedFirstTable.map((item) => ({ |
| | | ...item, |
| | | tjNum: this.queryParams.tjNum, |
| | | })), |
| | | ...item, |
| | | tjNum: this.queryParams.tjNum, |
| | | })), |
| | | jcxmid: this.selectedFirstTable.jcxmid, |
| | | shys: this.selectedFirstTable.shys, |
| | | tj: this.selectedSecondTable[0], // 右侧表格选中数据 |