From e1ec7e077a10938ce795c766915c5c5673dcf282 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 20 三月 2024 19:08:10 +0800
Subject: [PATCH] crm发货申请补充发货单号
---
proto/purchase_wms.proto | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 104 insertions(+), 2 deletions(-)
diff --git a/proto/purchase_wms.proto b/proto/purchase_wms.proto
index d3c7d3e..be80ba4 100644
--- a/proto/purchase_wms.proto
+++ b/proto/purchase_wms.proto
@@ -5,8 +5,15 @@
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) {}
}
+//------------------------------------------PurchaseToWms--------------------------------
message PurchaseProduct{
string Id = 1;
@@ -16,15 +23,17 @@
message PurchaseToWmsRequest {
string Number = 1; //閲囪喘缂栧彿
string SupplierName = 2; //渚涘簲鍟�
- repeated PurchaseProduct Product = 3;
+ string Source = 3;//鏉ユ簮
+ repeated PurchaseProduct Product = 4;
}
message PurchaseToWmsResponse {
int32 code = 1;
string message = 2;
+ string Warehouse = 3;
}
-//-------------------------------------------------------------------
+//------------------------------------------------UpdatePurchaseStatus-------------------------------------
message UpdatePurchaseStatusRequest {
string Number = 1;//閲囪喘缂栧彿
@@ -35,3 +44,96 @@
string Msg = 2;
}
+//--------------------------------------------------GetSupplierListByProductId------------------------------
+
+message GetSupplierListByProductIdRequest {
+ string ProductId = 1;
+}
+
+message SupplierList {
+ int64 supplierId = 1;
+ string supplierName = 2;
+ float purchasePrice = 3;//閲囪喘浠锋牸
+}
+
+message GetSupplierListByProductIdResponse {
+ int32 Code = 1;
+ string Msg = 2;
+ repeated SupplierList List = 3;
+}
+
+//-----------------------------------------------------CreatePurchaseByWms--------------------------------------
+
+message CreatePurchaseByWmsRequest {
+ int64 SupplierId = 1;
+ string ProductId = 2;
+ int64 Amount = 3;
+ string Source = 4;
+}
+
+message CreatePurchaseByWmsResponse {
+ int32 Code = 1;
+ string Msg = 2;
+ string PurchaseNumber = 3;
+}
+
+//-------------------------------------------------------GetPurchaseInfo---------------------------------------
+
+message GetPurchaseInfoRequest {
+ repeated string PurchaseNumbers = 1;
+}
+
+message PurchaseInfo {
+ string purchaseNumber = 1;
+ string purchaseName = 2;
+ string supplierName = 3;
+ int64 amount = 4;
+ int64 status = 5;
+}
+
+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;
+}
+
+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;
+}
--
Gitblit v1.8.0