|
@@ -13,6 +13,8 @@
|
|
|
|
|
|
|
|
<modelBom v-if='item.modelList.length != 0' :workOrderId='item.workOrderId' :list='item.modelList' @scanIt='scanIt'>
|
|
<modelBom v-if='item.modelList.length != 0' :workOrderId='item.workOrderId' :list='item.modelList' @scanIt='scanIt'>
|
|
|
</modelBom>
|
|
</modelBom>
|
|
|
|
|
+
|
|
|
|
|
+ <instanceBom v-if='item.instanceList.length != 0' :workOrderId='item.workOrderId' :list='item.instanceList'></instanceBom>
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="operate_box rx-sc">
|
|
<view class="operate_box rx-sc">
|
|
@@ -40,6 +42,7 @@
|
|
|
import workOrderBom from './components/workOrderBom.vue'
|
|
import workOrderBom from './components/workOrderBom.vue'
|
|
|
import deviceBom from './components/deviceBom.vue'
|
|
import deviceBom from './components/deviceBom.vue'
|
|
|
import modelBom from './components/modelBom.vue'
|
|
import modelBom from './components/modelBom.vue'
|
|
|
|
|
+ import instanceBom from './components/instanceBom.vue'
|
|
|
import {
|
|
import {
|
|
|
workorderList,
|
|
workorderList,
|
|
|
getByCode,
|
|
getByCode,
|
|
@@ -56,7 +59,8 @@
|
|
|
components: {
|
|
components: {
|
|
|
workOrderBom,
|
|
workOrderBom,
|
|
|
deviceBom,
|
|
deviceBom,
|
|
|
- modelBom
|
|
|
|
|
|
|
+ modelBom,
|
|
|
|
|
+ instanceBom
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -196,7 +200,7 @@
|
|
|
|
|
|
|
|
scanItData(result, id) {
|
|
scanItData(result, id) {
|
|
|
scanLedger(result).then(res => {
|
|
scanLedger(result).then(res => {
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+
|
|
|
let _arr = []
|
|
let _arr = []
|
|
|
if (res.length == 1 && res[0].rootCategoryLevelId == 4) { // 设备
|
|
if (res.length == 1 && res[0].rootCategoryLevelId == 4) { // 设备
|
|
|
_arr = this.List
|
|
_arr = this.List
|
|
@@ -209,6 +213,7 @@
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
} else if (res.length >= 1 && res[0].rootCategoryLevelId == 5) {
|
|
} else if (res.length >= 1 && res[0].rootCategoryLevelId == 5) {
|
|
|
|
|
+
|
|
|
_arr = this.List
|
|
_arr = this.List
|
|
|
_arr.forEach((e, index) => {
|
|
_arr.forEach((e, index) => {
|
|
|
if (e.workOrderId == id) {
|
|
if (e.workOrderId == id) {
|
|
@@ -216,6 +221,7 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.List = _arr
|
|
this.List = _arr
|
|
|
|
|
+ console.log(this.List)
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
}
|
|
}
|