Commit 41af4786 by 杨明

活动

1 parent 788929b0
...@@ -14097,9 +14097,9 @@ ...@@ -14097,9 +14097,9 @@
} }
}, },
"word-edit": { "word-edit": {
"version": "1.3.3", "version": "1.3.4",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.3.tgz", "resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.4.tgz",
"integrity": "sha512-5OEKK9oYDEumFcIMMbIENvBXeTLEeBWN5mTC2mVHxHjBhPOO6CIydFhgWdUXvbFDK42gNDoa+BXVIH67ty322w==", "integrity": "sha512-bKrEsBiqeadYsUuwVyLx95z64Fk2aNk+0II4dqE4HtAL92ejd/Jpz6SemZbpbM3UdsoYA3PeFG9/hHopI+AyBQ==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4", "glsx-common": "^2.0.4",
"glsx-components": "^1.2.5", "glsx-components": "^1.2.5",
"word-edit": "^1.3.3" "word-edit": "^1.3.4"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -111,7 +111,7 @@ const bulgeActivity = params => { ...@@ -111,7 +111,7 @@ const bulgeActivity = params => {
sign: true sign: true
}) })
} }
//膨胀金活动 //问卷调查
const activityQuestionnaireForm = params => { const activityQuestionnaireForm = params => {
params.method = 'marketing.api.activityQuestionnaireForm.page' params.method = 'marketing.api.activityQuestionnaireForm.page'
return http({ return http({
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => { this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
const instParam = JSON.parse(res.instParam) const instParam = JSON.parse(res.instParam)
this.dataTypeCode = instParam.dataTypeCode this.dataTypeCode = instParam.dataTypeCode
//xbpzj 关联续保膨胀金
if (this.dataTypeCode == 'xbpzj') { if (this.dataTypeCode == 'xbpzj') {
this.statusList = this.activityType[1] this.statusList = this.activityType[1]
} else { } else {
...@@ -153,13 +154,19 @@ export default { ...@@ -153,13 +154,19 @@ export default {
let list = [] let list = []
for (let v of nodes) { for (let v of nodes) {
if (v.nodeParam && JSON.parse(v.nodeParam).stage == stages[k].value) { if (v.nodeParam && JSON.parse(v.nodeParam).stage == stages[k].value) {
list.push({ ...JSON.parse(v.nodeParam), nodeId: v.instNodeId,nodeProtoId:v.nodeProtoId }) list.push({ ...JSON.parse(v.nodeParam), nodeId: v.instNodeId, nodeProtoId: v.nodeProtoId })
} }
} }
list = list.filter(item => item.day) list = list.filter(item => item.day)
list.sort((a, b) => { list.sort((a, b) => {
return a.day - b.day return a.day - b.day
}) })
console.log(list, 'list')
list.forEach(i => {
if (!i.taskParam || (i.taskParam && !i.taskParam.attachments)) {
console.log(99, i.taskParam)
}
})
const sopList = this.groupBy(list, 'day') const sopList = this.groupBy(list, 'day')
configList.push({ configList.push({
order: k, order: k,
...@@ -175,7 +182,7 @@ export default { ...@@ -175,7 +182,7 @@ export default {
}) })
}, },
async haneldOpenQY() { async haneldOpenQY() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => { this.handleConfirm('开启提示', '确定开启', '请完善进入条件及SOP任务后,再启动客户旅程。', '', async () => {
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)
......
...@@ -4,29 +4,13 @@ ...@@ -4,29 +4,13 @@
<div class="carousel-box"> <div class="carousel-box">
<template v-if="dataViewLoading"> <template v-if="dataViewLoading">
<template v-if="viewList.length"> <template v-if="viewList.length">
<el-carousel <el-carousel ref="carousel" :autoplay="false" :loop="false" indicator-position="none" height="100%" arrow="never" class="carousel" @change="viewIndex = $event">
ref="carousel"
:autoplay="false"
:loop="false"
indicator-position="none"
height="100%"
arrow="never"
class="carousel"
@change="viewIndex = $event"
>
<template v-for="(i, index) in viewList"> <template v-for="(i, index) in viewList">
<template> <template>
<el-carousel-item <el-carousel-item :key="index" class="carousel-item">
:key="index"
class="carousel-item"
>
<template v-for="(c, cindex) in i"> <template v-for="(c, cindex) in i">
<template> <template>
<div <div :key="cindex" class="group" v-loading="c.loading">
:key="cindex"
class="group"
v-loading="c.loading"
>
<div class="title"> <div class="title">
<div class="text flex"> <div class="text flex">
<div class="icon"> <div class="icon">
...@@ -35,10 +19,7 @@ ...@@ -35,10 +19,7 @@
{{ c.title }} {{ c.title }}
</div> </div>
<div class="line-box"> <div class="line-box">
<div <div class="line" :style="[{ width: c.width }]"></div>
class="line"
:style="[{ width: c.width }]"
></div>
</div> </div>
</div> </div>
<div <div
...@@ -52,10 +33,7 @@ ...@@ -52,10 +33,7 @@
<template v-if="c.list.length"> <template v-if="c.list.length">
<template v-for="(item, ind) in c.list"> <template v-for="(item, ind) in c.list">
<template> <template>
<div <div :key="ind" class="item">
:key="ind"
class="item"
>
<div class="top flex"> <div class="top flex">
<div class="icon"> <div class="icon">
<template v-if="item.wechatAvatarUrl"> <template v-if="item.wechatAvatarUrl">
...@@ -75,7 +53,7 @@ ...@@ -75,7 +53,7 @@
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="left text-hide">进入该阶段:第{{ item.day }}天</div> <div class="left text-hide">进入该阶段:第{{ item.day }}天</div>
<div class="right text-hide">跟进人:{{ item.sopFollowUpPersonName }}</div> <div class="right text-hide">跟进人:{{ item.sopFollowUpPersonName || '--' }}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -94,16 +72,10 @@ ...@@ -94,16 +72,10 @@
</template> </template>
</template> </template>
</el-carousel> </el-carousel>
<div <div class="arrow left" @click="$refs.carousel.prev()">
class="arrow left"
@click="$refs.carousel.prev()"
>
<img :src="viewIndex == 0 ? leftIcon : leftActiveIcon" /> <img :src="viewIndex == 0 ? leftIcon : leftActiveIcon" />
</div> </div>
<div <div class="arrow right" @click="$refs.carousel.next()">
class="arrow right"
@click="$refs.carousel.next()"
>
<img :src="viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon" /> <img :src="viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon" />
</div> </div>
</template> </template>
......
...@@ -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-09 16:38:06 * @LastEditTime: 2024-01-12 20:36:07
* @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
--> -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="tab-label"> <div class="tab-label">
{{ stepItem.label }} {{ stepItem.label }}
</div> </div>
<div class="tab-sop" @click.stop="showStat" v-if="stepItem.instStatus ==1 ">SOP执行统计</div> <div class="tab-sop" @click.stop="showStat" v-if="stepItem.instStatus == 1">SOP执行统计</div>
</div> </div>
<div class="collapse-item-panel" :style="{ display: stepItem.isExpaned ? 'block' : 'none' }"> <div class="collapse-item-panel" :style="{ display: stepItem.isExpaned ? 'block' : 'none' }">
<div class="task-item"> <div class="task-item">
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<img src="@/assets/icon-tip.png" class="question" slot="reference" alt="" /> <img src="@/assets/icon-tip.png" class="question" slot="reference" alt="" />
</el-popover> </el-popover>
</div> </div>
<div class="task-item-desc" v-if="stepItem.editable">该旅程阶段支持手动标记</div> <div class="task-item-desc">该旅程阶段支持手动标记</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">
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
<!-- --> <!-- -->
<div class="step-item-name flex-column-center"> <div class="step-item-name flex-column-center">
<div v-if="[5,7, 8, 9, 10].includes(value.taskType)" class="task-type"> <div v-if="[5, 7, 8, 9, 10].includes(value.taskType)" 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>
...@@ -151,14 +151,12 @@ ...@@ -151,14 +151,12 @@
<div class="popover-panel" v-for="(t, pkey) in v" :key="pkey"> <div class="popover-panel" v-for="(t, pkey) in v" :key="pkey">
<div class="flex-column-center"> <div class="flex-column-center">
<span>{{ value.time }}</span> <span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[t.taskType]}`]"></div>
</div> </div>
<div class="stage-desc">{{ stageInfo(value.nodeProtoId).nodeName }}</div> <div class="stage-desc">{{ stageInfo(value.nodeProtoId).nodeName }}</div>
</div> </div>
<div slot="reference" class="flex-column-center" v-if="v.length <= 2"> <div slot="reference" class="flex-column-center" v-if="v.length <= 2">
<span>{{ value.time }}</span> <span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[value.taskType]}`]"></div>
</div> </div>
<div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0"> <div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0">
<span>3条内容</span> <span>3条内容</span>
...@@ -347,7 +345,7 @@ export default { ...@@ -347,7 +345,7 @@ export default {
}, },
updateParam(options) { updateParam(options) {
console.log(options, this.sopItem) console.log(options, this.sopItem)
let { day, stage, stageid, taskType, nodeId ,time} = this.sopItem let { day, stage, stageid, taskType, nodeId, time } = this.sopItem
let dataTag = options.dataTag || this.sopItem.dataTag, let dataTag = options.dataTag || this.sopItem.dataTag,
taskParam = options.taskParam || this.sopItem.taskParam, taskParam = options.taskParam || this.sopItem.taskParam,
data = { data = {
...@@ -357,7 +355,7 @@ export default { ...@@ -357,7 +355,7 @@ export default {
time, time,
taskType, taskType,
dataTag, dataTag,
taskParam:taskParam?taskParam:{} taskParam: taskParam ? taskParam : {}
} }
if (taskType == 7) { if (taskType == 7) {
data.taskParam.content = taskParam && taskParam.attachments && taskParam.attachments.length ? taskParam.attachments[0].attContent : '' data.taskParam.content = taskParam && taskParam.attachments && taskParam.attachments.length ? taskParam.attachments[0].attContent : ''
...@@ -365,7 +363,7 @@ export default { ...@@ -365,7 +363,7 @@ export default {
} }
this.$apis.journeyConfig.updateParam({ nodeId, data }).then(res => { this.$apis.journeyConfig.updateParam({ nodeId, data }).then(res => {
if (res == 'success') { if (res == 'success') {
this.$parent.getDetail() this.$parent.getDetail(this.stepItem.order)
this.tplVisible = false this.tplVisible = false
} }
}) })
...@@ -449,7 +447,7 @@ export default { ...@@ -449,7 +447,7 @@ export default {
} }
}) })
}) })
return title return title.replace(/,$/, '')
}, },
//查看详情 //查看详情
getEmpDetail() { getEmpDetail() {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</template> </template>
<el-form-item :label="labelName + ':'"> <el-form-item :label="labelName + ':'">
<GLEditor ref="welcome" :form="'customer'" :mapList="mapList" style="line-height: 12px; width: 580px" boxHeight="200" :btnList="btnList" @previewWord="previewForm"></GLEditor> <GLEditor ref="welcome" :form="'customer'" :mapList="mapList" style="line-height: 12px; width: 580px" :maxNum="60" boxHeight="200" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="explain" v-show="taskType == 8 || taskType == 9"> <div class="explain" v-show="taskType == 8 || taskType == 9">
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</span> </span>
</GLDialog> </GLDialog>
</template> </template>
<script> <script>
const ATT_TYPE = { const ATT_TYPE = {
TEXT: 1, TEXT: 1,
IMAGE: 2, IMAGE: 2,
...@@ -408,7 +408,7 @@ export default { ...@@ -408,7 +408,7 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.explain { .explain {
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
...@@ -416,4 +416,3 @@ export default { ...@@ -416,4 +416,3 @@ export default {
margin: 12px 0 0 154px; margin: 12px 0 0 154px;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -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-09 16:36:29 * @LastEditTime: 2024-01-12 17:29:37
* @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
--> -->
...@@ -214,6 +214,16 @@ export default { ...@@ -214,6 +214,16 @@ export default {
currentPage: 1, currentPage: 1,
activityStatus: 2 activityStatus: 2
} }
},
{
itemName: '问卷调查',
miniType: 7,
itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: {
merchantId: this.$globalState.session.merchantId,
statuses: [0, 1]
}
} }
], ],
membersVisible: false, membersVisible: false,
...@@ -254,14 +264,17 @@ export default { ...@@ -254,14 +264,17 @@ export default {
return '' return ''
} }
}, },
watch: { // watch: {
'conditionList.flag'(val) { // 'conditionList.flag'(val) {
if (!val) { // if (!this.conditionList.conditions.length) return
;(val = this.conditionList.conditions[0]), (this.conditionList.flag = val.id) // if (!val) {
} // val = this.conditionList.conditions[0]
this.condition = this.conditionList.conditions.find(i => i.id == val) // this.conditionList.flag = val.id
} // }
}, // this.condition = this.conditionList.conditions.find(i => i.id == val)
// console.log(this.condition, 'this.condition')
// }
// },
mounted() { mounted() {
const { index } = this.conditionInfo, const { index } = this.conditionInfo,
{ dataTypeCode, conditions, flag, name } = this.$common.utils.deepClone(this.conditionInfo.conditionsList[index]), { dataTypeCode, conditions, flag, name } = this.$common.utils.deepClone(this.conditionInfo.conditionsList[index]),
...@@ -291,6 +304,7 @@ export default { ...@@ -291,6 +304,7 @@ export default {
} }
}) })
} }
if (this.conditionList.flag) this.condition = this.conditionList.conditions.find(i => i.id == this.conditionList.flag)
this.$apis.journeyConfig.sopConditionList({ dataTypeCode }).then(res => { this.$apis.journeyConfig.sopConditionList({ dataTypeCode }).then(res => {
this.stepList = res this.stepList = res
}) })
......
...@@ -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-10 14:14:26 * @LastEditTime: 2024-01-12 21:29:03
* @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
--> -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!