|
@@ -15,7 +15,8 @@
|
|
|
:list='item.equipmentList' @scanIt='scanIt'></deviceBom>
|
|
:list='item.equipmentList' @scanIt='scanIt'></deviceBom>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <productsBom v-if="item.product != null && item.product != '{}'" :productsObj="item.product"></productsBom>
|
|
|
|
|
|
|
+ <productsBom v-if="item.product != null && item.product != '{}'" :productsObj="item.product">
|
|
|
|
|
+ </productsBom>
|
|
|
|
|
|
|
|
<modelBom v-if='item.modelList.length != 0' :workOrderId='item.workOrderId' :list='item.modelList'
|
|
<modelBom v-if='item.modelList.length != 0' :workOrderId='item.workOrderId' :list='item.modelList'
|
|
|
@scanIt='scanIt'>
|
|
@scanIt='scanIt'>
|
|
@@ -34,12 +35,12 @@
|
|
|
<packingBom v-if='item.packingList.length != 0' :list='item.packingList'></packingBom>
|
|
<packingBom v-if='item.packingList.length != 0' :list='item.packingList'></packingBom>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class='flex_btn' @click="openDetails(item.workOrderId)">出库单</view>
|
|
|
|
|
|
|
+ <view class='flex_btn' @click="openDetails(item.workOrderId)">出库单</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="operate_box rx-sc">
|
|
<view class="operate_box rx-sc">
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<u-button size="small" class="u-reset-button" type="success"
|
|
<u-button size="small" class="u-reset-button" type="success"
|
|
|
@click="handAdd(item.workOrderId)">手动添加</u-button>
|
|
@click="handAdd(item.workOrderId)">手动添加</u-button>
|
|
@@ -172,6 +173,17 @@
|
|
|
scrolltolower() {},
|
|
scrolltolower() {},
|
|
|
|
|
|
|
|
save() {
|
|
save() {
|
|
|
|
|
+
|
|
|
|
|
+ this.List.forEach(f => {
|
|
|
|
|
+ f.instanceList.forEach(e => {
|
|
|
|
|
+ if (Object.prototype.hasOwnProperty.call(e, 'type')) {
|
|
|
|
|
+ e.extInfo['type'] = e.type
|
|
|
|
|
+ }
|
|
|
|
|
+ e.extInfo['isConsumable'] = e.isConsumable
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
batchSave(this.List).then(res => {
|
|
batchSave(this.List).then(res => {
|
|
@@ -219,11 +231,11 @@
|
|
|
m.quality == '' ? m.quality = {} : ''
|
|
m.quality == '' ? m.quality = {} : ''
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(!Object.prototype.hasOwnProperty.call(m, 'product')) {
|
|
|
|
|
- m.product = '{}'
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- console.log(m)
|
|
|
|
|
|
|
+ if (!Object.prototype.hasOwnProperty.call(m, 'product')) {
|
|
|
|
|
+ m.product = '{}'
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ console.log(m)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -283,7 +295,7 @@
|
|
|
|
|
|
|
|
this.List = _arr
|
|
this.List = _arr
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
})
|
|
@@ -445,9 +457,9 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
openDetails(id) {
|
|
openDetails(id) {
|
|
|
const storageKey = Date.now() + "";
|
|
const storageKey = Date.now() + "";
|
|
|
uni.setStorageSync(storageKey, this.List || []);
|
|
uni.setStorageSync(storageKey, this.List || []);
|
|
@@ -511,13 +523,13 @@
|
|
|
width: 160rpx;
|
|
width: 160rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
.flex_btn {
|
|
.flex_btn {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
right: 0;
|
|
right: 0;
|
|
|
bottom: 160rpx;
|
|
bottom: 160rpx;
|
|
|
width: 140rpx;
|
|
width: 140rpx;
|