|
|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <semiProductBom :list="item.semiProductList2"></semiProductBom>
|
|
|
+ <semiProductBom :list="[...item.semiProductList2, ...item.productList2, ...item.junkProductList2]"></semiProductBom>
|
|
|
|
|
|
|
|
|
<view style="height: 80rpx;"></view>
|
|
|
@@ -176,13 +176,14 @@
|
|
|
let palletList2 = []
|
|
|
let packingList2 = [] // 包装
|
|
|
let semiProductList2 = [] //半成品
|
|
|
+ let productList2 = [] // 产品
|
|
|
+ let junkProductList2 = [] //废品
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectList.forEach(f => {
|
|
|
- if (f.rootCategoryLevelId != 5 && f.rootCategoryLevelId != 8 && f
|
|
|
- .rootCategoryLevelId != 13 && f.rootCategoryLevelId != 23) {
|
|
|
+ if (![5,8,13,23,9 ,28].includes(f.rootCategoryLevelId)) {
|
|
|
f.automatic = 1
|
|
|
instanceList2 = instanceList2.concat(f)
|
|
|
} else if (f.rootCategoryLevelId == 5) { // 模具
|
|
|
@@ -197,7 +198,14 @@
|
|
|
} else if(f.rootCategoryLevelId == 23) {
|
|
|
f.automatic = 1
|
|
|
semiProductList2 = semiProductList2.concat(f)
|
|
|
+ } else if(f.rootCategoryLevelId == 9) {
|
|
|
+ f.automatic = 1
|
|
|
+ productList2 = productList2.concat(f)
|
|
|
+ } else if(f.rootCategoryLevelId == 28) {
|
|
|
+ f.automatic = 1
|
|
|
+ junkProductList2 = junkProductList2.concat(f)
|
|
|
}
|
|
|
+
|
|
|
})
|
|
|
|
|
|
this.$set(m, 'instanceList2', instanceList2)
|
|
|
@@ -205,6 +213,8 @@
|
|
|
this.$set(m, 'palletList2', palletList2)
|
|
|
this.$set(m, 'packingList2', packingList2)
|
|
|
this.$set(m, 'semiProductList2', semiProductList2)
|
|
|
+ this.$set(m, 'productList2', productList2)
|
|
|
+ this.$set(m, 'junkProductList2', junkProductList2)
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -230,7 +240,7 @@
|
|
|
let bomList = m.bomList.filter(f => f.checked)
|
|
|
m['bomDetailDTOSList'] = [...bomList, ...m.modelList, ...m.palletList]
|
|
|
}
|
|
|
- m.instanceList = [...m.instanceList2, ...m.modelList2, ...m.palletList2, ...m.packingList2, ...m.semiProductList2]
|
|
|
+ m.instanceList = [...m.instanceList2, ...m.modelList2, ...m.palletList2, ...m.packingList2, ...m.semiProductList2, ...m.productList2, ...m.junkProductList2]
|
|
|
|
|
|
return {
|
|
|
...m
|
|
|
@@ -252,7 +262,7 @@
|
|
|
ids: this.idsList,
|
|
|
taskId: this.taskId
|
|
|
}).then(res => {
|
|
|
- console.log(2,res)
|
|
|
+
|
|
|
|
|
|
this.List = res.map(m => {
|
|
|
m.workOrderId = m.id
|
|
|
@@ -290,6 +300,8 @@
|
|
|
m['palletList2'] = []
|
|
|
m['packingList2'] = []
|
|
|
m['semiProductList2'] = []
|
|
|
+ m['productList2'] = []
|
|
|
+ m['junkProductList2'] = []
|
|
|
|
|
|
delete m.id
|
|
|
return {
|
|
|
@@ -345,8 +357,7 @@
|
|
|
|
|
|
addPicking(id, item) {
|
|
|
const storageKey = Date.now() + "";
|
|
|
- console.log(item)
|
|
|
- let arr = [...item.instanceList2, ...item.modelList2, ...item.palletList2, ...item.packingList2]
|
|
|
+ let arr = [...item.instanceList2, ...item.modelList2, ...item.palletList2, ...item.packingList2, ...item.semiProductList2, ...item.productList2, ...item.junkProductList2]
|
|
|
uni.setStorageSync(storageKey, arr);
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`
|