Commit 391af9db by Jaxon

feat(督导统计): 走查调优

1 parent 4d300521
......@@ -8,3 +8,8 @@ export function getSupervisorStaffApi(data) {
export function getSupervisorStoreApi(data) {
return api.post("dj.api.supervisor.store.performance", data, [], "/rop-dj-supervisor-mini/router");
}
// 盯防门店业绩接口
export function getSupervisorStoreByMerchantApi(data) {
return api.post("dj.api.supervisor.store.performance.by.merchant", data, [], "/rop-dj-supervisor-mini/router");
}
import { schemaList, schemaCommonBrandList } from "./stationStaffPerformance.data.js";
import { brandTypeList } from "~/packageIndex/constant/performance.js";
import { getSupervisorStaffApi } from "~/packageIndex/api/performance.js";
import { getSupervisorStaffApi, getSupervisorStoreByMerchantApi } from "~/packageIndex/api/performance.js";
const IMG_URL = "https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/";
import dayjs from "dayjs";
Page({
......@@ -88,7 +88,10 @@ Page({
});
try {
let userInfo = wx.$util.getUserInfo();
const { data } = await getSupervisorStaffApi({
const api = this.data.query.merchantId ? getSupervisorStoreByMerchantApi : getSupervisorStaffApi;
const { data } = await api({
supervisorId: userInfo.uuid,
...this.data.query,
});
......
......@@ -44,7 +44,9 @@
data="{{ item }}"
beTap="{{ false }}"
schema="{{ schemaList }}">
<view slot="title-sub" class="title-sub-wrapper text-hide">
<view slot="title-sub"
class="title-sub-wrapper text-hide"
wx:if="{{ item.merchantName }}">
{{ item.merchantName }}
</view>
</StatisticsItem>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!