|
@@ -152,7 +152,7 @@ export default {
|
|
|
allChecked: false,
|
|
|
keyword: '',//搜索
|
|
|
queryParam: { // 查询条件
|
|
|
- shelfSn:this.shelfSn,
|
|
|
+ shelfSn:undefined,
|
|
|
productCode: undefined,
|
|
|
productName: undefined,
|
|
|
unsalableDaysBegin: undefined,
|
|
@@ -165,6 +165,7 @@ export default {
|
|
|
this.theme = getApp().globalData.theme;
|
|
|
this.shelfSn = options.shelfSn;
|
|
|
this.shelfName = options.shelfName;
|
|
|
+ this.queryParam.shelfSn = options.shelfSn
|
|
|
let ajaxData = {
|
|
|
shelfSn: options.shelfSn
|
|
|
};
|
|
@@ -196,21 +197,13 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
checkGroupChange(e){
|
|
|
- let newArr=[];
|
|
|
- e.forEach(item=>{
|
|
|
- this.recallBillList.map(info =>{
|
|
|
- if(item == info.id) {
|
|
|
- newArr.push(info);
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- this.chooseArr = newArr;
|
|
|
let flag = this.recallBillList.every(con => con.isChecked )
|
|
|
if(flag){
|
|
|
this.allChecked = true
|
|
|
}else{
|
|
|
this.allChecked = false
|
|
|
}
|
|
|
+ this.calculateTypeTotal()
|
|
|
this.calculateTotal()
|
|
|
},
|
|
|
// 全选
|
|
@@ -219,15 +212,20 @@ export default {
|
|
|
this.recallBillList.map(item=>{
|
|
|
item.isChecked = true;
|
|
|
})
|
|
|
- this.chooseArr = this.recallBillList
|
|
|
+
|
|
|
}else{
|
|
|
this.recallBillList.map(item=>{
|
|
|
item.isChecked = false;
|
|
|
})
|
|
|
- this.chooseArr = []
|
|
|
- this.$refs.detailPopup.clearAllList();
|
|
|
}
|
|
|
this.calculateTotal()
|
|
|
+ this.calculateTypeTotal()
|
|
|
+ },
|
|
|
+ // 计算选中总款数
|
|
|
+ calculateTypeTotal(){
|
|
|
+ this.chooseArr = this.recallBillList.filter(item=>{
|
|
|
+ return item.isChecked
|
|
|
+ })
|
|
|
},
|
|
|
// 计算选中总件数
|
|
|
calculateTotal(){
|
|
@@ -344,6 +342,7 @@ export default {
|
|
|
}else{
|
|
|
this.queryParam.queryWord = data.scanValue;
|
|
|
}
|
|
|
+ this.queryParam.shelfSn = this.shelfSn
|
|
|
this.loadData(this.queryParam);
|
|
|
},
|
|
|
addBackOrder(){
|