|
@@ -89,7 +89,16 @@ export default {
|
|
|
//选择商品总数
|
|
//选择商品总数
|
|
|
allCount() {
|
|
allCount() {
|
|
|
// console.log(444444, this.selectList);
|
|
// console.log(444444, this.selectList);
|
|
|
- return this.selectList.length;
|
|
|
|
|
|
|
+ let bigLength = 0;
|
|
|
|
|
+ let smallLength = 0;
|
|
|
|
|
+ if (this.selectList) {
|
|
|
|
|
+ for (const item of this.selectList) {
|
|
|
|
|
+ bigLength += item.bigCount
|
|
|
|
|
+ smallLength += item.smallCount
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return {bigLength:bigLength,smallLength:smallLength,};
|
|
|
|
|
+ // return this.selectList.length;
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 当前选中商品列表中是否有没有库存的商品
|
|
* 当前选中商品列表中是否有没有库存的商品
|
|
@@ -242,7 +251,7 @@ export default {
|
|
|
const element = list[index];
|
|
const element = list[index];
|
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
|
has = true;
|
|
has = true;
|
|
|
- if(this.isPanDian){//盘点页面没有库存验证
|
|
|
|
|
|
|
+ if(this.offVerifyRepertory){//盘点页面没有库存验证
|
|
|
list[index] = { ...element, bigCount: ++element.bigCount };
|
|
list[index] = { ...element, bigCount: ++element.bigCount };
|
|
|
}else{
|
|
}else{
|
|
|
if (this.isLimit) {
|
|
if (this.isLimit) {
|
|
@@ -299,7 +308,7 @@ export default {
|
|
|
if (info.bigNum && info.bigNum > 0) {
|
|
if (info.bigNum && info.bigNum > 0) {
|
|
|
list.push(params);
|
|
list.push(params);
|
|
|
} else {
|
|
} else {
|
|
|
- if(this.isPanDian){//盘点页面没有库存验证
|
|
|
|
|
|
|
+ if(this.offVerifyRepertory){//盘点页面没有库存验证
|
|
|
list.push(params);
|
|
list.push(params);
|
|
|
}else{
|
|
}else{
|
|
|
this.$msg("库存不足");
|
|
this.$msg("库存不足");
|