From 73b6baf6af3d88cdcb0e2df7932a9bd96b0b85c5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 01 七月 2024 22:32:34 +0800
Subject: [PATCH] 月度统计出入库按类型汇总报表定时任务和手动跑任务接口

---
 proto/purchase_wms.proto |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index be80ba4..41044ef 100644
--- a/proto/purchase_wms.proto
+++ b/proto/purchase_wms.proto
@@ -2,6 +2,8 @@
 
 option go_package = "./purchase_wms";
 
+import "common.proto";
+
 service PurchaseService {
   rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse);
   rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {}
@@ -11,6 +13,7 @@
   rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {}
   rpc SrmGetWarehouseInfo(SrmGetWarehouseInfoRequest) returns (SrmGetWarehouseInfoResponse) {}
   rpc SrmGetOperationInfo(SrmGetOperationInfoRequest) returns (SrmGetOperationInfoResponse) {}
+  rpc CreatePurchaseByAps(CreatePurchaseByApsRequest) returns (CreatePurchaseByWmsResponse) {}
 }
 
 //------------------------------------------PurchaseToWms--------------------------------
@@ -22,9 +25,13 @@
 
 message PurchaseToWmsRequest {
   string Number = 1; //閲囪喘缂栧彿
-  string SupplierName = 2; //渚涘簲鍟�
+  string SupplierName = 2; //渚涘簲鍟嗗悕绉�
   string Source = 3;//鏉ユ簮
-  repeated PurchaseProduct Product = 4;
+  int64 SupplierId = 4;//渚涘簲鍟唅d
+  string WarehouseName = 5;//浠撳簱鍚嶇О
+  repeated PurchaseProduct Product = 6;
+  OperationSource OperationSource = 7;
+  string SalesDetailsNumber = 8;
 }
 
 message PurchaseToWmsResponse {
@@ -37,6 +44,7 @@
 
 message UpdatePurchaseStatusRequest {
   string Number = 1;//閲囪喘缂栧彿
+  int64 Status = 2;//鐘舵��
 }
 
 message UpdatePurchaseStatusResponse {
@@ -89,6 +97,11 @@
   string supplierName = 3;
   int64 amount = 4;
   int64 status = 5;
+  string productName = 6;
+  string productId = 7;
+  string specs = 8;//鐗╂枡瑙勬牸
+  string unit = 9;//鍗曚綅
+  int64 finishAmount = 10;//瀹屾垚鏁伴噺
 }
 
 message GetPurchaseInfoResponse {
@@ -121,6 +134,8 @@
 //--------------------------------------------------SrmGetOperationInfo---------------------------------------
 message SrmGetOperationInfoRequest{
   string number = 1;
+  OperationSource OperationSource = 2;
+  string SalesDetailsNumber = 3;
 }
 
 message SrmOperation{
@@ -137,3 +152,10 @@
 message SrmGetOperationInfoResponse{
   repeated SrmOperation operations = 1;
 }
+
+//--------------------------------------------------CreatePurchaseByAps---------------------------------------
+
+message CreatePurchaseByApsRequest {
+  string sourceOrder = 1;
+  repeated CreatePurchaseByWmsRequest req = 2;
+}
\ No newline at end of file

--
Gitblit v1.8.0