From 84a9297d616a8db97330e3daa6b92974bb738fa5 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 28 七月 2025 16:38:30 +0800 Subject: [PATCH] 1 --- src/views/sampling/sampling/index.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 71781d5..57d952b 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -300,6 +300,7 @@ proId: null, proName: null, }, + tjNumber: null, startTime: "", tableKey: "", pickerOptions: { @@ -346,7 +347,6 @@ // this.getNowTime(); getTxmmccd().then((res) => { this.msg = Number(res.msg); - console.log(res, 444); }); getCompany(this.queryParams).then((response) => { this.CompanyList = response.data; @@ -383,7 +383,6 @@ searchSelect(val) { this.CheckBox = val; this.queryParams.dw = this.CheckBox.drugManufacturerId; - console.log(this.CheckBox, 9999); }, getRemoteData(query) { if (query) { @@ -456,10 +455,19 @@ jydPrint() { - const tjnumber = this.piliangList[0].tjNumber; + if (this.piliangList.length != 0) { + const tjnumber = this.piliangList[0].tjNumber; const viewNum = "1086792376946569216"; const params = { viewNum, tjnumber }; this.$tab.openPage("妫�楠岀瀵兼鍗�", "/report/clinical", params); + this.$refs.tb.toggleRowSelection(this.piliangList[0], false); + this.piliangList = [] + } else { + this.$message.info('璇烽噸鏂伴�夋嫨瑕佹墦鍗扮殑鏁版嵁'); + this.$refs.tb.toggleRowSelection(this.piliangList[0], false); + this.piliangList = [] + } + }, getTruncatedName(proName) { // 鍘绘帀鎵�鏈夌┖鏍� @@ -632,13 +640,13 @@ }, handleCurrentChangess(val) { if (val != null) { - this.$refs.tb.toggleRowSelection(val, true); + this.$refs.tb.toggleRowSelection(val, true); this.handleSelectionChange(val); } }, handleSelectionChange(selection) { - this.piliangList = selection; + const selectedCount = selection.length; const totalCount = this.samplingList.length; @@ -646,6 +654,7 @@ if (selectedCount === 1) { this.disableSelections = false; const selectedPerson = selection[0]; + this.piliangList = selection; const tjNumber = selectedPerson.tjNumber; console.log(`閫変腑鐨勪綋妫�鍙�: ${tjNumber}`); this.fetchData(tjNumber); -- Gitblit v1.8.0