buli
2023-07-13 a046b3fe914e46147334d33bbdcb21e2759a3c43
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: "错误原因",
@@ -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);