|
|
@@ -12,11 +12,10 @@
|
|
|
|
|
|
<deviceBom v-if='item.equipmentList.length != 0' :workOrderId='item.workOrderId'
|
|
|
:list='item.equipmentList' @scanIt='scanIt'></deviceBom>
|
|
|
-
|
|
|
- <turnoverBom v-if='item.turnover.length != 0' :list='item.turnover' :wordItem='item' pattern='job'
|
|
|
- >
|
|
|
- </turnoverBom>
|
|
|
-
|
|
|
+
|
|
|
+ <turnoverBom v-if='item.turnover.length != 0' :list='item.turnover' :wordItem='item' pattern='job'>
|
|
|
+ </turnoverBom>
|
|
|
+
|
|
|
|
|
|
|
|
|
<view class="operate_box rx-sc">
|
|
|
@@ -67,7 +66,7 @@
|
|
|
import inspectionBom from '../components/inspectionBom.vue'
|
|
|
import deviceBom from '../../feeding/components/deviceBom.vue'
|
|
|
import diagramLast from '../components/diagramLast.vue'
|
|
|
-
|
|
|
+
|
|
|
import turnoverBom from '../../sample/components/turnoverBom.vue'
|
|
|
|
|
|
export default {
|
|
|
@@ -304,7 +303,21 @@
|
|
|
|
|
|
this.List[0].normalQuality.inspectionList = this.inspectionList
|
|
|
|
|
|
- batchSave(this.List).then(res => {
|
|
|
+
|
|
|
+ let _arr = JSON.parse(JSON.stringify(this.List))
|
|
|
+ _arr.forEach(e => {
|
|
|
+ e.turnover.forEach((o) => {
|
|
|
+ o.extInfo.positionList.forEach(f => {
|
|
|
+ f.quantity =f.quantity - Number(f.sampleNum)
|
|
|
+ f.sampleNum = 0
|
|
|
+
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ batchSave(_arr).then(res => {
|
|
|
uni.navigateBack()
|
|
|
})
|
|
|
},
|