| | |
| | | package response |
| | | |
| | | import ( |
| | | "aps_crm/model" |
| | | "github.com/shopspring/decimal" |
| | | ) |
| | | |
| | | type Info struct { |
| | | MakeInfo []WorkOrderInfo `json:"makeInfo"` |
| | | PurchaseInfo []Purchase `json:"purchaseInfo"` |
| | |
| | | Amount string `json:"amount"` //在库数量 |
| | | AvailableNumber string `json:"availableNumber"` //可用库存 |
| | | } |
| | | |
| | | type OutputInfo struct { |
| | | Number string `json:"number"` |
| | | Name string `json:"name"` |
| | | OrderAmount string `json:"orderAmount"` //订单数量 |
| | | Unit string `json:"unit"` |
| | | Invoice string `json:"invoice"` //发货单 |
| | | Carrier string `json:"carrier"` //承运商 |
| | | Waybill string `json:"waybill"` //运单号 |
| | | SalePrice string `json:"salePrice"` //销售单价 |
| | | Valorem string `json:"valorem"` //价税合计 |
| | | Warehouse string `json:"warehouse"` |
| | | Amount string `json:"amount"` //在库数量 |
| | | Status int `json:"status"` //0就绪 1完成 |
| | | Specs string `json:"specs"` //规格 |
| | | CreateTime string `json:"createTime"` //创建时间 |
| | | } |
| | | |
| | | type StoreInfo struct { |
| | | Name string `json:"name"` //产品名称 |
| | | Number string `json:"number"` //产品编号 |
| | | OrderAmount decimal.Decimal `json:"orderAmount"` //订单数量 |
| | | FinishAmount decimal.Decimal `json:"finishAmount"` //订单完成数量 |
| | | LeftAmount decimal.Decimal `json:"leftAmount"` //未发货数量 |
| | | AvailableAmount decimal.Decimal `json:"availableAmount"` //剩余可用数量 |
| | | } |
| | | |
| | | type OutputSimpleInfo struct { |
| | | Number string `json:"number"` //产品编号 |
| | | Amount decimal.Decimal `json:"amount"` //在库数量 |
| | | Status int `json:"status"` //0就绪 1完成 |
| | | } |
| | | |
| | | type WarehouseProducts struct { |
| | | WarehouseID string `protobuf:"bytes,1,opt,name=WarehouseID,proto3" json:"WarehouseID,omitempty"` |
| | | WarehouseName string `protobuf:"bytes,2,opt,name=WarehouseName,proto3" json:"WarehouseName,omitempty"` |
| | | ProductList []*ProductInfo `protobuf:"bytes,3,rep,name=ProductList,proto3" json:"ProductList,omitempty"` |
| | | ProductInfoMap map[string]*ProductInfo |
| | | } |
| | | |
| | | type WarehouseProductInfo struct { |
| | | WarehouseID string `json:"WarehouseID,omitempty"` |
| | | WarehouseName string `json:"WarehouseName,omitempty"` |
| | | ProductList []*model.DeliveryOrder `json:"ProductList,omitempty"` |
| | | } |