Commit 8e1f8e15 by 李伟康

Merge branch 'feature/585/lwk' into 'SAAS+V5.8.5'

feat(earlyWarningManager): 完成策略中心多模块功能迭代优化

See merge request !942
2 parents 09ebe248 a18deb4d
......@@ -660,4 +660,27 @@ export function getStrategyStoreDetailSummaryZJ(data = {}) {
export function getStrategyGoodsSummaryWithWarnZJ(data = {}) {
data.method = "dj.api.strategy.merchant.analysis.goods.summary.withWarnZJ";
return request(data, RequestMethods.POST);
}
/**
* 策略中心-获取督导带教下发时可选的带教督导和被带教人员列表
*/
export function getStrategySupervisorOperators(data = {}) {
data.method = "dj.api.strategy.supervisor.operator.list";
return request(data, RequestMethods.POST);
}
/**
* 查询策略详情(统一入口,适配14种类型)
*/
export function queryStrategyInfoById(data = {}) {
data.method = "dj.api.strategy.info.queryStrategyInfoById";
return request(data, RequestMethods.POST);
}
/**
*策略分析-策略明细分页
*/
export function queryStrategyDetailPage(data = {}) {
data.method = "dj.api.strategy.find.strategy.detail.page";
return request(data, RequestMethods.POST);
}
\ No newline at end of file
......@@ -7,6 +7,7 @@
<el-select size="mini"
style="width: 120px;"
filterable
:popper-append-to-body="false"
:value="operatorFilter"
@change="handleOperatorChange">
<el-option v-for="operator in operatorList"
......
......@@ -13,8 +13,9 @@
:time-range-options="timeRangeOptions"
@date-range-change="handleDateRangeChange"
@time-range-change="handleTimeRangeChange" />
<div class="border-bottom-line"></div>
</div>
<div class="border-bottom-line"></div>
<div class="content-area">
<!-- 2. KPI 核心指标 -->
<div class="top-content">
......@@ -189,18 +190,40 @@
<div class="bottom-content">
<div class="d2-container-content">
<d2-table-header title="策略明细">
<el-button size="small" type="primary">
<el-button size="small"
type="primary"
@click="handleExport">
导出
</el-button>
</d2-table-header>
<d2-table ref="table"
<d2-table ref="table2"
no-data-text="暂无数据"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:get-list-api="getStrategyDetailPageApi"
:no-data-img="noDataImg"
:search-form="searchFormSearch"
:table-params="detailTableParams">
<template #pushFlagName="scope">
<div class="strategy-item-status" :class="[`strategy-item-status-${scope.scope.pushFlag}`]">
{{ scope.scope.pushFlagName }}
</div>
</template>
<template #description="scope">
<div>
<el-tooltip v-if="scope.scope.description"
effect="dark"
placement="top">
<template #content>
<div class="tooltip-content-max">
<div>{{ scope.scope.description }}</div>
</div>
</template>
<span class="two-line-ellipsis">{{ scope.scope.description }}</span>
</el-tooltip>
<span v-else>-</span>
</div>
</template>
<template #auth-button="scope">
<el-button type="text"
@click="handleViewDetail(scope.scope)">
......@@ -220,7 +243,9 @@
<script>
import dayjs from "dayjs";
import { getStrategyAnalysisEffect, getStrategyEffectList, getStrategyOnlineDist, getStrategyTotal, getStrategyTypeDist, getWarningTypeList } from "@/api/earlyWarningManager";
import { mapActions, mapState } from "vuex";
import { exportStrategyDetail, getStrategyAnalysisEffect, getStrategyEffectList, getStrategyOnlineDist, getStrategyTotal, getStrategyTypeDist, getWarningTypeList, queryStrategyDetailPage } from "@/api/earlyWarningManager";
import noDataImg from "@/assets/strategy/emepty-strategy.png";
import { deepClone } from "@/common/util";
import calendarCustom from "../strategyCentre/compoments/clendarCustom.vue";
......@@ -310,6 +335,7 @@ export default {
// 表格相关数据
searchFormSearch: {},
getListApi: null, // 在 mounted 中初始化
getStrategyDetailPageApi: null,
effectDetailVisible: false,
effectDetailRow: [],
// 策略类型分布运营人员筛选防抖定时器
......@@ -425,62 +451,76 @@ export default {
tableColumns: [
{
label: "门店名称",
prop: "storeName",
prop: "merchantName",
minWidth: 160,
},
{
label: "策略类型",
prop: "storeName",
prop: "strategyTypeName",
minWidth: 160,
},
{
label: "创建人",
prop: "storeName",
prop: "createdBy",
minWidth: 160,
},
{
label: "创建时间",
prop: "storeName",
prop: "createdDate",
minWidth: 160,
},
{
label: "策略目标",
prop: "storeName",
prop: "strategyTarget",
minWidth: 160,
formatter: (cellValue) => {
console.log(cellValue);
let businessType = this.currentTab.value;
if (cellValue.strategyTarget == "-" || cellValue.strategyTarget == null || cellValue.strategyTarget == undefined || cellValue.strategyTarget == "") {
return "-";
}
let text = "";
if (businessType == 2) {
text = `平均客单价${cellValue.strategyTarget}`;
} else {
text = `转化率${cellValue.strategyTarget}%`;
}
return text;
},
},
{
label: "策略说明",
prop: "storeName",
minWidth: 160,
addHtml: "description",
},
{
label: "执行周期",
prop: "storeName",
minWidth: 160,
prop: "executeCycle",
minWidth: 180,
},
{
label: "策略状态",
prop: "storeName",
minWidth: 160,
minWidth: 120,
addHtml: "pushFlagName",
},
{
label: "执行人",
prop: "storeName",
prop: "executePersons",
minWidth: 160,
},
{
label: "完成时间",
prop: "storeName",
prop: "finishTime",
minWidth: 160,
},
{
label: "执行结果",
prop: "storeName",
prop: "executeResult",
minWidth: 160,
},
{
label: "任务描述",
prop: "storeName",
prop: "taskDescription",
minWidth: 160,
},
],
......@@ -488,6 +528,9 @@ export default {
};
},
computed: {
...mapState({
dowloadList: state => state.d2admin.user.dowloadList,
}),
// 盯防类型选项(自动根据原始数据生成)
watchTypeOptions() {
if (!this.monitorTypeData || this.monitorTypeData.length === 0) {
......@@ -545,6 +588,7 @@ export default {
mounted() {
// 初始化包装后的 API 方法
this.getListApi = this.wrapStrategyEffectList;
this.getStrategyDetailPageApi = this.queryStrategyDetailPage;
// 启用页面滚动
this.enablePageScroll();
// 调用策略总数接口
......@@ -563,6 +607,11 @@ export default {
}
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close",
}),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
/**
* 包装 API 方法,将数组响应转换为 d2-table 期望的对象格式
*/
......@@ -603,11 +652,40 @@ export default {
};
}
},
async queryStrategyDetailPage(params) {
// 周、自定义周期不请求效果分析列表
try {
// const data = await getStrategyEffectList(params);
params.startDate = dayjs(this.startDate).format("YYYY-MM-DD") + " 00:00:00";
params.endDate = dayjs(this.endDate).format("YYYY-MM-DD") + " 23:59:59";
delete params.periodType;
delete params.warningType;
const data = await queryStrategyDetailPage(params);
console.log("queryStrategyDetailPage", data);
// axios 响应拦截器已返回 data 字段的内容(数组)
// 需要包装成 d2-table 期望的格式:{ data: [...], total: number }
return {
data: data.list || [],
total: data.total,
pageNum: data.pageNum,
pageSize: data.pageSize,
};
} catch (error) {
console.error("获取策略效果分析列表失败:", error);
return {
data: [],
total: 0,
pageNum: 1,
pageSize: 1000,
};
}
},
/**
* 刷新效果分析表格(beforeSearchFn 会同步 businessType 等参数,再调用 wrapStrategyEffectList)
*/
refreshEffectTable() {
this.$refs.table && this.$refs.table.refreshTable();
this.$refs.table2 && this.$refs.table2.refreshTable();
},
/**
* 搜索前处理
......@@ -880,6 +958,24 @@ export default {
query,
});
},
handleExport() {
const params = {
method: "dj.api.smartcarlife.strategy.detail.export",
startDate: dayjs(this.startDate).format("YYYY-MM-DD") + " 00:00:00",
endDate: dayjs(this.endDate).format("YYYY-MM-DD") + " 23:59:59",
businessType: this.currentTab.value,
};
const list = [
...this.dowloadList,
{
name: "策略明细" + Date.now(),
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime(),
},
];
this.actionSetDownloadList({ list, type: "dowloadList" });
},
},
};
</script>
......@@ -900,10 +996,16 @@ export default {
align-items: center;
justify-content: space-between;
background-color: #fff;
position: sticky;
top: 0;
z-index: 2;
}
.border-bottom-line {
margin-top: -1px;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
border-bottom: 1px solid #e5e5e5;
}
......@@ -1036,4 +1138,35 @@ export default {
height: 86px;
}
}
.strategy-item-status {
font-size: 14px;
flex-shrink: 0;
padding: 0 6px;
border-radius: 2px;
line-height: 21px;
width: fit-content;
margin: 0 auto;
}
.strategy-item-status-0 {
background: #fdb7571a;
color: #fdb757;
}
.strategy-item-status-1 {
background: #2a82e41a;
color: #2a82e4;
}
.strategy-item-status-2,
.strategy-item-status-7,
.strategy-item-status-9 {
background: #eb4e4e1a;
color: #eb4e4e;
}
.strategy-item-status-6 {
background: #8c8c8c1a;
color: #8c8c8c;
}
.strategy-item-status-8 {
background: #43cf7c1a;
color: #43cf7c;
}
</style>
\ No newline at end of file
......@@ -34,19 +34,19 @@
:value="item.value">
</el-option>
</el-select>
<el-input v-model="searchForm.staffName"
<el-input v-model="searchForm.customerName"
class="search-input"
placeholder="搜索客户名称"
size="small"
clearable>
</el-input>
<el-input v-model="searchForm.staffName"
<el-input v-model="searchForm.carModel"
class="search-input"
placeholder="搜索车型"
size="small"
clearable>
</el-input>
<el-input v-model="searchForm.staffName"
<el-input v-model="searchForm.productName"
class="search-input"
placeholder="搜索产品名称"
size="small"
......@@ -198,7 +198,7 @@ export default {
},
{
label: "产品名称",
prop: "carModel",
prop: "productName",
minWidth: 90,
},
],
......
......@@ -77,7 +77,6 @@
<script>
import {
getStrategyStaffList,
getStrategyStaffListNew,
} from "@api/earlyWarningManager";
import multipleMixin from "./multipleMixin";
......@@ -105,19 +104,13 @@ export default {
};
},
computed: {
isPhoneMode() {
return this.strategyType == 0 || this.strategyType == 1;
},
targetId() {
return this.isPhoneMode ? "phoneNumber" : "staffUuid";
},
getListApi() {
return this.isPhoneMode ? getStrategyStaffListNew : getStrategyStaffList;
return getStrategyStaffListNew;
},
tableParams() {
return {
listName: "list",
mutiSelectUniqueKey: this.targetId,
mutiSelectUniqueKey: "phoneNumber",
mutiSelectName: "contentIndex",
tableColumns: [
{
......
......@@ -85,7 +85,8 @@ const STRATEGY_FORM_2456 = [
let { strategyType } = val;
return [5, 6].includes(strategyType);
},
positionTypeList: [0, 6, 9],
positionTypeList: [0],
// positionTypeList: [0, 6, 9],
tagNameKey: "staffName",
delMerchantList: true,
},
......@@ -101,7 +102,7 @@ const STRATEGY_FORM_2456 = [
{
label: "最大订单数",
type: "numberInput",
key: "maxOrderNum",
key: "maxOrders",
filterRule: "decimalRange",
min: 0,
max: 999999,
......@@ -211,7 +212,7 @@ const STRATEGY_FORM_RULES_1 = {
const STRATEGY_FORM_RULES_2456 = {
dateRange: RANGE_DATE,
description: DESCRIPTION_RULES,
maxOrderNum: MAX_ORDER_NUM_RULES,
maxOrders: MAX_ORDER_NUM_RULES,
};
const STRATEGY_FORM_RULES_3 = {
title: TITLE_RULES,
......
......@@ -263,6 +263,8 @@ export default {
courseList: [],
recordingList: [],
pushTime: "",
maxOrders: "",
targetValue: "",
},
staffTagVisible: false,
staffTag1Visible: false,
......@@ -297,7 +299,7 @@ export default {
list.push({
label: "学习目标",
type: "numberInput",
key: "learningTarget",
key: "targetValue",
placeholder: "请输入学习目标",
filterRule: "decimalRange",
min: 0,
......@@ -481,7 +483,7 @@ export default {
try {
this.loading = true;
let { paramsInfo, merchantName, formData, strategyType, merchantList, currentBiz: biz } = this;
let { title, subTitle, content, staffList, staffList_1, courseList, recordingList, handlerType, description, pushType, dateRange, pushTime } = formData;
let { title, subTitle, content, staffList, staffList_1, courseList, recordingList, handlerType, description, pushType, dateRange, pushTime, targetValue, maxOrders } = formData;
this.$refs.addRef.validate(async (valid) => {
if (valid) {
let params = {
......@@ -496,7 +498,13 @@ export default {
pushType,
},
courseList,
strategyExtension: {
targetValue,
},
};
if ([0, 1].includes(strategyType) && (targetValue !== "" || targetValue !== null || targetValue !== undefined)) {
params.strategyExtension.targetValue = targetValue;
}
if (merchantList.length) {
params.merchantList = merchantList;
} else {
......@@ -544,6 +552,9 @@ export default {
};
});
}
if ([5, 6].includes(strategyType)) {
params.strategyExtension.maxOrders = maxOrders;
}
if (recordingList && recordingList.length) {
params.recordingList = recordingList.map((e) => {
return {
......
......@@ -21,14 +21,14 @@ const TASK_FORM_8 = [
key: "executorUuid",
placeholder: "请选择指定带教督导",
options: [],
labelKey: "directorName",
valueKey: "directorUserId",
labelKey: "name",
valueKey: "uuid",
filterable: true,
},
{
label: "带教目标",
type: "numberInput",
key: "learningTarget",
key: "targetValue",
placeholder: "请输入带教目标",
filterRule: "decimalRange",
min: 0,
......@@ -41,7 +41,7 @@ const TASK_FORM_8 = [
{
label: "带教场景",
type: "select",
key: "scene",
key: "mentoringScene",
placeholder: "请选择带教场景",
options: [
{ label: "线上", value: 1 },
......@@ -51,40 +51,40 @@ const TASK_FORM_8 = [
{
label: "带教时间",
type: "datetime",
key: "datetime",
key: "mentoringDate",
placeholder: "请选择带教时间",
pickerOptions: "afterPickerOptions",
},
{
label: "带教方式",
type: "select",
key: "type",
key: "mentoringMethod",
placeholder: "请选择带教方式",
disabledFun: (data) => {
let { scene } = data;
return !scene;
let { mentoringScene } = data;
return !mentoringScene;
},
optionsFun: (data) => {
let { scene } = data;
return scene == 1
let { mentoringScene } = data;
return mentoringScene == 1
? [
{ label: "视频培训", value: 1 },
{ label: "语音培训", value: 2 },
{ label: "课程推送", value: 3 },
]
: [
{ label: "陪同谈客", value: 4 },
{ label: "话术演练", value: 5 },
{ label: "知识赋能", value: 6 },
{ label: "心态疏导", value: 7 },
{ label: "新人带教", value: 8 },
{ label: "陪同谈客", value: 1 },
{ label: "话术演练", value: 2 },
{ label: "知识赋能", value: 3 },
{ label: "心态疏导", value: 4 },
{ label: "新人带教", value: 5 },
];
},
},
{
label: "带教主题",
type: "select",
key: "",
key: "mentoringTopic",
placeholder: "请选择带教主题",
options: [
{ label: "新品知识培训", value: 1 },
......@@ -94,7 +94,7 @@ const TASK_FORM_8 = [
{ label: "客户服务标准", value: 5 },
{ label: "门店管理规范", value: 6 },
{ label: "系统操作培训", value: 7 },
{ label: "其他", value: 8 },
{ label: "其他", value: 99 },
],
},
];
......@@ -115,7 +115,7 @@ const TASK_FORM_DEFAULT = [
{
label: "目标触客率",
type: "numberInput",
key: "targetRate",
key: "targetValue",
placeholder: "请输入目标触客率",
filterRule: "decimalRange",
min: 0,
......@@ -141,7 +141,7 @@ const TASK_FORM_DEFAULT = [
const TASK_FORM_RULES_8 = {
staffList: [{ required: true, message: "请选择需带教人员" }],
executorUuid: [{ required: true, message: "请选择指定带教督导", trigger: "change" }],
learningTarget: [{ required: true, message: "请输入带教目标", trigger: "blur" }],
targetValue: [{ required: true, message: "请输入带教目标", trigger: "blur" }],
};
const EXECUTOR_UUID_RULES = [{ required: true, message: "请选择执行人员", trigger: "change" }];
const DESCRIPTION_RULES = [{ required: true, message: "请输入任务说明", trigger: "blur" }];
......@@ -150,7 +150,7 @@ const TASK_FORM_RULES_9 = {
executorUuid: EXECUTOR_UUID_RULES,
};
const TASK_FORM_RULES_12 = {
targetRate: [{ required: true, message: "请输入目标率", trigger: "blur" }],
targetValue: [{ required: true, message: "请输入目标触客率", trigger: "blur" }],
executorUuid: EXECUTOR_UUID_RULES,
};
const TASK_FORM_RULES_13_14 = {
......
......@@ -169,7 +169,7 @@
</template>
<script>
import { batchCreateStrategy, getStrategyShopMerchantOperators } from "@/api/earlyWarningManager";
import { batchCreateStrategy, getStrategyShopMerchantOperators, getStrategySupervisorOperators } from "@/api/earlyWarningManager";
import {
afterPickerOptions,
} from "@/common/format";
......@@ -213,44 +213,20 @@ export default {
},
formData: {
taskType: "",
taskTitle: "",
staffList: [],
executorUuid: "",
description: "",
scene: "",
type: "",
},
rules: {
taskType: [
{ required: true, message: "请选择任务类型", trigger: "change" },
],
staffList: [
{ required: true, message: "请选择问题人员", trigger: "change" },
{
validator: (rule, value, callback) => {
if (this.formData.taskType === 9 && (!value || value.length === 0)) {
callback(new Error("请选择问题人员"));
} else {
callback();
}
},
trigger: "change",
},
],
executorUuid: [
{ required: true, message: "请选择执行人员", trigger: "change" },
],
description: [
{ required: true, message: "请输入任务说明", trigger: "blur" },
],
targetRate: [
{ required: true, message: "请输入目标率", trigger: "blur" },
],
mentoringScene: "",
mentoringMethod: "",
mentoringDate: "",
mentoringTopic: "",
targetValue: "",
},
staffTagVisible: false,
positionTypeList: [0], // 0:驻店人员
executorList: [], // 区域运营列表
positionTypeListSale: null,
supervisorList: [], // 带教督导列表
};
},
......@@ -271,15 +247,13 @@ export default {
},
taskTypeFormList() {
const { taskType } = this.formData;
const { executorList } = this;
const { executorList, supervisorList } = this;
const list = deepClone(taskType == 8 ? TASK_FORM_8 : TASK_FORM_DEFAULT);
if (taskType != 8) {
list.forEach((item) => {
if (item.key == "executorUuid") {
item.options = executorList;
}
});
}
list.forEach((item) => {
if (item.key == "executorUuid") {
item.options = taskType != 8 ? executorList : supervisorList;
}
});
return [
...list,
{
......@@ -299,7 +273,8 @@ export default {
8: TASK_FORM_RULES_8,
9: TASK_FORM_RULES_9,
12: TASK_FORM_RULES_12,
13_14: TASK_FORM_RULES_13_14,
13: TASK_FORM_RULES_13_14,
14: TASK_FORM_RULES_13_14,
};
return {
taskType: [
......@@ -320,10 +295,10 @@ export default {
this.init();
this.formData.taskType = val;
},
"formData.scene": {
"formData.mentoringScene": {
handler(val) {
if (this.formData.type) {
this.formData.type = "";
if (this.formData.mentoringMethod) {
this.formData.mentoringMethod = "";
}
},
immediate: true,
......@@ -335,10 +310,14 @@ export default {
this.loading = false;
this.formData = {
taskType: "",
taskTitle: "",
staffList: [],
executorUuid: "",
description: "",
mentoringScene: "",
mentoringMethod: "",
mentoringDate: "",
mentoringTopic: "",
targetValue: "",
};
this.$nextTick(() => {
if (this.formRef) {
......@@ -348,6 +327,9 @@ export default {
if (!this.executorList.length) {
this.loadExecutors();
}
if (!this.supervisorList.length) {
this.loadSupervisors();
}
},
close() {
this.dialogShow = false;
......@@ -371,6 +353,17 @@ export default {
this.executorList = [];
});
},
loadSupervisors() {
getStrategySupervisorOperators().then((res) => {
if (res && res.length) {
this.supervisorList = res;
} else {
this.supervisorList = [];
}
}).catch(() => {
this.supervisorList = [];
});
},
openStaffDialog() {
this.staffTagVisible = true;
},
......@@ -397,16 +390,18 @@ export default {
confirm() {
try {
this.loading = true;
let { paramsInfo, merchantName, formData, biz } = this;
let { taskType, taskTitle, staffList, executorUuid, description } = formData;
let { paramsInfo, merchantName, formData, biz, executorList, supervisorList } = this;
let { taskType, staffList, executorUuid, description, targetValue, mentoringScene, mentoringMethod, mentoringDate, mentoringTopic } = formData;
this.formRef.validate(async (valid) => {
if (valid) {
const executor = this.executorList.find(item => item.directorUserId === executorUuid);
let executorKey = taskType == 8 ? "uuid" : "directorUserId";
let list = taskType == 8 ? supervisorList : executorList;
console.log(list, executorUuid);
const executor = list.find(item => item[executorKey] == executorUuid);
let params = {
strategyInfo: {
strategyType: taskType,
biz,
title: taskTitle,
description,
},
merchantList: [
......@@ -416,6 +411,20 @@ export default {
},
],
};
let strategyExtension = {};
if ([8, 12].includes(+taskType)) {
if ((targetValue !== "" || targetValue !== null || targetValue !== undefined)) {
strategyExtension.targetValue = targetValue;
}
if (taskType == 8) {
strategyExtension.mentoringScene = mentoringScene;
strategyExtension.mentoringMethod = mentoringMethod;
strategyExtension.mentoringDate = mentoringDate;
strategyExtension.mentoringTopic = mentoringTopic;
}
params.strategyExtension = strategyExtension;
}
let allStaffs = [];
if (staffList && staffList.length) {
if (staffList.length > 100) {
......@@ -423,25 +432,44 @@ export default {
this.$message.error("最多只能选择100个问题人员");
return;
}
allStaffs = staffList.map(e => ({
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: 0, // 问题人员
}));
allStaffs = staffList.map((e) => {
let i = {
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: 0, // 问题人员
};
if (taskType == 8) {
i.relType = 2;
}
return i;
});
}
if (executor) {
allStaffs.push({
let userName = taskType == 8 ? executor.name : executor.directorName;
// eslint-disable-next-line style/multiline-ternary
let executorItem = taskType == 8 ? {
userUuid: executor.uuid,
userName,
userPhone: executor.phone,
userPosition: executor.userPosition,
relType: 1,
} : {
userUuid: executor.directorUserId,
userName: executor.directorName,
userName,
userPhone: executor.directorPhone,
userPosition: biz === 2 ? 8 : 9, // 执行人员:轻改=8,权益、延保=9
});
};
allStaffs.push(executorItem);
if (taskType != 8) {
params.strategyInfo.title = `${userName}的${TASKTYPEOPTION.find(item => item.value == taskType).label}`;
}
}
if (allStaffs.length) {
params.staffList = allStaffs;
}
const { code, data, message } = await batchCreateStrategy(params);
this.loading = false;
if (code == 0) {
......
......@@ -385,7 +385,7 @@ export default {
},
{
label: "平均客单价",
key: "avgOrderAmount",
key: "avgTransactionValue",
},
{
label: "套餐销售率",
......
......@@ -69,7 +69,7 @@ const STRATEGY_FORM_2456 = [
},
{
label: "最大订单数",
key: "maxOrderNum",
key: "maxOrders",
hide: (val) => {
let {
strategyType,
......
......@@ -110,6 +110,7 @@
<script type='text/ecmascript-6'>
import dayjs from "dayjs";
import {
queryStrategyInfoById,
queryStrategyStudyDetailById,
queryStrategyTaskDetailById,
} from "@/api/earlyWarningManager";
......
......@@ -137,7 +137,7 @@ export default {
},
toDetail(item) {
this.currentItem = item;
if ([8, 9, 10, 11, 12, 13, 14].includes(item.strategyType)) {
if ([8, 9, 10, 11, 12, 13, 14].includes(+item.strategyType)) {
this.taskDetailVisible = true;
} else {
this.strategyDetailVisible = true;
......
......@@ -55,7 +55,7 @@
</template>
<script>
import { queryStrategyStudyDetailById } from "@/api/earlyWarningManager";
import { queryStrategyInfoById, queryStrategyStudyDetailById } from "@/api/earlyWarningManager";
export default {
name: "TaskDetail",
......@@ -124,7 +124,6 @@ export default {
10: "商务政策更新评估",
11: "多品类扩张",
12: "流量类-提升触客率",
// 👇
13: "流量类-多场景拓展",
14: "流量类-拓新店流量",
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!