|
@@ -8,7 +8,7 @@
|
|
|
<view class="partList-list-box" v-for="item in partList" :key="item.id">
|
|
|
<view class="product flex align_center">
|
|
|
<view class="checkbox" v-if="model == 'checkbox'">
|
|
|
- <u-checkbox v-model="item.checked" :name="item.id" @change="checkChange" size="40" shape="circle"></u-checkbox>
|
|
|
+ <u-checkbox v-model="item.checked" :disabled="item.printQty==0" :name="item.id" @change="checkChange" size="40" shape="circle"></u-checkbox>
|
|
|
</view>
|
|
|
<view class="flex align_center flex_1">
|
|
|
<view class="pimgs" @click="checkChange({name:item.id})">
|
|
@@ -66,7 +66,7 @@
|
|
|
<!-- 有复选框 -->
|
|
|
<view v-if="model == 'checkbox'" class="ptools flex align_center justify_between">
|
|
|
<view></view>
|
|
|
- <view class="pcurnums flex align_center" v-if="pageType=='manualPrint'">
|
|
|
+ <view class="pcurnums flex align_center" v-if="pageType=='manualPrint'&&item.printQty">
|
|
|
<text>打印数量</text>
|
|
|
<view class="u-ninput">
|
|
|
<u-number-box color="#000" :input-height="60" bg-color="#fff" v-model="item.printQty" :min="1" :max="999999"></u-number-box>
|
|
@@ -137,7 +137,6 @@
|
|
|
this.totalNums = this.totalNums + item.qty
|
|
|
}else if(_this.pageType=='manualPrint'){ // 补货-手动打印
|
|
|
this.totalNums = this.totalNums + (item.billState == 'FINISH' ? item.putQty : item.qty)
|
|
|
- item.printQty = item.printQty ? item.printQty : 1
|
|
|
}else if(_this.pageType=='scanCodePrint'){ // 补货-扫码打印
|
|
|
this.totalNums = this.totalNums + (item.billState == 'FINISH' ? item.putQty : item.qty)
|
|
|
item.printQty = item.printQty ? item.printQty : 1
|
|
@@ -170,7 +169,7 @@
|
|
|
// 全选
|
|
|
allSelect(val){
|
|
|
this.partList.map(item => {
|
|
|
- item.checked = val
|
|
|
+ item.checked = val && !!item.printQty
|
|
|
})
|
|
|
this.partList.splice()
|
|
|
},
|
|
@@ -182,12 +181,12 @@
|
|
|
this.partList.splice()
|
|
|
}
|
|
|
// 判断是否全选
|
|
|
- const isAllNoChecked = this.partList.filter(item => !item.checked)
|
|
|
+ const isAllNoChecked = this.partList.filter(item => !item.checked && item.printQty)
|
|
|
this.$emit('allChecked',isAllNoChecked.length == 0)
|
|
|
},
|
|
|
// 获取所有选择的
|
|
|
getAllChecked(){
|
|
|
- return this.partList.filter(item => item.checked)
|
|
|
+ return this.partList.filter(item => item.checked && item.printQty)
|
|
|
},
|
|
|
// 获取所有数据
|
|
|
getAllData(){
|