From c950586b718ae6fc198bedf424609a4ac94cb5d1 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 04 七月 2024 18:16:07 +0800
Subject: [PATCH] 增加根据位置或仓库查询产品及库存列表

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

diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index 57b61a0..41044ef 100644
--- a/proto/purchase_wms.proto
+++ b/proto/purchase_wms.proto
@@ -2,12 +2,18 @@
 
 option go_package = "./purchase_wms";
 
+import "common.proto";
+
 service PurchaseService {
   rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse);
   rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {}
   rpc GetSupplierListByProductId(GetSupplierListByProductIdRequest) returns (GetSupplierListByProductIdResponse) {}
   rpc CreatePurchaseByWms(CreatePurchaseByWmsRequest) returns (CreatePurchaseByWmsResponse) {}
   rpc GetPurchaseInfo(GetPurchaseInfoRequest) returns (GetPurchaseInfoResponse) {}
+  rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {}
+  rpc SrmGetWarehouseInfo(SrmGetWarehouseInfoRequest) returns (SrmGetWarehouseInfoResponse) {}
+  rpc SrmGetOperationInfo(SrmGetOperationInfoRequest) returns (SrmGetOperationInfoResponse) {}
+  rpc CreatePurchaseByAps(CreatePurchaseByApsRequest) returns (CreatePurchaseByWmsResponse) {}
 }
 
 //------------------------------------------PurchaseToWms--------------------------------
@@ -19,8 +25,13 @@
 
 message PurchaseToWmsRequest {
   string Number = 1; //閲囪喘缂栧彿
-  string SupplierName = 2; //渚涘簲鍟�
-  repeated PurchaseProduct Product = 3;
+  string SupplierName = 2; //渚涘簲鍟嗗悕绉�
+  string Source = 3;//鏉ユ簮
+  int64 SupplierId = 4;//渚涘簲鍟唅d
+  string WarehouseName = 5;//浠撳簱鍚嶇О
+  repeated PurchaseProduct Product = 6;
+  OperationSource OperationSource = 7;
+  string SalesDetailsNumber = 8;
 }
 
 message PurchaseToWmsResponse {
@@ -33,6 +44,7 @@
 
 message UpdatePurchaseStatusRequest {
   string Number = 1;//閲囪喘缂栧彿
+  int64 Status = 2;//鐘舵��
 }
 
 message UpdatePurchaseStatusResponse {
@@ -85,11 +97,65 @@
   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 {
   repeated PurchaseInfo Infos = 1;
 }
 
+//--------------------------------------------------ExistSupplier---------------------------------------
 
+message ExistSupplierRequest {
+  repeated string ProductId = 1;
+}
 
+message ExistSupplierResponse {
+  bool Exist = 1;
+}
+
+//--------------------------------------------------SrmGetWarehouseInfo---------------------------------------
+message SrmGetWarehouseInfoRequest{}
+
+message SrmWarehouseInfo{
+  string name = 1;//浠撳簱鍚�
+  string address = 2;//浠撳簱鍦板潃
+  string principal = 3;//浠撳簱璐熻矗浜�
+}
+
+message SrmGetWarehouseInfoResponse{
+  repeated SrmWarehouseInfo info = 1;
+}
+
+//--------------------------------------------------SrmGetOperationInfo---------------------------------------
+message SrmGetOperationInfoRequest{
+  string number = 1;
+  OperationSource OperationSource = 2;
+  string SalesDetailsNumber = 3;
+}
+
+message SrmOperation{
+  string number = 1;//鍏ュ簱鍗曞彿
+  string warehouseName = 2;//浠撳簱鍚嶇О
+  string productName = 3;//浜у搧鍚嶇О
+  string productId = 4;//浜у搧缂栫爜
+  int64 amount = 5;//鏁伴噺
+  string overTime = 6;//鍏ュ簱鏃堕棿
+  string consignee = 7;//鏀惰揣浜�
+  int64 status = 8;//鐘舵��
+}
+
+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