Commit c7c258fe by 张立顺

Merge branch 'SAAS+V5.8.2' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.8.2
2 parents 9019f48c 05e8fb6a
Showing 98 changed files with 2319 additions and 1132 deletions
......@@ -7,6 +7,8 @@ node_modules
.cursorrules
.cursor
.trae
.claude
.github
.vscode/changelists.json
# 本地环境文件不上传
.env.local
......
......@@ -2,14 +2,8 @@
"eslint.enable": true,
"eslint.format.enable": true,
"prettier.enable": false,
"i18n-ally.localesPaths": [
"src/locales"
],
"cSpell.words": [
"vuex",
"Cascader",
"glsx"
],
"i18n-ally.localesPaths": ["src/locales"],
"cSpell.words": ["vuex", "Cascader", "glsx"],
"workbench.tree.indent": 24,
"explorer.compactFolders": false,
"scm.compactFolders": false,
......@@ -71,10 +65,7 @@
// "source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"editor.pasteAs.preferences": [
"text.updateImports.jsts",
"text"
],
"editor.pasteAs.preferences": ["text.updateImports.jsts", "text"],
"eslint.validate": [
"javascript",
"javascriptreact",
......@@ -100,5 +91,8 @@
"javascript.preferences.importModuleSpecifier": "non-relative", // 优先使用 @/ 别名路径
"javascript.suggest.autoImports": true, // 确保这个是 true
"vue.updateImportsOnFileMove.enabled": true,
"i18n-ally.sourceLanguage": "zh-chs"
"i18n-ally.sourceLanguage": "zh-chs",
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
# 项目协作规则
## 沟通方式
- 向用户汇报成果时,用简洁明了的中文说明做了什么、发生了什么。
- 避免使用术语、技术实现细节和代码行话;按“向不懂代码的聪明人解释”的方式表达。
- 汇报前尽量先检查工作,能运行或测试的先运行或测试。
## 表单规则
- 后台页面新增或重写业务表单时,优先使用 `glsx-combi-form` 组件。
- 弹窗表单也按 `glsx-combi-form` 的配置化写法组织字段、校验和自定义插槽。
- 只有在 `glsx-combi-form` 无法满足交互时,才单独使用原生 `el-form`,并说明原因。
......@@ -29,6 +29,7 @@ export default antfu({
"array-bracket-spacing": ["error", "always"],
},
rules: {
"vue/no-deprecated-slot-attribute": "off",
"vue/no-deprecated-v-on-native-modifier": "off",
"vue/no-deprecated-destroyed-lifecycle": "off",
"vue/no-deprecated-model-definition": "off",
......
import request from "./request"
import request from "./request";
const path = "dj.api.smartcarlife."
const path = "dj.api.smartcarlife.";
// 分页查询预付款管理记录
export function advancePaymentPage(data) {
data.method = `${path}advancePayment.page`
return request(data)
data.method = `${path}advancePayment.page`;
return request(data);
}
// 分页查询门店预付款明细记录
export function advancePaymentShopDetailPage(data) {
data.method = `${path}advancePayment.shopDetailPage`
return request(data)
data.method = `${path}advancePayment.shopDetailPage`;
return request(data);
}
// 分页查询收付款管理记录
// export function advancePaymentTradePage(data) {
......@@ -21,25 +21,25 @@ export function advancePaymentShopDetailPage(data) {
// 分页查询预付款管理商户信息
export function advancePaymentMerchantPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.merchantPage"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.merchantPage";
return request(data, "post");
}
// 查询商户月份付款信息
export function getMerchantMonthPayInfo(data) {
data.method = "dj.api.smartcarlife.advancePayment.getMerchantMonthPayInfo"
return request(data)
data.method = "dj.api.smartcarlife.advancePayment.getMerchantMonthPayInfo";
return request(data);
}
// 分页查询商户月份付款信息
export function getMerchantPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.merchantPage"
return request(data)
data.method = "dj.api.smartcarlife.advancePayment.merchantPage";
return request(data);
}
// 分页查询预付款管理记录
export function advancePaymentPageExportAsync(data) {
data.method = "dj.api.smartcarlife.advancePayment.page.export.async"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.page.export.async";
return request(data, "post");
}
// /router/dj.api.smartcarlife.advancePayment.page.export.async/1.0.0
// 导出预付款管理记录列表(异步)
......@@ -49,8 +49,8 @@ export function advancePaymentPageExportAsync(data) {
// 新增收付款管理记录
export function advancePaymentTradeAdd(data) {
data.method = "dj.api.smartcarlife.advancePayment.trade.add"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.trade.add";
return request(data, "post");
}
// /router/dj.api.smartcarlife.advancePayment.tradePage.export.async/1.0.0
......@@ -58,8 +58,8 @@ export function advancePaymentTradeAdd(data) {
// 分页查询收付款管理记录
export function advancePaymentTradePage(data) {
data.method = "dj.api.smartcarlife.advancePayment.tradePage"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.tradePage";
return request(data, "post");
}
// /router/dj.api.smartcarlife.advancePayment.tradePage.export.async/1.0.0
// 导出收付款管理列表(异步)
......@@ -67,15 +67,15 @@ export function advancePaymentTradePage(data) {
// /router/dj.api.smartcarlife.advancePayment.traffic.add/1.0.0
// 新增流量费/我司收益管理记录
export function trafficAdd(data) {
data.method = "dj.api.smartcarlife.advancePayment.traffic.add"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.traffic.add";
return request(data, "post");
}
// /router/dj.api.smartcarlife.advancePayment.trafficPage/1.0.0
// 分页查询流量费/我司收益管理记录
export function trafficPage(data) {
data.method = "dj.api.smartcarlife.advancePayment.trafficPage"
return request(data, "post")
data.method = "dj.api.smartcarlife.advancePayment.trafficPage";
return request(data, "post");
}
// /router/dj.api.smartcarlife.advancePayment.trafficPage.export.async/1.0.0
......@@ -83,15 +83,38 @@ export function trafficPage(data) {
// 分页查询银盛线上对账单管理记录
export function onlinestatementAccountPage(data) {
data.method = "dj.api.smartcarlife.onlineStatementAccount.page"
return request(data, "post")
data.method = "dj.api.smartcarlife.onlineStatementAccount.page";
return request(data, "post");
}
/**
* 查询银盛线上对账单管理统计信息
*/
export function onlineStatementAccountCountTotal(data) {
data.method = "dj.api.smartcarlife.onlineStatementAccount.countTotal"
return request(data, "post")
data.method = "dj.api.smartcarlife.onlineStatementAccount.countTotal";
return request(data, "post");
}
/**
* 分页查询银盛线上对账单分账-明细记录
*/
export function onlineDivisionDetailPage(data) {
data.method = "dj.api.smartcarlife.onlineStatementAccount.divisionDetailPage";
return request(data, "post");
}
/**
* 分页查询银盛线上对账单明细-收款记录
*/
export function onlinePaymentDetailPage(data) {
data.method = "dj.api.smartcarlife.onlineStatementAccount.paymentDetailPage";
return request(data, "post");
}
/**
* 分页查询银盛线上对账单汇总-收款记录
*/
export function onlinePaymentMonthTotalPage(data) {
data.method = "dj.api.smartcarlife.onlineStatementAccount.paymentMonthTotalPage";
return request(data, "post");
}
......@@ -4,8 +4,7 @@ export function getCurrentSixMonth(n = 5) {
}
export function formatThousand(val) {
if (val === null || val === undefined || val === "")
return "-";
if (val === null || val === undefined || val === "") return "-";
const str = String(val);
const parts = str.split(".");
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
......@@ -20,7 +19,7 @@ export function limitPrice(
pointDigit,
minValue,
maxValue,
regRule,
regRule
) {
// console.log(
// newValue,
......@@ -38,8 +37,8 @@ export function limitPrice(
};
regRule = regRule || "priceReg";
if (
newValue
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) {
return oldValue || "";
}
......@@ -48,16 +47,16 @@ export function limitPrice(
newValue = newValue + "";
let interger = newValue.split(".")[0];
let point = newValue.split(".")[1];
let intergerNum
= interger.length > intergerDigit ? oldValue.split(".")[0] : interger;
let pointNum
= point.length > pointDigit ? point.slice(0, pointDigit) : point;
let intergerNum =
interger.length > intergerDigit ? oldValue.split(".")[0] : interger;
let pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit
? intergerNum + "." + pointNum
: newValue.split(".")[0];
} else {
newValue
= newValue.length > intergerDigit
newValue =
newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit)
: newValue;
}
......@@ -149,9 +148,9 @@ export const appointDays = 35;
export const afterTodayOptions = {
disabledDate(date) {
if (
date < new Date(new Date().toLocaleDateString())
|| date
> new Date(new Date().setDate(new Date().getDate() + (appointDays - 1)))
date < new Date(new Date().toLocaleDateString()) ||
date >
new Date(new Date().setDate(new Date().getDate() + (appointDays - 1)))
) {
return true;
}
......@@ -288,8 +287,8 @@ export const rangePickerOptions_year_2023 = {
// console.log(new Date())
if (
date.getFullYear() > new Date().getFullYear()
|| date.getFullYear() < 2023
date.getFullYear() > new Date().getFullYear() ||
date.getFullYear() < 2023
) {
return true;
}
......@@ -322,7 +321,7 @@ export const todayEndPickerOptions = {
today.getDate(),
23,
59,
59,
59
);
return time.getTime() > todayEnd.getTime();
......@@ -331,7 +330,7 @@ export const todayEndPickerOptions = {
export const stockQueryDatePickerOptions = {
disabledDate(time) {
const minDate = new Date(2026, 1, 1);
const minDate = new Date(2026, 1, 1); // 2026年2月1日 (月份从0开始,1代表2月)
minDate.setHours(0, 0, 0, 0);
const today = new Date();
......@@ -341,12 +340,11 @@ export const stockQueryDatePickerOptions = {
today.getDate(),
23,
59,
59,
59
);
return (
time.getTime() < minDate.getTime()
|| time.getTime() > todayEnd.getTime()
time.getTime() < minDate.getTime() || time.getTime() > todayEnd.getTime()
);
},
};
......@@ -383,7 +381,7 @@ export const rangePickerOptions_outputValue = {
const year = time.getFullYear();
const month = time.getMonth();
const isAllowed = allowedMonths.some(
m => m.year === year && m.month === month,
(m) => m.year === year && m.month === month
);
return !isAllowed; // 不在允许范围则禁用
},
......@@ -418,7 +416,7 @@ export const rangePickerOptions_oneYearNoFuture = {
const todayStart = new Date(
today.getFullYear(),
today.getMonth(),
today.getDate(),
today.getDate()
).getTime();
// 不可选未来时间
if (time.getTime() > todayStart) {
......@@ -430,12 +428,9 @@ export const rangePickerOptions_oneYearNoFuture = {
const minTime = selectDate_oneYearNoFuture - oneYearMs;
const maxTime = Math.min(
selectDate_oneYearNoFuture + oneYearMs,
todayStart,
);
return (
time.getTime() < minTime
|| time.getTime() > maxTime
todayStart
);
return time.getTime() < minTime || time.getTime() > maxTime;
}
return false;
},
......@@ -464,7 +459,7 @@ export const rangePickerOptions_deliveryQuantity = {
// 处理跨年情况(如当前为1月时,上个月是去年12月)
currentMonth === 0
? { year: currentYear - 1, month: 11 }
: { year: currentYear, month: currentMonth - 1 },
: { year: currentYear, month: currentMonth - 1 }
);
}
......@@ -472,7 +467,7 @@ export const rangePickerOptions_deliveryQuantity = {
const year = time.getFullYear();
const month = time.getMonth();
const isAllowed = allowedMonths.some(
m => m.year === year && m.month === month,
(m) => m.year === year && m.month === month
);
return !isAllowed; // 不在允许范围则禁用
},
......
......@@ -18,9 +18,9 @@
@sort-change="sortChange">
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
align="center"
:selectable="selectableFn"
type="selection"
width="55" />
width="55"
:selectable="selectableFn" />
<el-table-column v-if="tableParams.singleSelectUniqueKey"
align="center"
width="55">
......@@ -30,6 +30,9 @@
</el-table-column>
<el-table-column v-if="hasNum"
align="center"
label="序号"
type="index"
width="60px"
:index="
(index) =>
index
......@@ -39,10 +42,7 @@
- 1)
* (pagination.pageSize ? pagination.pageSize : page.pageSize)
+ 1
"
label="序号"
type="index"
width="60px" />
" />
<template v-for="(item, index) in tableParams.tableColumns">
<el-table-column v-if="item.children && item.children.length"
:key="`group-${index}`"
......@@ -57,7 +57,6 @@
:search-form="headSearchForm"
@handleTableHeadChange="handleTableHeadChange" />
<img v-if="item.headerImgObj"
:src="require('@/assets/icon-edit2.png')"
style="
cursor: pointer;
margin-left: 5px;
......@@ -65,22 +64,23 @@
height: 16px;
vertical-align: middle;
"
:src="require('@/assets/icon-edit2.png')"
@click="handleHeaderBatch(item)" />
<el-popover v-if="item.isPopConfig"
:content="item.isPopConfig.text"
placement="top-start"
trigger="hover"
width="200">
width="200"
:content="item.isPopConfig.text">
<template #reference>
<img :src="require('@/assets/mark.png')"
style="
<img style="
cursor: pointer;
margin-left: 5px;
width: 13.33px;
height: 13.33px;
vertical-align: middle;
" />
"
:src="require('@/assets/mark.png')" />
</template>
</el-popover>
</template>
......@@ -102,13 +102,13 @@
:search-form="headSearchForm"
@handleTableHeadChange="handleTableHeadChange" />
<img v-if="sub.headerImgObj"
:src="require('@/assets/icon-edit2.png')"
style="
cursor: pointer;
margin-left: 5px;
width: 16px;
height: 16px;
vertical-align: middle;"
:src="require('@/assets/icon-edit2.png')"
@click="handleHeaderBatch(sub)" />
</template>
<template #default="scope">
......@@ -137,9 +137,13 @@
</span>
</template>
<template v-else-if="sub.useTag">
<el-tag :type="getSchemaTagOptions(sub, scope.row).type">
<div>
<el-tag v-if="hasValue(sub, scope.row)" :type="getSchemaTagOptions(sub, scope.row).type">
{{ getSchemaTagOptions(sub, scope.row).label }}
</el-tag>
<span v-else></span>
</div>
</template>
<template v-else-if="sub.formatter">
<span v-if="sub.html" v-html="sub.formatter(scope.row)" />
......@@ -195,29 +199,29 @@
:search-form="headSearchForm"
@handleTableHeadChange="handleTableHeadChange" />
<img v-if="item.headerImgObj"
:src="require('@/assets/icon-edit2.png')"
style="
cursor: pointer;
margin-left: 5px;
width: 16px;
height: 16px;
vertical-align: middle;"
:src="require('@/assets/icon-edit2.png')"
@click="handleHeaderBatch(item)" />
<el-popover v-if="item.isPopConfig"
:content="item.isPopConfig.text"
placement="top-start"
trigger="hover"
width="200">
width="200"
:content="item.isPopConfig.text">
<template #reference>
<img :src="require('@/assets/mark.png')"
style="
<img style="
cursor: pointer;
margin-left: 5px;
width: 13.33px;
height: 13.33px;
vertical-align: middle;
" />
"
:src="require('@/assets/mark.png')" />
</template>
</el-popover>
</template>
......@@ -247,9 +251,13 @@
</span>
</template>
<template v-else-if="item.useTag">
<el-tag :type="getSchemaTagOptions(item, scope.row).type">
<div>
<el-tag v-if="hasValue(item, scope.row)" :type="getSchemaTagOptions(item, scope.row).type">
{{ getSchemaTagOptions(item, scope.row).label }}
</el-tag>
<span v-else></span>
</div>
</template>
<template v-else-if="item.formatter">
<span v-if="item.html" v-html="item.formatter(scope.row)" />
......@@ -287,16 +295,16 @@
</el-table-column>
</template>
<el-table-column v-if="tableParams.tableOption"
label="操作"
:align="tableParams.tableOption.align || 'center'"
:fixed="tableParams.tableOption.fixed || 'right'"
label="操作"
:width="tableParams.tableOption.width || 'auto'">
<template #default="scope">
<slot :index="scope.$index"
name="auth-button"
<slot name="auth-button"
:index="scope.$index"
:scope="scope.row" />
<slot :index="scope.$index"
name="auth-button-other"
<slot name="auth-button-other"
:index="scope.$index"
:scope="scope.row" />
</template>
</el-table-column>
......@@ -594,6 +602,10 @@ export default {
methods: {
get,
hasValue(schema, row) {
const value = get(row, schema.prop);
return value !== null && value !== undefined && value !== "";
},
getSchemaTagOptions(schema, row) {
if (!schema.tagOptions) {
return {};
......
......@@ -3,8 +3,8 @@
<div class="glsk-form-dialog">
<d2-dialog :append-to-body="appendToBody"
:btn-ok-label="dialogConfig.okText"
:noCancel="dialogConfig.hideClose"
:is-visible="selectVisible"
:no-cancel="dialogConfig.hideClose"
:title="dialogConfig.title"
:width="dialogWidth"
@closeDialog="handleClose"
......@@ -16,6 +16,7 @@
:form-obj="editData"
:form-ref="editChildRef"
:form-rules="formRules"
:form-select-obj="formSelectObj"
:is-block="isBlock"
:label-width="labelWidth"
:nested-modal-append-to-body="nestedModalAppendToBody"
......@@ -91,6 +92,11 @@ export default {
type: Boolean,
default: false,
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
formSelectObj: {
type: Object,
default: () => {},
},
},
data() {
return {
......
......@@ -314,7 +314,7 @@ export const routerName = {
path: "/theAssetData",
name: "theAssetData",
meta: {
title: "财资数据",
title: "财资数据(广联)",
authId: "90509",
parentId: "905",
cache: false,
......@@ -537,6 +537,20 @@ export const routerName = {
label: "服务商对账单",
handle: "handleCreateServiceBill",
},
{
authId: "9051115",
parentId: "90511",
label: "导入对账单",
category: "Button",
type: "primary",
handle: "handleImportBill",
},
{
authId: "9051116",
parentId: "90511",
label: "市场费转账",
handle: "handleMarketTransfer",
},
],
component: _import("financeManage/accountStateManage/index"),
},
......@@ -854,9 +868,41 @@ export const routerName = {
type: "primary",
handle: "handleExport",
},
{
authId: "9051702",
parentId: "90517",
label: "对账单明细导出",
category: "Button",
type: "primary",
handle: "handleExportDetail",
},
{
authId: "9051703",
parentId: "90517",
label: "明细",
handle: "handleOnlineDetail",
addRoutePath: [
{
authId: "905170301",
name: "银盛线上对账单详情",
parentId: "90517",
},
],
},
],
component: _import("financeManage/ysprepaymentManage/index"),
},
905170301: {
path: "/ysprepaymentDetail/detail",
name: "ysprepaymentDetail",
meta: {
title: "银盛线上对账单详情",
authId: "905170301",
parentId: "90517",
cache: false,
},
component: _import("financeManage/ysprepaymentManage/onlineDetail"),
},
90518: {
path: "/exceptionOrderManage",
name: "exceptionOrderManage",
......@@ -918,4 +964,53 @@ export const routerName = {
},
component: _import("financeManage/exceptionOrderManage/detail"),
},
90519: {
path: "/YJTheAssetData",
name: "YJTheAssetData",
meta: {
title: "财资数据(优加)",
authId: "90519",
parentId: "905",
cache: false,
},
auth: [
{
authId: "9051901",
parentId: "90519",
label: "重取明细",
category: "Button",
type: "primary",
handle: "handleRefetchDetail",
},
{
authId: "9051902",
parentId: "90519",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport",
},
{
authId: "9051903",
parentId: "90519",
label: "详情",
handle: "handleDetail",
},
{
authId: "9051904",
parentId: "90519",
label: "回单",
handle: "handleReceipt",
},
{
authId: "9051905",
parentId: "90519",
label: "批量打印",
category: "Button",
type: "primary",
handle: "handleBatchPrint",
},
],
component: _import("financeManage/YJTheAssetData/index"),
},
};
<template>
<baseDialog class="effect-detail-dialog"
:config="config"
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow">
<div class="content">
<div class="block">
<div class="business-box">
<img class="bg"
src="@/assets/strategy/strategy-analyse-bg.png">
<div class="left">
<div class="business-title">
当前周期
</div>
<template v-for="(item, index) in row">
<div :key="index"
class="business-item">
<div class="label">
{{ item.categoryExtension }}
</div>
<div class="value flex">
<template v-if="item.currentValue >= 0">
{{ item.currentValue }}<template v-if="item.unit">
{{ item.unit }}
</template>
</template>
<template v-else>
-
</template>
</div>
</div>
</template>
</div>
<div class="right">
<div class="business-title">
下一周期
</div>
<template v-for="(item, index) in row">
<div :key="index"
class="business-item">
<div class="label">
{{ item.categoryExtension }}
</div>
<div class="value flex">
<template v-if="item.nextValue >= 0">
{{ item.nextValue }}<template v-if="item.unit">
{{ item.unit }}
</template>
<img class="arrow"
:src="getIconSrc(formatIsRatio(item.nextValue - item.currentValue))" />
</template>
<template v-else>
-
</template>
</div>
</div>
</template>
</div>
</div>
</div>
</div>
</baseDialog>
</template>
<script>
const decline = require("@/assets/strategy/decline.png");
const just01 = require("@/assets/strategy/just01.png");
const rise = require("@/assets/strategy/rise.png");
export default {
name: "EffectDetailDialog",
props: {
visible: {
type: Boolean,
default: false,
},
row: {
type: Array,
default: () => [],
},
searchParams: {
type: Object,
default: () => ({}),
},
},
data() {
return {
config: {
isShowFooter: false,
cancel_name: "关闭",
hideConfirmBtn: true,
},
dialogConfig: {
config: {
title: "效果分析",
width: "720px",
},
},
};
},
computed: {
dialogShow: {
get() {
return this.visible;
},
set() {
this.close();
},
},
},
methods: {
close() {
this.$emit("update:visible", false);
},
getIconSrc(name) {
return {
rise,
decline,
just01,
}[name] ?? "";
},
formatIsRatio(delta) {
return delta < 0 ? "decline" : delta === 0 ? "just01" : "rise";
},
},
};
</script>
<style scoped lang="scss">
.flex {
display: flex;
align-items: center;
}
.arrow {
width: 16px;
height: 16px;
transform: translateY(1px);
}
.content {
min-height: 289px;
}
.block {
&-title {
padding: 0 0 8px;
}
&-icon {
width: 16px;
height: 16px;
margin-right: 4px;
}
.business-box {
height: 289px;
border-radius: 4px;
position: relative;
display: flex;
box-sizing: border-box;
padding: 10px;
.bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.left,
.right {
width: 59%;
display: flex;
flex-direction: column;
gap: 14px;
position: relative;
z-index: 2;
.business-title {
padding-top: 16px;
color: #1d1d1d;
font-size: 14px;
font-weight: 500;
}
.business-item {
display: flex;
align-items: center;
font-size: 13px;
.label {
width: 104px;
color: #888888;
}
.value {
color: #1d1d1d;
}
}
}
.left {
box-sizing: border-box;
padding-left: 15%;
}
.right {
border-radius: 4px;
background: #ffffffcc;
padding-left: 24px;
.business-item {
.value {
color: #2a58ad;
font-size: 16px;
font-weight: 500;
}
}
}
}
}
</style>
......@@ -3,55 +3,57 @@
<div class="card-header">
<span class="card-title">策略类型分布</span>
<div class="operator-filter">
线上运营人员:
<el-select
:value="operatorFilter"
size="mini"
运营人员:
<el-select size="mini"
style="width: 120px;"
@change="handleOperatorChange"
>
<el-option
v-for="operator in operatorList"
:value="operatorFilter"
@change="handleOperatorChange">
<el-option v-for="operator in operatorList"
:key="operator.value"
:label="operator.label"
:value="operator.value"
></el-option>
:value="operator.value">
</el-option>
</el-select>
</div>
</div>
<div class="chart-container" v-show="hasChartData">
<div v-show="hasChartData" class="chart-container">
<!-- ECharts 容器 -->
<div ref="pieChart" class="echart-box"></div>
<!-- 自定义图例 -->
<div class="custom-legend">
<div
class="legend-item"
v-for="(item, index) in processedPieData"
<div v-for="(item, index) in processedPieData"
:key="index"
>
<div
class="legend-dot"
:style="{ background: item.color }"
></div>
<div class="legend-name">{{ item.name }}</div>
class="legend-item">
<div class="legend-dot"
:style="{ background: item.color }">
</div>
<div class="legend-name">
{{ item.name }}
</div>
<div class="legend-right">
<div class="legend-percent">{{ item.percent }}%</div>
<div class="legend-percent">
{{ item.percent }}%
</div>
<span class="legend-sep">|</span>
<div class="legend-value">{{ item.value }}</div>
<div class="legend-value">
{{ item.value }}
</div>
</div>
</div>
</div>
</div>
<div v-show="!hasChartData" class="empty-box">
<img :src="noDataImg" alt="暂无数据">
<div class="empty-text">暂无数据</div>
<img alt="暂无数据" :src="noDataImg">
<div class="empty-text">
暂无数据
</div>
</div>
</div>
</template>
<script>
import * as echarts from 'echarts';
import { merchantStaffByRoleList } from '@api/index';
import { merchantStaffByRoleList } from "@api/index";
import * as echarts from "echarts";
import noDataImg from "@/assets/strategy/emepty-strategy.png";
/**
......@@ -59,13 +61,13 @@ import noDataImg from "@/assets/strategy/emepty-strategy.png";
* @type {Object<number, {name: string, color: string}>}
*/
const STRATEGY_TYPE_CONFIG = {
0: { name: '学习', color: '#409EFF' },
1: { name: '优秀案例分享', color: '#36CBCB' },
2: { name: '带教', color: '#67C23A' },
3: { name: '任务下发', color: '#FFD666' },
4: { name: '销售精英到店提拉', color: '#B3E19D' },
5: { name: '强力促销', color: '#E6A23C' },
6: { name: '最终盘点与低客单产品购入', color: '#9254DE' }
0: { name: "学习", color: "#409EFF" },
1: { name: "优秀案例分享", color: "#36CBCB" },
2: { name: "带教", color: "#67C23A" },
3: { name: "任务下发", color: "#FFD666" },
4: { name: "销售精英到店提拉", color: "#B3E19D" },
5: { name: "强力促销", color: "#E6A23C" },
6: { name: "最终盘点与低客单产品购入", color: "#9254DE" },
};
/**
......@@ -73,16 +75,16 @@ const STRATEGY_TYPE_CONFIG = {
* @param {number} strategyType - 策略类型编号
* @returns {{name: string, color: string}}
*/
const getStrategyTypeConfig = (strategyType) => {
function getStrategyTypeConfig(strategyType) {
return STRATEGY_TYPE_CONFIG[strategyType];
};
}
/**
* 转换策略类型分布数据为图表数据格式
* @param {Array} apiData - API 返回的原始数据
* @returns {Array} 图表数据
*/
const transformStrategyData = (apiData) => {
function transformStrategyData(apiData) {
if (!Array.isArray(apiData) || apiData.length === 0) {
return [];
}
......@@ -93,7 +95,7 @@ const transformStrategyData = (apiData) => {
// 转换数据格式
return validData
.map(item => {
.map((item) => {
const { strategyType, strategyCount = 0, percent } = item;
const config = getStrategyTypeConfig(strategyType);
const calculatedPercent = percent ?? (total > 0 ? Math.round((strategyCount / total) * 100) : 0);
......@@ -103,25 +105,25 @@ const transformStrategyData = (apiData) => {
value: strategyCount,
percent: calculatedPercent,
color: config.color,
strategyType // 保留原始类型用于调试
strategyType, // 保留原始类型用于调试
};
})
.sort((a, b) => b.value - a.value); // 按数量降序排序
};
}
export default {
name: 'StrategyTypeDistribution',
name: "StrategyTypeDistribution",
props: {
// 策略类型分布原始数据(由父组件传递)
pieData: {
type: Array,
default: () => []
default: () => [],
},
// 运营人员筛选值(双向绑定)
operatorFilter: {
type: [String, Number],
default: null
}
default: null,
},
},
data() {
return {
......@@ -129,10 +131,10 @@ export default {
myChart: null,
// 运营人员列表
operatorList: [
{ label: '全部', value: null },
{ label: "全部", value: null },
],
// 处理后的图表数据
processedPieData: []
processedPieData: [],
};
},
computed: {
......@@ -155,7 +157,7 @@ export default {
*/
chartOption() {
return this.getChartOption();
}
},
},
watch: {
// 监听原始数据变化,处理数据并更新图表
......@@ -167,12 +169,12 @@ export default {
});
},
immediate: true,
deep: true
}
deep: true,
},
},
mounted() {
this.initChart();
window.addEventListener('resize', this.resizeChart);
window.addEventListener("resize", this.resizeChart);
// 获取线上运营列表
this.getOnlineOpsList();
// 数据加载由 watch 统一管理,无需在此处调用
......@@ -185,25 +187,25 @@ export default {
}
// 清理事件监听器
window.removeEventListener('resize', this.resizeChart);
window.removeEventListener("resize", this.resizeChart);
},
methods: {
/**
* 获取线上运营列表
*/
getOnlineOpsList() {
merchantStaffByRoleList({ roleName: '线上运营' }).then((res) => {
merchantStaffByRoleList({ roleName: "线上运营" }).then((res) => {
if (res) {
// 将返回的数据转换为选择器需要的格式
this.operatorList = res.map(item => ({
value: item.uuid,
label: item.staffName
label: item.staffName,
}));
// 在列表前面添加"全部"选项
if (this.operatorList.length && this.operatorList[0].label !== '全部') {
if (this.operatorList.length && this.operatorList[0].label !== "全部") {
this.operatorList.unshift({
value: null,
label: '全部'
label: "全部",
});
}
}
......@@ -215,7 +217,7 @@ export default {
*/
handleOperatorChange(value) {
// 通过 .sync 修饰符自动更新父组件的值
this.$emit('update:operatorFilter', value);
this.$emit("update:operatorFilter", value);
},
/**
......@@ -226,36 +228,36 @@ export default {
return {
series: [
{
name: '策略总数',
type: 'pie',
radius: ['55%', '75%'],
center: ['50%', '50%'],
name: "策略总数",
type: "pie",
radius: ["55%", "75%"],
center: ["50%", "50%"],
avoidLabelOverlap: false,
itemStyle: {
borderRadius: 0,
borderColor: '#fff',
borderColor: "#fff",
borderWidth: 2,
},
label: {
show: true,
position: 'center',
formatter: this.hasChartData ? `策略总数` : '暂无数据',
position: "center",
formatter: this.hasChartData ? `策略总数` : "暂无数据",
fontSize: 18,
color: '#666666',
lineHeight: 20
color: "#666666",
lineHeight: 20,
},
emphasis: {
},
labelLine: {
show: false
show: false,
},
data: this.processedPieData.map(item => ({
value: item.value,
name: item.name,
itemStyle: { color: item.color }
}))
}
]
itemStyle: { color: item.color },
})),
},
],
};
},
......@@ -264,14 +266,14 @@ export default {
*/
updateChart() {
if (!this.myChart) {
console.warn('图表实例未初始化');
console.warn("图表实例未初始化");
return;
}
try {
this.myChart.setOption(this.chartOption, true); // true 表示不合并,使用新配置
} catch (error) {
console.error('图表更新失败:', error);
console.error("图表更新失败:", error);
}
},
......@@ -280,7 +282,8 @@ export default {
*/
initChart() {
const chartDom = this.$refs.pieChart;
if (!chartDom) return;
if (!chartDom)
return;
this.myChart = echarts.init(chartDom);
// 初始时使用空数据,等待API数据加载后再更新
......@@ -296,7 +299,7 @@ export default {
}
},
}
},
};
</script>
......@@ -385,7 +388,7 @@ $bg-white: #fff;
}
.legend-sep {
color: #E4E7ED;
color: #e4e7ed;
margin: 0 8px;
}
}
......@@ -415,4 +418,3 @@ $bg-white: #fff;
}
}
</style>
<template>
<baseDialog :is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
<baseDialog class="filtrate-dialog"
:config="config"
class="filtrate-dialog"
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow"
@handleClick="submit">
<div class="filtrate-body">
<div class="filtrate-form">
<div class="filter-group">
<span class="label">区域:</span>
<el-select v-model="formData.provinceId"
size="small"
placeholder="全部"
class="filter-select"
clearable
filterable
clearable>
placeholder="全部"
size="small">
<el-option v-for="item in provinceOptions"
:key="item.code"
:label="item.name"
......@@ -24,25 +24,25 @@
<div class="filter-group">
<span class="label">品牌:</span>
<el-cascader v-model="formData.brand"
:options="brandOptions"
:props="cascaderProps"
class="filter-select filter-select-brand"
clearable
collapse-tags
size="small"
filterable
class="filter-select filter-select-brand"
:options="brandOptions"
placeholder="全部"
:props="cascaderProps"
:show-all-levels="false"
clearable>
size="small">
</el-cascader>
</div>
<div class="filter-group">
<span class="label">区域运营:</span>
<el-select v-model="formData.regionOps"
size="small"
placeholder="全部"
class="filter-select"
clearable
filterable
clearable>
placeholder="全部"
size="small">
<el-option v-for="item in regionOpsOptions"
:key="item.value"
:label="item.label"
......@@ -53,11 +53,11 @@
<div class="filter-group">
<span class="label">线上运营:</span>
<el-select v-model="formData.onlineOps"
size="small"
placeholder="全部"
class="filter-select"
clearable
filterable
clearable>
placeholder="全部"
size="small">
<el-option v-for="item in onlineOpsOptions"
:key="item.value"
:label="item.label"
......@@ -65,6 +65,21 @@
</el-option>
</el-select>
</div>
<div class="filter-group">
<span class="label">区域督导:</span>
<el-select v-model="formData.supervisorOps"
class="filter-select"
clearable
filterable
placeholder="全部"
size="small">
<el-option v-for="item in supervisorOpsOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</div>
</div>
</baseDialog>
......@@ -82,10 +97,11 @@ export default {
type: Object,
default: () => ({
region: "",
provinceId: "",
provinceId: null,
brand: [],
regionOps: "",
onlineOps: "",
regionOps: "all",
onlineOps: null,
supervisorOps: null,
}),
},
brandOptions: {
......@@ -104,6 +120,10 @@ export default {
type: Array,
default: () => [],
},
supervisorOpsOptions: {
type: Array,
default: () => [],
},
cascaderProps: {
type: Object,
default: () => ({}),
......@@ -144,13 +164,17 @@ export default {
},
},
methods: {
getDefaultOnlineOps() {
const { roleName, uuid } = this.$store.state.d2admin.user.info?.detail || {};
return roleName === "线上运营" ? uuid : "";
},
getInitialFormData() {
return {
region: "",
provinceId: "",
brand: [],
regionOps: "",
onlineOps: "",
onlineOps: this.getDefaultOnlineOps(),
};
},
syncFormFromFilters() {
......@@ -160,7 +184,7 @@ export default {
provinceId: provinceId || "",
brand: Array.isArray(brand) ? brand.map(item => (Array.isArray(item) ? [...item] : item)) : [],
regionOps: regionOps || "",
onlineOps: onlineOps || "",
onlineOps: onlineOps || this.getDefaultOnlineOps(),
};
},
submit() {
......@@ -201,11 +225,17 @@ $text-sub: #333333;
.label {
flex-shrink: 0;
width: 72px;
width: 92px;
font-size: 14px;
color: $text-sub;
text-align: right;
margin-right: 12px;
&::before {
content: "*";
color: #f56c6c;
margin-right: 4px;
}
}
.filter-select {
......
<template>
<div class="monitor-card" :class="{ 'is-checked': cardData.checked }">
<div class="card-head">
<el-tooltip effect="dark"
<!-- {{ cardData }} -->
<el-tooltip :disabled="!cardData.storeName"
effect="dark"
placement="bottom"
popper-class="dark-tooltip"
:disabled="!cardData.storeName">
popper-class="dark-tooltip">
<template #content>
<div style="width:236px;line-height:1.6;word-break:break-all;">
{{ cardData.storeName }}
......@@ -23,71 +24,84 @@
<div class="card-body" @click="handleViewDetail">
<div class="row-item">
<span class="label">主营品牌:</span>
<el-tooltip effect="dark"
<el-tooltip :disabled="!cardData.mainBrands"
effect="dark"
placement="top"
popper-class="dark-tooltip"
:disabled="!cardData.mainBrands">
popper-class="dark-tooltip">
<template #content>
<div style="max-width:236px;line-height:1.6;word-break:break-all;">
{{ cardData.mainBrands }}
{{ cardData.mainBrandsStr }}
</div>
</template>
<span class="val">{{ cardData.mainBrands || '-' }}</span>
<span class="val">{{ cardData.mainBrandsStr || '-' }}</span>
</el-tooltip>
</div>
<div class="row-item">
<span class="label">线上运营:</span>
<el-tooltip :disabled="!cardData.onlineOperators"
<el-tooltip :disabled="!onlineOperatorText"
effect="dark"
placement="top"
popper-class="dark-tooltip">
<template #content>
<div style="max-width:236px;line-height:1.6;">
{{ cardData.onlineOperators }}
<div style="max-width:236px;line-height:1.6;word-break:break-all;">
{{ onlineOperatorText }}
</div>
</template>
<span class="val">{{ cardData.onlineOperators || '-' }}</span>
<span class="val">{{ onlineOperatorText || '-' }}</span>
</el-tooltip>
</div>
<div class="row-item">
<span class="label">区域运营:</span>
<el-tooltip :disabled="!cardData.regionalOperators"
<el-tooltip :disabled="!areaOperatorText"
effect="dark"
placement="top"
popper-class="dark-tooltip">
<template #content>
<div style="max-width:236px;line-height:1.6;">
{{ cardData.regionalOperators }}
<div style="max-width:236px;line-height:1.6;word-break:break-all;">
{{ areaOperatorText }}
</div>
</template>
<span class="val">{{ cardData.regionalOperators || '-' }}</span>
<span class="val">{{ areaOperatorText || '-' }}</span>
</el-tooltip>
</div>
<div class="row-item">
<span class="label">区域督导:</span>
<el-tooltip :disabled="!cardData.regionalOperators"
<el-tooltip :disabled="!flightSupervisionText"
effect="dark"
placement="top"
popper-class="dark-tooltip">
<template #content>
<div style="max-width:236px;line-height:1.6;">
{{ cardData.regionalOperators }}
<div style="max-width:236px;line-height:1.6;word-break:break-all;">
{{ flightSupervisionText }}
</div>
</template>
<span class="val">{{ cardData.regionalOperators || '-' }}</span>
<span class="val">{{ flightSupervisionText || '-' }}</span>
</el-tooltip>
</div>
<!-- 预警标签组 -->
<div v-if="cardData.warningSummary && cardData.warningSummary.length > 0" class="alert-group">
<div v-for="(item, index) in cardData.warningSummary"
<div v-if="cardData.warningRecords && cardData.warningRecords.length > 0" class="alert-group">
<div v-for="(item, index) in cardData.warningRecords"
:key="index"
class="alert-tag"
:class="[item.includes('兜底预警') ? 'red' : 'orange']">
<img :src="getAlertIcon(item)"
alt=""
class="icon-img">
<span style=" font-size: 13px;">{{ item }}</span>
:class="[item.warningType == 4 || item.warningType == 2 ? 'red' : 'orange']">
<img alt=""
class="icon-img"
:src="getAlertIcon(item)">
<el-tooltip :disabled="!warningOverflowMap[index]"
effect="dark"
placement="top"
popper-class="dark-tooltip">
<template #content>
<div style="max-width:236px;line-height:1.6;word-break:break-all;">
{{ getWarningDisplayText(item) }}
</div>
</template>
<span class="alert-text"
@mouseenter="checkWarningOverflow($event, index)">
{{ getWarningDisplayText(item) }}
</span>
</el-tooltip>
</div>
</div>
</div>
......@@ -95,10 +109,10 @@
<div class="card-foot" @click="handleViewDetail">
<span class="info">共{{ cardData.warningTotalCount }}项预警</span>
<span class="link">
查看详情 <img src="@/assets/strategy/icon-strategy-arrow-r.png"
alt=""
srcset=""
class="icon-arrow">
查看详情 <img alt=""
class="icon-arrow"
src="@/assets/strategy/icon-strategy-arrow-r.png"
srcset="">
</span>
</div>
</div>
......@@ -129,6 +143,36 @@ export default {
type: Object,
default: () => ({ startDate: null, endDate: null }),
},
// 当前业务 Tab
currentTab: {
type: Object,
default: () => ({ label: "延保", value: 1 }),
},
},
data() {
return {
warningOverflowMap: {},
};
},
computed: {
onlineOperatorText() {
const list = this.cardData.onlineOperator;
if (!Array.isArray(list) || !list.length)
return "";
return list.map(item => item.username).filter(Boolean).join("/");
},
areaOperatorText() {
const list = this.cardData.areaOperator;
if (!Array.isArray(list) || !list.length)
return "";
return list.map(item => item.username).filter(Boolean).join("/");
},
flightSupervisionText() {
const list = this.cardData.flightSupervision;
if (!Array.isArray(list) || !list.length)
return "";
return list.map(item => item.username).filter(Boolean).join("/");
},
},
methods: {
handleCheckboxChange() {
......@@ -142,6 +186,8 @@ export default {
const query = {
merchantNo: this.cardData.merchantNo,
storeName: this.cardData.storeName,
businessType: this.currentTab.value,
businessLabel: this.currentTab.label,
};
// 添加时间范围类型
......@@ -167,15 +213,31 @@ export default {
},
// 获取预警图标
getAlertIcon(item) {
// Tode: 数据未返回具体字段类型,因此经沟通智能暂时先通过字符串截取判断
return item.includes("兜底预警")
? require("@/assets/strategy/icon-strategy-type01.png")
: require("@/assets/strategy/icon-strategy-type02.png");
const iconMap = {
2: require("@/assets/strategy/icon-strategy-type01.png"),
3: require("@/assets/strategy/icon-strategy-type02.png"),
4: require("@/assets/strategy/icon-strategy-type07.png"),
5: require("@/assets/strategy/icon-strategy-type08.png"),
};
return iconMap[item.warningType] || iconMap[2];
},
// 获取预警标签文本
getAlertLabel(index) {
return index === 0 ? "兜底指标:" : "生态预警:";
},
getWarningDisplayText(item) {
return `${item.warningTypeName || ""}: ${item.warningText || ""}`;
},
checkWarningOverflow(event, index) {
const el = event.currentTarget;
if (!el)
return;
this.$set(
this.warningOverflowMap,
index,
el.scrollWidth > el.clientWidth,
);
},
},
};
</script>
......@@ -247,6 +309,8 @@ $text-orange: #ff7d00;
white-space: nowrap;
}
.val {
flex: 1;
min-width: 0;
color: $text-main;
white-space: nowrap;
overflow: hidden;
......@@ -268,8 +332,18 @@ $text-orange: #ff7d00;
font-size: 12px;
display: flex;
align-items: center;
min-width: 0;
color: #606266;
.alert-text {
flex: 1;
min-width: 0;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
i {
margin-right: 6px;
font-size: 14px;
......
<template>
<el-popover
<el-dropdown :disabled="disabled"
placement="bottom-start"
:width="popoverWidth"
trigger="click"
popper-class="pure-popover"
v-model="popoverVisible"
>
<ul class="popover-list">
<li
v-for="(item, index) in options"
:key="index"
:class="{ 'is-selected': isSelected(item) }"
@click="handleSelect(item)"
style="font-size: 14px;"
>
<!-- 支持图片图标 -->
<img
v-if="item.iconUrl"
:src="item.iconUrl"
@command="handleSelect">
<div class="icon-text-btn"
:class="{ 'has-selected': value && value.label && value.label !== defaultText, 'is-disabled': disabled }">
<img v-if="triggerIconType === 'image'"
alt=""
class="icon-img"
>
<!-- 支持字体图标 -->
<i
v-else-if="item.icon"
:class="item.icon"
></i>
{{ item.label }}
</li>
</ul>
<div
slot="reference"
class="icon-text-btn"
:class="{ 'has-selected': value && value.label && value.label !== defaultText }"
>
<!-- 触发按钮图标:支持图片和字体图标 -->
<img
v-if="triggerIconType === 'image'"
:src="triggerIcon"
:src="triggerIcon">
<i v-else-if="triggerIconType === 'icon'"
:class="triggerIcon">
</i>
<span>{{ label }}:{{ currentValue }}</span>
</div>
<template #dropdown>
<el-dropdown-menu class="select-custom-dropdown"
:style="{ minWidth: `${popoverWidth}px` }">
<el-dropdown-item v-for="(item, index) in options"
:key="index"
:class="{ 'is-selected': isSelected(item) }"
:command="item">
<div class="icon-img">
<img v-if="item.iconUrl"
alt=""
class="icon-img"
>
<i
v-else-if="triggerIconType === 'icon'"
:class="triggerIcon"
></i>
<span>{{ label }}:{{ currentValue }}</span>
:src="item.iconUrl">
<i v-else-if="item.icon"
:class="item.icon">
</i>
</div>
</el-popover>
{{ item.label }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</template>
<script>
export default {
name: 'SelectCustom',
name: "SelectCustom",
props: {
// 选项列表
options: {
type: Array,
required: true,
default: () => []
default: () => [],
},
// 当前选中的值
value: {
type: Object,
default: () => ({ label: '盯防类型', value: '' })
default: () => ({ label: "盯防类型", value: "" }),
},
// 标签文本(如"盯防类型"、"指标类型")
label: {
type: String,
required: true
required: true,
},
// 触发按钮的图标(可以是图片路径或图标类名)
triggerIcon: {
type: String,
required: true
required: true,
},
// 触发按钮图标类型:'image' | 'icon'
triggerIconType: {
type: String,
default: 'icon',
validator: (value) => ['image', 'icon'].includes(value)
default: "icon",
validator: value => ["image", "icon"].includes(value),
},
// 默认文本(用于判断是否选中状态)
defaultText: {
type: String,
default: '全部'
default: "全部",
},
// popover宽度
popoverWidth: {
type: Number,
default: 120
}
default: 120,
},
disabled: {
type: Boolean,
default: false,
},
data() {
return {
popoverVisible: false
};
},
computed: {
// 当前显示的值
currentValue() {
if (this.value && typeof this.value === 'object' && this.value.label) {
if (this.value && typeof this.value === "object" && this.value.label) {
return this.value.label;
}
return this.defaultText;
}
},
},
methods: {
// 处理选择
// 根据选项 value(即 warningType)动态获取图标,逻辑与 monitorCard.getAlertIcon 一致
getOptionIcon(item) {
if (!item || item.value == null) {
return null;
}
const iconMap = {
2: require("@/assets/strategy/icon-strategy-type01.png"),
3: require("@/assets/strategy/icon-strategy-type02.png"),
4: require("@/assets/strategy/icon-strategy-type07.png"),
5: require("@/assets/strategy/icon-strategy-type08.png"),
};
const key = item.value ?? item.warningType;
return iconMap[key] || iconMap[2];
},
handleSelect(item) {
this.popoverVisible = false;
// 触发change事件,传递选中的项
this.$emit('change', item);
// 同时触发input事件,支持v-model,传递包含label和value的对象
this.$emit("change", item);
const selectedValue = {
label: item.label,
value: item.value !== undefined ? item.value : item.label
value: item.value !== undefined ? item.value : item.label,
};
this.$emit('input', selectedValue);
this.$emit("input", selectedValue);
},
// 判断选项是否被选中
isSelected(item) {
if (!this.value) return false;
// 优先比较value属性,如果没有value则比较label
if (!this.value)
return false;
const itemValue = item.value !== undefined ? item.value : item.label;
const currentValue = this.value.value !== undefined ? this.value.value : this.value.label;
return itemValue === currentValue;
}
}
},
},
};
</script>
......@@ -143,7 +130,7 @@ export default {
color: #333333;
&:hover {
color: #2A58AD;
color: #2a58ad;
}
i {
......@@ -160,51 +147,44 @@ export default {
}
&.has-selected {
background-color: #EFF3F6;
background-color: #eff3f6;
}
&.is-disabled {
cursor: not-allowed;
color: #c0c4cc;
&:hover {
color: #c0c4cc;
}
}
}
</style>
<style>
/* 全局样式,与父组件保持一致 */
.pure-popover {
.select-custom-dropdown {
padding: 4px 0 !important;
border-color: #E5E6EB !important;
box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
border-color: #e5e6eb !important;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.popover-list {
list-style: none;
margin: 0;
padding: 0;
li {
padding: 9px 16px;
cursor: pointer;
color: #333333;
font-size: 12px;
.select-custom-dropdown .el-dropdown-menu__item {
display: flex;
align-items: center;
padding: 9px 16px;
font-size: 14px;
color: #333333;
line-height: 1.5;
}
&.is-selected {
.select-custom-dropdown .el-dropdown-menu__item.is-selected {
background-color: #f7f7f7;
}
&:hover {
background-color: #F2F3F5;
}
i {
margin-right: 8px;
font-size: 14px;
}
}
.icon-img {
.select-custom-dropdown .el-dropdown-menu__item .icon-img {
width: 18px;
height: 18px;
border-radius: 3px;
margin-right: 8px;
}
}
}
</style>
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content"
@handleClick="submit"
<baseDialog class="detail-content"
:config="config"
>
<div
class="content"
:key="viewKey"
>
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow"
@handleClick="submit">
<div :key="viewKey"
class="content">
<div class="left">
<div class="title flex">录音列表</div>
<div class="title flex">
录音列表
</div>
<div class="left-content">
<div class="search-box flex">
<el-input
placeholder="搜索员工名称"
size="small"
<el-input v-model="searchForm.staffName"
class="search-input"
clearable
v-model="searchForm.staffName"
></el-input>
<el-date-picker
v-model="searchForm.receptionDate"
size="small"
type="date"
placeholder="搜索员工名称"
size="small">
</el-input>
<el-date-picker v-model="searchForm.receptionDate"
class="search-input"
placeholder="搜索接待日期"
>
size="small"
type="date">
</el-date-picker>
<el-button
<el-button size="small"
type="primary"
size="small"
@click="handleSearch"
>查询</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
@click="handleSearch">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
<div class="table">
<d2-table
ref="multipleTable"
:search-form="searchFormSearch"
:table-params="tableParams"
<d2-table ref="multipleTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:has-num="false"
:layout="'total, prev, pager, next'"
:pagerCount="5"
@setTableFinishFun="setTableFinishFun"
@selectionTable="selectionTable"
@selectRow="selectRow"
layout="total, prev, pager, next"
:pager-count="5"
:search-form="searchFormSearch"
:table-params="tableParams"
@selectAll="selectAll"
:before-search-fn="beforeSearchFn"
>
@selectRow="selectRow"
@selectionTable="selectionTable"
@setTableFinishFun="setTableFinishFun">
</d2-table>
</div>
</div>
</div>
<div class="right">
<div class="title flex">
已选录音<div class="num">{{ count }}</div>条
<el-button
class="clear"
已选录音<div class="num">
{{ count }}
</div>条
<el-button class="clear"
type="text"
@click="clearChooseList"
>清空</el-button>
@click="clearChooseList">
清空
</el-button>
</div>
<div class="right-content">
<el-scrollbar class="multiple-tag-box">
<div class="multiple-tags">
<template v-for="(i,ind) in chooseList">
<el-tag
<template v-for="(i, ind) in chooseList">
<el-tag :key="ind"
closable
:key="ind"
@close="remove(i,ind)"
disable-transitions
>{{ i.chooseContent }}</el-tag>
@close="remove(i, ind)">
{{ i.chooseContent }}
</el-tag>
</template>
</div>
</el-scrollbar>
......@@ -87,36 +82,35 @@
</template>
<script>
import dayjs from "dayjs";
import {
getRecordAllPageListByCondition,
} from '@/api/earlyWarningManager'
} from "@/api/earlyWarningManager";
import multipleMixin from "./multipleMixin";
import dayjs from 'dayjs';
export default {
name: "MultipleRecording",
mixins: [multipleMixin],
mounted () {
},
data () {
data() {
return {
dialogConfig: {
config: {
title: "选择录音",
width: "1092px"
}
width: "1092px",
},
},
targetId: 'id',
targetId: "id",
formatTag: (e) => {
return {
...e,
chooseContent: `${e.employeeName} ${e.startTime}`
}
chooseContent: `${e.employeeName} ${e.startTime}`,
};
},
getListApi: getRecordAllPageListByCondition,
searchForm: {
staffName: '',
receptionDate: '',
businessType: 1
staffName: "",
receptionDate: "",
businessType: 1,
},
searchFormSearch: {},
tableParams: {
......@@ -127,52 +121,59 @@ export default {
{
label: "员工姓名",
prop: "employeeName",
minWidth: 90
minWidth: 90,
},
{
label: "接待时间",
prop: "startTime",
minWidth: 90
minWidth: 90,
},
{
label: "客户姓名",
prop: "customerName",
minWidth: 90
minWidth: 90,
},
{
label: "车型",
prop: "carModel",
minWidth: 90
minWidth: 90,
},
{
label: "接待时长",
prop: "duration",
minWidth: 90
minWidth: 90,
},
{
label: "质检评分/分",
prop: "score",
minWidth: 90
minWidth: 90,
},
{
label: "攻防得分/分",
prop: "defencePoint",
minWidth: 90
minWidth: 90,
},
]
{
label: "成交状态",
prop: "defencePoint",
minWidth: 90,
},
}
],
},
};
},
mounted() {
},
methods: {
getParams () {
let params = this.deepClone(this.searchForm)
getParams() {
let params = this.deepClone(this.searchForm);
if (params.receptionDate) {
params.receptionDate = dayjs(params.receptionDate).format("YYYY-MM-DD")
params.receptionDate = dayjs(params.receptionDate).format("YYYY-MM-DD");
}
return params
return params;
},
}
}
},
};
</script>
<style lang="scss" scoped>
......
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content"
@handleClick="submit"
<baseDialog class="detail-content"
:config="config"
>
<div
class="content"
:key="viewKey"
>
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow"
@handleClick="submit">
<div :key="viewKey"
class="content">
<div class="left">
<div class="title flex">人员列表</div>
<div class="title flex">
人员列表
</div>
<div class="left-content">
<div class="search-box flex">
<el-input
placeholder="搜索员工名称"
size="small"
<el-input v-model="searchForm.staffName"
class="search-input"
clearable
v-model="searchForm.staffName"
></el-input>
<el-button
placeholder="搜索员工名称"
size="small">
</el-input>
<el-button size="small"
type="primary"
size="small"
@click="handleSearch"
>查询</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
@click="handleSearch">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
<div class="table">
<d2-table
ref="multipleTable"
:search-form="searchFormSearch"
:table-params="tableParams"
<d2-table ref="multipleTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:has-num="false"
:layout="'total, prev, pager, next'"
:pagerCount="5"
@setTableFinishFun="setTableFinishFun"
@selectionTable="selectionTable"
@selectRow="selectRow"
layout="total, prev, pager, next"
:pager-count="5"
:search-form="searchFormSearch"
:table-params="tableParams"
@selectAll="selectAll"
:before-search-fn="beforeSearchFn"
>
@selectRow="selectRow"
@selectionTable="selectionTable"
@setTableFinishFun="setTableFinishFun">
</d2-table>
</div>
</div>
</div>
<div class="right">
<div class="title flex">
已选人员<div class="num">{{ count }}</div>人
<el-button
class="clear"
已选人员<div class="num">
{{ count }}
</div>人
<el-button class="clear"
type="text"
@click="clearChooseList"
>清空</el-button>
@click="clearChooseList">
清空
</el-button>
</div>
<div class="right-content">
<el-scrollbar class="multiple-tag-box">
<div class="multiple-tags">
<template v-for="(i,ind) in chooseList">
<el-tag
<template v-for="(i, ind) in chooseList">
<el-tag :key="ind"
closable
:key="ind"
@close="remove(i,ind)"
disable-transitions
>{{ i.staffName }}</el-tag>
@close="remove(i, ind)">
{{ i.staffName }}
</el-tag>
</template>
</div>
</el-scrollbar>
......@@ -81,26 +78,24 @@
<script>
import {
getStrategyStaffList,
} from "@api/earlyWarningManager"
} from "@api/earlyWarningManager";
import multipleMixin from "./multipleMixin";
export default {
name: "MultipleStaff",
mixins: [multipleMixin],
mounted () {
},
data () {
data() {
return {
dialogConfig: {
config: {
title: "选择人员",
width: "1092px"
}
width: "1092px",
},
targetId: 'staffUuid',
},
targetId: "staffUuid",
getListApi: getStrategyStaffList,
searchForm: {
staffName: ''
staffName: "",
},
tableParams: {
listName: "list",
......@@ -110,51 +105,54 @@ export default {
{
label: "员工姓名",
prop: "staffName",
minWidth: 130
minWidth: 130,
},
{
label: "手机号",
prop: "phoneNumber",
minWidth: 160
minWidth: 160,
},
{
label: "岗位",
minWidth: 130,
formatter (row) {
formatter(row) {
return {
0: '驻店人员',
6: '飞行督导',
9: '区域运营'
}[row.positionType]
}
0: "驻店人员",
6: "飞行督导",
9: "区域运营",
}[row.positionType];
},
]
},
}
],
},
};
},
mounted() {
},
methods: {
beforeSearchFn () {
beforeSearchFn() {
return new Promise((resolve) => {
let { positionTypeList, merchantList, paramsInfo ,delMerchantList} = this,
{ staffName } = this.searchForm,
merchantIdList = []
if (merchantList.length) merchantIdList = merchantList.map(item => item.merchantId)
else merchantIdList = paramsInfo.merchantIds
let { positionTypeList, merchantList, paramsInfo, delMerchantList } = this;
let { staffName } = this.searchForm;
let merchantIdList = [];
if (merchantList.length)
merchantIdList = merchantList.map(item => item.merchantId);
else merchantIdList = paramsInfo.merchantIds;
let params = {
positionTypeList,
sceneType: 0,
sceneType: paramsInfo.bizs == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
staffName,
merchantIdList
}
if(delMerchantList) params.merchantIdList = []
merchantIdList,
};
if (delMerchantList)
params.merchantIdList = [];
this.searchFormSearch = this.deepClone(params)
resolve()
})
this.searchFormSearch = this.deepClone(params);
resolve();
});
},
}
}
},
};
</script>
<style lang="scss" scoped>
......
const STRATEGYTYPEOPTIONS = [
{ label: '学习', value: 0 },
{ label: '优秀案例分享', value: 1 },
{ label: '带教', value: 2 },
{ label: '任务下发', value: 3 },
{ label: '销售精英到店提拉', value: 4 },
{ label: '强力促销', value: 5 },
{ label: '最终盘点与低客单产品购入', value: 6 },
]
{ label: "学习", value: 0 },
{ label: "优秀案例分享", value: 1 },
{ label: "带教", value: 2 },
{ label: "任务下发", value: 3 },
{ label: "销售精英到店提拉", value: 4 },
{ label: "强力促销", value: 5 },
{ label: "最终盘点与低客单产品购入", value: 6 },
];
/**
*positionTypeList: 0:驻店,6:飞行督导,9:2.1区域运营
*/
const STRATEGY_FORM_0 = [
{
label: '标题',
type: 'input',
key: 'title',
label: "标题",
type: "input",
key: "title",
maxlength: 20,
},
{
label: '学习人员',
type: 'multipleTag',
btnText: '选择人员',
componentName: 'staffTag',
key: 'staffList',
label: "学习人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
positionTypeList: [0],
tagNameKey: 'staffName'
tagNameKey: "staffName",
},
{
label: '学习内容',
type: 'multipleTag',
btnText: '选择课程',
componentName: 'courseTag',
key: 'courseList',
tagKey: 'courseId',
tagNameKey: 'title'
label: "学习内容",
type: "multipleTag",
btnText: "选择课程",
componentName: "courseTag",
key: "courseList",
tagKey: "courseId",
tagNameKey: "title",
},
{
label: '执行周期',
type: 'daterange',
key: 'dateRange',
pickerOptions: 'afterPickerOptions'
label: "执行周期",
type: "daterange",
key: "dateRange",
pickerOptions: "afterPickerOptions",
},
]
];
const STRATEGY_FORM_1 = [
{
label: '标题',
type: 'input',
key: 'title',
label: "标题",
type: "input",
key: "title",
maxlength: 20,
},
{
label: '学习人员',
type: 'multipleTag',
btnText: '选择人员',
componentName: 'staffTag',
key: 'staffList',
label: "学习人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
positionTypeList: [0],
tagNameKey: 'staffName'
tagNameKey: "staffName",
},
{
label: '学习内容',
type: 'multipleTag',
btnText: '选择录音',
componentName: 'recordingTag',
key: 'recordingList',
tagKey: 'id',
tagNameKey: 'chooseContent'
label: "学习内容",
type: "multipleTag",
btnText: "选择录音",
componentName: "recordingTag",
key: "recordingList",
tagKey: "id",
tagNameKey: "chooseContent",
},
{
label: '执行周期',
type: 'daterange',
key: 'dateRange',
pickerOptions: 'afterPickerOptions'
label: "执行周期",
type: "daterange",
key: "dateRange",
pickerOptions: "afterPickerOptions",
},
]
];
const STRATEGY_FORM_2456 = [
{
label: '执行人员',
type: 'multipleTag',
btnText: '选择人员',
componentName: 'staffTag',
key: 'staffList',
label: "执行人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
hide: (val) => {
let { strategyType } = val
return [5, 6].includes(strategyType)
let { strategyType } = val;
return [5, 6].includes(strategyType);
},
positionTypeList: [0, 6, 9],
tagNameKey: 'staffName',
delMerchantList: true
tagNameKey: "staffName",
delMerchantList: true,
},
{
label: '执行周期',
type: 'daterange',
key: 'dateRange',
pickerOptions: 'afterPickerOptions'
label: "执行周期",
type: "daterange",
key: "dateRange",
pickerOptions: "afterPickerOptions",
},
]
];
const STRATEGY_FORM_3 = [
{
label: '标题',
type: 'input',
key: 'title',
label: "标题",
type: "input",
key: "title",
maxlength: 20,
},
{
label: '副标题',
type: 'input',
label: "副标题",
type: "input",
maxlength: 200,
key: 'subTitle'
key: "subTitle",
},
{
label: '内容',
type: 'richText',
key: 'content',
label: "内容",
type: "richText",
key: "content",
},
{
label: '处理人',
type: 'checkbox',
key: 'handlerType',
label: "处理人",
type: "checkbox",
key: "handlerType",
options: [
{ label: '区域运营', value: 0 },
{ label: '驻店人员', value: 1 },
]
{ label: "区域运营", value: 0 },
{ label: "驻店人员", value: 1 },
],
},
{
label: '区域运营',
type: 'multipleTag',
btnText: '选择人员',
componentName: 'staffTag',
key: 'staffList',
label: "区域运营",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
hide: (val) => {
let { handlerType } = val
return !handlerType.includes(0)
let { handlerType } = val;
return !handlerType.includes(0);
},
positionTypeList: [9],
tagNameKey: 'staffName'
tagNameKey: "staffName",
},
{
label: '驻店人员',
type: 'multipleTag',
btnText: '选择人员',
componentName: 'staffTag1',
key: 'staffList_1',
label: "驻店人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag1",
key: "staffList_1",
hide: (val) => {
let { handlerType } = val
return !handlerType.includes(1)
let { handlerType } = val;
return !handlerType.includes(1);
},
positionTypeList: [0],
tagNameKey: 'staffName'
tagNameKey: "staffName",
},
{
label: '执行时间',
type: 'radioTime',
key: 'pushType',
pickerOptions: 'afterPickerOptions',
timeKey: 'pushTime',
label: "执行时间",
type: "radioTime",
key: "pushType",
pickerOptions: "afterPickerOptions",
timeKey: "pushTime",
options: [
{ label: '立即推送', value: 1 },
{ label: '定时推送', value: 0 },
{ label: "立即推送", value: 1 },
{ label: "定时推送", value: 0 },
],
showDateTimePicker: (val) => {
let { pushType } = val
return pushType == 0
let { pushType } = val;
return pushType == 0;
},
pickerOptions: 'afterTwoHourPickerOptions'
pickerOptions: "afterTwoHourPickerOptions",
},
]
const TITLE_RULES = [{ required: true, message: '请输入标题', trigger: 'blur' }]
const STAFF_LIST_RULES = { required: true, message: '请选择学习人员' }
const STUDY_LIST_RULES = { required: true, message: '请选择学习内容' }
const RANGE_DATE = [{ required: true, message: '请选择执行周期', trigger: 'blur' }]
const DESCRIPTION_RULES = [{ required: true, message: '请输入策略说明', trigger: 'blur' }]
];
const TITLE_RULES = [{ required: true, message: "请输入标题", trigger: "blur" }];
const STAFF_LIST_RULES = { required: true, message: "请选择学习人员" };
const STUDY_LIST_RULES = { required: true, message: "请选择学习内容" };
const RANGE_DATE = [{ required: true, message: "请选择执行周期", trigger: "blur" }];
const DESCRIPTION_RULES = [{ required: true, message: "请输入策略说明", trigger: "blur" }];
const STRATEGY_FORM_RULES_0 = {
title: TITLE_RULES,
staffList: STAFF_LIST_RULES,
courseList: STUDY_LIST_RULES,
dateRange: RANGE_DATE,
description: DESCRIPTION_RULES
}
description: DESCRIPTION_RULES,
};
const STRATEGY_FORM_RULES_1 = {
title: TITLE_RULES,
staffList: STAFF_LIST_RULES,
recordingList: STUDY_LIST_RULES,
dateRange: RANGE_DATE,
description: DESCRIPTION_RULES
}
description: DESCRIPTION_RULES,
};
const STRATEGY_FORM_RULES_2456 = {
dateRange: RANGE_DATE,
description: DESCRIPTION_RULES
}
description: DESCRIPTION_RULES,
};
const STRATEGY_FORM_RULES_3 = {
title: TITLE_RULES,
// subTitle: [{ required: true, message: '请输入副标题', trigger: 'blur' }],
content: [
{ required: true, message: '请输入内容', trigger: 'blur' }
{ required: true, message: "请输入内容", trigger: "blur" },
],
handlerType: [
{ required: true, message: '请选择处理人', trigger: 'change' }
{ required: true, message: "请选择处理人", trigger: "change" },
],
staffList: [{ required: true, message: '请选择区域运营' }],
staffList_1: [{ required: true, message: '请选择驻店人员' }],
description: DESCRIPTION_RULES
}
staffList: [{ required: true, message: "请选择区域运营" }],
staffList_1: [{ required: true, message: "请选择驻店人员" }],
description: DESCRIPTION_RULES,
};
export {
STRATEGYTYPEOPTIONS,
STRATEGY_FORM_0,
STRATEGY_FORM_1,
STRATEGY_FORM_2456,
STRATEGY_FORM_3,
STRATEGY_FORM_2456,
STRATEGY_FORM_RULES_0,
STRATEGY_FORM_RULES_1,
STRATEGY_FORM_RULES_3,
STRATEGY_FORM_RULES_2456,
STRATEGY_FORM_RULES_3
}
\ No newline at end of file
STRATEGYTYPEOPTIONS,
};
\ No newline at end of file
......@@ -2,69 +2,70 @@ export default {
props: {
visible: {
type: Boolean,
default: false
default: false,
},
chooseData: {
type: Array,
default: () => []
}
default: () => [],
},
},
inject: [
'deepClone',
'GET_POSITION_TYPE_LIST',
'GET_PARAMS_INFO',
'GET_MERCHANT_LIST',
'GET_BIZ',
'DEL_PARAMS_MERCHANT_LIST'
"deepClone",
"GET_POSITION_TYPE_LIST",
"GET_PARAMS_INFO",
"GET_MERCHANT_LIST",
"GET_BIZ",
"DEL_PARAMS_MERCHANT_LIST",
],
computed: {
dialogShow: {
get () {
return this.visible
get() {
return this.visible;
},
set (val) {
this.chooseList = []
this.close()
}
set(val) {
this.chooseList = [];
this.close();
},
count () {
return this.chooseList.length
},
positionTypeList () {
return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST()
count() {
return this.chooseList.length;
},
paramsInfo () {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO()
positionTypeList() {
return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST();
},
merchantList () {
return this.GET_MERCHANT_LIST && this.GET_MERCHANT_LIST()
paramsInfo() {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO();
},
biz () {
return this.GET_BIZ && this.GET_BIZ()
merchantList() {
return this.GET_MERCHANT_LIST && this.GET_MERCHANT_LIST();
},
biz() {
return this.GET_BIZ && this.GET_BIZ();
},
delMerchantList() {
return this.DEL_PARAMS_MERCHANT_LIST && this.DEL_PARAMS_MERCHANT_LIST();
},
delMerchantList(){
return this.DEL_PARAMS_MERCHANT_LIST && this.DEL_PARAMS_MERCHANT_LIST()
}
},
watch: {
visible: {
handler (val) {
handler(val) {
if (val) {
this.searchForm = this.$options.data.call(this).searchForm
let multipleTable = this.multipleTable()
if (multipleTable) multipleTable.page.currentPage = 1
this.chooseList = this.deepClone(this.chooseData)
this.viewKey = Date.now()
this.searchForm = this.$options.data.call(this).searchForm;
let multipleTable = this.multipleTable();
if (multipleTable)
multipleTable.page.currentPage = 1;
this.chooseList = this.deepClone(this.chooseData);
this.viewKey = Date.now();
}
},
immediate: true,
deep: true
deep: true,
},
},
mounted () {
mounted() {
},
data () {
data() {
return {
viewKey: Date.now(),
config: {
......@@ -75,93 +76,97 @@ export default {
},
searchFormSearch: {},
chooseList: [],
}
};
},
methods: {
getParams () {
const params = this.deepClone(this.searchForm)
return params
getParams() {
const params = this.deepClone(this.searchForm);
return params;
},
beforeSearchFn () {
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve()
})
this.searchFormSearch = this.getParams();
resolve();
});
},
close () {
this.$emit('dialogClose')
close() {
this.$emit("dialogClose");
},
remove (i, index) {
this.chooseList.splice(index, 1)
let tableData = this.multipleTable().data
tableData.map(j => {
remove(i, index) {
this.chooseList.splice(index, 1);
let tableData = this.multipleTable().data;
tableData.map((j) => {
if (i[this.targetId] === j[this.targetId]) {
this.multipleTable().tableRef.toggleRowSelection(j, false)
this.multipleTable().tableRef.toggleRowSelection(j, false);
}
})
});
},
async submit () {
this.$emit('choose', this.chooseList)
this.close()
async submit() {
this.$emit("choose", this.chooseList);
this.close();
},
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
this.multipleTable().page.currentPage = 1
this.handleSearch()
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm;
this.multipleTable().page.currentPage = 1;
this.handleSearch();
},
handleSearch () {
this.multipleTable().page.currentPage = 1
this.multipleTable().refreshTable()
handleSearch() {
this.multipleTable().page.currentPage = 1;
this.multipleTable().refreshTable();
},
setTableFinishFun (data) {
setTableFinishFun(data) {
this.$nextTick(() => {
let { chooseList, targetId } = this
chooseList.map(item => {
let index = data.findIndex(i => i[targetId] === item[targetId])
if (index > -1) this.multipleTable().tableRef.toggleRowSelection(data[index], true)
})
})
},
selectionTable (list) {
let { chooseList, targetId } = this;
chooseList.map((item) => {
let index = data.findIndex(i => i[targetId] === item[targetId]);
if (index > -1)
this.multipleTable().tableRef.toggleRowSelection(data[index], true);
});
});
},
selectionTable(list) {
this.$nextTick(() => {
let { targetId, chooseList } = this
if (this.formatTag) list = list.map(e => {
return this.formatTag(e)
})
let { targetId, chooseList } = this;
if (this.formatTag) {
list = list.map((e) => {
return this.formatTag(e);
});
}
// 合并列表后基于 targetId 去重
const mergedList = [...chooseList, ...list]
const mergedList = [...chooseList, ...list];
this.chooseList = [...new Map(
mergedList.map(item => [item[targetId], item])
).values()]
})
mergedList.map(item => [item[targetId], item]),
).values()];
});
},
selectRow (list, row) {
let { targetId } = this,
index = list.findIndex(i => i[targetId] === row[targetId])
selectRow(list, row) {
let { targetId } = this;
let index = list.findIndex(i => i[targetId] === row[targetId]);
if (index == -1) {
let delIndex = this.chooseList.findIndex(i => i[targetId] === row[targetId])
if (delIndex > -1) this.chooseList.splice(delIndex, 1)
let delIndex = this.chooseList.findIndex(i => i[targetId] === row[targetId]);
if (delIndex > -1)
this.chooseList.splice(delIndex, 1);
}
},
selectAll (list) {
selectAll(list) {
if (!list.length) {
let tableData = this.multipleTable().data,
{ targetId } = this
let tableData = this.multipleTable().data;
let { targetId } = this;
// 使用 Set 存储 tableData 中的所有 targetId
const tableDataIds = new Set(tableData.map(item => item[targetId]));
// 保留 chooseList 中不在 tableData 的项目
this.chooseList = this.chooseList.filter(item =>
!tableDataIds.has(item[targetId])
!tableDataIds.has(item[targetId]),
);
}
},
multipleTable () {
return this.$refs.multipleTable
multipleTable() {
return this.$refs.multipleTable;
},
clearChooseList() {
this.chooseList = [];
this.multipleTable().clearMutiSelect();
},
},
clearChooseList () {
this.chooseList = []
this.multipleTable().clearMutiSelect()
}
}
}
\ No newline at end of file
};
\ No newline at end of file
<template>
<el-drawer ref="drawer"
class="strategy-drawer"
size="50vw"
:visible.sync="dialogShow"
:wrapper-closable="false"
@close="close">
<template #title>
<div class="strategy-drawer-title">
添加协同任务
</div>
</template>
<div class="strategy-drawer-content">
<el-scrollbar class="content">
<el-form ref="form"
class="form"
label-width="110px"
:model="formData"
:rules="rules"
size="small">
<el-form-item label="任务类型:" prop="taskType">
<el-select v-model="formData.taskType"
placeholder="请选择任务类型"
style="width: 100%;">
<el-option v-for="(label, value) in taskTypeOptions"
:key="value"
:label="label"
:value="Number(value)">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="任务标题:" prop="taskTitle">
<el-input v-model="formData.taskTitle"
maxlength="20"
placeholder="请输入标题">
</el-input>
</el-form-item>
<el-form-item v-if="formData.taskType === 9"
label="问题人员:"
prop="staffList">
<el-button size="small" @click="openStaffDialog">
选择人员
</el-button>
<div v-if="formData.staffList && formData.staffList.length > 0" class="tags-container">
<el-tag v-for="(item, index) in formData.staffList"
:key="item.staffUuid"
class="staff-tag"
closable
@close="removeStaff(index)">
{{ item.staffName }}
</el-tag>
</div>
</el-form-item>
<el-form-item label="执行人员:" prop="executorUuid">
<el-select v-model="formData.executorUuid"
placeholder="请选择执行人员"
style="width: 100%;">
<el-option v-for="item in executorList"
:key="item.directorUserId"
:label="item.directorName"
:value="item.directorUserId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="任务说明:" prop="description">
<el-input v-model="formData.description"
maxlength="200"
placeholder="请输入任务说明"
:rows="6"
type="textarea">
</el-input>
</el-form-item>
</el-form>
</el-scrollbar>
<div class="footer">
<el-button v-preventReClick
size="small"
@click="close">
取消
</el-button>
<el-button :loading="loading"
size="small"
type="primary"
@click="confirm">
确定
</el-button>
</div>
</div>
<MultipleStaff ref="staffTagRef"
:choose-data="formData.staffList"
:visible="staffTagVisible"
@choose="handleStaffChoose"
@dialogClose="staffTagVisible = false">
</MultipleStaff>
</el-drawer>
</template>
<script>
import { batchCreateStrategy, getStrategyShopMerchantOperators, getStrategyStaffList } from "@/api/earlyWarningManager";
import MultipleStaff from "../AddStrategy/MultipleStaff.vue";
export default {
name: "AddTask",
components: {
MultipleStaff,
},
inject: ["GET_PARAMS_INFO", "GET_MERCHANT_NAME"],
provide() {
return {
GET_POSITION_TYPE_LIST: () => this.positionTypeList,
GET_MERCHANT_LIST: () => [],
GET_BIZ: () => this.biz,
DEL_PARAMS_MERCHANT_LIST: () => false,
};
},
props: {
visibleSync: {
type: Boolean,
default: false,
},
biz: {
type: Number,
default: 1,
},
},
data() {
return {
loading: false,
taskTypeOptions: {
9: "人员更换评估",
10: "商务政策更新评估",
11: "多品类拓张",
12: "流量问题改善",
},
formData: {
taskType: "",
taskTitle: "",
staffList: [],
executorUuid: "",
description: "",
},
rules: {
taskType: [
{ required: true, message: "请选择任务类型", trigger: "change" },
],
staffList: [
{
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" },
],
},
staffTagVisible: false,
positionTypeList: [0], // 0:驻店人员
executorList: [], // 区域运营列表
};
},
computed: {
dialogShow: {
get() {
return this.visibleSync;
},
set(val) {
this.$emit("update:visibleSync", val);
},
},
paramsInfo() {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO();
},
merchantName() {
return this.GET_MERCHANT_NAME && this.GET_MERCHANT_NAME();
},
},
watch: {
visibleSync(val) {
if (val) {
this.init();
}
},
"formData.taskType": function (val) {
// 切换任务类型时,如果不是人员更换评估,清空问题人员
if (val !== 9) {
this.formData.staffList = [];
}
// 触发重新校验
this.$nextTick(() => {
if (this.$refs.form) {
this.$refs.form.validateField("staffList");
}
});
},
},
methods: {
init() {
this.formData = {
taskType: "",
taskTitle: "",
staffList: [],
executorUuid: "",
description: "",
};
this.$nextTick(() => {
if (this.$refs.form) {
this.$refs.form.clearValidate();
}
});
this.loadExecutors();
},
close() {
this.dialogShow = false;
},
loadExecutors() {
const params = {
merchantId: this.paramsInfo ? this.paramsInfo.merchantIds[0] : "",
businessType: this.biz,
};
getStrategyShopMerchantOperators(params).then((res) => {
if (res && res.length) {
this.executorList = res;
} else {
this.executorList = [];
}
}).catch(() => {
this.executorList = [];
});
},
openStaffDialog() {
this.staffTagVisible = true;
},
removeStaff(index) {
this.formData.staffList.splice(index, 1);
},
handleStaffChoose(list) {
this.formData.staffList = list;
this.$refs.form.validateField("staffList");
},
confirm() {
try {
this.loading = true;
let { paramsInfo, merchantName, formData, biz } = this;
let { taskType, taskTitle, staffList, executorUuid, description } = formData;
this.$refs.form.validate(async (valid) => {
if (valid) {
const executor = this.executorList.find(item => item.directorUserId === executorUuid);
let params = {
strategyInfo: {
strategyType: taskType,
biz,
title: taskTitle,
description,
},
merchantList: [
{
merchantId: paramsInfo.merchantIds[0],
merchantName,
},
],
};
let allStaffs = [];
if (staffList && staffList.length) {
if (staffList.length > 100) {
this.loading = false;
this.$message.error("最多只能选择100个问题人员");
return;
}
allStaffs = staffList.map(e => ({
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: 0, // 问题人员
}));
}
if (executor) {
allStaffs.push({
userUuid: executor.directorUserId,
userName: executor.directorName,
userPhone: executor.directorPhone,
userPosition: biz === 2 ? 8 : 9, // 执行人员:轻改=8,权益、延保=9
});
}
if (allStaffs.length) {
params.staffList = allStaffs;
}
console.log(params);
const data = await batchCreateStrategy(params);
this.loading = false;
if (data) {
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
} else {
this.loading = false;
}
});
} catch (error) {
console.log(error, "===");
this.loading = false;
if (error)
this.$message.error(error);
console.log(error);
}
},
},
};
</script>
<style scoped lang="scss">
::v-deep.strategy-drawer {
.el-drawer__header {
padding: 0;
margin: 0;
border-bottom: 1px solid #e5e5e5;
}
.el-drawer__close-btn {
padding: 0 20px;
.el-dialog__close {
font-weight: 700;
font-size: 24px;
}
}
&-title {
height: 26px;
line-height: 26px;
color: #333333;
font-size: 18px;
padding: 17px 20px;
font-weight: bold;
}
&-content {
height: calc(100vh - 61px);
.content {
height: calc(100% - 61px);
.form {
padding: 20px;
.tags-container {
margin-top: 10px;
padding: 10px;
border: 1px solid #e4e7ed;
border-radius: 4px;
min-height: 40px;
max-height: 120px;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.staff-tag {
margin-right: 0;
}
}
}
.footer {
padding: 14px 0;
border-top: 1px solid #e5e5e5;
display: flex;
justify-content: flex-end;
padding-right: 20px;
}
}
}
</style>
\ No newline at end of file
<template>
<el-drawer ref="drawer"
class="strategy-drawer"
size="50vw"
:visible.sync="dialogShow"
:wrapper-closable="false"
@close="close">
<template #title>
<div class="strategy-drawer-title">
添加带教申请
</div>
</template>
<div class="strategy-drawer-content">
<el-scrollbar class="content">
<el-form ref="form"
class="form"
label-width="110px"
:model="formData"
:rules="rules"
size="small">
<el-form-item label="需带教人员:" prop="staffList">
<el-button size="small" @click="openStaffDialog">
选择人员
</el-button>
<div v-if="formData.staffList && formData.staffList.length > 0" class="tags-container">
<el-tag v-for="(item, index) in formData.staffList"
:key="item.staffUuid"
class="staff-tag"
closable
@close="removeStaff(index)">
{{ item.staffName }}
</el-tag>
</div>
</el-form-item>
<el-form-item label="申请说明:" prop="description">
<el-input v-model="formData.description"
maxlength="200"
placeholder="请输入申请说明"
:rows="6"
type="textarea">
</el-input>
</el-form-item>
</el-form>
</el-scrollbar>
<div class="footer">
<el-button v-preventReClick
size="small"
@click="close">
取消
</el-button>
<el-button :loading="loading"
size="small"
type="primary"
@click="confirm">
确定
</el-button>
</div>
</div>
<MultipleStaff ref="staffTagRef"
:choose-data="formData.staffList"
:visible="staffTagVisible"
@choose="handleStaffChoose"
@dialogClose="staffTagVisible = false">
</MultipleStaff>
</el-drawer>
</template>
<script>
import { batchCreateStrategy } from "@/api/earlyWarningManager";
import MultipleStaff from "../AddStrategy/MultipleStaff.vue";
export default {
name: "AddTeaching",
components: {
MultipleStaff,
},
inject: ["GET_PARAMS_INFO", "GET_MERCHANT_NAME"],
provide() {
return {
GET_POSITION_TYPE_LIST: () => this.positionTypeList,
GET_MERCHANT_LIST: () => [],
GET_BIZ: () => this.biz,
DEL_PARAMS_MERCHANT_LIST: () => false,
};
},
props: {
visibleSync: {
type: Boolean,
default: false,
},
biz: {
type: Number,
default: 1,
},
},
data() {
return {
loading: false,
formData: {
staffList: [],
description: "",
},
rules: {
staffList: [
{ type: "array", required: true, message: "请选择需带教人员", trigger: "change" },
],
description: [
{ required: true, message: "请输入申请说明", trigger: "blur" },
],
},
staffTagVisible: false,
positionTypeList: [0], // 0:驻店人员
};
},
computed: {
dialogShow: {
get() {
return this.visibleSync;
},
set(val) {
this.$emit("update:visibleSync", val);
},
},
paramsInfo() {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO();
},
merchantName() {
return this.GET_MERCHANT_NAME && this.GET_MERCHANT_NAME();
},
},
watch: {
visibleSync(val) {
if (val) {
this.init();
}
},
},
methods: {
init() {
this.formData = {
staffList: [],
description: "",
};
this.$nextTick(() => {
if (this.$refs.form) {
this.$refs.form.clearValidate();
}
});
},
close() {
this.dialogShow = false;
},
openStaffDialog() {
this.staffTagVisible = true;
},
removeStaff(index) {
this.formData.staffList.splice(index, 1);
},
handleStaffChoose(list) {
this.formData.staffList = list;
this.$refs.form.validateField("staffList");
},
confirm() {
try {
this.loading = true;
const { paramsInfo, merchantName, formData, biz } = this;
const { staffList, description } = formData;
this.$refs.form.validate(async (valid) => {
if (valid) {
const params = {
strategyInfo: {
strategyType: 8,
biz,
description,
},
merchantList: [
{
merchantId: paramsInfo.merchantIds[0],
merchantName,
},
],
};
if (staffList && staffList.length) {
if (staffList.length > 100) {
this.loading = false;
this.$message.error("最多只能选择100个人员");
return;
}
params.staffList = staffList.map((e) => {
return {
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: e.positionType,
};
});
}
console.log(params);
const data = await batchCreateStrategy(params);
this.loading = false;
if (data) {
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
} else {
this.loading = false;
}
});
} catch (error) {
console.log(error, "===");
this.loading = false;
if (error)
this.$message.error(error);
console.log(error);
}
},
},
};
</script>
<style scoped lang="scss">
::v-deep.strategy-drawer {
.el-drawer__header {
padding: 0;
margin: 0;
border-bottom: 1px solid #e5e5e5;
}
.el-drawer__close-btn {
padding: 0 20px;
.el-dialog__close {
font-weight: 700;
font-size: 24px;
}
}
&-title {
height: 26px;
line-height: 26px;
color: #333333;
font-size: 18px;
padding: 17px 20px;
font-weight: bold;
}
&-content {
height: calc(100vh - 61px);
.content {
height: calc(100% - 61px);
.form {
padding: 20px;
.tags-container {
margin-top: 10px;
padding: 10px;
border: 1px solid #e4e7ed;
border-radius: 4px;
min-height: 40px;
max-height: 120px;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.staff-tag {
margin-right: 0;
}
}
}
.footer {
padding: 14px 0;
border-top: 1px solid #e5e5e5;
display: flex;
justify-content: flex-end;
padding-right: 20px;
}
}
}
</style>
\ No newline at end of file
<template>
<baseDialog
:is-show.sync="dialogShow"
<baseDialog class="detail-content"
:dialog-config="dialogConfig.config"
class="detail-content"
@handleClick="submit"
>
<el-form
ref="form"
:is-show.sync="dialogShow"
@handleClick="submit">
<el-form ref="form"
class="form"
label-width="120px"
size="small"
:rules="formRules"
:model="formData"
@submit.native.prevent="submit"
>
<el-form-item
label="停止展业日期:"
prop="nodeDate"
>
<el-date-picker
v-model="formData.nodeDate"
type="date"
placeholder="请选择停止展业日期"
:rules="formRules"
size="small"
@submit.native.prevent="submit">
<el-form-item label="停止展业日期:"
prop="nodeDate">
<el-date-picker v-model="formData.nodeDate"
:picker-options="afterTodayOptions"
>
placeholder="请选择停止展业日期"
type="date">
</el-date-picker>
</el-form-item>
</el-form>
......@@ -33,90 +25,93 @@
<script>
import {
stopBusiness,
} from "@api/earlyWarningManager"
} from "@api/earlyWarningManager";
import dayjs from "dayjs";
export default {
name: "AddStaff",
props: {
visible: {
type: Boolean,
default: false
default: false,
},
minDate: {
type: String,
default: dayjs().format("YYYY-MM-DD")
}
default: dayjs().format("YYYY-MM-DD"),
},
},
inject: ["GET_PARAMS_INFO"],
data() {
return {
formData: {
nodeDate: "",
},
formRules: {
nodeDate: [{ required: true, message: "请选择停止展业日期", trigger: "blur" }],
},
dialogConfig: {
config: {
title: "停止展业",
width: "640px",
},
},
};
},
inject: ['GET_PARAMS_INFO'],
computed: {
dialogShow: {
get () {
return this.visible
get() {
return this.visible;
},
set(val) {
this.close();
},
set (val) {
this.close()
}
},
afterTodayOptions () {
afterTodayOptions() {
return {
disabledDate: (time) => {
return (
time.getTime() < dayjs(this.minDate).valueOf() // 小于最小日期 → 禁用
);
}
}
},
paramsInfo () {
return this.GET_PARAMS_INFO()
};
},
paramsInfo() {
return this.GET_PARAMS_INFO();
},
mounted () {
},
data () {
return {
formData: {
nodeDate: '',
},
formRules: {
nodeDate: [{ required: true, message: '请选择停止展业日期', trigger: 'blur' }],
},
dialogConfig: {
config: {
title: "停止展业",
width: "640px"
}
},
}
mounted() {
},
methods: {
close () {
this.formData = this.$options.data.call(this).formData
this.$refs?.form?.resetFields()
this.$emit('dialogClose')
close() {
this.formData = this.$options.data.call(this).formData;
this.$refs?.form?.resetFields();
this.$emit("dialogClose");
},
submit () {
submit() {
this.$refs.form.validate(async (valid) => {
if (valid) {
const { merchantIds } = this.paramsInfo,
{ nodeDate } = this.formData,
data = await stopBusiness({
const { merchantIds, bizs } = this.paramsInfo;
const { nodeDate } = this.formData;
const data = await stopBusiness({
merchantId: merchantIds[0],
sceneType: 0,
bizs: 1,
nodeDate: dayjs(nodeDate).format("YYYY-MM-DD HH:mm:ss")
})
if(data) {
this.$emit('refresh')
this.$message.success('操作成功')
this.close()
}else this.$message.error('操作失败')
}
})
sceneType: bizs == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
bizs,
nodeDate: dayjs(nodeDate).format("YYYY-MM-DD HH:mm:ss"),
});
if (data) {
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
}
}
});
},
},
};
</script>
<style lang="scss" scoped>
......
<template>
<div
class="business-overview"
v-loading="loading"
>
<div v-loading="loading"
class="business-overview">
<div class="business-overview-title">
展业概况
<div :class="['business-overview-status',{'normal':businessOverviewDetail.status == 0}]">{{ businessOverviewText }}</div>
<div class="business-overview-status" :class="[{ normal: businessOverviewDetail.status == 0 }]">
{{ businessOverviewText }}
</div>
<div class="business-overview-total flex">
累计展业
<div class="num">{{ businessOverviewDetail.developmentDay || '-'}}</div>
<div class="num">
{{ businessOverviewDetail.developmentDay || '-' }}
</div>
天
<el-button
<el-button class="stop"
plain
type="primary"
class="stop"
size="small"
@click="openStopBusinessDialog"
>停止展业</el-button>
type="primary"
@click="openStopBusinessDialog">
停止展业
</el-button>
</div>
</div>
<template v-if="businessOverviewDetail.timelineList && businessOverviewDetail.timelineList.length">
<scroll-x-view>
<ScrollXView>
<div class="timeline">
<div
:class="['timeline-item',{last: index == businessOverviewDetail.timelineList.length - 1}]"
v-for="(item, index) in businessOverviewDetail.timelineList"
<div v-for="(item, index) in businessOverviewDetail.timelineList"
:key="index"
>
class="timeline-item"
:class="[{ last: index == businessOverviewDetail.timelineList.length - 1 }]">
<div class="timeline-item-arc"></div>
<div class="timeline-item-line"></div>
<div class="timeline-item-date">{{ item.nodeDate }}</div>
<div class="timeline-item-content">{{ item.content }}</div>
<div class="timeline-item-date">
{{ item.nodeDate }}
</div>
<div class="timeline-item-content">
{{ item.content }}
</div>
</scroll-x-view>
</div>
</div>
</ScrollXView>
</template>
<stop-business
<StopBusiness :min-date="minDate"
:visible.sync="stopBusinessVisible"
@dialogClose="stopBusinessVisible = false"
:minDate="minDate"
@refresh="getStrategyMerchantTimeline"
></stop-business>
@refresh="getStrategyMerchantTimeline">
</StopBusiness>
</div>
</template>
<script>
import ScrollXView from '../ScrollXView.vue';
import StopBusiness from './StopBusiness.vue';
import dayjs from "dayjs";
import {
getStrategyMerchantTimeline
} from '@/api/earlyWarningManager';
import dayjs from 'dayjs';
getStrategyMerchantTimeline,
} from "@/api/earlyWarningManager";
import ScrollXView from "../ScrollXView.vue";
import StopBusiness from "./StopBusiness.vue";
export default {
name: "BusinessOverview",
components: {
ScrollXView,
StopBusiness
StopBusiness,
},
name: 'BusinessOverview',
inject: ['GET_PARAMS_INFO'],
data () {
inject: ["GET_PARAMS_INFO"],
data() {
return {
stopBusinessVisible: false,
businessOverviewDetail: {},
loading: false,
minDate: dayjs().format('YYYY-MM-DD')
minDate: dayjs().format("YYYY-MM-DD"),
};
},
computed: {
businessOverviewText () {
let { status } = this.businessOverviewDetail
return status == 0 ? '展业中' : '停止展业'
businessOverviewText() {
let { status } = this.businessOverviewDetail;
return status == 0 ? "展业中" : "停止展业";
},
paramsInfo() {
return this.GET_PARAMS_INFO();
},
paramsInfo () {
return this.GET_PARAMS_INFO()
}
},
mounted () {
mounted() {
},
methods: {
init () {
this.getStrategyMerchantTimeline()
init() {
this.getStrategyMerchantTimeline();
},
openStopBusinessDialog () {
this.stopBusinessVisible = true
openStopBusinessDialog() {
this.stopBusinessVisible = true;
},
async getStrategyMerchantTimeline () {
async getStrategyMerchantTimeline() {
try {
this.businessOverviewDetail = {}
this.loading = true
let { merchantIds } = this.paramsInfo,
data = await getStrategyMerchantTimeline({
this.businessOverviewDetail = {};
this.loading = true;
let { merchantIds, bizs } = this.paramsInfo;
let data = await getStrategyMerchantTimeline({
merchantId: merchantIds[0],
bizs: 1, //业务类型(1.延保 2.轻改 3.权益)
sceneType: 0 //业务场景(0.会员权益,1.精品升级)
})
data.timelineList && data.timelineList.forEach(item => {
item.nodeDate = dayjs(item.nodeDate).format('YYYY-MM-DD')
bizs,
sceneType: bizs == 2 ? 1 : 0, // 业务场景(0.会员权益(延保权益),1.精品升级(轻改))
});
data.timelineList && data.timelineList.forEach((item) => {
item.nodeDate = dayjs(item.nodeDate).format("YYYY-MM-DD");
/**
* 节点类型,0-产品首次上架,1- 正式开单,2-安心包产品上架,3-延保-轮胎上架,4-延保-电池上架,5-展业风险,6-停止展业,7-恢复展业
*/
item.content = {
0: '产品首次上架',
1: '正式开单',
2: '安心包产品上架',
3: '轮胎产品上架',
4: '电池产品上架',
5: '展业风险',
6: '停止展业',
7: '恢复展业'
}[item.nodeType]
})
this.businessOverviewDetail = data
let nodeDate = ''
0: "产品首次上架",
1: "正式开单",
2: "安心包产品上架",
3: "轮胎产品上架",
4: "电池产品上架",
5: "展业风险",
6: "停止展业",
7: "恢复展业",
}[item.nodeType];
});
this.businessOverviewDetail = data;
let nodeDate = "";
if (data && data.timelineList) {
let { timelineList } = data
let { timelineList } = data;
if (timelineList.length) {
let lastNode = timelineList.at(-1)
let lastNode = timelineList.at(-1);
if (lastNode) {
if (lastNode.nodeType != 6) nodeDate = lastNode.nodeDate
else nodeDate = timelineList.at(-2).nodeDate
if (lastNode.nodeType != 6)
nodeDate = lastNode.nodeDate;
else nodeDate = timelineList.at(-2).nodeDate;
}
}
if (nodeDate) this.minDate = dayjs(nodeDate).format('YYYY-MM-DD')
} else this.minDate = dayjs().format('YYYY-MM-DD')
this.loading = false
} catch (error) {
console.log(error)
}
if (nodeDate)
this.minDate = dayjs(nodeDate).format("YYYY-MM-DD");
} else {
this.minDate = dayjs().format("YYYY-MM-DD");
}
this.loading = false;
} catch (error) {
console.log(error);
}
},
},
};
</script>
......@@ -142,7 +151,7 @@ export default {
.business-overview {
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
.timeline-content{
.timeline-content {
min-height: 89px;
}
&-title {
......
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content"
<baseDialog class="detail-content"
:config="config"
>
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow">
<div class="content">
<d2-table
<d2-table ref="table"
class="table"
ref="table"
:has-num="false"
:has-page="false"
:search-form="formSearch"
:table-params="tableParams"
:table-data="list"
:has-page="false"
:has-num="false"
>
:table-params="tableParams">
</d2-table>
<div class="block"></div>
</div>
......@@ -24,67 +20,42 @@
<script>
import {
getStrategyMerchantAnalysisIndexHistory,
} from "@api/earlyWarningManager"
} from "@api/earlyWarningManager";
export default {
name: "HistoryTarget",
inject: [
'GET_PARAMS_INFO',
"GET_PARAMS_INFO",
],
props: {
visible: {
type: Boolean,
default: false
default: false,
},
index: {
type: Number,
default: 0
}
},
computed: {
dialogShow: {
get () {
return this.visible
default: 0,
},
set (val) {
this.close()
}
},
merchantId () {
let [merchantId] = this.GET_PARAMS_INFO().merchantIds
return merchantId
}
},
watch: {
visible: function (val) {
if (val) {
this.list = []
this.getList()
}
}
},
mounted () {
},
data () {
data() {
return {
config: {
isShowFooter: true,
cancel_name: "返回",
hideConfirmBtn: true
hideConfirmBtn: true,
},
dialogConfig: {
config: {
title: "历史兜底目标",
width: "600px"
}
width: "600px",
},
},
formSearch: {},
tableParams: {
tableColumns: [
{
label: "月份",
prop: 'recordYearMonth',
prop: "recordYearMonth",
minWidth: 64,
},
{
......@@ -93,14 +64,14 @@ export default {
formatter: (row) => {
let val = row[
{
0: 'ewPenetrationRate',
1: 'ewAxbPenetrationRate',
2: 'batteryPenetrationRate',
3: 'ewLtPenetrationRate'
0: "ewPenetrationRate",
1: "ewAxbPenetrationRate",
2: "batteryPenetrationRate",
3: "ewLtPenetrationRate",
}[this.index]
] || null
return val != null ? val + '%' : '-'
}
] || null;
return val != null ? val + "%" : "-";
},
},
{
label: "转化率兜底目标",
......@@ -108,34 +79,59 @@ export default {
formatter: (row) => {
let val = row[
{
0: 'ewConRate',
1: 'ewAxbConRate',
2: 'batteryConversionRate',
3: 'ewLtConRate'
0: "ewConRate",
1: "ewAxbConRate",
2: "batteryConversionRate",
3: "ewLtConRate",
}[this.index]
] || null
return val != null ? val + '%' : '-'
}
] || null;
return val != null ? val + "%" : "-";
},
},
],
},
list: [],
};
},
computed: {
dialogShow: {
get() {
return this.visible;
},
set(val) {
this.close();
},
},
]
merchantId() {
let [merchantId] = this.GET_PARAMS_INFO().merchantIds;
return merchantId;
},
list: []
},
watch: {
visible(val) {
if (val) {
this.list = [];
this.getList();
}
},
},
mounted() {
},
methods: {
close () {
this.$emit('dialogClose')
close() {
this.$emit("dialogClose");
},
async getList () {
const { merchantId } = this,
data = await getStrategyMerchantAnalysisIndexHistory({
async getList() {
const { merchantId } = this;
const data = await getStrategyMerchantAnalysisIndexHistory({
bizs: 1,
merchantId
})
this.list = data
}
}
}
merchantId,
});
this.list = data;
},
},
};
</script>
<style lang="scss" scoped>
......
<template>
<baseDialog
:is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
class="detail-content"
<baseDialog class="detail-content"
:config="config"
>
:dialog-config="dialogConfig.config"
:is-show.sync="dialogShow">
<div class="content">
<template v-for="(item,index) in list">
<div
class="list-box"
:key="index"
>
<div :class="['line',{'first-line':index == 0},{'last-line':index == list.length - 1}]">
<template v-for="(item, index) in list">
<div :key="index"
class="list-box">
<div class="line" :class="[{ 'first-line': index == 0 }, { 'last-line': index == list.length - 1 }]">
<div class="icon"></div>
</div>
<div class="title">{{ item.yearMonth }}</div>
<div class="title">
{{ item.yearMonth }}
</div>
<div class="staff-list flex">
<template v-for="(i,ind) in item.staffList">
<div
class="staff-item flex"
:key="ind"
>
<template v-for="(i, ind) in item.staffList">
<div :key="ind"
class="staff-item flex">
<div class="staff-icon">
<img src="@/assets/strategy/default-avatar.png">
<template v-if="i.temporarySupport">
<div class="temporary-support flex">临时支援</div>
<template v-if="i.stationType == 2">
<div class="temporary-support flex">
临时支援
</div>
</template>
<template v-else-if="i.staffStatus == 1">
<div class="temporary-support flex">
临时支援
</div>
</template>
</div>
<div class="staff-info">
<div class="name text-hide">{{ i.staffName }}</div>
<div class="name text-hide">
{{ i.staffName }}
</div>
<template v-if="i.deletedFlag == 'N'">
<div
class="deleted flex"
@click.stop="disabledStaff(i)"
>
<div class="deleted flex"
@click.stop="disabledStaff(i)">
禁用
<div class="disabled-btn flex">
</div>
......@@ -55,90 +58,92 @@
import {
disableStrategyStaff,
getStrategyMerchantAnalysisEmployeeHistory,
} from "@api/earlyWarningManager"
} from "@api/earlyWarningManager";
export default {
name: "HistoryStaffList",
inject: ["GET_PARAMS_INFO"],
props: {
visible: {
type: Boolean,
default: false
default: false,
},
},
data() {
return {
config: {
isShowFooter: true,
cancel_name: "返回",
hideConfirmBtn: true,
},
dialogConfig: {
config: {
title: "历史人员记录",
width: "600px",
},
},
list: [],
};
},
computed: {
dialogShow: {
get () {
return this.visible
get() {
return this.visible;
},
set (val) {
this.close()
}
set(val) {
this.close();
},
},
paramsInfo() {
return this.GET_PARAMS_INFO();
},
paramsInfo () {
return this.GET_PARAMS_INFO()
}
},
inject: ['GET_PARAMS_INFO'],
watch: {
visible: {
handler (val) {
handler(val) {
if (val) {
this.getStrategyMerchantAnalysisEmployeeHistory()
this.getStrategyMerchantAnalysisEmployeeHistory();
}
},
immediate: true
}
},
mounted () {
},
data () {
return {
config: {
isShowFooter: true,
cancel_name: "返回",
hideConfirmBtn: true
immediate: true,
},
dialogConfig: {
config: {
title: "历史人员记录",
width: "600px"
}
},
list: []
}
mounted() {
},
methods: {
close () {
this.$emit('dialogClose')
close() {
this.$emit("dialogClose");
},
async getStrategyMerchantAnalysisEmployeeHistory () {
let { merchantIds } = this.paramsInfo,
data = await getStrategyMerchantAnalysisEmployeeHistory({
async getStrategyMerchantAnalysisEmployeeHistory() {
let { merchantIds } = this.paramsInfo;
let data = await getStrategyMerchantAnalysisEmployeeHistory({
bizs: 1,
merchantId: merchantIds[0]
})
this.list = data
merchantId: merchantIds[0],
});
this.list = data;
},
disabledStaff (item) {
disabledStaff(item) {
this.$confirm("对员工进行禁用操作后,对应的账户无法再使用;历史已产生的业务数据不受影响。", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
closeOnClickModal: false
closeOnClickModal: false,
}).then(async () => {
const data = await disableStrategyStaff({
staffUuid: item.staffUUid
})
staffUuid: item.staffUUid,
});
if (data) {
this.getStrategyMerchantAnalysisEmployeeHistory()
this.$message.success('操作成功')
} else this.$message.error('操作失败')
this.getStrategyMerchantAnalysisEmployeeHistory();
this.$message.success("操作成功");
} else {
this.$message.error("操作失败");
}
}).catch(() => {
})
});
},
}
}
},
};
</script>
<style lang="scss" scoped>
......
......@@ -4,15 +4,15 @@
<!-- 时间切换和日期选择器 -->
<CalendarCustom ref="calendarCustom"
v-model="timeRangeType"
:time-range-options="timeRangeOptions"
:date-range.sync="dateRange"
:date-format="dateFormat"
:date-range.sync="dateRange"
:time-range-options="timeRangeOptions"
@date-range-change="handleDateRangeChange" />
</div>
<div class="merchant-info flex">
<div class="merchant-icon flex">
<img :src="`${IMG_URL}merchant-icon.webp`"
class="icon">
<img class="icon"
:src="`${IMG_URL}merchant-icon.webp`">
</div>
<div class="info ">
<div class="name text-hide">
......@@ -20,12 +20,12 @@
</div>
<div class="control flex">
<div class="scene flex">
<img :src="`${IMG_URL}scene-icon.webp`"
class="scene-icon">
业务:延保
<img class="scene-icon"
:src="`${IMG_URL}scene-icon.webp`">
业务:{{ businessLabel }}
</div>
<el-button type="text"
class="change-store"
<el-button class="change-store"
type="text"
@click="merchantVisible = true">
切换门店
<i class="el-icon-sort"></i>
......@@ -65,10 +65,10 @@
</div>
</template>
</div>
<ChangeMerchantDialog :visible="merchantVisible"
:merchant-id="merchantDetailInfo.merchantNo"
@dialogClose="merchantVisible = false"
@changeMerchant="changeMerchant">
<ChangeMerchantDialog :merchant-id="merchantDetailInfo.merchantNo"
:visible="merchantVisible"
@changeMerchant="changeMerchant"
@dialogClose="merchantVisible = false">
</ChangeMerchantDialog>
</div>
</template>
......@@ -118,8 +118,8 @@ export default {
tooltip: true,
},
{
label: "区域运营",
key: "areaOperatorText",
label: "区域督导",
key: "flightSupervisionext",
tooltip: true,
},
{
......@@ -138,6 +138,17 @@ export default {
paramsInfo() {
return this.GET_PARAMS_INFO();
},
businessLabel() {
const BIZ_LABEL_MAP = {
1: "延保",
2: "轻改",
3: "权益",
};
const routeLabel = this.$route.query.businessLabel;
if (routeLabel)
return routeLabel;
return BIZ_LABEL_MAP[this.paramsInfo.bizs] || "-";
},
},
mounted() {
......@@ -158,9 +169,9 @@ export default {
});
},
async getStrategyMerchantDetail(merchantNo = "") {
let { merchantIds } = this.paramsInfo;
let { merchantIds, bizs } = this.paramsInfo;
let data = await getStrategyMerchantDetail({
businessType: 1,
businessType: bizs || 1,
merchantNo: merchantNo || merchantIds[0],
});
data.directSalesFlagText = {
......@@ -186,6 +197,8 @@ export default {
data.onlineOperatorText = data.onlineOperator.map(e => e.username).join("/");
if (data.areaOperator && data.areaOperator.length)
data.areaOperatorText = data.areaOperator.map(e => e.username).join("/");
if (data.flightSupervision && data.flightSupervision.length)
data.flightSupervisionText = data.flightSupervision.map(e => e.username).join("/");
this.merchantDetailInfo = data;
},
changeMerchant(e) {
......
<template>
<el-tabs v-model="activeName"
type="card"
class="tabs-content">
class="tabs-content"
type="card">
<el-tab-pane label="学习情况"
name="first">
<template v-if="activeName == 'first'">
......@@ -27,9 +27,9 @@
</div>
<d2-table ref="firstTable"
class="firstTable"
:table-params="tableParams"
:has-page="false"
:table-data="tags[currentIndex].staffList"
:has-page="false">
:table-params="tableParams">
<template #statusHtml="scope">
<div class="online-status">
<span class="dot"
......@@ -86,13 +86,13 @@
<div v-loading="loading">
<div class="block">
<div class="block-title flex">
<img src="@/assets/strategy/performance.png"
class="block-icon">
<img class="block-icon"
src="@/assets/strategy/performance.png">
业绩情况
</div>
<div class="business-box">
<img src="@/assets/strategy/detail-bg.webp"
class="bg">
<img class="bg"
src="@/assets/strategy/detail-bg.webp">
<div class="left">
<div class="business-title">
学习前
......@@ -145,8 +145,8 @@
</div>
<div class="block">
<div class="block-title flex">
<img src="@/assets/strategy/recording.png"
class="block-icon">
<img class="block-icon"
src="@/assets/strategy/recording.png">
录音情况
</div>
<div class="recording-box">
......@@ -157,8 +157,8 @@
</div>
</div>
<div class="ai flex">
<img src="@/assets/strategy/ai.png"
class="ai-icon">
<img class="ai-icon"
src="@/assets/strategy/ai.png">
AI导师建议
</div>
<template v-if="beforeStatic.aiTutorSuggest">
......@@ -185,12 +185,12 @@
</template>
</div>
<d2-table ref="leftTable"
:search-form="leftFormSearch"
:table-params="secondTableParams"
:before-search-fn="leftBeforeSearchFn"
:get-list-api="secondGetListApi"
layout="total, prev, pager, next"
:pager-count="5"
:before-search-fn="leftBeforeSearchFn">
:search-form="leftFormSearch"
:table-params="secondTableParams">
<template #auth-button="scope">
<el-button type="text"
@click="qualitDetail(scope.scope, 'leftTable')">
......@@ -206,8 +206,8 @@
</div>
</div>
<div class="ai flex">
<img src="@/assets/strategy/ai.png"
class="ai-icon">
<img class="ai-icon"
src="@/assets/strategy/ai.png">
AI导师建议
</div>
<template v-if="afterStatic.aiTutorSuggest">
......@@ -234,12 +234,12 @@
</template>
</div>
<d2-table ref="rightTable"
:search-form="rightFormSearch"
:table-params="secondTableParams"
:before-search-fn="rightBeforeSearchFn"
:get-list-api="secondGetListApi"
layout="total, prev, pager, next"
:pager-count="5"
:before-search-fn="rightBeforeSearchFn">
:search-form="rightFormSearch"
:table-params="secondTableParams">
<template #auth-button="scope">
<el-button type="text"
@click="qualitDetail(scope.scope, 'rightTable')">
......
<template>
<div class="strategy-item">
<div :class="['strategy-item-line',{'first-line':index == 0},{'last-line':isLast}]">
<div class="strategy-item-line" :class="[{ 'first-line': index == 0 }, { 'last-line': isLast }]">
<div class="icon"></div>
</div>
<div class="strategy-item-title flex">
<div class="text text-hide">
{{ STRATEGYTYPEOPTIONS[item.strategyType]}}
{{ STRATEGYTYPEOPTIONS[item.strategyType] }}
</div>
<div class="strategy-item-date">
{{ item.createdDateText }}
<div class="strategy-item-status" :style="{ color: formatStatusStyle(item.pushFlag).color, background: formatStatusStyle(item.pushFlag).bg }">
{{ formatPushFlag(item.pushFlag) }}
</div>
</div>
<div class="strategy-item-created">
{{ item.createdDateText }}<span>{{ item.createdBy }}</span>
</div>
<template v-for="(i, ind) in strategyTypeObject">
<div
class="content"
<div v-if="!i.hide || !i.hide(item)"
:key="ind"
v-if="!i.hide || !i.hide(item)"
>
<div class="label">{{ i.label }}:</div>
class="content">
<div class="label">
{{ i.label }}:
</div>
<div class="value-box">
<template v-if="i.tooltip">
<el-tooltip
effect="dark"
placement="top"
>
<div
slot="content"
class="tooltip-content-max"
>
<el-tooltip effect="dark"
placement="top">
<template #content>
<div class="tooltip-content-max">
<div v-html="item[i.key]"></div>
</div>
<span
class="two-line-ellipsis"
v-html="item[i.key]"
></span>
</template>
<span class="two-line-ellipsis"
v-html="item[i.key]">
</span>
</el-tooltip>
</template>
<template v-else>
<div :class="['value text-hide',i.className]">
<template v-if="i.format">{{ i.format(item) }}</template>
<template v-else>{{ item[i.key] }}</template>
<div class="value text-hide" :class="[i.className]">
<template v-if="i.format">
{{ i.format(item) }}
</template>
<template v-else>
{{ item[i.key] }}
</template>
</div>
</template>
</div>
</div>
</template>
<div class="btn-list flex">
<template v-if="item.showDel">
<el-button
<!-- 状态=未下发 -->
<template v-if="item.pushFlag == 0">
<el-button class="btn-default _btn"
:size="size"
class="btn-default _btn"
@click="deleteStrategy(item)"
>删除</el-button>
@click="deleteStrategy(item)">
删除
</el-button>
</template>
<el-button
<el-button class="btn-primary _btn"
plain
:size="size"
type="primary"
plain
class="btn-primary _btn"
@click="$emit('toDetail',item)"
>查看详情</el-button>
@click="$emit('toDetail', item)">
查看详情
</el-button>
</div>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import {
STRATEGYTYPEOPTIONS,
deleteStrategy,
} from "@/api/earlyWarningManager";
import {
STRATEGY_01,
STRATEGY_2456,
STRATEGY_3,
STRATEGY_7
} from './contant'
import {
deleteStrategy
} from '@/api/earlyWarningManager'
STRATEGY_7,
STRATEGY_8,
STRATEGY_9,
STRATEGY_10_11_12,
STRATEGY_2456,
STRATEGYTYPEOPTIONS,
} from "./contant";
export default {
name: 'StrategyItem',
name: "StrategyItem",
props: {
item: {
type: Object,
default: () => ({})
default: () => ({}),
},
index: {
type: Number,
default: 0
default: 0,
},
isLast: {
type: Boolean,
default: false
}
default: false,
},
},
data() {
return {
size: "small",
STRATEGYTYPEOPTIONS,
};
},
computed: {
strategyTypeObject () {
let { strategyType } = this.item,
list = [0, 1].includes(strategyType)
? STRATEGY_01 : [2, 4, 5, 6].includes(strategyType) ?
STRATEGY_2456 : {
strategyTypeObject() {
let { strategyType } = this.item;
let list = [0, 1].includes(strategyType)
? STRATEGY_01
: [2, 4, 5, 6].includes(strategyType)
? STRATEGY_2456
: [10, 11, 12].includes(strategyType)
? STRATEGY_10_11_12
: {
3: STRATEGY_3,
7: STRATEGY_7
}[strategyType] || []
7: STRATEGY_7,
8: STRATEGY_8,
9: STRATEGY_9,
}[strategyType] || [];
return [
...list,
{
label: '策略说明',
label: this.formatText(strategyType),
tooltip: true,
key: 'descriptionText'
}]
}
key: "descriptionText",
},
data () {
return {
size: 'small',
STRATEGYTYPEOPTIONS
}
];
},
mounted () {
},
mounted() {
},
methods: {
deleteStrategy (item) {
formatText(strategyType) {
let text = "策略说明";
text = [9, 10, 11, 12].includes(strategyType)
? "任务说明"
: [8].includes(strategyType) ? "申请说明" : text;
return text;
},
formatPushFlag(state) {
const numState = Number(state);
const obj = { 0: "待下发", 1: "已下发", 2: "未完成", 3: "审批中", 4: "执行中", 5: "已驳回", 6: "完成" };
return obj[numState] || "";
},
formatStatusStyle(state) {
const numState = Number(state);
const obj = { 0: {
color: "#8C8C8C",
bg: "rgba(140, 140, 140, 0.1)",
}, 1: {
color: "#43CF7C",
bg: "rgba(67, 207, 124, 0.1)",
}, 2: { color: "#2A82E4", bg: "rgba(42, 130, 228, 0.1)" }, 3: { color: "#FDB757", bg: "rgba(224, 183, 87, 0.1)" }, 4: {
color: "#2A82E4",
bg: "rgba(42, 130, 228, 0.1)",
}, 5: { color: "#EB4E4E", bg: "rgba(235, 78, 78, 0.1)" }, 6: { color: "#43CF7C", bg: "rgba(67, 207, 124, 0.1)" } };
console.log(obj[numState], "obj[numState]");
return obj[numState] || {};
},
deleteStrategy(item) {
this.$confirm("删除后不可恢复,是否确定删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
closeOnClickModal: false
closeOnClickModal: false,
}).then(async () => {
const data = await deleteStrategy({
id: item.id
})
id: item.id,
});
if (data) {
this.$emit('refresh')
this.$message.success('操作成功')
this.close()
} else this.$message.error('操作失败')
}).catch(() => {
})
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
}
}
}).catch(() => {
});
},
},
};
</script>
<style scoped lang='scss'>
......@@ -217,11 +263,19 @@ export default {
max-width: calc(100% - 106px);
}
}
&-date {
&-created {
color: #333333;
font-size: 14px;
span {
margin-left: 4px;
}
}
&-status {
margin-left: auto;
font-size: 14px;
line-height: 20px;
flex-shrink: 0;
padding: 2px 6px;
border-radius: 2px;
}
.tooltip-content-max {
max-height: 320px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!