From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js b/force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js
index 711461c..d81b24d 100644
--- a/force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js
+++ b/force-app/main/default/lwc/lexOverdueStock/lexOverdueStock.js
@@ -163,15 +163,16 @@
     }
     //barcode褰曞叆
     barcodeEntrys(){
-      
+        this.showSpinner = true;
         this.showTable = false;
         console.log('code'+this.barcode);
         console.log(' this.accountName'+ this.accountName);
         console.log(' this.barcode'+ this.barcode);
-   
-
-        this.showSpinner = true;
-
+     
+        if(this.barcode == ''||this.barcode==null){
+          this.showMyToast('鑾峰彇澶辫触','璇疯緭鍏arCode鍙�','error');
+          this.showSpinner = false;
+        }
         barcodeEntry({
             accountNameLWC: this.accountName,
             agencyProTypeLWC: this.agencyProType,
@@ -243,16 +244,9 @@
   //淇濆瓨
   saveConfirm() {
     console.log('杩涘叆閿�瀛樼‘璁�');
-    debugger
-    var el = this.template.querySelector('c-lex-custom-lightning-datatable');
-    if(el == null){
-      //this.showMyToast('閿�瀛樺け璐�',result.msg,'error');
-      return
-    }
     this.showSpinner = true;
-    console.log('el = ' + el);
+    var el = this.template.querySelector('c-lex-custom-lightning-datatable');
     var selected = el.getSelectedRows();
-    console.log('selected');
     this.selectedData = selected;
     console.log('閫変腑鏁版嵁' + JSON.stringify(this.selectedData));
     console.log('this.overdueList'+this.overdueList);

--
Gitblit v1.9.1