|
@@ -9,7 +9,7 @@
|
|
|
|
|
|
|
|
<view class="content_table">
|
|
<view class="content_table">
|
|
|
<view class="item">
|
|
<view class="item">
|
|
|
- <view class="lable rx-cc">包装总数</view>
|
|
|
|
|
|
|
+ <view class="lable rx-cc">包装总数 </view>
|
|
|
<view class="content content_num">
|
|
<view class="content content_num">
|
|
|
<input class="uni-input" v-model="formedNumLast" type='digit'></input>
|
|
<input class="uni-input" v-model="formedNumLast" type='digit'></input>
|
|
|
<view class="unit">{{objData.unit}}</view>
|
|
<view class="unit">{{objData.unit}}</view>
|
|
@@ -50,7 +50,7 @@
|
|
|
<view class="item ww30">数量</view>
|
|
<view class="item ww30">数量</view>
|
|
|
<view class="item ww50">条码</view>
|
|
<view class="item ww50">条码</view>
|
|
|
<view class="item ww10 jsColor" @click="calculation()" v-if="clientEnvironmentId != 3">计算</view>
|
|
<view class="item ww10 jsColor" @click="calculation()" v-if="clientEnvironmentId != 3">计算</view>
|
|
|
- <view class="item ww10" v-if="clientEnvironmentId == 3"></view>
|
|
|
|
|
|
|
+ <view class="item ww10" v-if="clientEnvironmentId == 3"></view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="table">
|
|
<view class="table">
|
|
@@ -190,7 +190,8 @@
|
|
|
<u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
|
|
<u-form labelPosition="left" :model="formData" labelWidth="180" labelAlign="left" class="baseForm">
|
|
|
|
|
|
|
|
<u-form-item label="外包装数:" class="required-form" borderBottom prop="assetType">
|
|
<u-form-item label="外包装数:" class="required-form" borderBottom prop="assetType">
|
|
|
- <input class="uni-input" v-model="formData.wPackNum" style="width: 280rpx;" placeholder="外包装数"></input> / {{splitList[0].unit}}
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="formData.wPackNum" style="width: 280rpx;"
|
|
|
|
|
+ placeholder="外包装数"></input> / {{splitList[0].unit}}
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
|
|
|
|
|
</u-form>
|
|
</u-form>
|
|
@@ -228,7 +229,6 @@
|
|
|
import {
|
|
import {
|
|
|
packingReport,
|
|
packingReport,
|
|
|
getPackingReport,
|
|
getPackingReport,
|
|
|
-
|
|
|
|
|
packingReportRepeat,
|
|
packingReportRepeat,
|
|
|
getPackingReportRepeat
|
|
getPackingReportRepeat
|
|
|
} from '@/api/pda/workOrder.js'
|
|
} from '@/api/pda/workOrder.js'
|
|
@@ -277,7 +277,7 @@
|
|
|
formData: {
|
|
formData: {
|
|
|
wPackNum: null,
|
|
wPackNum: null,
|
|
|
},
|
|
},
|
|
|
- clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId,
|
|
|
|
|
|
|
+ clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -289,9 +289,10 @@
|
|
|
|
|
|
|
|
created() {
|
|
created() {
|
|
|
this.formedNumLast = this.objData.formedNumLast
|
|
this.formedNumLast = this.objData.formedNumLast
|
|
|
|
|
+
|
|
|
this.byCode(),
|
|
this.byCode(),
|
|
|
|
|
|
|
|
- this.getPackingDetails()
|
|
|
|
|
|
|
+ this.getPackingDetails()
|
|
|
this.getPackingDetailsTwo()
|
|
this.getPackingDetailsTwo()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -327,13 +328,11 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getPackingReport(param).then(res => {
|
|
getPackingReport(param).then(res => {
|
|
|
-
|
|
|
|
|
this.splitList = res.detailList
|
|
this.splitList = res.detailList
|
|
|
this.formedNumLast = res.totalQuantity
|
|
this.formedNumLast = res.totalQuantity
|
|
|
this.quantity = res.quantity
|
|
this.quantity = res.quantity
|
|
|
this.unit = res.unit
|
|
this.unit = res.unit
|
|
|
|
|
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -349,7 +348,7 @@
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if (!this.formedNumLast) {
|
|
if (!this.formedNumLast) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -376,7 +375,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let param = {
|
|
let param = {
|
|
|
- totalQuantity: this.objData.formedNumLast,
|
|
|
|
|
|
|
+ totalQuantity: this.formedNumLast,
|
|
|
quantity: this.quantity,
|
|
quantity: this.quantity,
|
|
|
unit: this.unit,
|
|
unit: this.unit,
|
|
|
workOrderId: this.workOrderId,
|
|
workOrderId: this.workOrderId,
|
|
@@ -449,7 +448,7 @@
|
|
|
|
|
|
|
|
getPackingDetailsTwo() {
|
|
getPackingDetailsTwo() {
|
|
|
let param = {
|
|
let param = {
|
|
|
- totalQuantity: this.objData.formedNumLast,
|
|
|
|
|
|
|
+ totalQuantity: this.formedNumLast,
|
|
|
quantity: this.quantity,
|
|
quantity: this.quantity,
|
|
|
unit: this.unit,
|
|
unit: this.unit,
|
|
|
workOrderId: this.workOrderId,
|
|
workOrderId: this.workOrderId,
|
|
@@ -463,8 +462,16 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
handlePack() {
|
|
handlePack() {
|
|
|
|
|
+ let _arr = []
|
|
|
|
|
+ _arr = this.temporaryList.map(m => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ ...m,
|
|
|
|
|
+ isChecked: 1
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
let param = {
|
|
let param = {
|
|
|
- detailList: this.temporaryList,
|
|
|
|
|
|
|
+ detailList: _arr,
|
|
|
quantity: this.temporaryCount,
|
|
quantity: this.temporaryCount,
|
|
|
totalQuantity: this.formedNumLast,
|
|
totalQuantity: this.formedNumLast,
|
|
|
unit: this.packUnit,
|
|
unit: this.packUnit,
|
|
@@ -505,7 +512,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
calculationSave() {
|
|
calculationSave() {
|
|
|
- let count = this.splitList.filter(item => item.check != 1).length;
|
|
|
|
|
|
|
+ let count = this.splitList.filter(item => item.isChecked != 1).length;
|
|
|
|
|
|
|
|
if (this.formData.wPackNum <= count) {
|
|
if (this.formData.wPackNum <= count) {
|
|
|
for (let i = 0; i < this.formData.wPackNum; i++) {
|
|
for (let i = 0; i < this.formData.wPackNum; i++) {
|