|
@@ -24,7 +24,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import * as ProductSpuApi from '@/api/mall/product/spu'
|
|
|
import * as TradeStatisticsApi from '@/api/mall/statistics/trade'
|
|
|
-import * as PayStatisticsApi from '@/api/mall/statistics/pay'
|
|
|
+// import * as PayStatisticsApi from '@/api/mall/statistics/pay'
|
|
|
import { CardTitle } from '@/components/Card'
|
|
|
|
|
|
/** 运营数据卡片 */
|
|
@@ -33,13 +33,13 @@ defineOptions({ name: 'OperationDataCard' })
|
|
|
const router = useRouter() // 路由
|
|
|
|
|
|
/** 数据 */
|
|
|
-const data = reactive({
|
|
|
- orderUndelivered: { name: '待发货订单', value: 9, routerName: 'TradeOrder' },
|
|
|
- orderAfterSaleApply: { name: '退款中订单', value: 4, routerName: 'TradeAfterSale' },
|
|
|
- // orderWaitePickUp: { name: '待核销订单', value: 0, routerName: 'TradeOrder' },
|
|
|
- productAlertStock: { name: '库存预警', value: 0, routerName: 'ProductSpu' },
|
|
|
- productForSale: { name: '上架商品', value: 0, routerName: 'ProductSpu' },
|
|
|
- productInWarehouse: { name: '仓库商品', value: 0, routerName: 'ProductSpu' },
|
|
|
+let data = reactive({
|
|
|
+ orderUndelivered: { name: '待发货订单', value: 9, routerName: 'TradeOrder', prefix: '', decimals: 0 },
|
|
|
+ orderAfterSaleApply: { name: '退款中订单', value: 4, routerName: 'TradeAfterSale', prefix: '', decimals: 0 },
|
|
|
+ // orderWaitePickUp: { name: '待核销订单', value: 0, routerName: 'TradeOrder', prefix: '', decimals: 0 },
|
|
|
+ productAlertStock: { name: '库存预警', value: 0, routerName: 'ProductSpu', prefix: '', decimals: 0 },
|
|
|
+ productForSale: { name: '上架商品', value: 0, routerName: 'ProductSpu', prefix: '', decimals: 0 },
|
|
|
+ productInWarehouse: { name: '仓库商品', value: 0, routerName: 'ProductSpu', prefix: '', decimals: 0 },
|
|
|
// withdrawAuditing: { name: '提现待审核', value: 0, routerName: 'TradeBrokerageWithdraw' },
|
|
|
// rechargePrice: {
|
|
|
// name: '账户充值',
|
|
@@ -50,6 +50,7 @@ const data = reactive({
|
|
|
// }
|
|
|
})
|
|
|
|
|
|
+
|
|
|
/** 查询订单数据 */
|
|
|
const getOrderData = async () => {
|
|
|
const orderCount = await TradeStatisticsApi.getOrderCount()
|
|
@@ -59,12 +60,12 @@ const getOrderData = async () => {
|
|
|
if (orderCount.afterSaleApply != null) {
|
|
|
data.orderAfterSaleApply.value = orderCount.afterSaleApply
|
|
|
}
|
|
|
- if (orderCount.pickUp != null) {
|
|
|
- data.orderWaitePickUp.value = orderCount.pickUp
|
|
|
- }
|
|
|
- if (orderCount.auditingWithdraw != null) {
|
|
|
- data.withdrawAuditing.value = orderCount.auditingWithdraw
|
|
|
- }
|
|
|
+ // if (orderCount.pickUp != null) {
|
|
|
+ // data.orderWaitePickUp.value = orderCount.pickUp
|
|
|
+ // }
|
|
|
+ // if (orderCount.auditingWithdraw != null) {
|
|
|
+ // data.withdrawAuditing.value = orderCount.auditingWithdraw
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
/** 查询商品数据 */
|
|
@@ -77,10 +78,10 @@ const getProductData = async () => {
|
|
|
}
|
|
|
|
|
|
/** 查询钱包充值数据 */
|
|
|
-const getWalletRechargeData = async () => {
|
|
|
- const paySummary = await PayStatisticsApi.getWalletRechargePrice()
|
|
|
- data.rechargePrice.value = paySummary.rechargePrice
|
|
|
-}
|
|
|
+// const getWalletRechargeData = async () => {
|
|
|
+// const paySummary = await PayStatisticsApi.getWalletRechargePrice()
|
|
|
+// data.rechargePrice.value = paySummary.rechargePrice
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 跳转到对应页面
|
|
@@ -95,13 +96,13 @@ const handleClick = (routerName: string) => {
|
|
|
onActivated(() => {
|
|
|
getOrderData()
|
|
|
getProductData()
|
|
|
- getWalletRechargeData()
|
|
|
+ // getWalletRechargeData()
|
|
|
})
|
|
|
|
|
|
/** 初始化 **/
|
|
|
onMounted(() => {
|
|
|
getOrderData()
|
|
|
getProductData()
|
|
|
- getWalletRechargeData()
|
|
|
+ // getWalletRechargeData()
|
|
|
})
|
|
|
</script>
|