Commit 68abd243 by 杨明

Merge branch 'huyue_v3.5.0' into 'v3.5.0-0301'

修改saas+喜报入参

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