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"
>
\ No newline at end of file
+}
+
diff --git a/src/PagesStatistics/components/StatusDialog.vue b/src/PagesStatistics/components/StatusDialog.vue
index 0f5b747..be78e4f 100644
--- a/src/PagesStatistics/components/StatusDialog.vue
+++ b/src/PagesStatistics/components/StatusDialog.vue
@@ -10,7 +10,7 @@
单据状态
const props = defineProps<{
show: boolean;
+ isShipment: boolean;
}>();
const state = reactive({
currentStates: -1,
- statusList: [
+ statusList1: [
{
id: -1,
name: "全部",
@@ -45,6 +46,20 @@ const state = reactive({
name: "未审核",
},
],
+ statusList2: [
+ {
+ id: -1,
+ name: "全部",
+ },
+ {
+ id: 4,
+ name: "已结算",
+ },
+ {
+ id: 3,
+ name: "未结算",
+ },
+ ],
});
const emit = defineEmits(["handleDialog", "changeStatus"]);
@@ -52,10 +67,10 @@ const handleClose = () => {
emit("handleDialog", false);
};
const handleSelect = (item: any) => {
- state.currentStates = item.id
- emit("changeStatus", item)
+ state.currentStates = item.id;
+ emit("changeStatus", item);
emit("handleDialog", false);
-}
+};
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;