| | |
| | | package response |
| | | |
| | | import ( |
| | | "aps_crm/model" |
| | | "github.com/shopspring/decimal" |
| | | ) |
| | | |
| | | type Info struct { |
| | | MakeInfo []WorkOrderInfo `json:"makeInfo"` |
| | | PurchaseInfo []Purchase `json:"purchaseInfo"` |
| | | MakeInfo []WorkOrderInfo `json:"makeInfo"` |
| | | PurchaseInfo []Purchase `json:"purchaseInfo"` |
| | | OutsourcingInfo []OutsourcingInfo `json:"outsourcingInfo"` |
| | | ProductInfo []SalesDetailsProductInfo `json:"productInfo"` |
| | | } |
| | | |
| | | type WorkOrderInfo struct { |
| | |
| | | WorkOrderStatus string `json:"workOrderStatus"` |
| | | StartTime string `json:"startTime"` |
| | | EndTime string `json:"endTime"` |
| | | ProductId string `json:"productId"` |
| | | Specs string `json:"specs"` //物料规格 |
| | | Unit string `json:"unit"` //单位 |
| | | Amount int64 `json:"amount"` //订单数量 |
| | | FinishAmount int64 `json:"finishAmount"` //完成数量 |
| | | } |
| | | |
| | | type Purchase struct { |
| | | PurchaseNumber string `json:"purchaseNumber"` |
| | | PurchaseName string `json:"purchaseName"` |
| | | SupplierName string `json:"supplierName"` |
| | | Amount int64 `json:"amount"` |
| | | Status int64 `json:"status"` |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | Specs string `json:"specs"` //物料规格 |
| | | Unit string `json:"unit"` //单位 |
| | | Amount int64 `json:"amount"` //订单数量 |
| | | FinishAmount int64 `json:"finishAmount"` //完成数量 |
| | | } |
| | | |
| | | type OutsourcingInfo struct { |
| | | OutsourcingId string `json:"outsourcingId"` //委外订单id |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | OutsourcingStatus string `json:"outsourcingStatus"` |
| | | SupplierName string `json:"supplierName"` |
| | | StartTime string `json:"startTime"` |
| | | EndTime string `json:"endTime"` |
| | | Specs string `json:"specs"` //物料规格 |
| | | Unit string `json:"unit"` //单位 |
| | | Amount int64 `json:"amount"` //订单数量 |
| | | FinishAmount int64 `json:"finishAmount"` //完成数量 |
| | | } |
| | | |
| | | type ProductInfo struct { |
| | | Id string `json:"id"` |
| | | Number string `json:"number"` |
| | | Name string `json:"name"` |
| | | OrderAmount string `json:"orderAmount"` //订单数量 |
| | | Unit string `json:"unit"` |
| | |
| | | SalePrice string `json:"salePrice"` //销售单价 |
| | | Valorem string `json:"valorem"` //价税合计 |
| | | Warehouse string `json:"warehouse"` |
| | | Amount string `json:"amount"` //在库数量 |
| | | Amount string `json:"amount"` //出库数量 |
| | | AvailableNumber string `json:"availableNumber"` //可用库存 |
| | | Status int `json:"status"` //0就绪 1完成 |
| | | } |
| | | 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"` |
| | | } |
| | | type SalesDetailsProductInfo struct { |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | Specs string `json:"specs"` //物料规格 |
| | | Unit string `json:"unit"` //单位 |
| | | Amount decimal.Decimal `json:"amount"` //订单数量 |
| | | FinishAmount int64 `json:"finishAmount"` //完成数量 |
| | | DeliveryAmount int `json:"deliveryAmount"` //发货数量 |
| | | PurchaseAmount int64 `json:"purchaseAmount"` //采购数量 |
| | | PurchaseFinishAmount int64 `json:"purchaseFinishAmount"` //采购完成数量 |
| | | MakeAmount int64 `json:"makeAmount"` //制造数量 |
| | | MakeFinishAmount int64 `json:"makeFinishAmount"` //制造完成数量 |
| | | OutsourcingAmount int64 `json:"outsourcingAmount"` //委外数量 |
| | | OutsourcingFinishAmount int64 `json:"outsourcingFinishAmount"` //委外完成数量 |
| | | Cost string `json:"cost"` //产品成本 |
| | | Price decimal.Decimal `json:"price"` //产品价格 |
| | | Total decimal.Decimal `json:"total"` //产品总价 |
| | | Profit string `json:"profit"` //毛利 |
| | | Margin string `json:"margin"` //毛利率 |
| | | |
| | | } |