liujiandao
2024-03-30 aeed976c2999e2cea097cdee38d8baeefe323f3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
syntax = "proto3";
 
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) {}
}
 
message CreateOperationRequest{
  string Number = 1;//明细单编码
  string Addressee = 2;//收货人
  string Address = 3;//收货地址
  string Phone = 4;
  int32 DeliverType = 5;//交付类型
  string Source = 6;
  int64 ClientId = 7;
  string ClientName = 8;
  repeated InventoryProduct ProductList = 9;
  OperationSource OperationSource = 10;
}
 
message InventoryProduct{
  string Id = 1;
  string Amount = 2;
}
 
message CreateOperationResponse{
  int32   Code = 1;
  string  Msg = 2;
}
 
//-------------------------------------------------------
 
message GetInventoryProductInfoRequest {
  string Number = 1;//明细单编码
}
 
message ProductInfo{
  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;//在库数量
  string AvailableNumber = 12;//可用库存
}
 
enum FinishStatus {
  Ready = 0;
  Finish = 1;
}
 
message GetInventoryProductInfoResponse{
  int32   Code = 1;
  string  Msg = 2;
  repeated ProductInfo ProductList = 3;
}
 
//------------------------------------------------------------
 
message UpdateSalesDetailStatusRequest {
  string Number = 1;//明细单编码
  string SalesDetailStatus = 2;
}
 
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;//发货明细
}
 
message OrderProductOutputResponse {
  int32   Code = 1;
  string  Msg = 2;
}