|
@@ -575,13 +575,13 @@ export default {
|
|
|
let has = false;
|
|
let has = false;
|
|
|
for (let index = 0; index < list.length; index++) {
|
|
for (let index = 0; index < list.length; index++) {
|
|
|
const element = list[index];
|
|
const element = list[index];
|
|
|
|
|
+ if(Number(element.smallCount) > 0){
|
|
|
|
|
+ this.isSmallCount = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isSmallCount = false
|
|
|
|
|
+ }
|
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
|
has = true;
|
|
has = true;
|
|
|
- if(Number(element.smallCount) > 0){
|
|
|
|
|
- this.isSmallCount = true
|
|
|
|
|
- }else{
|
|
|
|
|
- this.isSmallCount = false
|
|
|
|
|
- }
|
|
|
|
|
if(this.offVerifyRepertory){//去除库存验证
|
|
if(this.offVerifyRepertory){//去除库存验证
|
|
|
if(this.isSmallCount){
|
|
if(this.isSmallCount){
|
|
|
list[index] = { ...element, smallCount: ++element.smallCount };
|
|
list[index] = { ...element, smallCount: ++element.smallCount };
|
|
@@ -689,13 +689,13 @@ export default {
|
|
|
let has = false;
|
|
let has = false;
|
|
|
for (let index = 0; index < list.length; index++) {
|
|
for (let index = 0; index < list.length; index++) {
|
|
|
let element = list[index];
|
|
let element = list[index];
|
|
|
|
|
+ if(Number(element.smallCount) > 0){
|
|
|
|
|
+ this.isSmallCount = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.isSmallCount = false
|
|
|
|
|
+ }
|
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
|
has = true;
|
|
has = true;
|
|
|
- if(Number(element.smallCount) > 0){
|
|
|
|
|
- this.isSmallCount = true
|
|
|
|
|
- }else{
|
|
|
|
|
- this.isSmallCount = false
|
|
|
|
|
- }
|
|
|
|
|
if (element.bigCount > 0) {
|
|
if (element.bigCount > 0) {
|
|
|
if (!this.isSmallCount) {
|
|
if (!this.isSmallCount) {
|
|
|
list[index] = {...element, bigCount: --element.bigCount};
|
|
list[index] = {...element, bigCount: --element.bigCount};
|