|
@@ -139,7 +139,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column v-if="singleReport == 1" label="报工重量" width="150" prop="feedQuantity">
|
|
|
|
|
|
|
+ <el-table-column v-if="singleReport == 1" label="报工重量" width="150" prop="reportWeight">
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
<div style="display: flex;align-items: center">
|
|
<div style="display: flex;align-items: center">
|
|
|
<span v-if="isDetails">{{ row.extInfo.reportWeight }}</span>
|
|
<span v-if="isDetails">{{ row.extInfo.reportWeight }}</span>
|
|
@@ -449,10 +449,10 @@ export default {
|
|
|
this.item.workReportInfo.notFormedNum = this.newList.filter(v => v.extInfo.isQualified !== 1).length;
|
|
this.item.workReportInfo.notFormedNum = this.newList.filter(v => v.extInfo.isQualified !== 1).length;
|
|
|
},
|
|
},
|
|
|
sumweight(arr) {
|
|
sumweight(arr) {
|
|
|
- console.log(arr, 666);
|
|
|
|
|
|
|
+ console.log(arr, 6666667777);
|
|
|
let formedWeight = 0;
|
|
let formedWeight = 0;
|
|
|
let noFormedWeight = 0;
|
|
let noFormedWeight = 0;
|
|
|
- arr.map(s => {
|
|
|
|
|
|
|
+ arr.map((s,i) => {
|
|
|
if (s.extInfo.reportWeight) {
|
|
if (s.extInfo.reportWeight) {
|
|
|
if (s.extInfo.isQualified == 1) {
|
|
if (s.extInfo.isQualified == 1) {
|
|
|
formedWeight += s.extInfo.reportWeight * 1;
|
|
formedWeight += s.extInfo.reportWeight * 1;
|
|
@@ -462,8 +462,9 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
s.extInfo.reportWeight = null;
|
|
s.extInfo.reportWeight = null;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.$set(this.list[i].extInfo,'reportWeight',s.extInfo.reportWeight)
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.item.workReportInfo.formedWeight = formedWeight;
|
|
this.item.workReportInfo.formedWeight = formedWeight;
|
|
|
this.item.workReportInfo.notFormedWeight = noFormedWeight;
|
|
this.item.workReportInfo.notFormedWeight = noFormedWeight;
|
|
|
},
|
|
},
|
|
@@ -479,8 +480,8 @@ export default {
|
|
|
let arr = JSON.parse(JSON.stringify(this.list));
|
|
let arr = JSON.parse(JSON.stringify(this.list));
|
|
|
this.sumweight(arr);
|
|
this.sumweight(arr);
|
|
|
this.sunTj();
|
|
this.sunTj();
|
|
|
- console.log('arr11111112222',arr)
|
|
|
|
|
- console.log('this.list33333',this.list)
|
|
|
|
|
|
|
+ // console.log('arr11111112222',arr)
|
|
|
|
|
+ // console.log('this.list33333',this.list)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// changeHeatNumber() {
|
|
// changeHeatNumber() {
|
|
@@ -522,9 +523,10 @@ export default {
|
|
|
this.$set(this.list[index].extInfo,'heatNumber',f.extInfo.heatNumber)
|
|
this.$set(this.list[index].extInfo,'heatNumber',f.extInfo.heatNumber)
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
} else if (this.deviceList.length == 1) {
|
|
} else if (this.deviceList.length == 1) {
|
|
|
- o['deviceId'] = this.deviceList[0].id;
|
|
|
|
|
|
|
+ o['deviceId'] = this.deviceList[0].id || f.instanceId;
|
|
|
console.log('111111',this.deviceList[0].id)
|
|
console.log('111111',this.deviceList[0].id)
|
|
|
// o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber;
|
|
// o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber;
|
|
|
|
|
+ // this.$set(this.list[index],'heatNumber',this.deviceList[0].extInfo.heatNumber)
|
|
|
this.$set(this.list[index].extInfo,'heatNumber',this.deviceList[0].extInfo.heatNumber)
|
|
this.$set(this.list[index].extInfo,'heatNumber',this.deviceList[0].extInfo.heatNumber)
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
}
|
|
}
|