-
标识等
+
标识是否齐全
二维码(
)
铭牌(
)
@@ -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 @@
投入费用(万元)