From c51e03fbf2f6633d8e88aeec9dcb8df13524df8f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 13 七月 2023 12:00:06 +0800
Subject: [PATCH] backup0713

---
 force-app/main/default/lwc/lexConsumable/lexConsumable.js |   47 ++++++++++++++++++++++++++++++-----------------
 1 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/force-app/main/default/lwc/lexConsumable/lexConsumable.js b/force-app/main/default/lwc/lexConsumable/lexConsumable.js
index 908f97e..9d361ec 100644
--- a/force-app/main/default/lwc/lexConsumable/lexConsumable.js
+++ b/force-app/main/default/lwc/lexConsumable/lexConsumable.js
@@ -207,6 +207,7 @@
       wrapText: true,
       hideDefaultActions: true,
       sortable: true
+      // initialWidth: 136
     });
     cols.push({
       label: "瑙勬牸",
@@ -221,28 +222,28 @@
       fieldName: "prodSFDAStatus",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 97
+      initialWidth: 84
     });
     cols.push({
       label: "娉ㄥ唽璇佺紪鐮佸彿",
       fieldName: "approbation_No",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 120
+      initialWidth: 104
     });
     cols.push({
       label: "娉ㄥ唽璇佹晥鏈�",
       fieldName: "expiration_Date",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 105
+      initialWidth: 95
     });
     cols.push({
       label: "绗�3鍒嗙被",
       fieldName: "prodCategory3",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 78,
+      initialWidth: 84,
       sortable: true
     });
     cols.push({
@@ -250,7 +251,7 @@
       fieldName: "prodCategory4",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 107,
+      initialWidth: 84,
       sortable: true
     });
     cols.push({
@@ -258,7 +259,7 @@
       fieldName: "prodCategory5",
       wrapText: true,
       hideDefaultActions: true,
-      initialWidth: 80,
+      initialWidth: 84,
       sortable: true
     });
     if (this.cansee) {
@@ -268,7 +269,7 @@
         typeAttributes: { minimumFractionDigits: 2 },
         fieldName: "prodIntraTradeList",
         hideDefaultActions: true,
-        initialWidth: 80
+        initialWidth: 78
       });
     }
     if (this.editAble) {
@@ -284,14 +285,14 @@
           valueType: "Number"
         },
         hideDefaultActions: true,
-        initialWidth: 80
+        initialWidth: 78
       });
     } else {
       cols.push({
         label: "閲囪喘鏁伴噺",
         fieldName: "consumableCount",
         hideDefaultActions: true,
-        initialWidth: 80,
+        initialWidth: 78,
         cellAttributes: { alignment: "right" }
       });
     }
@@ -299,20 +300,21 @@
       label: "鍦ㄥ簱鏁颁笅闄�",
       fieldName: "lowerlimit",
       hideDefaultActions: true,
-      initialWidth: 100,
+      initialWidth: 86,
       cellAttributes: { alignment: "right" }
     });
     cols.push({
       label: "鍦ㄥ簱鏁颁笂闄�",
       fieldName: "upperlimit",
       hideDefaultActions: true,
-      initialWidth: 100,
+      initialWidth: 86,
       cellAttributes: { alignment: "right" }
     });
     // cols.push({label:'鏈夋晥鏈熷簱瀛�(鐩�)',fieldName:'allnumber',hideDefaultActions: true,initialWidth:105,sortable: true});
     cols.push({
       label: "鏈夋晥鏈熷簱瀛�(鐩�)",
       type: "customInventoryColor",
+      fieldName: "allnumber",
       typeAttributes: {
         value: { fieldName: "allnumber" },
         upperlimit: { fieldName: "upperlimit" },
@@ -320,13 +322,14 @@
         boxPrice: "鐩�"
       },
       hideDefaultActions: true,
-      initialWidth: 126
+      initialWidth: 122,
+      sortable: true
     });
     cols.push({
       label: "鏈夋晥鏈熷簱瀛�(涓�)",
       fieldName: "allnumber_piece",
       hideDefaultActions: true,
-      initialWidth: 126,
+      initialWidth: 112,
       cellAttributes: { alignment: "right" }
     });
     return cols;
@@ -338,17 +341,27 @@
       label: "鏍囬",
       fieldName: "attUrl",
       type: "url",
-      typeAttributes: { label: { fieldName: "fileName" }, target: "_blank" },
+      typeAttributes: {
+        label: { fieldName: "fileName" },
+        target: "_blank"
+      },
       hideDefaultActions: true
     },
     {
       label: "鍒涘缓浜�",
       fieldName: "ownerUrl",
       type: "url",
-      typeAttributes: { label: { fieldName: "ownerName" }, target: "_blank" },
+      typeAttributes: {
+        label: { fieldName: "ownerName" },
+        target: "_blank"
+      },
       hideDefaultActions: true
     },
-    { label: "涓婁紶鏃ユ湡", fieldName: "updateDate", hideDefaultActions: true },
+    {
+      label: "涓婁紶鏃ユ湡",
+      fieldName: "updateDate",
+      hideDefaultActions: true
+    },
     {
       label: "",
       type: "tableCellIcon",
@@ -1218,7 +1231,7 @@
     this.showSpinner = true;
     var recordId = event.target.getAttribute("data-fileid");
     console.log("attid:" + recordId);
-    deleteAtt({ contentVersionId: recordId })
+    deleteAtt({ contentVersionId: recordId, cocId: this.esetId })
       .then((result) => {
         this.showSpinner = false;
         if (result.result == "Success") {

--
Gitblit v1.9.1