diff --git a/src/PagesStatistics/components/FilterDialog.vue b/src/PagesStatistics/components/FilterDialog.vue index 7516fbb..7027ab9 100644 --- a/src/PagesStatistics/components/FilterDialog.vue +++ b/src/PagesStatistics/components/FilterDialog.vue @@ -4,13 +4,13 @@ 筛选 - + @@ -42,6 +42,7 @@ @handleDialog="(v:boolean) => {handleDialog('showProduct', v)}" @changeProduct="changeProduct" ref="productRef" + :isShipment="isShipment" > diff --git a/src/services/shipment.ts b/src/services/shipment.ts index 85d1fcb..9e8d89f 100644 --- a/src/services/shipment.ts +++ b/src/services/shipment.ts @@ -53,12 +53,13 @@ export const countOrderByMonth = () => { url: "/api/orderOut/countOrderByMonth" }); }; -// 出库分类统计 -export const getOrderInReceipt = () => { - return http({ +// 出库分类统计 +export const getOrderInReceipt = (data: any) => { + return http({ method: "GET", - url: "/api/orderOut/OrderInReceipt" + url: "/api/orderOut/OrderInReceipt", + data }); }; // 出货单排行榜 diff --git a/src/types/order.d.ts b/src/types/order.d.ts index f84c7aa..4898651 100644 --- a/src/types/order.d.ts +++ b/src/types/order.d.ts @@ -59,6 +59,18 @@ interface ReceiveSummaryCount { averagePrice?: number; // 平均单价 rankings?: Array; } + +interface ShipmentSummaryCount { + totalAmount?: number; // 收货汇总:审核过收货总量 + totalPayShipment?: number; // 已支付的出货总 + totalUnPayShipment?: number; // 未支付的出货总量 + totalCollection?: number; // 总收款 + totalPayCollection?: number; // 已经收到的收款 + totalUnPayCollection?: number; // 未收到的收款 + totalReceipt?: number; // 收货单数量已审核的 + averagePrice?: number; // 平均单价 + rankings?: Array; +} // 分页结构 interface OrderPage { total: number;