buli
2023-07-14 5b5c1e16deaa3a9d6d0ed1ffca390655ed103df7
force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js
@@ -164,6 +164,7 @@
      }
    }).catch((error) => {
      console.log('error = ' + JSON.stringify(error));
      this.showSpinner = false;
    });
  }
  //barcode录入
@@ -183,18 +184,8 @@
        if (this.data[i].prodid + this.data[i]["boxPiece"] == selectedRows[j].prodid + selectedRows[j]["boxPiece"]) {
          this.data[i]["check"] = true;
        }
        // console.log('this.data[i].ProdId+this.data[i]["boxPiece"]'+this.data[i].ProdId+this.data[i]["boxPiece"]);
        console.log('selectedRows[j].prodid+this.data[i]["boxPiece"]' + selectedRows[j].prodid + selectedRows[j]["boxPiece"]);
      }
      console.log('data===>'+  JSON.stringify(this.data));
    }
    // this.selectedRows = [];
    // if(this.barcode == ''||this.barcode==null){
    //   this.showMyToast('获取失败','请输入BarCode号','error');
    //   this.showSpinner = false;
    // }
    barcodeEntry({
      accountNameLWC: this.accountName,
      agencyProTypeLWC: this.agencyProType,
@@ -230,7 +221,6 @@
          }
        }
        this.showSpinner = false;
        // this.showTables = true;
        this.showTable = true;
      } else {
        if (result.status == 'Success1') {
@@ -267,6 +257,7 @@
          this.showMyToast(result.msg,'','error');
          this.showSpinner = false;
          this.showTable = true;
        }
        // this.showMyToast('获取失败', result.msg, 'error');
@@ -274,6 +265,7 @@
      }
    }).catch((error) => {
      this.showSpinner = false;
      console.log('error = ' + JSON.stringify(error));
    });
@@ -309,16 +301,8 @@
            if (this.data[i].prodid+this.data[i]["boxPiece"] == selectedRows[j].prodid+ selectedRows[j]["boxPiece"]) {
               this.data[i]["check"] = true;
            }
            // console.log('this.data[i].ProdId+this.data[i]["boxPiece"]'+this.data[i].ProdId+this.data[i]["boxPiece"]);
            console.log('selectedRows[j].prodid+this.data[i]["boxPiece"]'+selectedRows[j].prodid+selectedRows[j]["boxPiece"]);
         }
      }
    // var el = this.template.querySelector('c-lex-custom-lightning-datatable');
    // var selected = el.getSelectedRows();
    // this.selectedData = selected;
    // console.log('选中数据' + JSON.stringify(this.selectedData));
    // console.log('this.overdueList' + this.overdueList);
    save({
      iSinventory: this.iSinventory,
      saveCodPageRecords: JSON.stringify(this.data),
@@ -340,6 +324,7 @@
      } else {
        this.showMyToast('销存失败', result.msg, 'error');
        this.showSpinner = false;
      }
    })
      .catch((error) => {