From 952854aaaefaca423c0b87144203551809cb8bdc Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 30 三月 2024 17:29:41 +0800
Subject: [PATCH] crm获取发货数量

---
 proto/product_inventory.proto |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/proto/product_inventory.proto b/proto/product_inventory.proto
index 3d1dcd9..e16130f 100644
--- a/proto/product_inventory.proto
+++ b/proto/product_inventory.proto
@@ -2,14 +2,13 @@
 
 option go_package = "./product_inventory";
 
-import "common.proto";
-
 service productInventoryService {
   rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {}
   rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {}
   rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {}
   rpc GetOrderInputAndOutputInfo(GetOrderInputAndOutputInfoRequest) returns (GetOrderInputAndOutputInfoResponse) {}
   rpc OrderProductOutput(OrderProductOutputRequest) returns (OrderProductOutputResponse) {}
+  rpc GetOutputOperationInfo(GetOutputOperationInfoRequest) returns (GetOutputOperationInfoResponse) {}
 }
 
 message CreateOperationRequest{
@@ -23,6 +22,16 @@
   string ClientName = 8;
   repeated InventoryProduct ProductList = 9;
   OperationSource OperationSource = 10;
+}
+
+enum OperationSource {
+  OperationSourceEmpty               = 0; //绌�
+  OperationSourcePurchase            = 1; //閲囪喘鍏ュ簱
+  OperationSourceProduction          = 2; //鐢熶骇鍏ュ簱
+  OperationSourceOutsourcing         = 3; //濮斿鍏ュ簱
+  OperationSourceProductionApply     = 4; //鐢熶骇棰嗘枡
+  OperationSourceOutsourcingApply    = 5; //濮斿棰嗘枡
+  OperationSourceSaleDelivery        = 6; //閿�鍞彂璐�
 }
 
 message InventoryProduct{
@@ -100,7 +109,7 @@
   int64 WareHouseID = 16;
 }
 message GetOrderInputAndOutputInfoRequest {
-   string Number = 1;//鏄庣粏鍗曠紪鐮�
+  string Number = 1;//鏄庣粏鍗曠紪鐮�
 }
 
 message GetOrderInputAndOutputInfoResponse {
@@ -124,4 +133,14 @@
 message OrderProductOutputResponse {
   int32   Code = 1;
   string  Msg = 2;
+}
+
+//------------------------------------------------------------------------------------------------
+
+message GetOutputOperationInfoRequest{
+  string Number = 1;//鏄庣粏鍗曠紪鐮�
+}
+
+message GetOutputOperationInfoResponse{
+  repeated OutputProduct Products= 1;//鍙戣揣鏄庣粏
 }
\ No newline at end of file

--
Gitblit v1.8.0