|
@@ -17,8 +17,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<view class="item rx-sc">
|
|
<view class="item rx-sc">
|
|
|
<view class="rx ww55 ">
|
|
<view class="rx ww55 ">
|
|
|
<view class="lable rx-cc">废品数量</view>
|
|
<view class="lable rx-cc">废品数量</view>
|
|
@@ -37,22 +35,20 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <view class="content_table" v-if='normalQuality.length > 0'>
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ <view class="lable rx-cc">废品总数</view>
|
|
|
|
|
+ <view class="content color157">
|
|
|
|
|
+ {{ wasteCount }} {{ unit }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -78,11 +74,18 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
-
|
|
|
|
|
|
|
+ wasteCount: 0, //废品总数
|
|
|
|
|
+ unit: null,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
-
|
|
|
|
|
|
|
+ this.wasteCount = 0
|
|
|
|
|
+ if(this.normalQuality && this.normalQuality.length > 0) {
|
|
|
|
|
+ this.normalQuality.forEach(e => {
|
|
|
|
|
+ this.unit = e.unit
|
|
|
|
|
+ this.wasteCount = Number(this.wasteCount) + Number(e.quantity)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
@@ -247,4 +250,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .color157{
|
|
|
|
|
+ color: #157a2c;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|