From 744f42c5496e656a1f9927740a3b37c0b97a6cba Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:34:12 +0800
Subject: [PATCH] lexcommunityupload0714

---
 force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js |   49 +++++++++++++++++++++++--------------------------
 1 files changed, 23 insertions(+), 26 deletions(-)

diff --git a/force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js b/force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js
index 76f7619..1936433 100644
--- a/force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js
+++ b/force-app/main/default/lwc/lexSummonsCreat/lexSummonsCreat.js
@@ -1,4 +1,4 @@
-import { LightningElement, wire, api, track } from "lwc"; save
+import { LightningElement, wire, api, track } from "lwc";
 import init from "@salesforce/apex/LexSummonsCreatController.init";
 import { ShowToastEvent } from "lightning/platformShowToastEvent";
 import searchConsumableorderdetails from "@salesforce/apex/LexSummonsCreatController.searchConsumableorderdetails";
@@ -87,7 +87,7 @@
             label: "娉ㄥ唽璇佺紪鐮佸彿",
             fieldName: "approbation_No",
             wrapText: true,
-            initialWidth: 130,
+            initialWidth: 105,
             hideDefaultActions: true,
         },
         {
@@ -185,14 +185,13 @@
             label: "娑堣�楀搧鍚嶇О",
             fieldName: "Name__c",
             hideDefaultActions: true,
-            initialWidth: 320,
             wrapText: true,
             sortable: true,
         },
         {
             label: "瑙勬牸",
             fieldName: "packinglist",
-            initialWidth: 80,
+            initialWidth: 50,
             cellAttributes: { alignment: "right" },
             hideDefaultActions: true,
             wrapText: true,
@@ -201,25 +200,26 @@
             label: "CFDA鐘舵��",
             fieldName: "SFDA_Status__c",
             hideDefaultActions: true,
+            initialWidth: 100,
             wrapText: true,
         },
         {
             label: "娉ㄥ唽璇佺紪鐮佸彿",
             fieldName: "approbation_No",
             hideDefaultActions: true,
-            initialWidth: 130,
+            initialWidth: 170,
             wrapText: true,
         },
         {
             label: "娉ㄥ唽璇佹晥鏈�",
             fieldName: "expiration_Date",
             hideDefaultActions: true,
+            initialWidth: 100,
             wrapText: true,
         },
         {
             label: "绗�3鍒嗙被",
             fieldName: "Category3__c",
-            initialWidth: 100,
             hideDefaultActions: true,
             sortable: true,
             wrapText: true,
@@ -227,7 +227,6 @@
         {
             label: "绗�4鍒嗙被",
             fieldName: "Category4__c",
-            initialWidth: 100,
             hideDefaultActions: true,
             sortable: true,
             wrapText: true,
@@ -235,7 +234,6 @@
         {
             label: "绗�5鍒嗙被",
             fieldName: "Category5__c",
-            initialWidth: 100,
             hideDefaultActions: true,
             sortable: true,
             wrapText: true,
@@ -250,15 +248,16 @@
         {
             label: "鍑鸿揣鏁伴噺",
             fieldName: "Shipment_Count__c",
+            initialWidth: 90,
             cellAttributes: { alignment: "right" },
             hideDefaultActions: true,
-            initialWidth: 100,
             wrapText: true,
         },
         {
             label: "鍑鸿揣鍗曚环(鍏�)",
             fieldName: "shippingUnitPrice",
             type: "number",
+            initialWidth: 100,
             typeAttributes: {
                 minimumFractionDigits: 2,
             },
@@ -339,7 +338,6 @@
             label: "娑堣�楀搧璁㈠崟",
             fieldName: "ConsumableorderminorUrl",
             hideDefaultActions: true,
-            initialWidth: 210,
             type: "url",
             typeAttributes: {
                 label: { fieldName: "Consumable_order_minor__c" },
@@ -351,13 +349,13 @@
             label: "娑堣�楀搧鏄庣粏2鍚嶇О",
             fieldName: "orderdetails2NameUrl",
             type: "url",
+            initialWidth: 150,
             typeAttributes: {
                 label: { fieldName: "orderdetails2Name" },
                 target: "_blank",
             },
             hideDefaultActions: true,
             wrapText: true,
-            initialWidth: 240
         },
         {
             label: "鍗曚綅",
@@ -369,6 +367,7 @@
         {
             label: "娑堣�楀搧鍚嶇О",
             fieldName: "ProdName",
+            initialWidth: 100,
             hideDefaultActions: true,
             wrapText: true,
         },
@@ -383,14 +382,13 @@
             fieldName: "Bar_Code__c",
             hideDefaultActions: true,
             wrapText: true,
-            initialWidth: 400
+            initialWidth: 380
         },
         {
             label: "浣跨敤鏈熼檺",
             fieldName: "Sterilization_limit__c",
             hideDefaultActions: true,
             wrapText: true,
-            initialWidth: 120
         },
         {
             label: "鍑鸿揣鏁伴噺",
@@ -407,7 +405,6 @@
             fieldName: "ConsumableorderminorUrl",
             hideDefaultActions: true,
             type: "url",
-            initialWidth: 210,
             typeAttributes: {
                 label: { fieldName: "Consumable_order_minor__c" },
                 target: "_blank",
@@ -418,8 +415,8 @@
             label: "娑堣�楀搧鏄庣粏2鍚嶇О",
             fieldName: "orderdetails2Name",
             hideDefaultActions: true,
+            initialWidth: 150,
             wrapText: true,
-            initialWidth: 240
         },
         {
             label: "娑堣�楀搧鍚嶇О",
@@ -439,14 +436,13 @@
             fieldName: "Bar_Code__c",
             hideDefaultActions: true,
             wrapText: true,
-            initialWidth: 400
+            initialWidth: 380
         },
         {
             label: "浣跨敤鏈熼檺",
             fieldName: "Sterilization_limit__c",
             hideDefaultActions: true,
             wrapText: true,
-            initialWidth: 120
         },
         {
             label: "閿欒鍘熷洜",
@@ -597,7 +593,7 @@
     defaultSortDirection = 'asc';
     sortDirection = 'asc';
     sortedBy;
-    @track pageSize = 10;
+    @track pageSize = 200;
     error;
     records;
     currentPageToken = 0;
@@ -607,7 +603,7 @@
     @track pageNumber = 1;
     @track paginationVisibility = false;
     @track totalPages = 1;
-    pageSizeOptions = [10, 25, 50, 100];
+    pageSizeOptions = [100, 200, 300];
     @track recordStart = 0;
     @track recordEnd = 0;
     //end
@@ -627,6 +623,7 @@
                 });
         }
     }
+
 
     //InvoiceProNotLabel    RrturnProLabel  InvoicedLabel
     @wire(getObjectInfo, { objectApiName: OPPORTUNITY_OBJECT })
@@ -849,8 +846,8 @@
                     this.cocLwc = r.entity.coc;
                     console.log("this.cocLwc = " + JSON.stringify(this.cocLwc));
                     var coc = r.entity.coc;
-                    this.accountValue = coc.Order_ForDealerText__c;
-                    this.ForDealerText = coc.Order_ForDealerText__c;
+                    this.accountValue = coc.Order_ForDealerText__c == null ? '' : coc.Order_ForDealerText__c;
+                    this.ForDealerText = coc.Order_ForDealerText__c == null ? '' : coc.Order_ForDealerText__c;
                     console.log('this.accountValue = ' + this.accountValue);
                     this.cocId = coc.Id;
                     console.log('cocId = ' + this.cocId);
@@ -965,7 +962,7 @@
                         label: this.InvoiceProNotLabel,
                         fieldName: "InvoiceProNot_count__c",
                         type: "number",
-                        initialWidth: 120,
+                        initialWidth: 105,
                         typeAttributes: {
                             minimumFractionDigits: 2,
                         },
@@ -974,15 +971,15 @@
                     let object2 = {
                         label: this.RrturnProLabel,
                         fieldName: "RrturnPro_count__c",
-                        initialWidth: 100,
                         cellAttributes: { alignment: "right" },
+                        initialWidth: 100,
                         hideDefaultActions: true,
                     };
                     let object3 = {
                         label: this.InvoicedLabel,
                         fieldName: "Invoiced_Procount__c",
-                        initialWidth: 100,
                         type: "number",
+                        initialWidth: 100,
                         typeAttributes: {
                             minimumFractionDigits: 2,
                         },
@@ -1045,9 +1042,9 @@
                 if (this.hasHosPro) {
                     let object1 = {
                         label: "鍖婚櫌鐗逛环",
+                        initialWidth: 80,
                         fieldName: "hospitalSpecialOffer",
                         type: 'boolean',
-                        initialWidth: 100,
                         hideDefaultActions: true,
                     };
                     this.columns.push(object1);
@@ -1458,7 +1455,7 @@
                         label: "鍖婚櫌鐗逛环",
                         fieldName: "hospitalSpecialOffer",
                         type: 'boolean',
-                        initialWidth: 100,
+                        initialWidth: 80,
                         hideDefaultActions: true,
                     };
                     this.columns.push(object1);

--
Gitblit v1.9.1