| | |
| | | import { LightningElement, wire, api, track } from "lwc"; |
| | | save; |
| | | import init from "@salesforce/apex/LexSummonsCreatController.init"; |
| | | import { ShowToastEvent } from "lightning/platformShowToastEvent"; |
| | | import searchConsumableorderdetails from "@salesforce/apex/LexSummonsCreatController.searchConsumableorderdetails"; |
| | |
| | | label: "消耗品名称", |
| | | fieldName: "Name__c", |
| | | hideDefaultActions: true, |
| | | initialWidth: 175, |
| | | wrapText: true, |
| | | sortable: true |
| | | }, |
| | |
| | | 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: "出货数量", |
| | | fieldName: "Shipment_Count__c", |
| | | initialWidth: 90, |
| | | cellAttributes: { alignment: "right" }, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | |
| | | label: "出货单价(元)", |
| | | fieldName: "shippingUnitPrice", |
| | | type: "number", |
| | | initialWidth: 100, |
| | | typeAttributes: { |
| | | minimumFractionDigits: 2 |
| | | }, |
| | |
| | | label: this.InvoiceProNotLabel, |
| | | fieldName: "InvoiceProNot_count__c", |
| | | type: "number", |
| | | initialWidth: 105, |
| | | typeAttributes: { |
| | | minimumFractionDigits: 2 |
| | | }, |
| | |
| | | label: this.RrturnProLabel, |
| | | fieldName: "RrturnPro_count__c", |
| | | cellAttributes: { alignment: "right" }, |
| | | initialWidth: 100, |
| | | hideDefaultActions: true |
| | | }; |
| | | let object3 = { |
| | | label: this.InvoicedLabel, |
| | | fieldName: "Invoiced_Procount__c", |
| | | type: "number", |
| | | initialWidth: 100, |
| | | typeAttributes: { |
| | | minimumFractionDigits: 2 |
| | | }, |
| | |
| | | if (this.hasHosPro) { |
| | | let object1 = { |
| | | label: "医院特价", |
| | | initialWidth: 80, |
| | | fieldName: "hospitalSpecialOffer", |
| | | type: "boolean", |
| | | hideDefaultActions: true |
| | |
| | | label: "医院特价", |
| | | fieldName: "hospitalSpecialOffer", |
| | | type: "boolean", |
| | | initialWidth: 100, |
| | | initialWidth: 80, |
| | | hideDefaultActions: true |
| | | }; |
| | | this.columns.push(object1); |