Commit 391af9db by Jaxon

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

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