| | |
| | | fieldName: "productPackingListManual", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 120, |
| | | initialWidth: 55, |
| | | cellAttributes: { alignment: "right" } |
| | | }, |
| | | { |
| | |
| | | fieldName: "reportProductApprobation", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 180 |
| | | initialWidth: 190 |
| | | }, |
| | | { |
| | | label: "注册证效期", |
| | | fieldName: "ReportProductExpirationDate", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 100 |
| | | initialWidth: 110 |
| | | }, |
| | | { |
| | | label: "BarCode", |
| | | fieldName: "barCode", |
| | | hideDefaultActions: true, |
| | | wrap: true, |
| | | wrapText: true, |
| | | initialWidth: 400 |
| | | } |
| | | ]; |
| | |
| | | label: "出库单", |
| | | fieldName: "orderUrl", |
| | | type: "url", |
| | | typeAttributes: { label: { fieldName: "orderNo" }, target: "_blank" }, |
| | | typeAttributes: { |
| | | label: { fieldName: "orderNo" }, |
| | | target: "_blank" |
| | | }, |
| | | hideDefaultActions: true, |
| | | wrapText: true |
| | | wrapText: true, |
| | | initialWidth: 180 |
| | | }); |
| | | // cols.push({label:'出库单' , fieldName:'orderNo', hideDefaultActions: true}); |
| | | cols.push({ |
| | |
| | | label: "BarCode", |
| | | fieldName: "barCode", |
| | | hideDefaultActions: true, |
| | | wrap: true, |
| | | wrapText: true, |
| | | initialWidth: 230 |
| | | }); |
| | | cols.push({ |
| | |
| | | }, |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 100 |
| | | initialWidth: 150 |
| | | }); |
| | | // cols.push({label:'返品原因' , fieldName:'returnReason', hideDefaultActions: true}); |
| | | return cols; |
| | |
| | | fieldName: "barCodeNo", |
| | | hideDefaultActions: true, |
| | | wrapText: true, |
| | | initialWidth: 400 |
| | | initialWidth: 500 |
| | | }); |
| | | cols.push({ |
| | | label: "使用期限", |
| | |
| | | result.consumableorderdetailsRecords; |
| | | var consumableorderdetailsRecordsview = []; |
| | | for (var i in this.consumableorderdetailsRecords) { |
| | | this.consumableorderdetailsRecords[i]["dataType"] = |
| | | "DataileRecords"; |
| | | consumableorderdetailsRecordsview.push( |
| | | this.consumableorderdetailsRecords[i] |
| | | ); |
| | | } |
| | | for (var i in this.consumableInventory) { |
| | | this.consumableInventory[i]["dataType"] = "Inventory"; |
| | | consumableorderdetailsRecordsview.push(this.consumableInventory[i]); |
| | | } |
| | | this.consumableorderdetailsRecordsview = |
| | |
| | | this.consumableorderdetailsRecordsview[i].Prod.Id; |
| | | this.consumableorderdetailsRecordsview[i]["prodName"] = |
| | | this.consumableorderdetailsRecordsview[i].Prod.Name__c; |
| | | } |
| | | if ( |
| | | this.consumableorderdetailsRecordsview[i]["dataType"] == |
| | | "Inventory" |
| | | ) { |
| | | this.consumableorderdetailsRecordsview[i]["barCode"] = |
| | | this.consumableorderdetailsRecordsview[i].barCodeNo; |
| | | } else if (this.consumableorderdetailsRecordsview[i].esd != null) { |
| | | this.consumableorderdetailsRecordsview[i]["barCode"] = |
| | | this.consumableorderdetailsRecordsview[i].esd.Bar_Code__c; |
| | | } |
| | | if (this.consumableorderdetailsRecordsview[i].esd != null) { |
| | | this.consumableorderdetailsRecordsview[i][ |
| | |
| | | this.consumableorderdetailsRecordsview[ |
| | | i |
| | | ].esd.Report_Product_Approbation__c; |
| | | this.consumableorderdetailsRecordsview[i]["barCode"] = |
| | | this.consumableorderdetailsRecordsview[i].esd.Bar_Code__c; |
| | | } |
| | | } |
| | | console.log("len1:" + this.consumableorderdetailsRecords.length); |
| | |
| | | this.showGoodsofReturnList = result.showGoodsofReturnList; |
| | | var showGoodsofReturnListView = []; |
| | | for (var i in this.showGoodsofReturnList) { |
| | | this.showGoodsofReturnList[i]["dataType"] = "GoodsoOfReturn"; |
| | | showGoodsofReturnListView.push(this.showGoodsofReturnList[i]); |
| | | } |
| | | for (var i in this.consumableInventory) { |
| | | this.consumableInventory[i]["dataType"] = "Inventory"; |
| | | showGoodsofReturnListView.push(this.consumableInventory[i]); |
| | | } |
| | | this.showGoodsofReturnListView = showGoodsofReturnListView; |
| | |
| | | if (this.showGoodsofReturnListView[i].Prod != null) { |
| | | this.showGoodsofReturnListView[i]["prodName"] = |
| | | this.showGoodsofReturnListView[i].Prod.Name__c; |
| | | } |
| | | if (this.showGoodsofReturnListView[i]["dataType"] == "Inventory") { |
| | | this.showGoodsofReturnListView[i]["barCode"] = |
| | | this.showGoodsofReturnListView[i].barCodeNo; |
| | | } else if (this.showGoodsofReturnListView[i].esd != null) { |
| | | this.showGoodsofReturnListView[i]["barCode"] = |
| | | this.showGoodsofReturnListView[i].esd.Bar_Code__c; |
| | | } |
| | | if (this.showGoodsofReturnListView[i].esd != null) { |
| | | if ( |
| | |
| | | this.showGoodsofReturnListView[i].esd.HospItal_Name__c; |
| | | this.showGoodsofReturnListView[i]["orderDealer"] = |
| | | this.showGoodsofReturnListView[i].esd.Order_Dealer_Info__c; |
| | | this.showGoodsofReturnListView[i]["barCode"] = |
| | | this.showGoodsofReturnListView[i].esd.Bar_Code__c; |
| | | this.showGoodsofReturnListView[i]["sterilizationLimit"] = |
| | | this.showGoodsofReturnListView[i].esd.Sterilization_limit__c; |
| | | this.showGoodsofReturnListView[i]["boxPiece"] = |
| | |
| | | JSON.stringify(this.consumableorderdetailsRecordserror) |
| | | ); |
| | | this.showSpinner = false; |
| | | this.showMyToast("获取成功", "", "success"); |
| | | if (this.errorMsgs.length < 1) { |
| | | this.showMyToast("获取成功", "", "success"); |
| | | } |
| | | } else { |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | |
| | | }; |
| | | this[NavigationMixin.Navigate](config); |
| | | } else { |
| | | console.log("error1:" + result.errorMsg); |
| | | this.showSpinner = false; |
| | | this.warningMsgs = result.warningMsgList; |
| | | this.errorMsgs = result.errorMsgList; |
| | | console.log("error1:" + result.errorMsg); |
| | | if (result.errorMsg.includes("无法保存此记录")) { |
| | | result.errorMsg = "无法保存记录"; |
| | | } |
| | | this.showMyToast("登录返品失败", result.errorMsg, "error"); |
| | | } |
| | | }) |