Commit d1ce44b7 by Jaxon

Merge branch 'feature/strategy-center' into 'SAAS+V5.8.2'

Feature/strategy center

See merge request !683
2 parents 5913f34c 3c96a5f2
......@@ -418,10 +418,15 @@ export function batchCreateStrategy(data = {}) {
*
* 查询策略 驻店员工/区域运营/飞行督导列表
*/
// export function getStrategyStaffList(data = {}) {
// data.method = "dj.api.strategy.staff.page";
// return request(data, RequestMethods.POST);
// }
export function getStrategyStaffList(data = {}) {
data.method = "dj.api.strategy.staff.page";
data.method = "dj.api.strategy.staff.page.distinct.phone";
return request(data, RequestMethods.POST);
}
/*
/**
* 策略中心-查询策略录音记录
......
......@@ -33,7 +33,7 @@
<div class="label">
{{ item.categoryExtension }}
{{ item.categoryExtension == '全部' ? item.metricName : (item.categoryExtension + item.metricName) }}
</div>
......@@ -79,7 +79,7 @@
<div class="label">
{{ item.categoryExtension }}
{{ item.categoryExtension == '全部' ? item.metricName : (item.categoryExtension + item.metricName) }}
</div>
......@@ -224,7 +224,7 @@ export default {
},
formatIsRatio(delta) {
return delta < 0 ? "decline" : delta === 0 ? "just01" : "rise";
return delta < 0 ? "decline" : delta == 0 ? "just01" : "rise";
},
},
......@@ -321,9 +321,10 @@ export default {
font-size: 13px;
.label {
width: 104px;
min-width: 104px;
color: #888888;
margin-right: 10px;
}
.value {
......
......@@ -177,7 +177,7 @@
<template #metrics="scope">
<span class="effect-cell"
@click="handleEffectDetail(scope.scope)">
{{ scope.scope.metrics.length }} <span style="color: #333333;">项提升</span>
{{ countImprovedMetrics(scope.scope.metrics) }} <span style="color: #333333;">项提升</span>
</span>
</template>
</d2-table>
......@@ -743,6 +743,12 @@ export default {
this.loading.onlineOperData = false;
}
},
countImprovedMetrics(metrics) {
if (!Array.isArray(metrics)) {
return 0;
}
return metrics.filter(m => m.improved === true).length;
},
handleEffectDetail(row) {
this.effectDetailRow = row.metrics;
this.effectDetailVisible = true;
......
......@@ -175,16 +175,27 @@ export default {
brand: [],
regionOps: "",
onlineOps: this.getDefaultOnlineOps(),
supervisorOps: null,
};
},
syncFormFromFilters() {
const { region = "", provinceId = "", brand = [], regionOps = "", onlineOps = "" } = this.filters || {};
const {
region = "",
provinceId = "",
brand = [],
regionOps = "",
onlineOps = "",
supervisorOps,
flightSupervisionId,
} = this.filters || {};
const supervisorValue = supervisorOps ?? flightSupervisionId ?? null;
this.formData = {
region,
provinceId: provinceId || "",
brand: Array.isArray(brand) ? brand.map(item => (Array.isArray(item) ? [...item] : item)) : [],
regionOps: regionOps || "",
onlineOps: onlineOps || this.getDefaultOnlineOps(),
supervisorOps: supervisorValue === "" ? null : supervisorValue,
};
},
submit() {
......
......@@ -22,19 +22,20 @@
<span class="label">门店名称:</span>
<el-input v-model="localFilters.storeName"
class="filter-select"
clearable
maxlength="50"
placeholder="请输入"
size="small">
size="small"
clearable>
</el-input>
</div>
<div class="filter-group">
<span class="label">项目组:</span>
<el-select v-model="localFilters.groupId"
class="filter-select"
clearable
filterable
placeholder="全部"
size="small">
size="small"
clearable
filterable>
<el-option v-for="item in groupOptions"
:key="item.value"
:label="item.label"
......@@ -59,10 +60,10 @@
<span class="label">区域:</span>
<el-select v-model="localFilters.provinceId"
class="filter-select"
clearable
filterable
placeholder="全部"
size="small">
size="small"
clearable
filterable>
<el-option v-for="item in provinceOptions"
:key="item.code"
:label="item.name"
......@@ -74,24 +75,24 @@
<span class="label">品牌:</span>
<el-cascader v-model="localFilters.brand"
class="filter-select-brand"
placeholder="全部"
size="small"
clearable
collapse-tags
filterable
:options="brandOptions"
placeholder="全部"
:props="cascaderProps"
:show-all-levels="false"
size="small">
:show-all-levels="false">
</el-cascader>
</div>
<div v-if="false" class="filter-group">
<span class="label">区域运营:</span>
<el-select v-model="localFilters.regionOps"
class="filter-select"
clearable
filterable
placeholder="全部"
size="small">
size="small"
clearable
filterable>
<el-option v-for="item in regionOpsOptions"
:key="item.value"
:label="item.label"
......@@ -103,10 +104,10 @@
<span class="label">线上运营:</span>
<el-select v-model="localFilters.onlineOps"
class="filter-select"
clearable
filterable
placeholder="全部"
size="small">
size="small"
clearable
filterable>
<el-option v-for="item in onlineOpsOptions"
:key="item.value"
:label="item.label"
......
......@@ -368,6 +368,7 @@ export default {
twoBrandIds,
regionOps,
onlineOps,
supervisorOps,
} = this.filters;
const params = {
storeName,
......@@ -378,6 +379,7 @@ export default {
twoBrandIds: twoBrandIds || [],
regionalOperatorId: regionOps,
onlineOperatorId: onlineOps,
flightSupervision: supervisorOps,
// periodType: this.timeRangeType.value,
cycleType: {
1: 2,
......
......@@ -106,7 +106,7 @@ export default {
dialogConfig: {
config: {
title: "选择录音",
width: "1092px",
width: "1192px",
},
},
targetId: "id",
......@@ -172,7 +172,6 @@ export default {
{
label: "成交状态",
prop: "orderFinishFlag",
minWidth: 90,
formatter(row) {
return row.orderFinishFlag ? "成功" : "战败";
},
......
......@@ -14,9 +14,9 @@
<div class="search-box flex">
<el-input v-model="searchForm.staffName"
class="search-input"
clearable
placeholder="搜索员工名称"
size="small">
size="small"
clearable>
</el-input>
<el-button size="small"
type="primary"
......@@ -30,10 +30,10 @@
</div>
<div class="table">
<d2-table ref="multipleTable"
layout="total, prev, pager, next"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:has-num="false"
layout="total, prev, pager, next"
:pager-count="5"
:search-form="searchFormSearch"
:table-params="tableParams"
......
......@@ -732,9 +732,9 @@ export default {
.summary-box {
position: relative;
height: calc(100% - 91px);
margin-top: 8px;
margin-top: 18%;
box-sizing: border-box;
padding: 12px 35px 12px 13px;
padding: 12px 10px 12px 13px;
z-index: 9;
.help {
position: absolute;
......@@ -755,7 +755,7 @@ export default {
}
.fixed-summary02 {
position: absolute;
bottom: 12%;
bottom: 30%;
left: 50%;
transform: translateX(-54%);
min-width: 95px;
......
......@@ -125,7 +125,7 @@ export default {
},
{
label: "区域督导",
key: "flightSupervisionext",
key: "flightSupervisionText",
tooltip: true,
},
{
......
......@@ -50,7 +50,7 @@
</template>
<div class="btn-list flex">
<!-- 状态=未下发 -->
<template v-if="item.pushFlag == 0">
<template v-if="item.pushFlag == 0 || item.pushFlag == 2 || item.pushFlag == 3">
<el-button class="btn-default _btn"
:size="size"
@click="deleteStrategy(item)">
......@@ -58,9 +58,9 @@
</el-button>
</template>
<el-button class="btn-primary _btn"
type="primary"
plain
:size="size"
type="primary"
@click="$emit('toDetail', item)">
查看详情
</el-button>
......
......@@ -101,10 +101,10 @@
</div>
<div class="sub-value flex">
<template>
环比{{ formatMom(summaryInfo.contactConversionRateMon) }}
<template v-if="formatIsRatio(summaryInfo.contactConversionRateMon)">
环比{{ formatMom(summaryInfo.contactConversionRateMom) }}
<template v-if="formatIsRatio(summaryInfo.contactConversionRateMom)">
<img class="arrow"
:src="getIconSrc(formatIsRatio(summaryInfo.contactConversionRateMon))" />
:src="getIconSrc(formatIsRatio(summaryInfo.contactConversionRateMom))" />
</template>
</template>
</div>
......@@ -447,7 +447,8 @@ export default {
this.summaryInfoZJ = data || {};
this.startDay = data.periodStartDate;
this.endDay = data.periodEndDate;
this.showZJ = data.contactRate > 0;
this.showZJ
= data?.newCarDeliveryCount != null && data.newCarDeliveryCount !== "";
this.summaryLeftLoading = false;
console.log(data, "SummaryOverview/index.vue(查询门店经营概况-主机厂)");
} catch (error) {
......@@ -600,7 +601,7 @@ export default {
height: calc(100% - 91px);
margin-top: 8px;
box-sizing: border-box;
padding: 12px 35px 12px 13px;
padding: 12px 20px 12px 13px;
z-index: 9;
.help {
position: absolute;
......@@ -628,7 +629,6 @@ export default {
font-size: 13px;
.label {
color: #666666;
.num {
display: block;
color: #2a58ad;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!