Commit 16ba4c30 by 王志慧

feat

1 parent 86f29bc1
......@@ -139,13 +139,13 @@ html {
// width: 215px;
}
.container {
.marketing .container {
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
}
.edit-box .container {
.marketing.edit-box .container {
padding: 0 0 20px;
}
......@@ -203,7 +203,7 @@ html {
background: linear-gradient(to right, transparent, #fff 55%);
}
.list-tips {
.marketing .list-tips {
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
padding: 10px 16px;
......@@ -215,69 +215,69 @@ html {
border-radius: 4px;
}
.list-tips .tips-img {
.marketing .list-tips .tips-img {
vertical-align: middle;
margin: -2px 8px 0 0;
}
.list-tips .red-txt {
.marketing .list-tips .red-txt {
color: #eb4e4e;
}
.red-txt {
.marketing .red-txt {
color: #eb4e4e;
}
.wechat-container {
.marketing .wechat-container {
width: 290px;
margin-left: 32px;
background: #ffffff;
position: relative;
}
.w-100-per,
.w-100-percent {
.marketing .w-100-per,
.marketing .w-100-percent {
width: 100% !important;
}
.wechat-container .wechat-box {
.marketing .wechat-container .wechat-box {
width: 290px;
}
.edit-container {
.marketing .edit-container {
// margin-bottom: 84px;
// min-height: calc(100vh - 156px);
margin-bottom: 16px;
}
.approval-container {
.marketing .approval-container {
margin-bottom: 10px;
}
.edit-form-container {
.marketing .edit-form-container {
margin-top: 20px;
}
.form-sub-block {
.marketing .form-sub-block {
// width: 686px;
background: #f9f9f9;
padding: 20px 80px 20px 20px;
}
.f-right {
.marketing .f-right {
float: right;
}
.footer-btns {
.marketing .footer-btns {
float: right;
margin-bottom: 18px;
}
.color-transparent {
.marketing .color-transparent {
background-color: transparent;
}
.default-blue-btn {
.marketing .default-blue-btn {
color: #5850ff;
border-color: #5850ff;
height: 32px;
......@@ -293,43 +293,43 @@ html {
background-color: rgba(144, 147, 153, 0.5) !important;
}
.table-title {
.marketing .table-title {
line-height: 32px;
}
.table-circle {
.marketing .table-circle {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 4px;
}
.back-orange {
.marketing .back-orange {
background-color: #fdb757;
}
.back-blue {
.marketing .back-blue {
background-color: #5850ff;
}
.back-grey {
.marketing .back-grey {
background-color: #999999;
}
.back-green {
.marketing .back-green {
background-color: #2cca74;
}
.back-red {
.marketing .back-red {
background-color: #eb4e4e;
}
.el-table .cell {
.marketing .el-table .cell {
line-height: 17px;
padding: 0 16px !important;
}
.table-btns .el-button:first-child {
.marketing .table-btns .el-button:first-child {
padding: 0;
border: 0;
}
......@@ -359,109 +359,109 @@ html {
border-radius: 50%;
}
.pointer {
.marketing .pointer {
cursor: pointer;
}
.img-36 {
.marketing .img-36 {
width: 36px;
height: 36px;
}
.img-60 {
.marketing .img-60 {
width: 60px;
height: 60px;
}
.img-100 {
.marketing .img-100 {
width: 100px;
height: 100px;
}
.img-120 {
.marketing .img-120 {
width: 120px;
height: 120px;
}
.w-150 {
.marketing .w-150 {
width: 150px;
}
.w-320 {
.marketing .w-320 {
width: 320px;
}
.m-t-8 {
.marketing .m-t-8 {
margin-top: 8px;
}
.m-t-10 {
.marketing .m-t-10 {
margin-top: 10px;
}
.m-t-20 {
.marketing .m-t-20 {
margin-top: 20px;
}
.m-b-8 {
.marketing .m-b-8 {
margin-bottom: 8px;
}
.m-b-10 {
.marketing .m-b-10 {
margin-bottom: 10px;
}
.m-b-20 {
.marketing .m-b-20 {
margin-bottom: 20px;
}
.m-b-60 {
.marketing .m-b-60 {
margin-bottom: 60px;
}
.m-r-8 {
.marketing .m-r-8 {
margin-right: 8px;
}
.m-r-10 {
.marketing .m-r-10 {
margin-right: 10px;
}
.m-r-20 {
.marketing .m-r-20 {
margin-right: 20px;
}
.m-l-10 {
.marketing .m-l-10 {
margin-left: 10px !important;
}
.m-l-20 {
.marketing .m-l-20 {
margin-left: 20px;
}
.p-20 {
.marketing .p-20 {
padding: 20px;
}
.p-t-10,
.p-t-10 {
.marketing.p-t-10,
.marketing .p-t-10 {
padding-top: 10px;
}
.p-t-20,
.p-t-20 {
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
}
.p-l-40 {
.marketing .p-l-40 {
padding-left: 40px;
}
.p-0 {
.marketing .p-0 {
padding: 0;
}
.circle {
.marketing .circle {
display: inline-block;
width: 6px;
height: 6px;
......@@ -470,50 +470,50 @@ html {
background-color: #5850ff;
}
.grey {
.marketing .grey {
background-color: #999999;
}
.txt-green {
.marketing .txt-green {
color: #61cc43;
}
.txt-orange {
.marketing .txt-orange {
color: #fb8f28;
}
.txt-blue {
.marketing .txt-blue {
color: #5850ff;
}
.txt-grey {
.marketing .txt-grey {
color: #999999;
}
.text-e8 {
.marketing .text-e8 {
color: #eb4e4e !important;
}
.txt-center {
.marketing .txt-center {
text-align: center;
}
.cursor-pointer {
.marketing .cursor-pointer {
cursor: pointer;
color: #5850ff;
}
.edit-tips {
.marketing .edit-tips {
line-height: 20px;
font-size: 12px;
color: #999999;
}
.p-relative {
.marketing .p-relative {
position: relative;
}
.footer {
.marketing .footer {
position: fixed;
bottom: 0;
width: 100%;
......@@ -525,47 +525,47 @@ html {
z-index: 999;
}
.flex-default {
.marketing .flex-default {
display: flex;
}
.flex {
.marketing .flex {
display: flex;
justify-content: space-between;
}
.flex-wrap {
.marketing .flex-wrap {
display: flex;
flex-wrap: wrap;
}
.flex-align {
.marketing .flex-align {
display: flex;
align-items: center;
}
.flex-top {
.marketing .flex-top {
display: flex;
align-items: flex-start;
}
.flex-center {
.marketing .flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.flex-between {
.marketing .flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.flex-grow {
.marketing .flex-grow {
flex: 1;
}
.edit-title {
.marketing .edit-title {
font-size: 16px;
font-weight: 600;
height: 58px;
......@@ -575,7 +575,7 @@ html {
padding: 0 0 0 20px;
}
// .edit-sub-title::before {
// .marketing .edit-sub-title::before {
// position: absolute;
// display: inline-block;
// content: '';
......@@ -585,7 +585,7 @@ html {
// left: 0;
// background-color: #0947C6;
// }
.edit-sub-title {
.marketing .edit-sub-title {
position: relative;
font-size: 13px;
font-weight: 700;
......@@ -598,11 +598,11 @@ html {
}
.message-Z-zinde,
.message-Z-zinde {
.marketing .message-Z-zinde {
z-index: 9999 !important;
}
.txt-red {
.marketing .txt-red {
color: red;
}
......@@ -614,7 +614,7 @@ html {
-webkit-box-orient: vertical;
}
.table-img .el-table--medium td.el-table__cell {
.marketing .table-img .el-table--medium td.el-table__cell {
padding: 2px 0 !important;
}
......@@ -648,16 +648,16 @@ html {
/* tab */
.el-tabs__nav-wrap:after {
.marketing .el-tabs__nav-wrap:after {
opacity: 0;
}
.el-tabs__item {
.marketing .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
}
.el-tabs__item {
.marketing .el-tabs__item {
box-sizing: border-box;
width: 120px;
height: 48px !important;
......@@ -673,22 +673,22 @@ html {
margin-right: 1px;
}
.el-tabs__active-bar {
.marketing .el-tabs__active-bar {
display: none;
}
.el-tabs__header {
.marketing .el-tabs__header {
margin: 0 !important;
}
.el-tabs__item.is-active {
.marketing .el-tabs__item.is-active {
color: #5850ff;
background: #ffffff !important;
border-radius: 4px 4px 0px 0px;
border: 1px solid #eeedff !important;
}
.tips-icon {
.marketing .tips-icon {
display: inline-block;
width: 14px;
height: 14px;
......@@ -711,39 +711,39 @@ html {
font-size: 16px;
}
.text-10 {
.marketing .text-10 {
font-size: 10px;
}
.text-14 {
.marketing .text-14 {
font-size: 14px;
}
.text-16 {
.marketing .text-16 {
font-size: 16px;
}
.color-3 {
.marketing .color-3 {
color: #333333;
}
.line-20 {
.marketing .line-20 {
line-height: 20px;
}
.weight-6 {
.marketing .weight-6 {
font-weight: 600;
}
.weight-5 {
.marketing .weight-5 {
font-weight: 500;
}
.weight-4 {
.marketing .weight-4 {
font-weight: 400;
}
.mt-10 {
.marketing .mt-10 {
margin-top: 10px;
}
......
......@@ -19,6 +19,7 @@ import glsxRows from '@/components/glsx-rows/index.vue'
import glsxDescriptions from '@/components/glsx-descriptions/index.vue'
import selectTag from '@/components/selectTag/index.vue'
import searchForm from '@/components/search-form/index.vue'
import verbal from '@/components/verbal/index.vue'
Vue.component('glsx-combi-form', glsxCombiForm)
Vue.component('glsx-dialog', glsxDialog)
......@@ -31,3 +32,4 @@ Vue.component('glsx-rows', glsxRows)
Vue.component('glsx-descriptions', glsxDescriptions)
Vue.component('select-tag', selectTag)
Vue.component('search-form', searchForm)
Vue.component('verbal', verbal)
<template>
<div class="ly-emotion">
<slot></slot>
</div>
</template>
<script>
import emoji from '@/utils/emo'
export default {
name: 'ly-emotion',
mounted() {
const name = this.$el.innerHTML
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(name)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
let imgHTML = `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
this.$nextTick(() => {
this.$el.innerHTML = imgHTML
})
}
}
</script>
<style scoped>
.ly-emotion {
display: inline-block;
}
.ly-static-emotion {
width: 24px;
height: 24px;
display: inline-block;
}
</style>
<template>
<div>
<div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
</div>
</div>
</div>
</template>
<script>
import emoji from '@/utils/emo'
import Emotion from './Emotion'
export default {
props: {
height: {
type: Number,
default: 200
}
},
name: 'emotionWords',
data() {
return {
list: emoji
}
},
methods: {
clickHandler(i) {
let emotion = `${i}`
this.$emit('emotion', emotion)
}
},
components: {
Emotion
}
}
</script>
<style scoped lang="scss">
.emotion-box {
z-index: 2004;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.15);
width: 300px;
box-sizing: border-box;
padding: 5px;
overflow: hidden;
overflow-y: auto;
position: absolute;
z-index:999;
}
.emotion-box-line {
display: flex;
}
.emotion-item {
flex: 1;
text-align: center;
cursor: pointer;
line-height: 23px;
/deep/ {
img {
width: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
}
}
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-04-20 15:15:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-10 15:19:23
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%
im
-->
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-04-20 15:15:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-10 14:48:12
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="text-area">
<w-textarea ref="textContent" v-model="textValue" @updateText="updateText"></w-textarea>
<div class="btn-group-panel">
<div class="btn-group">
<div class="add-btn" v-for="(item, k) in btnList" :key="k" @click="selectItem(item)">
<template v-if="item.type == 1">
<img class="emotion-item" src="@/assets/textarea/expression.png" />
<span class="emotion-item">{{ item.name }}</span>
</template>
<template v-else>
<img class="emotion-item" src="@/assets/textarea/add.png" />
<span class="emotion-item">{{ item.name }}</span>
</template>
</div>
</div>
</div>
<div v-show="emotionStatus" class="emotion-panel">
<emotion-words class="emotion-panel-box" @emotion="handleEmotion" :height="280"></emotion-words>
</div>
</div>
</template>
<script>
import emoji from '@/utils/emo'
import WTextarea from './WTextarea'
import EmotionWords from './EmotionWords'
export default {
data() {
return {
// btnList: [
// {
// type: 1,
// name: '表情'
// },
// {
// type: 2,
// name: '销售顾问'
// },
// {
// type: 2,
// name: '客户姓名'
// },
// {
// type: 2,
// name: '车型'
// },
// {
// type: 2,
// name: '订单总金额'
// },
// {
// type: 2,
// name: '阳光激励费'
// },
// {
// type: 2,
// name: '商品名称'
// }
// ],
emotionStatus: false
}
},
props: {
btnList: {
type: Array,
default: () => []
}
},
components: {
WTextarea,
EmotionWords
},
methods: {
selectItem(item) {
if (item.type == 1) {
this.selectEmotion()
} else {
this.selectTag(item.name)
}
},
//选择标签
selectTag(name) {
this.$refs.textContent.addTag(name)
},
//展开表情
selectEmotion() {
this.emotionStatus = !this.emotionStatus
},
//选择表情
handleEmotion(i) {
this.emotionStatus = false
const list = emoji.flat(Infinity)
let index = list.indexOf(i) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
this.$refs.textContent.addImg(`https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png`)
},
update(attContent) {
attContent = attContent.replace(/\[(.+?)\]/g, '<wise id="1" contenteditable="false">$1</wise>')
let htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
return `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
})
if (htm.substr(-1, 1) == '>' && navigator.userAgent.indexOf('Firefox') > 0) {
htm += '&nbsp;'
}
setTimeout(() => {
document.querySelector('.w-textarea_input').innerHTML = htm
}, 100)
}
}
}
</script>
<style lang="scss" scoped>
.text-area {
background: #fff;
// width: 448px;
}
.btn-group-panel {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 10px 0 10px 20px;
border: 1px solid #e5e5e5;
border-top: 0;
background: #fafbfe;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
.btn-group {
display: flex;
justify-content: space-around;
column-gap: 20px;
line-height:20px;
.add-btn {
display: inline-flex;
position: relative;
align-items: center;
font-size: 16px;
color: #666;
cursor: pointer;
span {
font-size: 14px;
margin-left: 5px;
cursor: pointer;
}
input {
position: absolute;
width: 100%;
cursor: pointer;
font-size: 0;
height: 40px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
}
.el-link {
position: absolute;
width: 100%;
}
}
}
.text-num {
padding-right: 10px;
}
}
.date-picker {
margin-top: 10px;
font-size: 14px;
color: #999;
}
</style>
<template>
<GLDialog :mode="mode" title="#2.SA喜报 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#2.SA喜报 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -11,13 +11,13 @@
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="商品名称:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="goodsType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示商品名称</span>
</div>
<div class="item-line">
<el-form-item label="剔除0产值的员工:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="outputType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报将显示产值为0的销售名单,喜报长度可能过长,可阅读性较差</span>
</div>
......@@ -38,9 +38,45 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
goodsType: {
switchType: 401
},
outputType: {
switchType: 402
},
params: ['goodsType', 'outputType']
}
},
props: {
switchList: {
type: Array,
default: () => []
}
},
created() {
this.initData()
},
methods: {
initData() {
this.switchList.saReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'saReport', data: switchList })
}
}
}
......@@ -101,8 +137,8 @@ export default {
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position:absolute;
bottom:110px;
position: absolute;
bottom: 110px;
.el-icon-warning {
width: 16px;
height: 16px;
......
<template>
<GLDialog :mode="mode" title="#3.文字喜报 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#3.文字喜报 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -11,7 +11,7 @@
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="编辑文本:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<verbal :btnList="btnList"></verbal>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示客户车型</span>
</div>
......@@ -32,9 +32,48 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
wordType: {
switchType: 701,
switchText: ''
},
btnList: [
{
type: 1,
name: '表情'
}
],
params :['wordType']
}
},
props: {
switchList: {
type: Array,
default: () => []
}
},
created() {
this.initData()
},
methods: {
initData() {
this.switchList.wordReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'wordReport', data: switchList })
}
}
}
......@@ -95,15 +134,15 @@ export default {
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position:absolute;
bottom:110px;
position: absolute;
bottom: 110px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp{
margin:8px 0 16px 20px;
.mrp {
margin: 8px 0 16px 20px;
line-height: 22px;
}
}
......
<template>
<GLDialog :mode="mode" title="#4.早报 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#4.早报 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -11,7 +11,7 @@
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="客户跟进:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="clientType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的早报不会显示客户跟进整个模块</span>
</div>
......@@ -32,9 +32,41 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
clientType: {
switchType: 201,
},
params: ['clientType']
}
},
props: {
switchList: {
type: Array,
default: () => []
}
},
created() {
this.initData()
},
methods: {
initData() {
this.switchList.zhanReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'zhanReport', data: switchList })
}
}
}
......@@ -95,15 +127,15 @@ export default {
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position:absolute;
bottom:110px;
position: absolute;
bottom: 110px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp{
margin:8px 0 16px 20px;
.mrp {
margin: 8px 0 16px 20px;
line-height: 22px;
}
}
......
<template>
<GLDialog :mode="mode" title="#1.SA个人喜报 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#1.SA个人喜报 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -8,26 +8,28 @@
<p class="color-3 txt-center text-14">图示效果</p>
</div>
<div class="right-wrap">
<el-form ref="form" :model="form" label-width="154px">
<el-form ref="form" :model="switchList" label-width="154px">
<div class="item-line">
<el-form-item label="客户车型:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="vehicleType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示客户车型</span>
</div>
<div class="item-line">
<el-form-item label="开单商品:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="goodsType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示开单商品</span>
</div>
<div class="item-line">
<el-form-item label="收款方式:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="全部" inactive-text="部分"></el-switch>
<el-switch class="switchStyle" v-model="proceedsType.switchStatus" active-text="全部" inactive-text="部分"></el-switch>
</el-form-item>
<span class="warn">关闭后仅推送嘀加收款的喜报,门店收款不推送</span>
</div>
<el-form-item label="话术推荐:"></el-form-item>
<el-form-item label="话术推荐:" class="verbal-wrap">
<verbal ref="verbalRef" :btnList="btnList"></verbal>
</el-form-item>
</el-form>
<div class="explain">
<div class="color6 weight-6 font-14">
......@@ -45,9 +47,66 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
vehicleType: {
switchType: 501
},
goodsType: {
switchType: 502
},
proceedsType: { switchType: 503 },
verbalType: {
switchType: 504,
switchText: ''
},
btnList: [
{
type: 1,
name: '表情'
}
],
params: ['vehicleType', 'goodsType', 'proceedsType', 'verbalType']
}
},
props: {
switchList: {
type: Array,
default: () => []
}
},
computed:{
textValue() {
return document.querySelector('.w-textarea_input').innerHTML
}
},
watch: {
textValue(val) {
console.log(val)
}
},
created() {
console.log(222)
this.initData()
},
methods: {
initData() {
this.switchList.saPerReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'saPerReport', data: switchList })
}
}
}
......@@ -57,6 +116,7 @@ export default {
.popup-wrap {
display: flex;
padding: 0 72px;
// min-height:626px;
.img-wrap {
width: 250px;
height: 560px;
......@@ -67,12 +127,11 @@ export default {
}
}
.right-wrap {
margin-top: 12px;
/deep/.el-form-item {
margin-bottom: 0px;
}
.item-line {
margin-bottom: 20px;
margin-bottom: 15px;
}
.switchStyle /deep/ .el-switch__label {
position: absolute;
......@@ -108,15 +167,16 @@ export default {
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position:absolute;
bottom:110px;
position: absolute;
z-index: 0;
bottom: 110px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp{
margin:8px 0 16px 20px;
.mrp {
margin: 8px 0 16px 20px;
line-height: 22px;
}
}
......@@ -126,5 +186,10 @@ export default {
color: #999999;
margin-left: 154px;
}
.verbal-wrap {
/deep/ .el-form-item__content {
width: 448px;
}
}
}
</style>
<template>
<GLDialog :mode="mode" title="#5.客户进度消息 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#5.客户进度消息 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -11,7 +11,7 @@
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="业务类型:">
<el-switch class="switchStyle" v-model="form.delivery" active-text="显示" inactive-text="关闭"></el-switch>
<el-switch class="switchStyle" v-model="businessType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示礼券类型</span>
</div>
......@@ -32,9 +32,41 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
businessType: {
switchType: 601,
},
params: ['businessType']
}
},
props: {
switchList: {
type: Array,
default: () => []
}
},
created() {
this.initData()
},
methods: {
initData() {
this.switchList.scheduleReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'scheduleReport', data: switchList })
}
}
}
......
<template>
<GLDialog :mode="mode" title="#6.补单通知 预览配置显示字段" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="#6.补单通知 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
......@@ -25,9 +25,20 @@
export default {
data() {
return {
isDialogVisible: true,
isDialogVisible: false,
mode: 'big',
form: {}
}
},
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})
}
}
}
......
<template>
<GLDialog :mode="mode" title="#4.收款喜报 预览配置显示字段" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="isDialogVisible = false">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
<img src="@/assets/buttetin/personal.png" />
</div>
<p class="color-3 txt-center text-14">图示效果</p>
</div>
<div class="right-wrap">
<el-form ref="form" :model="form" label-width="154px">
<div class="item-line">
<el-form-item label="收款方店名:">
<el-switch class="switchStyle" v-model="payeeType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示收款方店名</span>
</div>
<div class="item-line">
<el-form-item label="累计:">
<el-switch class="switchStyle" v-model="addType.switchStatus" active-text="显示" inactive-text="关闭"></el-switch>
</el-form-item>
<span class="warn">关闭后推送的喜报不会显示累计单量和累计产量</span>
</div>
</el-form>
<div class="explain">
<div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i>
推送机制说明
</div>
<p class="mrp">驻店新建下单或扫码下单,客户支付成功后产生有效订单时自动推送, 订单金额低于1元时四舍五入为0元产值订单进行推送,测试订单不推送</p>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
data() {
return {
isDialogVisible: true,
mode: 'big',
addType: {
switchType: 502,
switchStatus: true,
actionReportType: 1
},
payeeType: {
switchType: 502,
switchStatus: true,
actionReportType: 1
},
btnList: [
{
type: 1,
name: '表情'
}
]
}
},
methods: {
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
const params = ['addType', 'payeeType']
params.forEach(data => {
this[data].switchStatus = this[data].switchStatus ? 'Y' : 'N'
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'xiReport', data: switchList })
}
}
}
</script>
<style lang="scss" scoped>
.popup-wrap {
display: flex;
padding: 0 72px;
// min-height:626px;
.img-wrap {
width: 250px;
height: 560px;
margin-bottom: 14px;
img {
width: 100%;
height: 100%;
}
}
.right-wrap {
/deep/.el-form-item {
margin-bottom: 0px;
}
.item-line {
margin-bottom: 15px;
}
.switchStyle /deep/ .el-switch__label {
position: absolute;
display: none;
color: #fff;
font-size: 12px !important;
line-height: 20px;
}
.el-switch__core {
background-color: rgba(166, 166, 166, 1);
}
.switchStyle /deep/.el-switch__label--left {
z-index: 9;
left: 20px;
}
.switchStyle /deep/ .el-switch__label--right {
z-index: 9;
left: 4px;
}
.switchStyle /deep/ .el-switch__label.is-active {
display: block;
}
.switchStyle /deep/ .el-switch__core {
width: 56px !important;
}
.switchStyle /deep/ .el-switch__label {
width: 56px !important;
}
.explain {
width: 486px;
height: 102px;
background: #f4f6fc;
padding: 16px;
margin-left: 70px;
box-sizing: border-box;
position: absolute;
z-index: 0;
bottom: 110px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp {
margin: 8px 0 16px 20px;
line-height: 22px;
}
}
}
.warn {
font-size: 12px;
color: #999999;
margin-left: 154px;
}
.verbal-wrap {
/deep/ .el-form-item__content {
width: 448px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!