Commit 4671473d by 杨明

fixed

1 parent 9603e4cb
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08 * @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-07 18:22:47 * @LastEditTime: 2023-09-08 11:15:08
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue * @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -51,11 +51,14 @@ ...@@ -51,11 +51,14 @@
<span>{{ v.day }}</span> <span>{{ v.day }}</span>
</div> </div>
<div class="step-item-content"> <div class="step-item-content">
<div v-for="(value, key) in v.times" :key="key" class="step-time-item"> <div v-for="(value, key) in v.times" :key="key" class="step-time-item flex-column-center">
<div class="step-item-desc"> <div>
<span>[{{ value.time }}]发送 | 门店助手1V1 |本功能将给跟进员工推送微信1v1任务,由员工向每个客户微信转发对应的营销内容。</span> <div class="step-item-desc">
<span>[{{ value.time }}]发送 | 门店助手1V1 |本功能将给跟进员工推送微信1v1任务,由员工向每个客户微信转发对应的营销内容。</span>
</div>
<div class="step-item-name">活动名称</div>
</div> </div>
<div class="step-item-name">活动名称</div> <!-- <div class="step-detail-btn" @click="getEmpDetail">详情</div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -99,6 +102,7 @@ ...@@ -99,6 +102,7 @@
</template> </template>
</div> </div>
</div> </div>
<!-- <emp-detail v-if="empVisible" :empVisible="empVisible"></emp-detail> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -111,7 +115,11 @@ const STAGE = { ...@@ -111,7 +115,11 @@ const STAGE = {
6: '修改旅程阶段', 6: '修改旅程阶段',
7: '获取客户信息' 7: '获取客户信息'
} }
// import empDetail from './empDetail'
export default { export default {
components: {
// empDetail
},
props: { props: {
stepItem: { stepItem: {
type: Object, type: Object,
...@@ -120,11 +128,17 @@ export default { ...@@ -120,11 +128,17 @@ export default {
}, },
data() { data() {
return { return {
stage: STAGE stage: STAGE,
empVisible: false
} }
}, },
created() {}, created() {},
methods: { methods: {
//查看详情
getEmpDetail() {
this.empVisible = true
},
//展开收起
handleExpand() { handleExpand() {
this.stepItem.isExpaned = !this.stepItem.isExpaned this.stepItem.isExpaned = !this.stepItem.isExpaned
} }
...@@ -234,6 +248,12 @@ export default { ...@@ -234,6 +248,12 @@ export default {
.step-time-item { .step-time-item {
padding: 12px 16px; padding: 12px 16px;
background: #f9fafe; background: #f9fafe;
.step-detail-btn {
margin-left: auto;
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
&:not(:first-child) { &:not(:first-child) {
margin-top: 20px; margin-top: 20px;
} }
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-08 11:02:19
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-08 11:13:18
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\components\empDetail.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<GLDialog title="查看详情" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="empVisible">
<div class="dialog-body">
<div class="task-wrap">
<div class="task-item" v-for="(item, index) in taskInfo" :key="index">
<span>{{ item.label }}</span>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
props: {
empVisible: Boolean
},
data() {
return {
taskInfo: [
{
label: '需执行客户数量'
},
{
label: '已下达任务数量'
},
{
label: '需执行任务员工数'
}
]
}
},
methods: {
//获取活动信息
getActivity() {
console.log(this.addForm.activityId)
},
init() {
this.empVisible = true
this.getActivityList()
},
//关联活动
handleSure() {
this.$refs.addForm.validate(valid => {
if (valid) {
this.handleClose()
this.$emit('setProcess')
}
})
},
handleClose() {
this.empVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body {
padding: 16px;
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-08 11:25:01
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="journey-main">
<div class="bg-fff pb20 journey-config">
<template v-for="(item, index) in statusList">
<div class="journey-step-config" v-if="journeyStatus == item.status" :key="index">
<i :class="`${item.icon}`"></i>
<span>{{ item.describe }}</span>
<el-button :type="item.isDisabled ? 'info' : 'primary'" :size="size" @click="item.clickFun" :disabled="item.isDisabled">{{ item.btnName }}</el-button>
</div>
</template>
</div>
<div class="journey-step bg-fff pb20">
<div class="journey-step-title border-title">
客户旅程阶段
</div>
<div class="journey-step-body">
<div class="journey-step-info" v-for="(val, k) in configList" :key="k">
<collapse-item :stepItem="val"></collapse-item>
</div>
</div>
</div>
<related-activity ref="activityForm" @setProcess="setProcess" :journeyStatus="journeyStatus"></related-activity>
</div>
</template>
<script>
import CollapseItem from './components/CollapseItem'
import relatedActivity from './components/relatedActivity'
export default {
components: { CollapseItem, relatedActivity },
data() {
return {
journeyStatus: 1,
statusList: [
{
describe: '步骤一:关联营销活动',
icon: 'el-icon-warning',
isDisabled: false,
status: 1,
btnName: '去关联',
clickFun: () => {
this.handleConcat()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: true,
status: 1,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 2,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: false,
status: 2,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已启用客户旅程',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去停用',
clickFun: () => {
this.handleClose()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 4,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已停用客户旅程',
icon: 'el-icon-success',
isDisabled: true,
status: 4,
btnName: '已停用',
clickFun: () => {
this.handleConcat()
}
}
],
configList: [
{
label: '可报价',
isExpaned: false,
taskList: [
{
status: [1, 2],
name: '进入条件',
desc: '描述用户触发何种条件后,将自动变更为该旅程阶',
progressList: [
{
name: '33'
},
{
name: '33'
},
{
name: '33'
}
]
}
]
},
{
label: '有意向',
isExpaned: false,
taskList: [
{
status: [1, 2],
name: '进入条件',
desc: '描述用户触发何种条件后,将自动变更为该旅程阶',
progressList: [
{
name: '33'
}
],
sopList: [
{
day: '第一天',
times: [
{
time: '7:00',
process: 1
},
{
time: '8:00',
process: 2
},
{
time: '9:00',
process: 3
}
]
},
{
day: '第二天',
times: [
{
time: '7:00',
process: 1
},
{
time: '8:00',
process: 2
}
]
},
{
day: '第三天'
},
{
day: '第四天'
},
{
day: '第五天'
}
]
}
]
}
]
}
},
created() {},
methods: {
//关闭
handleClose() {
this.handleConfirm('关闭提示', '确定关闭', '旅程关闭后将禁用无法重新开启', '', () => {
this.journeyStatus = 4
})
},
//关联活动成功
setProcess() {
this.journeyStatus = 2
},
handleConfirm(title, btnName, content, customClass, callback) {
this.$confirm(content, title, {
confirmButtonText: btnName,
cancelButtonText: '取消',
customClass,
type: 'warning'
})
.then(() => {
callback()
})
.catch(() => {})
},
//开启
haneldOpen() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', () => {
this.journeyStatus = 3
})
},
//关联活动
handleConcat() {
this.handleConfirm('关联提示', '前往关联', '当前旅程尚未关联活动链接,请关联后再尝试开启', 'concat-color', this.concatActivity)
},
//打开活动
concatActivity() {
this.$refs.activityForm.init()
}
}
}
</script>
<style lang="scss" scoped>
.concat-color {
/deep/ .el-icon-warning {
color: #5850ff;
}
}
.journey-main {
.journey-config {
margin-bottom: 16px;
padding: 20px;
}
.journey-step-config {
&:first-child {
margin-bottom: 20px;
}
i {
font-size: 14px;
&.el-icon-warning {
color: #fdb757;
}
&.el-icon-success {
color: #2cca74;
}
}
span {
font-size: 14px;
color: #666666;
margin-left: 5px;
display: inline-block;
width: 166px;
}
}
.journey-step-body {
border: 1px solid #e5e5e5;
margin: 32px 20px;
}
}
</style>
<style lang="scss">
.concat-color {
.el-icon-warning {
color: #5850ff;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!