From c791c8ae15ad3cf6390771a4d2f0e4258350bb05 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Thu, 23 Oct 2025 17:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E8=AE=B0=E5=BD=95=E8=A1=A8?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/repair/testRecord/index.vue | 52 +++++++++++++------ .../equipment/equipmentRecord/index.vue | 4 +- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/src/views/material/repair/testRecord/index.vue b/src/views/material/repair/testRecord/index.vue index b5742843..e0b2f26d 100644 --- a/src/views/material/repair/testRecord/index.vue +++ b/src/views/material/repair/testRecord/index.vue @@ -119,11 +119,11 @@ -
+
{{this.printInfo.typeName }}
-
+
@@ -136,23 +136,23 @@
+
其他
+
+ {{otherData}} +
+
+
空载试验
- - 维修提交合格( - - √ - ) - 维修提交报废( - - √ + 合格√ + 不合格( + √
-
标识等
+
标识是否齐全
二维码√ 铭牌√ @@ -165,7 +165,7 @@
额定负载
-
试验负载(T/MPa)
+
试验负载(t/MPa)
持荷时间(分/秒)
@@ -184,7 +184,7 @@
{{ formatDate(printInfo.createTime) }}
{{ this.printInfo.repairer }}
-
{{ this.printInfo.userName }}
+
{{ this.printInfo.repairer }}
@@ -256,6 +256,7 @@ import { } from '@/api/back/index.js' import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; +import printJS from 'print-js' export default { name: 'TestRecord', dicts: [], @@ -302,6 +303,8 @@ export default { }, dialogVisible: false, // 弹框显示 printTableData: [], + printOtherData: [], + otherData: "", //其他 printInfo:{}, testResult1: '', testResult2: '', @@ -452,18 +455,20 @@ export default { async handleRecord(row){ this.dialogVisible = true; this.printTableData = []; + this.printOtherData = []; + this.otherData = ""; let param = { id:row.id, } const res = await getTestRecordDetails(param) this.printInfo = res.data[0] if(this.printInfo && this.printInfo.ratedLoad) { - this.testResult1 = this.printInfo.ratedLoad + '(T/MPa)' + this.testResult1 = this.printInfo.ratedLoad + '(t/MPa)' } else { this.testResult1 = '' } if(this.printInfo && this.printInfo.testLoad) { - this.testResult2 = this.printInfo.testLoad + '(T/MPa)' + this.testResult2 = this.printInfo.testLoad + '(t/MPa)' } else { this.testResult2 = '' } @@ -474,8 +479,19 @@ export default { } if(res.data[0].partTypeList&& res.data[0].partTypeList.length != 0){ res.data[0].partTypeList.forEach((e) => { - this.printTableData.push({'partName':e.partName,'status':'不合格更换'}) + if(e.isSure == 1 && e.isShow == 1){ + this.printTableData.push({'partName':e.partName,'status':'更换'}) + }else if(e.isSure == 1 && e.isShow == 0){ + this.printTableData.push({'partName':e.partName,'status':'合格'}) + }else if(e.isSure == 0 && e.isShow == 0){ + this.printOtherData.push({'partName':e.partName,'status':''}) + this.otherData = this.otherData + e.partName + '、' + } }) + // 去除最后一个逗号 + if(this.otherData.length > 0){ + this.otherData = this.otherData.substring(0, this.otherData.length - 1) + } } }, @@ -499,6 +515,8 @@ export default { this.dialogVisible = false; // 关闭弹框 this.printInfo = {}; // 清空数据 this.printTableData = []; // 清空表格数据 + this.printOtherData = []; // 清空表格数据 + this.otherData = ""; // 清空表格数据 this.testResult1 = ''; this.testResult2 = ''; this.testResult3 = ''; diff --git a/src/views/materialsStation/equipment/equipmentRecord/index.vue b/src/views/materialsStation/equipment/equipmentRecord/index.vue index 44370967..f73f3e6a 100644 --- a/src/views/materialsStation/equipment/equipmentRecord/index.vue +++ b/src/views/materialsStation/equipment/equipmentRecord/index.vue @@ -204,10 +204,10 @@
投入费用(万元)
-
+