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