| | |
| | | |
| | | option go_package = "./purchase_wms"; |
| | | |
| | | import "common.proto"; |
| | | |
| | | service PurchaseService { |
| | | rpc PurchaseToWms(PurchaseToWmsRequest) returns (PurchaseToWmsResponse); |
| | | rpc UpdatePurchaseStatus(UpdatePurchaseStatusRequest) returns (UpdatePurchaseStatusResponse) {} |
| | |
| | | rpc ExistSupplier(ExistSupplierRequest) returns (ExistSupplierResponse) {} |
| | | rpc SrmGetWarehouseInfo(SrmGetWarehouseInfoRequest) returns (SrmGetWarehouseInfoResponse) {} |
| | | rpc SrmGetOperationInfo(SrmGetOperationInfoRequest) returns (SrmGetOperationInfoResponse) {} |
| | | rpc CreatePurchaseByAps(CreatePurchaseByApsRequest) returns (CreatePurchaseByWmsResponse) {} |
| | | } |
| | | |
| | | //------------------------------------------PurchaseToWms-------------------------------- |
| | |
| | | |
| | | message PurchaseToWmsRequest { |
| | | string Number = 1; //采购编号 |
| | | string SupplierName = 2; //供应商 |
| | | string SupplierName = 2; //供应商名称 |
| | | string Source = 3;//来源 |
| | | repeated PurchaseProduct Product = 4; |
| | | int64 SupplierId = 4;//供应商id |
| | | string WarehouseName = 5;//仓库名称 |
| | | repeated PurchaseProduct Product = 6; |
| | | OperationSource OperationSource = 7; |
| | | string SalesDetailsNumber = 8; |
| | | } |
| | | |
| | | message PurchaseToWmsResponse { |
| | |
| | | |
| | | message UpdatePurchaseStatusRequest { |
| | | string Number = 1;//采购编号 |
| | | int64 Status = 2;//状态 |
| | | } |
| | | |
| | | message UpdatePurchaseStatusResponse { |
| | |
| | | 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 { |
| | |
| | | //--------------------------------------------------SrmGetOperationInfo--------------------------------------- |
| | | message SrmGetOperationInfoRequest{ |
| | | string number = 1; |
| | | OperationSource OperationSource = 2; |
| | | string SalesDetailsNumber = 3; |
| | | } |
| | | |
| | | message SrmOperation{ |
| | |
| | | message SrmGetOperationInfoResponse{ |
| | | repeated SrmOperation operations = 1; |
| | | } |
| | | |
| | | //--------------------------------------------------CreatePurchaseByAps--------------------------------------- |
| | | |
| | | message CreatePurchaseByApsRequest { |
| | | string sourceOrder = 1; |
| | | repeated CreatePurchaseByWmsRequest req = 2; |
| | | } |