Commit 025bd2a4 authored by honghy's avatar honghy Committed by wux

修改批量无需打包逻辑

parent 636ef969
......@@ -63,7 +63,7 @@
<view class="info-header pos">
<view>
<checkbox-group @change="checkClick(item)">
<checkbox :checked="item.checked" />
<checkbox :checked="item.checked" :disabled="item.disabled"/>
</checkbox-group>
</view>
<view class="header-title">{{$t('序号')}}: {{ index + 1 }}</view>
......@@ -393,6 +393,11 @@ export default {
var list = []
for(let a of orderItemVOList) {
a['checked'] = false
if(this.wareItem(a.orderItemId).packStatus != 1) {
a['disabled'] = true
} else {
a['disabled'] = false
}
list.push(a)
}
data.orderItemVOList = list
......@@ -481,7 +486,7 @@ export default {
} else {
// 判断单个是否是被选择的状态
const goods = this.detail.orderItemVOList.every(item => {
return item.checked === true
return item.checked === true && item.disabled !=true
})
if (goods) {
this.allChecked = true
......@@ -495,9 +500,11 @@ export default {
this.allChecked = !this.allChecked;
if (this.allChecked) {
this.detail.orderItemVOList.map(item => {
item.checked = true;
if (!this.selectedData.includes(item)) {
this.selectedData.push(item);
if(!item.disabled) {
item.checked = true;
if (!this.selectedData.includes(item)) {
this.selectedData.push(item);
}
}
});
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment