| | |
| | | rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {} |
| | | rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {} |
| | | rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {} |
| | | rpc GetOrderInputAndOutputInfo(GetOrderInputAndOutputInfoRequest) returns (GetOrderInputAndOutputInfoResponse) {} |
| | | } |
| | | |
| | | message CreateOperationRequest{ |
| | |
| | | |
| | | message GetInventoryProductInfoRequest { |
| | | string Number = 1;//明细单编码 |
| | | bool GroupByWarehouse = 2; //是否按仓库分组 |
| | | bool IsOutput = 3; //查出库 |
| | | bool IsInput = 4; //查入库 |
| | | } |
| | | |
| | | message ProductInfo{ |
| | |
| | | string AvailableNumber = 12;//可用库存 |
| | | } |
| | | |
| | | enum FinishStatus { |
| | | Ready = 0; |
| | | Finish = 1; |
| | | } |
| | | |
| | | message GetInventoryProductInfoResponse{ |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | repeated ProductInfo ProductList = 3; |
| | | repeated WarehouseProducts WarehouseProductsList = 4; |
| | | } |
| | | |
| | | message WarehouseProducts { |
| | | string WarehouseID = 1; |
| | | string WarehouseName = 2; |
| | | repeated ProductInfo ProductList = 3; |
| | | } |
| | | |
| | | |
| | | //------------------------------------------------------------ |
| | | |
| | |
| | | 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; |
| | | } |
| | | message GetOrderInputAndOutputInfoRequest { |
| | | string Number = 1;//明细单编码 |
| | | } |
| | | |
| | | message GetOrderInputAndOutputInfoResponse { |
| | | int32 Code = 1; |
| | | string Msg = 2; |
| | | repeated InputAndOutputInfo InputList = 3; |
| | | repeated InputAndOutputInfo OutputList = 4; |
| | | } |