Commit ea519b66 by chenwq

refactor(bulletin): 优化报表标签命名和推送群聊显示逻辑

- 统一报表标签命名,去除冗余的"模版"字样
- 调整推送群聊显示逻辑,仅在特定报表类型显示
- 修复部分报表类型与存储字段的对应关系
1 parent cdb5fb45
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</el-form-item> </el-form-item>
<!-- #喜报>> : --> <!-- #喜报>> : -->
<template v-for="(bulletin, index) in buttetinList"> <template v-for="(bulletin, index) in buttetinList">
<el-form-item :label="(index > 10 && index < 26) ? bulletin.label + ' 推送至群聊' + ':' : '#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index"> <el-form-item :label="(index > 10 && index < 26) ? bulletin.label + ':' : '#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index">
<div class="group-box"> <div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k"> <div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> --> <!-- <el-input v-model="i.name" ></el-input> -->
...@@ -387,91 +387,91 @@ export default { ...@@ -387,91 +387,91 @@ export default {
// componentName: 'InvoicingDialog' // componentName: 'InvoicingDialog'
}, },
{ {
label: '1.1轻改区域日报模版', label: '1.1轻改区域日报',
storageList: 'lightModifyReportValue', storageList: 'lightModifyReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1权益区域日报模版', label: '2.1权益区域日报',
storageList: 'equityRegionalOperationsDailyValue', storageList: 'equityRegionalOperationsDailyValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3延保区域日报模版', label: '2.3延保区域日报',
storageList: 'regionalOperationsReportValue', storageList: 'regionalOperationsReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1区域经理周报模版', label: '1.1区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport21Value', storageList: 'regionalManagerWeeklyReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1区域经理周报模版', label: '2.1区域经理周报',
storageList: 'regionalManagerWeeklyReportValue', storageList: 'equityRegionalManagerWeeklyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3区域经理周报模版', label: '2.3区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport23Value', storageList: 'equityRegionalManagerWeeklyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1运营主管周报模版', label: '1.1运营主管周报',
storageList: 'equityOperationManagerWeeklyReport21Value', storageList: 'operationManagerWeeklyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1运营主管周报模版', label: '2.1运营主管周报',
storageList: 'operationManagerWeeklyReport11Value', storageList: 'equityOperationManagerWeeklyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3运营主管周报模版', label: '2.3运营主管周报',
storageList: 'equityOperationManagerWeeklyReport23Value', storageList: 'equityOperationManagerWeeklyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1区域经理月报模版', label: '1.1区域经理月报',
storageList: 'regionalManagerMonthlyReport11Value', storageList: 'regionalManagerMonthlyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1区域经理月报模版', label: '2.1区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport21Value', storageList: 'equityRegionalManagerMonthlyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3区域经理月报模版', label: '2.3区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport23Value', storageList: 'equityRegionalManagerMonthlyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1运营主管月报模版', label: '1.1运营主管月报',
storageList: 'equityOperationManagerMonthlyReport21Value', storageList: 'operationManagerMonthlyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1运营主管月报模版', label: '2.1运营主管月报',
storageList: 'operationManagerMonthlyReport11Value', storageList: 'equityOperationManagerMonthlyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3运营主管月报模版', label: '2.3运营主管月报',
storageList: 'equityOperationManagerMonthlyReport23Value', storageList: 'equityOperationManagerMonthlyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div slot="label"> <div slot="label">
{{ bulletin.label }} {{ bulletin.label }}
<img v-if="bulletin.eyeIcon" class="icon-eye" @click="handlePoster(bulletin.eyeIcon)" src="@/assets/icon-eye.png" /> <img v-if="bulletin.eyeIcon" class="icon-eye" @click="handlePoster(bulletin.eyeIcon)" src="@/assets/icon-eye.png" />
<span v-if="bulletin.label != '推送时间'">推送至群聊:</span> <span v-if="['收款喜报', '文字喜报', '店面早报', '服务商战报', '驻店日报', '智能工牌开机检测', '业务预警', '延保门店产值及个人成交报表', '将场景集市上架通知'].includes(bulletin.label)">推送至群聊:</span>
<span v-else>:</span> <span v-else>:</span>
</div> </div>
<div v-if="bulletin.label == '推送时间'" class="group-box group-box-white"> <div v-if="bulletin.label == '推送时间'" class="group-box group-box-white">
...@@ -248,6 +248,10 @@ export default { ...@@ -248,6 +248,10 @@ export default {
type: 35 type: 35
}, },
{ {
attr: 'equityRegionalManagerWeeklyReport21',
type: 36
},
{
attr: 'regionalManagerWeeklyReport', attr: 'regionalManagerWeeklyReport',
type: 37 type: 37
}, },
...@@ -352,91 +356,91 @@ export default { ...@@ -352,91 +356,91 @@ export default {
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1轻改区域日报模版', label: '1.1轻改区域日报',
storageList: 'lightModifyReportValue', storageList: 'lightModifyReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1权益区域日报模版', label: '2.1权益区域日报',
storageList: 'equityRegionalOperationsDailyValue', storageList: 'equityRegionalOperationsDailyValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3延保区域日报模版', label: '2.3延保区域日报',
storageList: 'regionalOperationsReportValue', storageList: 'regionalOperationsReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1区域经理周报模版', label: '1.1区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport21Value', storageList: 'regionalManagerWeeklyReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1区域经理周报模版', label: '2.1区域经理周报',
storageList: 'regionalManagerWeeklyReportValue', storageList: 'equityRegionalManagerWeeklyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3区域经理周报模版', label: '2.3区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport23Value', storageList: 'equityRegionalManagerWeeklyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1运营主管周报模版', label: '1.1运营主管周报',
storageList: 'equityOperationManagerWeeklyReport21Value', storageList: 'operationManagerWeeklyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1运营主管周报模版', label: '2.1运营主管周报',
storageList: 'operationManagerWeeklyReport11Value', storageList: 'equityOperationManagerWeeklyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3运营主管周报模版', label: '2.3运营主管周报',
storageList: 'equityOperationManagerWeeklyReport23Value', storageList: 'equityOperationManagerWeeklyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1区域经理月报模版', label: '1.1区域经理月报',
storageList: 'regionalManagerMonthlyReport11Value', storageList: 'regionalManagerMonthlyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1区域经理月报模版', label: '2.1区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport21Value', storageList: 'equityRegionalManagerMonthlyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3区域经理月报模版', label: '2.3区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport23Value', storageList: 'equityRegionalManagerMonthlyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.1运营主管月报模版', label: '1.1运营主管月报',
storageList: 'equityOperationManagerMonthlyReport21Value', storageList: 'operationManagerMonthlyReport11Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '1.1运营主管月报模版', label: '2.1运营主管月报',
storageList: 'operationManagerMonthlyReport11Value', storageList: 'equityOperationManagerMonthlyReport21Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '2.3运营主管月报模版', label: '2.3运营主管月报',
storageList: 'equityOperationManagerMonthlyReport23Value', storageList: 'equityOperationManagerMonthlyReport23Value',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: ''
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-form-item> </el-form-item>
<!-- #喜报>> : --> <!-- #喜报>> : -->
<template v-for="(bulletin, index) in buttetinList"> <template v-for="(bulletin, index) in buttetinList">
<el-form-item :label="(index > 1 && index < 17) ? bulletin.label + ' 推送至群聊' + ':' : '#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index"> <el-form-item :label="(index > 1 && index < 17) ? bulletin.label + ':' : '#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index">
<div class="group-box"> <div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k"> <div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> --> <!-- <el-input v-model="i.name" ></el-input> -->
...@@ -237,77 +237,77 @@ export default { ...@@ -237,77 +237,77 @@ export default {
componentName: '' componentName: ''
}, },
{ {
label: '1.1轻改区域日报模版', label: '1.1轻改区域日报',
storageList: 'lightModifyReportValue', storageList: 'lightModifyReportValue',
componentName: '' componentName: ''
}, },
{ {
label: '2.1权益区域日报模版', label: '2.1权益区域日报',
storageList: 'equityRegionalOperationsDailyValue', storageList: 'equityRegionalOperationsDailyValue',
componentName: '' componentName: ''
}, },
{ {
label: '2.3延保区域日报模版', label: '2.3延保区域日报',
storageList: 'regionalOperationsReportValue', storageList: 'regionalOperationsReportValue',
componentName: '' componentName: ''
}, },
{ {
label: '2.1区域经理周报模版', label: '1.1区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport21Value', storageList: 'regionalManagerWeeklyReportValue',
componentName: '' componentName: ''
}, },
{ {
label: '1.1区域经理周报模版', label: '2.1区域经理周报',
storageList: 'regionalManagerWeeklyReportValue', storageList: 'equityRegionalManagerWeeklyReport21Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.3区域经理周报模版', label: '2.3区域经理周报',
storageList: 'equityRegionalManagerWeeklyReport23Value', storageList: 'equityRegionalManagerWeeklyReport23Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.1运营主管周报模版', label: '1.1运营主管周报',
storageList: 'equityOperationManagerWeeklyReport21Value', storageList: 'operationManagerWeeklyReport11Value',
componentName: '' componentName: ''
}, },
{ {
label: '1.1运营主管周报模版', label: '2.1运营主管周报',
storageList: 'operationManagerWeeklyReport11Value', storageList: 'equityOperationManagerWeeklyReport21Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.3运营主管周报模版', label: '2.3运营主管周报',
storageList: 'equityOperationManagerWeeklyReport23Value', storageList: 'equityOperationManagerWeeklyReport23Value',
componentName: '' componentName: ''
}, },
{ {
label: '1.1区域经理月报模版', label: '1.1区域经理月报',
storageList: 'regionalManagerMonthlyReport11Value', storageList: 'regionalManagerMonthlyReport11Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.1区域经理月报模版', label: '2.1区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport21Value', storageList: 'equityRegionalManagerMonthlyReport21Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.3区域经理月报模版', label: '2.3区域经理月报',
storageList: 'equityRegionalManagerMonthlyReport23Value', storageList: 'equityRegionalManagerMonthlyReport23Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.1运营主管月报模版', label: '1.1运营主管月报',
storageList: 'equityOperationManagerMonthlyReport21Value', storageList: 'operationManagerMonthlyReport11Value',
componentName: '' componentName: ''
}, },
{ {
label: '1.1运营主管月报模版', label: '2.1运营主管月报',
storageList: 'operationManagerMonthlyReport11Value', storageList: 'equityOperationManagerMonthlyReport21Value',
componentName: '' componentName: ''
}, },
{ {
label: '2.3运营主管月报模版', label: '2.3运营主管月报',
storageList: 'equityOperationManagerMonthlyReport23Value', storageList: 'equityOperationManagerMonthlyReport23Value',
componentName: '' componentName: ''
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!