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 {
this.isDialogVisible = true
},
addGroup(group) {
console.log(group)
group.push({ name: '' })
},
delGroup(group, i) {
......
......@@ -8,8 +8,10 @@
<div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"
@visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
<!-- 推送人 -->
......@@ -21,7 +23,8 @@
{{ wechat.automaticName }}
</div>
<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>
</div>
</div>
......@@ -32,7 +35,9 @@
</el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap">
<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>
<div class="empty" v-else>暂无数据</div>
</div>
......@@ -46,9 +51,11 @@
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> -->
<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>
<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>
</div>
</div>
......@@ -62,7 +69,8 @@
<el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</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>
</template>
<script>
......@@ -74,6 +82,7 @@ import charactersDialog from './components/dialogs/charactersDialog.vue'
import dailyDialog from './components/dialogs/dailyDialog.vue'
import progressDialog from './components/dialogs/progressDialog.vue'
import replenishmentDialog from './components/dialogs/replenishmentDialog.vue'
import saasDialog from './components/dialogs/saasDialog.vue'
export default {
components: {
GlSelectMenu,
......@@ -83,7 +92,8 @@ export default {
charactersDialog,
dailyDialog,
progressDialog,
replenishmentDialog
replenishmentDialog,
saasDialog
},
data() {
return {
......@@ -115,7 +125,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
},
switchList: {
// xiReport: [],
......@@ -132,7 +143,7 @@ export default {
{ switchType: 504, switchStatus: 'Y', actionReportType: 5, switchText: '' }
],
scheduleReport: [{ switchType: 601, switchStatus: 'Y', actionReportType: 6 }],
wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }]
wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }],
},
groupCofListInput: {
wordReportValue: [],
......@@ -140,7 +151,8 @@ export default {
saReportValue: [],
saPerReportValue: [],
scheduleReportValue: [],
zhanReportValue: []
zhanReportValue: [],
saasReportValue: []
},
groupToType: [
// {
......@@ -170,6 +182,10 @@ export default {
{
attr: 'wordReport',
type: 7
},
{
attr: 'saasReport',
type: 8
}
],
buttetinList: [
......@@ -194,6 +210,11 @@ export default {
componentName: 'dailyDialog'
},
{
label: '.服务商战报',
storageList: 'saasReportValue',
componentName: 'saasDialog'
},
{
label: '.客户进度消息',
storageList: 'scheduleReportValue',
componentName: 'progressDialog'
......@@ -273,7 +294,7 @@ export default {
this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
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 {
saReportValue: [],
saPerReportValue: [],
scheduleReportValue: [],
zhanReportValue: []
zhanReportValue: [],
saasReportValue: []
}
this.battleVisible = true
// 编辑
......@@ -352,7 +374,8 @@ export default {
saReportValue: [{ name: '' }],
saPerReportValue: [{ name: '' }],
scheduleReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }]
zhanReportValue: [{ name: '' }],
saasReportValue: [{ name: '' }]
}
}
},
......@@ -367,7 +390,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
}
}
}
......@@ -389,7 +413,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
}
},
async getDepartmentTree() {
......@@ -553,15 +578,19 @@ export default {
.footer-panel {
margin-top: 20px;
}
.search-groomname {
width: 402px;
margin: 12px 16px 0;
/deep/.el-input {
width: 402px;
}
}
.addConfig-wrap {
background: #fff;
.header {
width: 100%;
height: 58px;
......@@ -569,31 +598,38 @@ export default {
line-height: 58px;
padding-left: 20px;
}
.ml12 {
margin-left: 12px;
}
.config-wrap {
padding: 32px 20px;
min-height: 600px;
}
.group-item-box {
/deep/.el-form-item__content {
width: 392px;
}
}
.group-box {
width: 100%;
padding: 20px;
background: #f9f9f9;
.input-box {
display: flex;
align-items: center;
/deep/ {
.el-select,
.el-input {
width: 355px !important;
}
}
i {
cursor: pointer;
font-size: 20px;
......@@ -602,6 +638,7 @@ export default {
}
}
}
.group-config-text {
font-size: 12px;
color: #5850ff;
......@@ -611,13 +648,14 @@ export default {
white-space: nowrap;
cursor: pointer;
}
.placeholder {
font-size: 14px;
color: #c0c6ce;
line-height: 20px;
}
}
.is-reverse {
transform: rotate(180deg);
}
</style>
}</style>
......@@ -69,6 +69,9 @@ export default {
{
type: 2,
name: '浏览时长'
},{
type:2,
name:'线索归属'
}
],
mapList: {
......@@ -76,7 +79,8 @@ export default {
手机号: '${phone}',
线索来源: '${source}',
具体线索: '${clue}',
浏览时长: '${browseTime}'
浏览时长: '${browseTime}',
线索归属: '${staff}'
}
}
},
......
<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="left-wrap">
<div class="img-wrap">
......
<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="left-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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!