From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/classes/LexSaleOrderController.cls | 68 ++++++++++++++++++---------------
1 files changed, 37 insertions(+), 31 deletions(-)
diff --git a/force-app/main/default/classes/LexSaleOrderController.cls b/force-app/main/default/classes/LexSaleOrderController.cls
index ccc9d78..b81004a 100644
--- a/force-app/main/default/classes/LexSaleOrderController.cls
+++ b/force-app/main/default/classes/LexSaleOrderController.cls
@@ -180,13 +180,13 @@
if (coc.Arrive_Order__c != null) {
// ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,'鏃犻渶鍒拌揣纭锛岃鐩存帴鍑哄簱銆�'));
// return;
- return new ResponseBodyLWC('Error', 500, '鏃犻渶鍒拌揣纭锛岃鐩存帴鍑哄簱銆�', '');
+ return new ResponseBodyLWC('Error', 500, '鏃犻渶鍒拌揣纭锛岃鐩存帴鍑哄簱', '');
}
//鍒ゆ柇barcode鏄惁涓虹┖
if (barcode == null || barcode == '') {
// ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,'璇疯緭BarCode鍙枫��'));
// return;
- return new ResponseBodyLWC('Error', 500, '璇疯緭BarCode鍙枫��', '');
+ return new ResponseBodyLWC('Error', 500, '璇疯緭BarCode鍙�', '');
}
list<String> exitlist = new List<String>();
list<String> notexitlist = new List<String>();
@@ -617,6 +617,7 @@
Send_Date__c,
Consumable_order_minor__r.Name,
Consumable_order_minor__c,
+ Consumable_order_minor__r.Arrive_Order__c,
Intra_Trade_List_RMB__c,
Asset_Model_No__c,
Isoverdue__c,
@@ -828,30 +829,30 @@
// 鍑鸿揣
@AuraEnabled
public static ResponseBodyLWC ProdElivery(
- String ESetId,
+ String ESetIdLwc,
Consumable_order__c cocLwc,
String barcodeLwc,
- String accountName,
- String userWorkLocation,
+ String accountNameLwc,
+ String userWorkLocationLwc,
String consumableorderdetailsRecordsLwc,
- List<Consumable_orderdetails__c> orderdetails,
- Map<String, Decimal> orderpriceMap,
- Map<String, Decimal> orderagencypriceMap
+ List<Consumable_orderdetails__c> orderdetailsLwc,
+ Map<String, Decimal> orderpriceMapLwc,
+ Map<String, Decimal> orderagencypriceMapLwc
) {
ResponseBodyLWC res = new ResponseBodyLWC();
Map<String, object> data = new Map<String, object>();
res.entity = data;
- ESetId = ESetId;
+ ESetId = ESetIdLwc;
coc = cocLwc;
barcode = barcodeLwc;
- accountName = accountName;
- userWorkLocation = userWorkLocation;
+ accountName = accountNameLwc;
+ userWorkLocation = userWorkLocationLwc;
consumableorderdetailsRecords = (List<ConsumableorderdetailsInfo>) JSON.deserialize(
consumableorderdetailsRecordsLwc,
List<ConsumableorderdetailsInfo>.class
);
- orderdetails = orderdetails;
- orderpriceMap = orderpriceMap;
+ orderdetails = orderdetailsLwc;
+ orderpriceMap = orderpriceMapLwc;
orderagencypriceMap = orderagencypriceMap;
BarcodeCntMap = new Map<String, Integer>();
if (coc.Arrive_Order__r.IsShipment__c == true) {
@@ -1009,35 +1010,42 @@
// 閿�鍞�
@AuraEnabled
public static ResponseBodyLWC ProSale(
- String ESetId,
+ String ESetIdLwc,
Consumable_order__c cocLwc,
String barcodeLwc,
- String accountName,
- String userWorkLocation,
+ String accountNameLwc,
+ String userWorkLocationLwc,
String consumableorderdetailsRecordsLwc,
- List<Consumable_orderdetails__c> orderdetails,
- Map<String, Decimal> orderpriceMap,
- Map<String, Decimal> orderagencypriceMap
+ List<Consumable_orderdetails__c> orderdetailsLwc,
+ Map<String, Decimal> orderpriceMapLwc,
+ Map<String, Decimal> orderagencypriceMapLwc
) {
System.debug('enter ProSale');
ResponseBodyLWC res = new ResponseBodyLWC();
Map<String, object> data = new Map<String, object>();
res.entity = data;
- ESetId = ESetId;
+ ESetId = ESetIdLwc;
coc = cocLwc;
barcode = barcodeLwc;
- accountName = accountName;
- userWorkLocation = userWorkLocation;
+ accountName = accountNameLwc;
+ userWorkLocation = userWorkLocationLwc;
consumableorderdetailsRecords = (List<ConsumableorderdetailsInfo>) JSON.deserialize(
consumableorderdetailsRecordsLwc,
List<ConsumableorderdetailsInfo>.class
);
- orderdetails = orderdetails;
- orderpriceMap = orderpriceMap;
- orderagencypriceMap = orderagencypriceMap;
+ orderdetails = orderdetailsLwc;
+ orderpriceMap = orderpriceMapLwc;
+ orderagencypriceMap = orderagencypriceMapLwc;
+ System.debug('ESetId = ' + ESetId);
+ System.debug('coc = ' + coc);
+ System.debug('barcode = ' + barcode);
+ System.debug('accountName = ' + accountName);
+ System.debug('userWorkLocation = ' + userWorkLocation);
System.debug('consumableorderdetailsRecords = ' + consumableorderdetailsRecords);
+ System.debug('orderdetails = ' + orderdetails);
System.debug('orderpriceMap = ' + orderpriceMap);
+ System.debug('orderagencypriceMap = ' + orderagencypriceMap);
BarcodeCntMap = new Map<String, Integer>();
if (consumableorderdetailsRecords.size() < 1) {
@@ -1052,17 +1060,15 @@
}
Getconsumableorderdetails2Nobox();
+ System.debug('BarcodeCntMap = ' + BarcodeCntMap);
for (ConsumableorderdetailsInfo ass : consumableorderdetailsRecords) {
String key = '' + ass.orderdetails2.Bar_Code__c;
Integer deliverycnt = BarcodeCntMap.get(key);
- if (
- ass.orderdetails2.Box_Piece__c == '涓�' &&
- (ass.outboundCount == null ||
- String.valueof(ass.outboundCount) == '' ||
- ass.outboundCount <= 0)
- ) {
+ if (ass.orderdetails2.Box_Piece__c == '涓�' &&(ass.outboundCount == null || String.valueof(ass.outboundCount) == '' || ass.outboundCount <= 0)) {
// ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璇疯緭鍏ヤ骇鍝� '+ ass.Prod.Name +' 鐨勫嚭璐ф暟閲�'));
// return null;
+ System.debug('ass.orderdetails2.Box_Piece__c = ' + ass.orderdetails2.Box_Piece__c);
+ System.debug('ass.outboundCount = ' + ass.outboundCount);
return new ResponseBodyLWC('Error', 500, '璇疯緭鍏ヤ骇鍝� ' + ass.Prod.Name + ' 鐨勫嚭璐ф暟閲�', '');
}
if (ass.outboundCount > deliverycnt) {
--
Gitblit v1.9.1