|
|
@@ -123,7 +123,7 @@
|
|
|
总共{{temporaryCount}} {{objData.unit}} / {{this.temporaryNum}} {{unit}}
|
|
|
--打包成 1
|
|
|
<zxz-uni-data-select :localdata="unitList" v-model="packUnit" dataValue='Key'
|
|
|
- format='{Value}' dataKey="Key" :clear='false'></zxz-uni-data-select>
|
|
|
+ format='{Value}' dataKey="Key" :clear='false'></zxz-uni-data-select>
|
|
|
|
|
|
<view class="penalize" @click="handlePack">打包</view>
|
|
|
|
|
|
@@ -289,10 +289,10 @@
|
|
|
|
|
|
created() {
|
|
|
this.formedNumLast = this.objData.formedNumLast
|
|
|
-
|
|
|
+
|
|
|
this.byCode(),
|
|
|
|
|
|
- this.getPackingDetails()
|
|
|
+ this.getPackingDetails()
|
|
|
this.getPackingDetailsTwo()
|
|
|
},
|
|
|
|
|
|
@@ -348,7 +348,7 @@
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if (!this.formedNumLast) {
|
|
|
uni.showToast({
|
|
|
@@ -514,7 +514,7 @@
|
|
|
calculationSave() {
|
|
|
let count = this.splitList.filter(item => item.isChecked != 1).length;
|
|
|
|
|
|
- if (this.formData.wPackNum <= count) {
|
|
|
+ if (this.formData.wPackNum <= count && count != 0) {
|
|
|
for (let i = 0; i < this.formData.wPackNum; i++) {
|
|
|
this.splitList[i].check = 1
|
|
|
}
|
|
|
@@ -522,10 +522,19 @@
|
|
|
this.calculationClose()
|
|
|
|
|
|
} else {
|
|
|
+ if (count != 0) {
|
|
|
+ for (let i = 0; i < count; i++) {
|
|
|
+ this.splitList[i].check = 1
|
|
|
+ }
|
|
|
+ this.handleCheck(0, 0)
|
|
|
+ this.calculationClose()
|
|
|
+ }
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
|
title: '外包装数超出内包装条数'
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|