Commit c97f3130 by 王志慧

Merge branch 'v3.13.1' of http://192.168.3.233:8090/saas/scrm-micro-battles into SAAS+V4.26.0

2 parents fb9e6449 f901e933
...@@ -191,7 +191,6 @@ export default { ...@@ -191,7 +191,6 @@ export default {
this.isDialogVisible = true this.isDialogVisible = true
}, },
addGroup(group) { addGroup(group) {
console.log(group)
group.push({ name: '' }) group.push({ name: '' })
}, },
delGroup(group, i) { delGroup(group, i) {
......
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
<div class="config-wrap gl-form-page"> <div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:"> <el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect"> <el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option> @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 推送人 --> <!-- 推送人 -->
...@@ -21,7 +23,8 @@ ...@@ -21,7 +23,8 @@
{{ wechat.automaticName }} {{ wechat.automaticName }}
</div> </div>
<span class="el-input__suffix" @click="openAutomatic"> <span class="el-input__suffix" @click="openAutomatic">
<span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span> <span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
...@@ -32,7 +35,9 @@ ...@@ -32,7 +35,9 @@
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<template v-if="automaticData.length > 0"> <template v-if="automaticData.length > 0">
<el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @node-click="handleNodeClick"></el-tree> <el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys"
:props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree"
@node-click="handleNodeClick"></el-tree>
</template> </template>
<div class="empty" v-else>暂无数据</div> <div class="empty" v-else>暂无数据</div>
</div> </div>
...@@ -46,9 +51,11 @@ ...@@ -46,9 +51,11 @@
<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> -->
<el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable> <el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable>
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option> <el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName"
:value="item.groupName"></el-option>
</el-select> </el-select>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i> <i class="el-icon-circle-plus" v-if="k == 0"
@click="addGroup(groupCofListInput[bulletin.storageList])"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i> <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i>
</div> </div>
</div> </div>
...@@ -62,7 +69,8 @@ ...@@ -62,7 +69,8 @@
<el-button @click="handlebattleClose" size="medium">取消</el-button> <el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button> <el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</GLFooter> </GLFooter>
<component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible" :switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component> <component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible"
:switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component>
</div> </div>
</template> </template>
<script> <script>
...@@ -74,6 +82,7 @@ import charactersDialog from './components/dialogs/charactersDialog.vue' ...@@ -74,6 +82,7 @@ import charactersDialog from './components/dialogs/charactersDialog.vue'
import dailyDialog from './components/dialogs/dailyDialog.vue' import dailyDialog from './components/dialogs/dailyDialog.vue'
import progressDialog from './components/dialogs/progressDialog.vue' import progressDialog from './components/dialogs/progressDialog.vue'
import replenishmentDialog from './components/dialogs/replenishmentDialog.vue' import replenishmentDialog from './components/dialogs/replenishmentDialog.vue'
import saasDialog from './components/dialogs/saasDialog.vue'
export default { export default {
components: { components: {
GlSelectMenu, GlSelectMenu,
...@@ -83,7 +92,8 @@ export default { ...@@ -83,7 +92,8 @@ export default {
charactersDialog, charactersDialog,
dailyDialog, dailyDialog,
progressDialog, progressDialog,
replenishmentDialog replenishmentDialog,
saasDialog
}, },
data() { data() {
return { return {
...@@ -115,7 +125,8 @@ export default { ...@@ -115,7 +125,8 @@ export default {
saReport: [], saReport: [],
saPerReport: [], saPerReport: [],
scheduleReport: [], scheduleReport: [],
wordReport: [] wordReport: [],
saasReport: []
}, },
switchList: { switchList: {
// xiReport: [], // xiReport: [],
...@@ -132,7 +143,7 @@ export default { ...@@ -132,7 +143,7 @@ export default {
{ switchType: 504, switchStatus: 'Y', actionReportType: 5, switchText: '' } { switchType: 504, switchStatus: 'Y', actionReportType: 5, switchText: '' }
], ],
scheduleReport: [{ switchType: 601, switchStatus: 'Y', actionReportType: 6 }], scheduleReport: [{ switchType: 601, switchStatus: 'Y', actionReportType: 6 }],
wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }] wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }],
}, },
groupCofListInput: { groupCofListInput: {
wordReportValue: [], wordReportValue: [],
...@@ -140,7 +151,8 @@ export default { ...@@ -140,7 +151,8 @@ export default {
saReportValue: [], saReportValue: [],
saPerReportValue: [], saPerReportValue: [],
scheduleReportValue: [], scheduleReportValue: [],
zhanReportValue: [] zhanReportValue: [],
saasReportValue: []
}, },
groupToType: [ groupToType: [
// { // {
...@@ -170,6 +182,10 @@ export default { ...@@ -170,6 +182,10 @@ export default {
{ {
attr: 'wordReport', attr: 'wordReport',
type: 7 type: 7
},
{
attr: 'saasReport',
type: 8
} }
], ],
buttetinList: [ buttetinList: [
...@@ -194,6 +210,11 @@ export default { ...@@ -194,6 +210,11 @@ export default {
componentName: 'dailyDialog' componentName: 'dailyDialog'
}, },
{ {
label: '.服务商战报',
storageList: 'saasReportValue',
componentName: 'saasDialog'
},
{
label: '.客户进度消息', label: '.客户进度消息',
storageList: 'scheduleReportValue', storageList: 'scheduleReportValue',
componentName: 'progressDialog' componentName: 'progressDialog'
...@@ -273,7 +294,7 @@ export default { ...@@ -273,7 +294,7 @@ export default {
this.idBefEncryption = data.idBefEncryption this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => { this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || [] this.selectGroupName = res.data.result || []
this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }] } this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }] }
}) })
}, },
// 弹窗数据回显 // 弹窗数据回显
...@@ -305,7 +326,8 @@ export default { ...@@ -305,7 +326,8 @@ export default {
saReportValue: [], saReportValue: [],
saPerReportValue: [], saPerReportValue: [],
scheduleReportValue: [], scheduleReportValue: [],
zhanReportValue: [] zhanReportValue: [],
saasReportValue: []
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -352,7 +374,8 @@ export default { ...@@ -352,7 +374,8 @@ export default {
saReportValue: [{ name: '' }], saReportValue: [{ name: '' }],
saPerReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }],
scheduleReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }] zhanReportValue: [{ name: '' }],
saasReportValue: [{ name: '' }]
} }
} }
}, },
...@@ -367,7 +390,8 @@ export default { ...@@ -367,7 +390,8 @@ export default {
saReport: [], saReport: [],
saPerReport: [], saPerReport: [],
scheduleReport: [], scheduleReport: [],
wordReport: [] wordReport: [],
saasReport: []
} }
} }
} }
...@@ -389,7 +413,8 @@ export default { ...@@ -389,7 +413,8 @@ export default {
saReport: [], saReport: [],
saPerReport: [], saPerReport: [],
scheduleReport: [], scheduleReport: [],
wordReport: [] wordReport: [],
saasReport: []
} }
}, },
async getDepartmentTree() { async getDepartmentTree() {
...@@ -553,15 +578,19 @@ export default { ...@@ -553,15 +578,19 @@ export default {
.footer-panel { .footer-panel {
margin-top: 20px; margin-top: 20px;
} }
.search-groomname { .search-groomname {
width: 402px; width: 402px;
margin: 12px 16px 0; margin: 12px 16px 0;
/deep/.el-input { /deep/.el-input {
width: 402px; width: 402px;
} }
} }
.addConfig-wrap { .addConfig-wrap {
background: #fff; background: #fff;
.header { .header {
width: 100%; width: 100%;
height: 58px; height: 58px;
...@@ -569,31 +598,38 @@ export default { ...@@ -569,31 +598,38 @@ export default {
line-height: 58px; line-height: 58px;
padding-left: 20px; padding-left: 20px;
} }
.ml12 { .ml12 {
margin-left: 12px; margin-left: 12px;
} }
.config-wrap { .config-wrap {
padding: 32px 20px; padding: 32px 20px;
min-height: 600px; min-height: 600px;
} }
.group-item-box { .group-item-box {
/deep/.el-form-item__content { /deep/.el-form-item__content {
width: 392px; width: 392px;
} }
} }
.group-box { .group-box {
width: 100%; width: 100%;
padding: 20px; padding: 20px;
background: #f9f9f9; background: #f9f9f9;
.input-box { .input-box {
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ { /deep/ {
.el-select, .el-select,
.el-input { .el-input {
width: 355px !important; width: 355px !important;
} }
} }
i { i {
cursor: pointer; cursor: pointer;
font-size: 20px; font-size: 20px;
...@@ -602,6 +638,7 @@ export default { ...@@ -602,6 +638,7 @@ export default {
} }
} }
} }
.group-config-text { .group-config-text {
font-size: 12px; font-size: 12px;
color: #5850ff; color: #5850ff;
...@@ -611,13 +648,14 @@ export default { ...@@ -611,13 +648,14 @@ export default {
white-space: nowrap; white-space: nowrap;
cursor: pointer; cursor: pointer;
} }
.placeholder { .placeholder {
font-size: 14px; font-size: 14px;
color: #c0c6ce; color: #c0c6ce;
line-height: 20px; line-height: 20px;
} }
} }
.is-reverse { .is-reverse {
transform: rotate(180deg); transform: rotate(180deg);
} }</style>
</style>
...@@ -69,6 +69,9 @@ export default { ...@@ -69,6 +69,9 @@ export default {
{ {
type: 2, type: 2,
name: '浏览时长' name: '浏览时长'
},{
type:2,
name:'线索归属'
} }
], ],
mapList: { mapList: {
...@@ -76,7 +79,8 @@ export default { ...@@ -76,7 +79,8 @@ export default {
手机号: '${phone}', 手机号: '${phone}',
线索来源: '${source}', 线索来源: '${source}',
具体线索: '${clue}', 具体线索: '${clue}',
浏览时长: '${browseTime}' 浏览时长: '${browseTime}',
线索归属: '${staff}'
} }
} }
}, },
......
<template> <template>
<GLDialog :mode="mode" title="#5.客户进度消息 预览配置显示字段" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="handlebattleClose"> <GLDialog :mode="mode" title="#6.客户进度消息 预览配置显示字段" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="handlebattleClose">
<div class="popup-wrap"> <div class="popup-wrap">
<div class="left-wrap"> <div class="left-wrap">
<div class="img-wrap"> <div class="img-wrap">
......
<template> <template>
<GLDialog :mode="mode" title="#6.补单通知 预览配置显示字段" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleClose" @onCancel="handlebattleClose"> <GLDialog :mode="mode" title="#7.补单通知 预览配置显示字段" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleClose" @onCancel="handlebattleClose">
<div class="popup-wrap"> <div class="popup-wrap">
<div class="left-wrap"> <div class="left-wrap">
<div class="img-wrap"> <div class="img-wrap">
......
<template>
<GLDialog :mode="mode" title="#5.服务商战报 预览配置显示字段" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleClose" @onCancel="handlebattleClose">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
<img src="@/assets/buttetin/saas.png" />
</div>
<p class="color-3 txt-center text-14">图示效果</p>
</div>
<div class="right-wrap">
<div class="empty">
<img src="@/assets/buttetin/empty.png" />
</div>
<p class="empty-text">暂无配置项</p>
<div class="explain">
<div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i>
推送机制说明
</div>
<p class="mrp">配置后每日早上7点,统计前一日门店汇总数据进行推送</p>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
import dialog from './dialog'
export default {
mixins: [dialog],
data() {
return {
mode: 'big'
}
},
methods: {
handlebattleConfirm() {
this.isDialogVisible = false
// let switchList = []
// const params = ['vehicleType', 'goodsType', 'proceedsType', 'verbalType']
// params.forEach(data => {
// this[data].switchStatus = this[data].switchStatus ? 'Y' : 'N'
// switchList.push(this[data])
// })
// this.$emit('handlePreview',{key:'saPerReport',data:switchList})
}
}
}
</script>
<style lang="scss" scoped>
.popup-wrap {
display: flex;
padding: 0 72px;
.img-wrap {
width: 250px;
height: 560px;
margin-bottom: 14px;
img {
width: 100%;
height: 100%;
}
}
.right-wrap {
display: 1;
position: relative;
width: 100%;
margin-top: 12px;
/deep/.el-form-item {
margin-bottom: 0px;
}
.item-line {
margin-bottom: 20px;
}
.empty {
width: 420px;
height: 260px;
position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
img {
width: 100%;
height: 100%;
}
}
.empty-text {
font-size: 16px;
color: #666666;
line-height: 20px;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
}
.explain {
width: 486px;
background: #f4f6fc;
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position: absolute;
bottom: 30px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp {
margin: 8px 0 0 20px;
line-height: 22px;
}
}
}
.warn {
font-size: 12px;
color: #999999;
margin-left: 154px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!