|
@@ -84,6 +84,8 @@
|
|
|
@hendDel='hendDel'>
|
|
@hendDel='hendDel'>
|
|
|
</boatBom>
|
|
</boatBom>
|
|
|
|
|
|
|
|
|
|
+ <packingBom :list='item.packingList2'></packingBom>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<view class='flex_btn' v-if='isPick' @click="openDetails">已有领料单</view>
|
|
<view class='flex_btn' v-if='isPick' @click="openDetails">已有领料单</view>
|
|
|
|
|
|
|
@@ -109,6 +111,7 @@
|
|
|
import instanceBom from './components/instanceBom.vue'
|
|
import instanceBom from './components/instanceBom.vue'
|
|
|
import modelBom from './components/modelBom.vue'
|
|
import modelBom from './components/modelBom.vue'
|
|
|
import boatBom from './components/boatBom.vue'
|
|
import boatBom from './components/boatBom.vue'
|
|
|
|
|
+ import packingBom from './components/packingBom'
|
|
|
import {
|
|
import {
|
|
|
workorderList
|
|
workorderList
|
|
|
} from '@/api/pda/workOrder.js'
|
|
} from '@/api/pda/workOrder.js'
|
|
@@ -122,7 +125,8 @@
|
|
|
components: {
|
|
components: {
|
|
|
instanceBom,
|
|
instanceBom,
|
|
|
modelBom,
|
|
modelBom,
|
|
|
- boatBom
|
|
|
|
|
|
|
+ boatBom,
|
|
|
|
|
+ packingBom
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -147,11 +151,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getList()
|
|
this.getList()
|
|
|
-
|
|
|
|
|
- if(this.idsList.length == 1) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (this.idsList.length == 1) {
|
|
|
this.getPick()
|
|
this.getPick()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
@@ -163,10 +167,12 @@
|
|
|
let instanceList2 = [] // 投料
|
|
let instanceList2 = [] // 投料
|
|
|
let modelList2 = [] // 模具
|
|
let modelList2 = [] // 模具
|
|
|
let palletList2 = []
|
|
let palletList2 = []
|
|
|
|
|
+ let packingList2 = [] // 包装
|
|
|
|
|
|
|
|
|
|
|
|
|
selectList.forEach(f => {
|
|
selectList.forEach(f => {
|
|
|
- if (f.rootCategoryLevelId != 5 && f.rootCategoryLevelId != 8) { // 投料
|
|
|
|
|
|
|
+ if (f.rootCategoryLevelId != 5 && f.rootCategoryLevelId != 8 && f
|
|
|
|
|
+ .rootCategoryLevelId != 13) {
|
|
|
f.automatic = 1
|
|
f.automatic = 1
|
|
|
instanceList2 = instanceList2.concat(f)
|
|
instanceList2 = instanceList2.concat(f)
|
|
|
} else if (f.rootCategoryLevelId == 5) { // 模具
|
|
} else if (f.rootCategoryLevelId == 5) { // 模具
|
|
@@ -175,12 +181,16 @@
|
|
|
} else if (f.rootCategoryLevelId == 8) { // 舟皿
|
|
} else if (f.rootCategoryLevelId == 8) { // 舟皿
|
|
|
f.automatic = 1
|
|
f.automatic = 1
|
|
|
palletList2 = palletList2.concat(f)
|
|
palletList2 = palletList2.concat(f)
|
|
|
|
|
+ } else if (f.rootCategoryLevelId == 13) {
|
|
|
|
|
+ f.automatic = 1
|
|
|
|
|
+ packingList2 = packingList2.concat(f)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
this.$set(m, 'instanceList2', instanceList2)
|
|
this.$set(m, 'instanceList2', instanceList2)
|
|
|
this.$set(m, 'modelList2', modelList2)
|
|
this.$set(m, 'modelList2', modelList2)
|
|
|
this.$set(m, 'palletList2', palletList2)
|
|
this.$set(m, 'palletList2', palletList2)
|
|
|
|
|
+ this.$set(m, 'packingList2', packingList2)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -204,7 +214,7 @@
|
|
|
let bomList = m.bomList.filter(f => f.checked)
|
|
let bomList = m.bomList.filter(f => f.checked)
|
|
|
m['bomDetailDTOSList'] = [...bomList, ...m.modelList, ...m.palletList]
|
|
m['bomDetailDTOSList'] = [...bomList, ...m.modelList, ...m.palletList]
|
|
|
}
|
|
}
|
|
|
- m.instanceList = [...m.instanceList2, ...m.modelList2, ...m.palletList2]
|
|
|
|
|
|
|
+ m.instanceList = [...m.instanceList2, ...m.modelList2, ...m.palletList2, ...m.packingList2]
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
...m
|
|
...m
|
|
@@ -257,9 +267,11 @@
|
|
|
m['palletList'] = palletList
|
|
m['palletList'] = palletList
|
|
|
m['bomList'] = bomList
|
|
m['bomList'] = bomList
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ m['modelList2'] = []
|
|
|
m['instanceList2'] = []
|
|
m['instanceList2'] = []
|
|
|
m['palletList2'] = []
|
|
m['palletList2'] = []
|
|
|
- m['modelList2'] = []
|
|
|
|
|
|
|
+ m['packingList2'] = []
|
|
|
|
|
|
|
|
delete m.id
|
|
delete m.id
|
|
|
return {
|
|
return {
|
|
@@ -309,32 +321,32 @@
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addPicking(id, item) {
|
|
addPicking(id, item) {
|
|
|
const storageKey = Date.now() + "";
|
|
const storageKey = Date.now() + "";
|
|
|
console.log(item)
|
|
console.log(item)
|
|
|
- let arr = [...item.instanceList2, ...item.modelList2, ...item.palletList2]
|
|
|
|
|
|
|
+ let arr = [...item.instanceList2, ...item.modelList2, ...item.palletList2, ...item.packingList2]
|
|
|
uni.setStorageSync(storageKey, arr);
|
|
uni.setStorageSync(storageKey, arr);
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`
|
|
url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
getPick() {
|
|
getPick() {
|
|
|
pickDetails(this.idsList).then(res => {
|
|
pickDetails(this.idsList).then(res => {
|
|
|
-
|
|
|
|
|
- if(res && res.length > 0) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (res && res.length > 0) {
|
|
|
this.isPick = true
|
|
this.isPick = true
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- })
|
|
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
openDetails() {
|
|
openDetails() {
|
|
|
- let url = `/pages/pda/picking/bill/index?id=${this.idsList[0]}`
|
|
|
|
|
|
|
+ let url = `/pages/pda/picking/bill/index?id=${this.idsList[0]}`
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url
|
|
url
|
|
|
})
|
|
})
|