|
|
@@ -47,22 +47,22 @@
|
|
|
:revolvingDiskList="item.revolvingDiskList"></revolvingDiskBom>
|
|
|
|
|
|
<packingBom v-if='item.packingList.length != 0' :list='item.packingList'></packingBom>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
<view class='flex_btn' @click="openDetails(item.workOrderId)">出库单</view>
|
|
|
|
|
|
<view class="operate_box ">
|
|
|
-
|
|
|
- <u-button size="small" class="u-reset-button" type="success"
|
|
|
- @click="handAdd(item.workOrderId)">手动添加</u-button>
|
|
|
-
|
|
|
-
|
|
|
- <u-button size="small" class="u-reset-button" type="success"
|
|
|
- @click="scanIt(item.workOrderId)">扫一扫</u-button>
|
|
|
-
|
|
|
+
|
|
|
+ <u-button size="small" class="u-reset-button" type="success"
|
|
|
+ @click="handAdd(item.workOrderId)">手动添加</u-button>
|
|
|
+
|
|
|
+
|
|
|
+ <u-button size="small" class="u-reset-button" type="success"
|
|
|
+ @click="scanIt(item.workOrderId)">扫一扫</u-button>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-list>
|
|
|
@@ -86,7 +86,7 @@
|
|
|
import semiProductBom from './components/semiProductBom'
|
|
|
import aridRegion from './components/aridRegion'
|
|
|
import paramBom from './components/paramBom.vue'
|
|
|
- import turnoverBom from '../jobBooking/components/turnoverBom.vue'
|
|
|
+ import turnoverBom from './components/turnoverBom.vue'
|
|
|
import packingBom from './components/packingBom.vue'
|
|
|
import productsBom from './components/productsBom.vue'
|
|
|
import palletBom from './components/palletBom'
|
|
|
@@ -165,7 +165,8 @@
|
|
|
let palletList = [] // 舟皿
|
|
|
let revolvingDiskList = [] // 周转盘
|
|
|
let semiProductList = [] // 半成品
|
|
|
-
|
|
|
+ let turnover = [] //周转车
|
|
|
+
|
|
|
|
|
|
selectList.forEach(f => {
|
|
|
if (f.rootCategoryLevelId == 4) {
|
|
|
@@ -178,10 +179,10 @@
|
|
|
} else if (f.rootCategoryLevelId == 1) {
|
|
|
instanceList = instanceList.concat(f)
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- else if (f.rootCategoryLevelId == 11) {
|
|
|
+ } else if (f.rootCategoryLevelId == 11) {
|
|
|
aridRegionList = aridRegionList.concat(f)
|
|
|
+ } else if (f.rootCategoryLevelId == 7) {
|
|
|
+ turnover = turnover.concat(f)
|
|
|
} else if (f.rootCategoryLevelId == 8) {
|
|
|
palletList = palletList.concat(f)
|
|
|
} else if (f.rootCategoryLevelId == 26) {
|
|
|
@@ -200,6 +201,7 @@
|
|
|
this.$set(m, 'instanceList', instanceList)
|
|
|
this.$set(m, 'aridRegionList', aridRegionList)
|
|
|
this.$set(m, 'equipmentList', equipmentList)
|
|
|
+ this.$set(m, 'turnover', turnover)
|
|
|
this.$set(m, 'palletList', palletList)
|
|
|
this.$set(m, 'revolvingDiskList', revolvingDiskList)
|
|
|
this.$set(m, 'semiProductList', semiProductList)
|
|
|
@@ -225,9 +227,7 @@
|
|
|
|
|
|
save() {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
this.List.forEach(f => {
|
|
|
f.instanceList.forEach(e => {
|
|
|
if (Object.prototype.hasOwnProperty.call(e, 'type')) {
|
|
|
@@ -265,7 +265,7 @@
|
|
|
m.palletList = [] // 舟皿
|
|
|
m.revolvingDiskList = [] // 周转盘
|
|
|
m.semiProductList = [] //半成品
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if (m.pickOutInList.length > 0) {
|
|
|
m.pickOutInList.forEach(f => {
|
|
|
@@ -283,7 +283,8 @@
|
|
|
m.palletList.push(f)
|
|
|
} else if (f.rootCategoryLevelId == 26) {
|
|
|
m.revolvingDiskList.push(f)
|
|
|
- } else if (f.rootCategoryLevelId == 23 || f.rootCategoryLevelId == 2) {
|
|
|
+ } else if (f.rootCategoryLevelId == 23 || f.rootCategoryLevelId ==
|
|
|
+ 2) {
|
|
|
m.semiProductList.push(f)
|
|
|
}
|
|
|
|
|
|
@@ -330,9 +331,9 @@
|
|
|
// this.scanData('SCJHGD20240117002', type, id)
|
|
|
// return false
|
|
|
|
|
|
-
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: (res) => {
|
|
|
+ success: (res) => {
|
|
|
this.scanData(res.result, type, id)
|
|
|
}
|
|
|
})
|
|
|
@@ -371,9 +372,9 @@
|
|
|
scanIt(id) {
|
|
|
console.log(id)
|
|
|
|
|
|
-
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: (res) => {
|
|
|
+ success: (res) => {
|
|
|
this.scanItData(res.result, id)
|
|
|
console.log(res.result, id)
|
|
|
}
|
|
|
@@ -382,7 +383,7 @@
|
|
|
|
|
|
scanItData(result, id) {
|
|
|
scanLedger(result).then(res => {
|
|
|
- console.log(res)
|
|
|
+
|
|
|
let _arr = []
|
|
|
if (res.length == 1 && res[0].rootCategoryLevelId == 4) { // 设备
|
|
|
_arr = this.List
|
|
|
@@ -456,6 +457,16 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
return false
|
|
|
+ } else {
|
|
|
+ _arr = this.List
|
|
|
+ _arr.forEach((e, index) => {
|
|
|
+ if (e.workOrderId == id) {
|
|
|
+ _arr[index].turnover = _arr[index].turnover.concat(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.List = _arr
|
|
|
+
|
|
|
+ this.$forceUpdate()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -466,10 +477,10 @@
|
|
|
|
|
|
// 全部扫一扫
|
|
|
handlScanCode() {
|
|
|
-
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: (res) => {
|
|
|
- this.scanItAllData(res.result)
|
|
|
+ success: (res) => {
|
|
|
+ this.scanItAllData(res.result)
|
|
|
|
|
|
}
|
|
|
})
|
|
|
@@ -581,13 +592,13 @@
|
|
|
}
|
|
|
|
|
|
.operate_box {
|
|
|
-
|
|
|
+
|
|
|
position: fixed;
|
|
|
right: 0;
|
|
|
top: 400rpx;
|
|
|
|
|
|
/deep/ .u-button {
|
|
|
- margin-top: 20rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
width: 150rpx;
|
|
|
border-radius: 22rpx 0 0 22rpx;
|
|
|
opacity: 0.6;
|