From d324588faa5120c95321425a06de683e8aae445b Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 05 六月 2023 14:37:22 +0800
Subject: [PATCH] LEX Community NewComponent

---
 force-app/main/default/classes/LexInventoryController.cls |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/force-app/main/default/classes/LexInventoryController.cls b/force-app/main/default/classes/LexInventoryController.cls
index 7a07d2a..b5ae8ef 100644
--- a/force-app/main/default/classes/LexInventoryController.cls
+++ b/force-app/main/default/classes/LexInventoryController.cls
@@ -20,7 +20,7 @@
     public static  Boolean done { get; set; }
     /*****************鐢婚潰琛ㄧずBean******************/
     //椤甸潰涓绘暟鎹樉绀虹敤
-    private static List<ConsumableorderdetailsInfo> consumableorderdetailsRecords;
+    public static List<ConsumableorderdetailsInfo> consumableorderdetailsRecords { get; set; }
     //鐩樼偣鍒扮殑浜у搧
     public static  List<Consumable_order_details2__c> reSet = new List<Consumable_order_details2__c>();
     public static  List<Consumable_order_details2__c> showcod2nid = new List<Consumable_order_details2__c>();
@@ -183,6 +183,7 @@
                             AND Product_Type__c like : sqlagencyProType
                             AND Arrive_Owner_Work_Location__c =: userWorkLocation
                             AND  Dealer_Info_text__c = :accountName];
+                            System.debug('ProductCount_Res==>'+ProductCount_Res);
         //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'ProductCount_Res  ' + ProductCount_Res.size()));
         for(Integer i = 0 ; i< ProductCount_Res.size();i++){
             //鐒跺悗寰幆CountDel鍋欱ox鍜宲iece2涓猰ap
@@ -371,6 +372,7 @@
                             AND Arrive_Owner_Work_Location__c =: userWorkLocation
                             AND  Dealer_Info_text__c = :accountName ];
         reFindProduct.clear();
+        System.debug('ProductCount_Res==>'+ProductCount_Res);
         Map<String,ConsumableorderdetailsInfo> barCodeListAdjustMap = new  Map<String,ConsumableorderdetailsInfo>();
         //barCodeListLoseMap.clear();
         Set<String> carCodeListLose = new Set<String>();
@@ -421,6 +423,7 @@
                         AND  Bar_Code__c in :carCodeListLose
                         AND Dealer_Info_text__c = :accountName
                         ORDER BY Name ];
+                        System.debug('reSet1==>'+reSet1);
             Map<String,Consumable_order_details2__c> needreturnMap = new Map<String,Consumable_order_details2__c>();
             for(Consumable_order_details2__c cod2 :reSet1){
                 needreturnMap.put(cod2.Bar_Code__c,cod2);
@@ -560,17 +563,18 @@
             //end
             data.put('codPageRecords',JSON.serialize(codPageRecords));
             data.put('consumableorderdetailsRecords',JSON.serialize(consumableorderdetailsRecords));
-            data.put('consumableorderdetailsRecords',JSON.serialize(consumableorderdetailsRecords));
+            data.put('consumableorderdetailsRecordsview',JSON.serialize(consumableorderdetailsRecordsview));
             data.put('pandiandetailsMap',pandiandetailsMap);
             System.debug('iSinventory===>'+iSinventory);
             System.debug('codPageRecords===>'+codPageRecords);
             data.put('iSinventory',JSON.serialize(iSinventory));
-            data.put('reSet1',JSON.serialize(reSet1));
+            data.put('reSet1',reSet1);
+            System.debug('reSet1===>'+reSet1);
             res.code = 200;
             res.status = 'Success1';
-            // res.msg = 'barcode涓虹┖';
+         
             return res;
-            // return;
+          
         }
 
 

--
Gitblit v1.9.1