buli
2023-07-07 f08088add834965ea9ee07dbd35804507e47f5e7
force-app/main/default/lwc/lexConsumable/lexConsumable.js
@@ -206,7 +206,8 @@
      fieldName: "prodName",
      wrapText: true,
      hideDefaultActions: true,
      sortable: true
      sortable: true,
      initialWidth: 150
    });
    cols.push({
      label: "规格",
@@ -313,6 +314,7 @@
    cols.push({
      label: "有效期库存(盒)",
      type: "customInventoryColor",
      fieldName: "allnumber",
      typeAttributes: {
        value: { fieldName: "allnumber" },
        upperlimit: { fieldName: "upperlimit" },
@@ -320,7 +322,8 @@
        boxPrice: "盒"
      },
      hideDefaultActions: true,
      initialWidth: 126
      initialWidth: 146,
      sortable: true
    });
    cols.push({
      label: "有效期库存(个)",
@@ -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") {