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

---
 proto/product_inventory.proto |   75 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 73 insertions(+), 2 deletions(-)

diff --git a/proto/product_inventory.proto b/proto/product_inventory.proto
index 4c6552f..b8d0e9b 100644
--- a/proto/product_inventory.proto
+++ b/proto/product_inventory.proto
@@ -2,10 +2,15 @@
 
 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{
@@ -15,7 +20,10 @@
   string Phone = 4;
   int32 DeliverType = 5;//浜や粯绫诲瀷
   string Source = 6;
-  repeated InventoryProduct ProductList = 7;
+  int64 ClientId = 7;
+  string ClientName = 8;
+  repeated InventoryProduct ProductList = 9;
+  OperationSource OperationSource = 10;
 }
 
 message InventoryProduct{
@@ -35,7 +43,7 @@
 }
 
 message ProductInfo{
-  string Id = 1;
+  string Number = 1;
   string Name = 2;
   string OrderAmount = 3;//璁㈠崟鏁伴噺
   string Unit = 4;
@@ -47,6 +55,11 @@
   string Warehouse = 10;
   string Amount = 11;//鍦ㄥ簱鏁伴噺
   string AvailableNumber = 12;//鍙敤搴撳瓨
+}
+
+enum FinishStatus {
+  Ready = 0;
+  Finish = 1;
 }
 
 message GetInventoryProductInfoResponse{
@@ -65,4 +78,62 @@
 message UpdateSalesDetailStatusResponse{
   int32   Code = 1;
   string  Msg = 2;
+}
+
+
+//--------------------------------------------------
+
+message InputAndOutputInfo{
+  string Number = 1;
+  string Name = 2;
+  string OrderAmount = 3;//璁㈠崟鏁伴噺
+  string Unit = 4;
+  string Invoice = 5;//鍙戣揣鍗�
+  string Carrier = 6;//鎵胯繍鍟�
+  string Waybill = 7;//杩愬崟鍙�
+  string SalePrice = 8;//閿�鍞崟浠�
+  string Valorem = 9;//浠风◣鍚堣
+  string Warehouse = 10;
+  string Amount = 11; //鏁伴噺
+  FinishStatus Status = 13;
+  string CreateTime = 14;
+  int64 LocationID = 15;
+  int64 WareHouseID = 16;
+}
+message GetOrderInputAndOutputInfoRequest {
+  string Number = 1;//鏄庣粏鍗曠紪鐮�
+}
+
+message GetOrderInputAndOutputInfoResponse {
+  int32   Code = 1;
+  string  Msg = 2;
+  repeated InputAndOutputInfo InputList = 3;
+  repeated InputAndOutputInfo OutputList = 4;
+}
+
+message OutputProduct {
+  string Number = 1;//浜у搧缂栫爜
+  string Amount = 2; //鍙戣揣鏁伴噺
+}
+
+
+message OrderProductOutputRequest {
+  string OrderNumber = 1;//鏄庣粏鍗曠紪鐮�
+  repeated OutputProduct Products= 2;//鍙戣揣鏄庣粏
+  int64    warehouseId = 3;//鍙戣揣浠撳簱ID
+}
+
+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