From c84db706e8c8d82a96bb4b4c18c243a42b2976c1 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期三, 19 十一月 2025 19:44:30 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Allocate/AllocateOrderController.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Allocate/AllocateOrderController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Allocate/AllocateOrderController.cs"
index c2a1334..3a4607a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Allocate/AllocateOrderController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Allocate/AllocateOrderController.cs"
@@ -2,6 +2,7 @@
 using Microsoft.AspNetCore.Mvc;
 using System.Data.Common;
 using System.Diagnostics.Eventing.Reader;
+using System.Threading.Tasks;
 using WIDESEA_Core;
 using WIDESEA_Core.Attributes;
 using WIDESEA_Core.BaseController;
@@ -29,7 +30,7 @@
         }
 
         [HttpPost, Route("ReceiveAllocateOrder"), MethodParamsValidate, AllowAnonymous]
-        public WebResponseContent ReceiveAllocateOrder([FromBody] AllocateDto model)
+        public async Task<WebResponseContent> ReceiveAllocateOrder([FromBody] AllocateDto model)
         {
             Dt_AllocateOrder allocateOrder = new Dt_AllocateOrder
             {
@@ -54,6 +55,7 @@
                             MaterielCode = detailDto.MaterialCode,
                             LineNo = detailDto.LineNo,
                             OrderQuantity = detailDto.Qty,
+                            SupplyCode= barcodeDto.SupplyCode,
                             Unit = detailDto.Unit,
                             Barcode = barcodeDto.Barcode,
                             BatchNo = barcodeDto.BatchNo,
@@ -77,7 +79,7 @@
                 }
                 allocateOrder.Details.AddRange(allocateOrder.Details);
             }
-            var content = Service.ReceiveAllocateOrder(allocateOrder, model.OperationType);
+            var content =await Service.ReceiveAllocateOrder(allocateOrder, model.OperationType);
 
             if (content.Status) return WebResponseContent.Instance.OK(200);
             else return WebResponseContent.Instance.Error(content.Message);

--
Gitblit v1.9.3