From f80c6068d5e2ae5b9101125497b4de88726e1d9e Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 07 四月 2024 21:44:58 +0800
Subject: [PATCH] 发货接口增加仓库ID

---
 proto/crm_aps.proto |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/proto/crm_aps.proto b/proto/crm_aps.proto
index 17577db..ec53565 100644
--- a/proto/crm_aps.proto
+++ b/proto/crm_aps.proto
@@ -5,6 +5,13 @@
 service CrmAndApsGrpcService {
   rpc GetApsProjectList(GetApsProjectListRequest) returns(GetApsProjectListResponse) {}
   rpc SendSalesDetailsToApsProject(SendSalesDetailsToApsProjectRequest) returns(SendSalesDetailsToApsProjectResponse) {}
+  rpc GetCrmSalesDetailsList(GetCrmSalesDetailsListRequest) returns(GetCrmSalesDetailsListResponse) {}
+  rpc SendSalesDetailsAndProjectToCrm(SendSalesDetailsAndProjectToCrmRequest) returns(SendSalesDetailsAndProjectToCrmResponse) {}
+  rpc GetClientList(GetClientListRequest) returns(GetClientListResponse) {}
+  rpc UpdateSalesDetail(UpdateSalesDetailRequest) returns(UpdateSalesDetailResponse) {}
+  rpc RemoveSalesDetail(RemoveSalesDetailRequest) returns(RemoveSalesDetailResponse) {}
+  rpc CrmGetMakeAndOutsourcingProductInfo(CrmGetMakeAndOutsourcingProductInfoRequest) returns(CrmGetMakeAndOutsourcingProductInfoResponse) {}
+  rpc GetCrmSalesDetailsProductInfo(GetCrmSalesDetailsProductInfoRequest) returns(GetCrmSalesDetailsProductInfoResponse) {}
 }
 
 //-----------------------------------------------------GetApsProjectList--------------------------------------
@@ -38,7 +45,111 @@
   int64 ProductTotal = 7;//浜у搧鎬绘暟
   string ProjectId = 8;//椤圭洰id
   repeated SalesDetailsProduct Products = 9;
+  int64 DeliverType = 10;//浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣
 }
 
 message SendSalesDetailsToApsProjectResponse{
+}
+
+//-----------------------------------------------------GetCrmSalesDetailsList--------------------------------------------
+
+message GetCrmSalesDetailsListRequest {
+  string TimeType = 1;  //鏃堕棿绫诲瀷:绛剧害鏃ユ湡,浜や粯鏃ユ湡
+  string StartTime = 2;
+  string EndTime = 3;
+  string ClientName = 4;
+  int64 Page = 5;
+  int64 PageSize = 6;
+}
+
+message CrmSalesDetails {
+  string number = 1;//閿�鍞槑缁嗗崟鍙�
+  string clientName = 2;
+  string memberName = 3;//閿�鍞礋璐d汉
+  string signTime = 4;//绛惧崟鏃堕棿
+  string deliveryDate = 5;//浜よ揣鏃ユ湡
+}
+
+message GetCrmSalesDetailsListResponse {
+  repeated CrmSalesDetails SalesDetails = 1;
+  int64 Total = 2;
+}
+
+//------------------------------------------------------------SendSalesDetailsAndProjectToCrm-----------------------------------
+
+message SendSalesDetailsAndProjectToCrmRequest{
+  repeated string SalesDetailsNumbers = 1;
+  string ProjectId = 2;
+}
+
+message SendSalesDetailsAndProjectToCrmResponse{
+
+}
+
+//------------------------------------------------------------GetClientList-----------------------------------
+
+message GetClientListRequest{
+  int64  page = 1;
+  int64  page_size = 2;
+  string keyword = 3;
+}
+
+message GetClientListResponse{
+  int64    total = 1;
+  repeated Client list = 2;
+}
+
+message Client {
+  string number = 1;
+  string name = 2;
+}
+
+
+message UpdateSalesDetailRequest {
+  string number = 1;//閿�鍞槑缁嗗崟鍙�
+  int32 status = 2;//鐘舵��
+}
+
+message UpdateSalesDetailResponse {}
+
+message RemoveSalesDetailRequest {
+  string number = 1;//閿�鍞槑缁嗗崟鍙�
+}
+
+message RemoveSalesDetailResponse {}
+
+message CrmGetMakeAndOutsourcingProductInfoRequest{
+  string SalesDetailsNumber = 1;
+}
+
+message CrmGetMakeAndOutsourcingProductInfo {
+  int64 Amount = 1;
+  int64 FinishAmount = 2;
+  string ProductId = 3;
+  int64 Type = 4;
+}
+
+message CrmGetMakeAndOutsourcingProductInfoResponse{
+  repeated CrmGetMakeAndOutsourcingProductInfo Info = 1;
+}
+
+message GetCrmSalesDetailsProductInfoRequest{
+  string SalesDetailsNumber = 1;
+}
+
+message CrmSalesDetailsProductInfo{
+  string ProductId = 1;
+  string ProductName = 2;
+  string Specs = 3;
+  string Unit = 4;
+  int64 Amount = 5;
+  string Cost = 6; //浜у搧鎴愭湰
+  int64 Price = 7; //浜у搧浠锋牸
+  int64 Total = 8;//浜у搧鎬讳环
+  string Profit = 9;//姣涘埄
+  string Margin = 10;//姣涘埄鐜�
+}
+
+message GetCrmSalesDetailsProductInfoResponse{
+  repeated CrmSalesDetailsProductInfo List = 1;
 }
\ No newline at end of file

--
Gitblit v1.8.0