From 8e3dd63aa2ba4a281fcfe7c3e5c18f09eb223e52 Mon Sep 17 00:00:00 2001 From: admin <> Date: Fri, 15 Mar 2024 14:41:42 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=20=E6=9B=B4=E6=96=B0=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E6=B1=87=E6=80=BB=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/FilterDialog.vue | 6 +- .../components/ProductDialog.vue | 152 +++++++------- .../components/StatusDialog.vue | 25 ++- src/PagesStatistics/receivePanel.vue | 1 + src/PagesStatistics/shipmentPanel.vue | 192 ++++++++++++------ src/services/shipment.ts | 9 +- src/types/order.d.ts | 12 ++ 7 files changed, 259 insertions(+), 138 deletions(-) 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;