From ce9b8903d77aa0bed9644703d47a81756f18ab4a Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 13 六月 2025 10:12:50 +0800 Subject: [PATCH] 插回损展示 --- src/views/equipment/lossrecord/index.vue | 124 ++++++++++++++--------------------------- 1 files changed, 43 insertions(+), 81 deletions(-) diff --git a/src/views/equipment/lossrecord/index.vue b/src/views/equipment/lossrecord/index.vue index 2fe6108..34eff0b 100644 --- a/src/views/equipment/lossrecord/index.vue +++ b/src/views/equipment/lossrecord/index.vue @@ -13,6 +13,24 @@ <template #toolbar></template> </ttable> </basic-container> + <el-dialog width="80%" title="瀹為獙鏁版嵁" :visible.sync="dialogShow"> + <el-table :data="tableData" style="width: 100%"> + <el-table-column prop="specification1" label="瑙勬牸" width="180"> + </el-table-column> + <el-table-column prop="channel1" label="棰戦亾" width="180"> + </el-table-column> + <el-table-column prop="insertionLoss1" label="鎻掑叆鎹熻��"> + </el-table-column> + <el-table-column prop="returnLoss1" label="鍥炴尝鎹熻��"> </el-table-column> + <el-table-column prop="specification2" label="瑙勬牸" width="180"> + </el-table-column> + <el-table-column prop="channel2" label="棰戦亾" width="180"> + </el-table-column> + <el-table-column prop="insertionLoss2" label="鎻掑叆鎹熻��"> + </el-table-column> + <el-table-column prop="returnLoss2" label="鍥炴尝鎹熻��"> </el-table-column> + </el-table> + </el-dialog> </div> </template> @@ -20,7 +38,8 @@ import { downloadLossWord, recordList, - syncLossRecordFile + syncLossRecordFile, + getLossRecords } from '@/api/equipment/lossRecord' import { mapGetters } from 'vuex' import ttable from '@/views/common/ztt-table.vue' @@ -60,7 +79,6 @@ column: [ { minWidth: '150', - width: '100', prop: 'sourceFile', label: '鏁版嵁鏉ユ簮', sort: false, @@ -69,7 +87,6 @@ }, { minWidth: '150', - width: '100', prop: 'productNum1', label: '浜у搧缂栧彿1', sort: false, @@ -78,7 +95,6 @@ }, { minWidth: '150', - width: '100', prop: 'productNum2', label: '浜у搧缂栧彿2', sort: false, @@ -87,7 +103,6 @@ }, { minWidth: '150', - width: '100', prop: 'batchNum1', label: '鎵规缂栧彿1', sort: false, @@ -96,7 +111,6 @@ }, { minWidth: '150', - width: '100', prop: 'batchNum2', label: '鎵规缂栧彿2', sort: false, @@ -105,79 +119,6 @@ }, { minWidth: '150', - width: '100', - prop: 'specification1', - label: '瑙勬牸', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'channel1', - label: '棰戦亾', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'insertionLoss1', - label: '鎻掑叆鎹熻��', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'returnLoss1', - label: '鍥炴尝鎹熻��', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'specification2', - label: '瑙勬牸', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'channel2', - label: '棰戦亾', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'insertionLoss2', - label: '鎻掑叆鎹熻��', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', - prop: 'returnLoss2', - label: '鍥炴尝鎹熻��', - sort: false, - isTrue: true, - isSearch: true - }, - { - minWidth: '150', - width: '100', prop: 'createTime', label: '鍒涘缓鏃堕棿', sort: true, @@ -197,7 +138,10 @@ } }, addOrUpdateVisible: false, - workshopList: [] + workshopList: [], + tableData: [ + ], + dialogShow: false } }, components: { @@ -215,8 +159,13 @@ }) const arr = [] arr.push({ + text: '璇︽儏', + type: 'text', + size: 'small', + fun: this.showExperimentalData + }) + arr.push({ text: '瀵煎嚭', - icon: 'el-icon-download', type: 'text', size: 'small', fun: this.downloadFile @@ -239,6 +188,19 @@ }) }, + // 灞曠ず瀹為獙鏁版嵁 + showExperimentalData(row) { + getLossRecords(row.id) + .then((res) => { + console.log('res', res) + this.tableData = res.data.data + this.dialogShow = true + }) + .error((err) => { + console.log('err', err) + }) + }, + handleSelectionChange(val) { this.multipleSelection = val } -- Gitblit v1.9.3