Commit d3502a1f by 胡悦

修改saas+喜报入参

1 parent 095c4345
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-02-07 16:36:16
* @LastEditors: huyue
* @LastEditTime: 2023-02-15 14:20:50
* @LastEditTime: 2023-03-01 18:17:43
-->
<template>
<div class="wrapper-box">
......@@ -26,7 +26,7 @@
</div>
<div class="content-item">
订单收款
<div class="price">¥{{ data.reportInfo!.todayOrderPrice }}</div>
<div class="price">¥{{ data.query?.orderMoney }}</div>
</div>
</div>
<div class="content-list">
......@@ -55,16 +55,19 @@
import { reactive, onMounted, inject } from "vue";
import { djReq } from "../../utils/request";
import { useRoute } from "vue-router";
import { DataInfo, Params } from "./interface";
import { DataInfo } from "./interface";
const route = useRoute();
// 获取全局对象
const global: any = inject("global");
let query: Params = {};
const data = reactive<Partial<DataInfo>>({
reportInfo: {},
query: {},
});
const getInfo = async () => {
const query = {
merchantId: data.query?.merchantId,
};
data.reportInfo = await djReq(
"dj.api.smartcarlife.orderReport.stat.byGoodsNews",
query
......@@ -76,7 +79,7 @@ const getImageUrl = (name: any, path = "dj") => {
};
onMounted(() => {
if (route.query) {
query = route.query;
data.query = route.query;
getInfo();
}
});
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-11-16 18:18:59
* @LastEditors: huyue
* @LastEditTime: 2023-02-14 16:07:52
* @LastEditTime: 2023-03-01 15:56:02
*/
export interface ReportInfo {
time?: string;
......@@ -14,9 +14,11 @@ export interface ReportInfo {
}
export interface DataInfo {
reportInfo: ReportInfo;
query: Params
}
export interface Params {
merchantId?: number | string;
orderMoney?: string;
}
export interface WarParams {
yqMerchantId?: number | string;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!