-
{{ item.refundedOrders }}单
+
+
+ {{ item.refundedOrders }}单
+
-
-
{{ item.refundAmount }}元
+
+
+ {{ item.refundAmount }}元
+
@@ -679,7 +795,10 @@ const loadTopLeftData = async () => {
queryType: dateRadio.value,
});
if (response.code == 200) {
- topLeftData.value = response.data;
+ topLeftData.value.salesTotalAmount = response.data.salesTotalAmount ?? 0;
+ topLeftData.value.orderTotalNum = response.data.orderTotalNum ?? 0;
+ topLeftData.value.viewCount = response.data.viewCount ?? 0;
+ topLeftData.value.refundSuccessAmout = response.data.refundSuccessAmout ?? 0;
} else {
initTopLeftData();
}
@@ -739,8 +858,8 @@ const columns = ref([
{ prop: "ranking", label: "排名", slotName: "ranking", width: 66 },
{ prop: "goodUrl", label: "商品图片", slotName: "goodUrl", width: 80, align: "left" },
{ prop: "goodName", label: "商品名称", width: "auto", align: "left" },
- { prop: "stockToUseRatio", label: "存销比", width: 70, align: "left" },
- { prop: "salesAmount", label: "销售金额", width: 100, align: "left" },
+ { prop: "stockToUseRatio", label: "存销比", width: 70, align: "left", formatter: (row) => `${row.stockToUseRatio ?? 0}%` },
+ { prop: "salesAmount", label: "销售金额", width: 100, align: "left", formatter: (row) => `${row.salesAmount ?? 0}元` },
]);
// 加载数据-底部左侧模块
const loadbottomLeftData = async () => {
@@ -801,7 +920,11 @@ const loadbottomRightData = async () => {
queryType: dateRadio.value,
});
if (response.code == 200) {
- afterSalesData.value = response.data;
+ afterSalesData.value.totalAfterSalesOrders = response.data.totalAfterSalesOrders ?? 0;
+ afterSalesData.value.totalRefundAmount = response.data.totalRefundAmount ?? 0;
+ afterSalesData.value.totalAfterSalesOrders = response.data.totalAfterSalesOrders ?? 0;
+ afterSalesData.value.warningProductInfos = response.data.warningProductInfos ?? [];
+ console.log(afterSalesData.value);
}
} catch (error) { }
};