Commit 41af4786 by 杨明

活动

1 parent 788929b0
......@@ -14097,9 +14097,9 @@
}
},
"word-edit": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.3.tgz",
"integrity": "sha512-5OEKK9oYDEumFcIMMbIENvBXeTLEeBWN5mTC2mVHxHjBhPOO6CIydFhgWdUXvbFDK42gNDoa+BXVIH67ty322w==",
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.4.tgz",
"integrity": "sha512-bKrEsBiqeadYsUuwVyLx95z64Fk2aNk+0II4dqE4HtAL92ejd/Jpz6SemZbpbM3UdsoYA3PeFG9/hHopI+AyBQ==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
......
......@@ -16,7 +16,7 @@
"el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4",
"glsx-components": "^1.2.5",
"word-edit": "^1.3.3"
"word-edit": "^1.3.4"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......
......@@ -111,7 +111,7 @@ const bulgeActivity = params => {
sign: true
})
}
//膨胀金活动
//问卷调查
const activityQuestionnaireForm = params => {
params.method = 'marketing.api.activityQuestionnaireForm.page'
return http({
......
......@@ -126,6 +126,7 @@ export default {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
const instParam = JSON.parse(res.instParam)
this.dataTypeCode = instParam.dataTypeCode
//xbpzj 关联续保膨胀金
if (this.dataTypeCode == 'xbpzj') {
this.statusList = this.activityType[1]
} else {
......@@ -153,13 +154,19 @@ export default {
let list = []
for (let v of nodes) {
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.sort((a, b) => {
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')
configList.push({
order: k,
......@@ -175,7 +182,7 @@ export default {
})
},
async haneldOpenQY() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => {
this.handleConfirm('开启提示', '确定开启', '请完善进入条件及SOP任务后,再启动客户旅程。', '', async () => {
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 } })
this.setSopInsts(1)
......
......@@ -4,29 +4,13 @@
<div class="carousel-box">
<template v-if="dataViewLoading">
<template v-if="viewList.length">
<el-carousel
ref="carousel"
:autoplay="false"
:loop="false"
indicator-position="none"
height="100%"
arrow="never"
class="carousel"
@change="viewIndex = $event"
>
<el-carousel 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>
<el-carousel-item
:key="index"
class="carousel-item"
>
<el-carousel-item :key="index" class="carousel-item">
<template v-for="(c, cindex) in i">
<template>
<div
:key="cindex"
class="group"
v-loading="c.loading"
>
<div :key="cindex" class="group" v-loading="c.loading">
<div class="title">
<div class="text flex">
<div class="icon">
......@@ -35,10 +19,7 @@
{{ c.title }}
</div>
<div class="line-box">
<div
class="line"
:style="[{ width: c.width }]"
></div>
<div class="line" :style="[{ width: c.width }]"></div>
</div>
</div>
<div
......@@ -52,10 +33,7 @@
<template v-if="c.list.length">
<template v-for="(item, ind) in c.list">
<template>
<div
:key="ind"
class="item"
>
<div :key="ind" class="item">
<div class="top flex">
<div class="icon">
<template v-if="item.wechatAvatarUrl">
......@@ -75,7 +53,7 @@
</div>
<div class="bottom flex">
<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>
</template>
......@@ -94,16 +72,10 @@
</template>
</template>
</el-carousel>
<div
class="arrow left"
@click="$refs.carousel.prev()"
>
<div class="arrow left" @click="$refs.carousel.prev()">
<img :src="viewIndex == 0 ? leftIcon : leftActiveIcon" />
</div>
<div
class="arrow right"
@click="$refs.carousel.next()"
>
<div class="arrow right" @click="$refs.carousel.next()">
<img :src="viewIndex < viewList.length - 1 ? rightActiveIcon : rightIcon" />
</div>
</template>
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -14,7 +14,7 @@
<div class="tab-label">
{{ stepItem.label }}
</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 class="collapse-item-panel" :style="{ display: stepItem.isExpaned ? 'block' : 'none' }">
<div class="task-item">
......@@ -30,7 +30,7 @@
<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 class="task-item-desc">该旅程阶段支持手动标记</div>
</div>
<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">
......@@ -96,7 +96,7 @@
</div>
<!-- -->
<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 }}
<span v-for="(tpl, index) in value.taskParam && value.taskParam.attContentList" :key="index">
<template v-if="tpl.attType == 1">{{ tpl.attContent }}</template>
......@@ -151,14 +151,12 @@
<div class="popover-panel" v-for="(t, pkey) in v" :key="pkey">
<div class="flex-column-center">
<span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[t.taskType]}`]"></div>
</div>
<div class="stage-desc">{{ stageInfo(value.nodeProtoId).nodeName }}</div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length <= 2">
<span>{{ value.time }}</span>
<div :class="['stage-icon', `stage-${stage_icon[value.taskType]}`]"></div>
</div>
<div slot="reference" class="flex-column-center" v-if="v.length > 2 && key == 0">
<span>3条内容</span>
......@@ -347,7 +345,7 @@ export default {
},
updateParam(options) {
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,
taskParam = options.taskParam || this.sopItem.taskParam,
data = {
......@@ -357,15 +355,15 @@ export default {
time,
taskType,
dataTag,
taskParam:taskParam?taskParam:{}
taskParam: taskParam ? taskParam : {}
}
if (taskType == 7) {
data.taskParam.content = taskParam && taskParam.attachments && taskParam.attachments.length ? taskParam.attachments[0].attContent : ''
delete data.taskParam.attachments
delete data.taskParam.attachments
}
this.$apis.journeyConfig.updateParam({ nodeId, data }).then(res => {
if (res == 'success') {
this.$parent.getDetail()
this.$parent.getDetail(this.stepItem.order)
this.tplVisible = false
}
})
......@@ -449,7 +447,7 @@ export default {
}
})
})
return title
return title.replace(/,$/, '')
},
//查看详情
getEmpDetail() {
......
......@@ -10,7 +10,7 @@
</template>
<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>
<div class="explain" v-show="taskType == 8 || taskType == 9">
......@@ -43,7 +43,7 @@
</span>
</GLDialog>
</template>
<script>
<script>
const ATT_TYPE = {
TEXT: 1,
IMAGE: 2,
......@@ -408,7 +408,7 @@ export default {
}
}
</script>
<style scoped lang="scss">
<style scoped lang="scss">
.explain {
font-size: 14px;
color: #999999;
......@@ -416,4 +416,3 @@ export default {
margin: 12px 0 0 154px;
}
</style>
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -214,6 +214,16 @@ export default {
currentPage: 1,
activityStatus: 2
}
},
{
itemName: '问卷调查',
miniType: 7,
itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: {
merchantId: this.$globalState.session.merchantId,
statuses: [0, 1]
}
}
],
membersVisible: false,
......@@ -254,14 +264,17 @@ export default {
return ''
}
},
watch: {
'conditionList.flag'(val) {
if (!val) {
;(val = this.conditionList.conditions[0]), (this.conditionList.flag = val.id)
}
this.condition = this.conditionList.conditions.find(i => i.id == val)
}
},
// watch: {
// 'conditionList.flag'(val) {
// if (!this.conditionList.conditions.length) return
// if (!val) {
// val = this.conditionList.conditions[0]
// this.conditionList.flag = val.id
// }
// this.condition = this.conditionList.conditions.find(i => i.id == val)
// console.log(this.condition, 'this.condition')
// }
// },
mounted() {
const { index } = this.conditionInfo,
{ dataTypeCode, conditions, flag, name } = this.$common.utils.deepClone(this.conditionInfo.conditionsList[index]),
......@@ -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.stepList = res
})
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @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
* @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!