Commit 0747eeff by 杨明

fixed

1 parent e54faf39
...@@ -210,10 +210,8 @@ export default { ...@@ -210,10 +210,8 @@ export default {
}, },
async haneldOpenQY() { async haneldOpenQY() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => { this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => {
if (this.dataTypeCode == 'qiwei') {
await this.$apis.journeyConfig.authorizeMerchant({ merchantId: this.$globalState.session.merchantId }) await this.$apis.journeyConfig.authorizeMerchant({ merchantId: this.$globalState.session.merchantId })
await this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data: { supMerchantNo: this.$globalState.session.merchantId } }) await this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data: { supMerchantNo: this.$globalState.session.merchantId } })
}
this.setSopInsts(1) this.setSopInsts(1)
}) })
} }
......
...@@ -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: 2024-01-04 16:27:07 * @LastEditTime: 2024-01-04 17:00:27
* @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
--> -->
...@@ -23,8 +23,14 @@ ...@@ -23,8 +23,14 @@
<div class="task-item-icon"> <div class="task-item-icon">
<img src="@/assets/config/log.png" /> <img src="@/assets/config/log.png" />
</div> </div>
<div class="task-item-name">进入条件</div> <div class="task-item-name">
<div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div> 进入条件
<el-popover placement="top" width="300" trigger="hover">
<div>描述用户触发何种条件后,将自动变更为该旅程阶段)</div>
<img src="@/assets/icon-tip.png" class="question" slot="reference" alt="" />
</el-popover>
</div>
<div class="task-item-desc" v-if="stepItem.editable">该旅程阶段支持手动标记</div>
</div> </div>
<div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length"> <div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length">
<div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k"> <div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k">
...@@ -49,8 +55,13 @@ ...@@ -49,8 +55,13 @@
<div class="task-item-icon"> <div class="task-item-icon">
<img src="@/assets/config/sop.png" /> <img src="@/assets/config/sop.png" />
</div> </div>
<div class="task-item-name">SOP任务</div> <div class="task-item-name">
<div class="task-item-desc">(系统面向当前旅程阶段客户的营销计划)</div> SOP任务
<el-popover placement="top" width="300" trigger="hover">
<div>(系统面向当前旅程阶段客户的营销计划)</div>
<img src="@/assets/icon-tip.png" class="question" slot="reference" alt="" />
</el-popover>
</div>
</div> </div>
<div class="task-item-content bg-fff" v-if="stepItem.sopList.length"> <div class="task-item-content bg-fff" v-if="stepItem.sopList.length">
<div class="step-item" v-for="(v, k) in stepItem.sopList" :key="k"> <div class="step-item" v-for="(v, k) in stepItem.sopList" :key="k">
...@@ -68,13 +79,13 @@ ...@@ -68,13 +79,13 @@
<div class="task-type flex"> <div class="task-type flex">
受众客户:全旅程阶段客户 受众客户:全旅程阶段客户
<div> <div>
<div v-if="value.dataTag&&value.dataTag.length>0" class="flex"> <div v-if="value.dataTag && value.dataTag.length > 0" class="flex">
、标签客户 、标签客户
<div class="tag" v-for="tag in value.dataTag" :key="tag.labelId">{{ tag.labelName }}</div> <div class="tag" v-for="tag in value.dataTag" :key="tag.labelId">{{ tag.labelName }}</div>
</div> </div>
</div> </div>
</div> </div>
<div class="task-type-edit" @click="setCriteria(value)" v-show="[ 7, 8, 9].includes(value.taskType)"> <div class="task-type-edit" @click="setCriteria(value)" v-show="[7, 8, 9].includes(value.taskType)">
<img src="@/assets/config/icon-edit.png" /> <img src="@/assets/config/icon-edit.png" />
<a>设置条件</a> <a>设置条件</a>
</div> </div>
...@@ -85,7 +96,7 @@ ...@@ -85,7 +96,7 @@
</div> </div>
<!-- --> <!-- -->
<div class="step-item-name flex-column-center"> <div class="step-item-name flex-column-center">
<div v-if="value.taskType == 9||value.taskType ==10" class="task-type"> <div v-if="value.taskType == 9 || value.taskType == 10" class="task-type">
{{ stage_prefix[value.taskType].label }} {{ stage_prefix[value.taskType].label }}
<span v-for="(tpl, index) in value.taskParam && value.taskParam.attContentList" :key="index"> <span v-for="(tpl, index) in value.taskParam && value.taskParam.attContentList" :key="index">
<template v-if="tpl.attType == 1">{{ tpl.attContent }}</template> <template v-if="tpl.attType == 1">{{ tpl.attContent }}</template>
...@@ -97,7 +108,7 @@ ...@@ -97,7 +108,7 @@
<a>编辑内容</a> <a>编辑内容</a>
</div> </div>
</div> </div>
<div class="task-tpl-wrap flex" v-if="value.taskType == 9||value.taskType==10"> <div class="task-tpl-wrap flex" v-if="value.taskType == 9 || value.taskType == 10">
<div v-for="(tpl, index) in value.taskParam && value.taskParam.attContentList" :key="index"> <div v-for="(tpl, index) in value.taskParam && value.taskParam.attContentList" :key="index">
<img class="tpl-img" :src="tpl.attContent" v-if="tpl.attType == 2" /> <img class="tpl-img" :src="tpl.attContent" v-if="tpl.attType == 2" />
<div v-if="tpl.attType == 7" class="mini-program flex"> <div v-if="tpl.attType == 7" class="mini-program flex">
...@@ -396,7 +407,7 @@ export default { ...@@ -396,7 +407,7 @@ export default {
label, label,
editable, editable,
conditionsList: conditionsList, conditionsList: conditionsList,
index:k index: k
} }
this.conditionVisible = true this.conditionVisible = true
}, },
...@@ -418,9 +429,9 @@ export default { ...@@ -418,9 +429,9 @@ export default {
let title = '' let title = ''
try { try {
title = JSON.parse(str.paramRemark).title title = JSON.parse(str.paramRemark).title
} catch(e) { } catch (e) {
console.log(e) console.log(e)
}; }
return title return title
// return (str.split('-')[n] || '').replace('文字备注:', '') // return (str.split('-')[n] || '').replace('文字备注:', '')
}, },
...@@ -436,6 +447,11 @@ export default { ...@@ -436,6 +447,11 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.question {
width: 16px;
height: 16px;
vertical-align: bottom;
}
.empty-panel { .empty-panel {
background: #fff; background: #fff;
padding: 10px; padding: 10px;
...@@ -493,6 +509,7 @@ export default { ...@@ -493,6 +509,7 @@ export default {
.task-item-desc { .task-item-desc {
color: #999999; color: #999999;
font-size: 12px; font-size: 12px;
margin-left: auto;
} }
} }
.task-sop-l { .task-sop-l {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17 * @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-04 16:20:31 * @LastEditTime: 2024-01-05 13:50:27
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue * @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.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
--> -->
...@@ -39,30 +39,32 @@ ...@@ -39,30 +39,32 @@
</div> </div>
</div> </div>
</div> </div>
<div class="condition-panel"> <div class="condition-panel" v-if="conditionsList.name != '页面停留'">
<div class="flex"> <div class="flex">
<label class="condition-label">进入条件:</label> <label class="condition-label">进入条件:</label>
<div class="condition-select"> <div class="condition-select">
<div class="condition-title">自动切换</div> <div class="condition-input" v-if="conditionsList.operators && conditionsList.operators[0]">
<div class="condition-input m-t-10"> <el-input :value="conditionsList.name"></el-input>
<span>进入旅程</span> <el-input :value="conditionsList.operators[0].name"></el-input>
<el-input></el-input> <el-input :value="conditionsList.operators[0].value"></el-input>
<span>天后自动切换到此旅程阶段,排除</span> <span>天后自动切换到此旅程阶段</span>
<el-input></el-input> </div>
<span>旅程阶段</span> <div class="condition-input" v-for="item in conditionsList.subConditions" :key="item.id">
<span>并且满足 旅程阶段不包含</span>
<el-input :value="item.operators[item.value].value"></el-input>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="condition-panel"> <div class="condition-panel">
<div class="flex-column-center"> <div class="flex" v-if="conditionsList.name == '页面停留'">
<label class="condition-label">进入条件:</label> <label class="condition-label">进入条件:</label>
<div class="condition-select"> <div class="condition-select">
<div class="condition-input"> <div class="condition-input" v-for="item in conditionsList.subConditions">
<span>页面停留</span> <span>并且满足&nbsp;&nbsp;</span>
<el-input></el-input> <span>页面停留时长</span>
<span>至</span> <el-input :value="item.operators[item.value].name"></el-input>
<el-input></el-input> <el-input :value="item.operators[item.value].value"></el-input>
<span>秒</span> <span>秒</span>
</div> </div>
</div> </div>
...@@ -112,6 +114,7 @@ export default { ...@@ -112,6 +114,7 @@ export default {
return { return {
empType: 0, empType: 0,
userList: [], userList: [],
conditionsList: [],
materialList: { materialList: {
name: '素材', name: '素材',
type: 'material', type: 'material',
...@@ -227,16 +230,20 @@ export default { ...@@ -227,16 +230,20 @@ export default {
}, },
computed: { computed: {
activityName() { activityName() {
if (this.configInfo.length && this.configInfo[0].value) return this.configInfo.value.match(/\d+\+(\D+)/)[1] if (this.configInfo.length && this.configInfo[0].operators) {
else return '' if (this.configInfo[0].operators[0].value.match(/\d+\+\d+\+(.+)/)) return this.configInfo[0].operators[0].value.match(/\d+\+\d+\+(.+)/)[1]
}
return ''
} }
}, },
mounted() { mounted() {
const { index } = this.conditionInfo, const { index } = this.conditionInfo,
{ dataTypeCode, conditions } = this.conditionInfo.conditionsList[index], { dataTypeCode, conditions } = this.conditionInfo.conditionsList[index],
condition = conditions.filter(i => i.isHide) condition = conditions.filter(i => i.isHide)
console.log(condition, 'condition')
this.configInfo = condition this.configInfo = condition
const conditionsList = conditions.filter(i => !i.isHide)
this.conditionsList = conditionsList[0]
console.log(this.conditionsList, 'this.conditionsList')
this.$apis.journeyConfig.sopConditionList({ dataTypeCode }).then(res => { this.$apis.journeyConfig.sopConditionList({ dataTypeCode }).then(res => {
this.stepList = res this.stepList = res
}) })
...@@ -247,7 +254,7 @@ export default { ...@@ -247,7 +254,7 @@ export default {
}, },
selectActivity(val) { selectActivity(val) {
const { marketingName, marketingId, miniType } = val const { marketingName, marketingId, miniType } = val
this.configInfo[0].value = `${miniType}+${marketingId}+${marketingName}` this.configInfo[0].operators[0].value = `${miniType}+${marketingId}+${marketingName}`
}, },
// 成员弹窗 // 成员弹窗
handleConfirm() { handleConfirm() {
...@@ -366,7 +373,8 @@ export default { ...@@ -366,7 +373,8 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
} }
.condition-label { .condition-label {
// width: 100px; width: 90px;
line-height: 32px;
} }
.condition-input { .condition-input {
...@@ -382,6 +390,7 @@ export default { ...@@ -382,6 +390,7 @@ export default {
height: 32px; height: 32px;
background: #eeeeee; background: #eeeeee;
line-height: 32px; line-height: 32px;
margin-bottom: 6px;
} }
} }
} }
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-12-19 09:53:36
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<GLDialog title="关联营销活动" class="gl-form-page gl-form-min" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="dialogVisible"> <GLDialog title="关联营销活动" class="gl-form-page gl-form-min" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="dialogVisible">
<el-form v-loading="loading" ref="addForm" :model="addForm" class="code-body-form" label-width="154px" :rules="addRules"> <el-form v-loading="loading" ref="addForm" :model="addForm" class="code-body-form" label-width="154px" :rules="addRules">
...@@ -48,22 +40,6 @@ ...@@ -48,22 +40,6 @@
<label>营销短信:</label> <label>营销短信:</label>
<span>{{ activityInfo.messageList[0] }}</span> <span>{{ activityInfo.messageList[0] }}</span>
</div> </div>
<div class="activity-item">
<label>条件类型:</label>
<span>首次添加的企微客户</span>
<div class="member-panel">
<label class="member-label">企微成员范围</label>
<el-button size="small" @click="handleAddTag">
<i class="el-icon-plus"></i>
选择标签
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ taggingLength }}</span>
个标签
</span>
</div>
</div>
</div> </div>
</div> </div>
</GLDialog> </GLDialog>
...@@ -100,9 +76,6 @@ export default { ...@@ -100,9 +76,6 @@ export default {
} }
}) })
}, },
handleAddTag() {
this.$refs.selectTagForm.init(this.tagging)
},
init(info) { init(info) {
this.dialogVisible = true this.dialogVisible = true
this.getActivityList() this.getActivityList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!