Commit ab7dfec6 by 杨明

Merge branch 'v3.23.1' of http://192.168.3.233:8090/saas/scrm-micro-scene into v3.23.1

2 parents 5916bdf7 4c14d1c7
......@@ -96,7 +96,7 @@
</div>
<!-- -->
<div class="step-item-name flex-column-center">
<div v-if="value.taskType == 9 || value.taskType == 10" class="task-type">
<div v-if="[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>
......@@ -108,7 +108,7 @@
<a>编辑内容</a>
</div>
</div>
<div class="task-tpl-wrap flex" v-if="value.taskType == 9 || value.taskType == 10">
<div class="task-tpl-wrap flex" v-if="[8, 9,10].includes(value.taskType)">
<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" />
<div v-if="tpl.attType == 7" class="mini-program flex">
......@@ -173,7 +173,7 @@
</template>
</div>
</div>
<stat-dialog v-if="statVisible" :statVisible="statVisible"></stat-dialog>
<stat-dialog v-if="statVisible" :statVisible="statVisible" :stageid="stageid"></stat-dialog>
<edit-condition v-if="conditionVisible" :conditionVisible="conditionVisible" :conditionInfo="conditionInfo" @closeCondition="closeCondition"></edit-condition>
<select-tag ref="selectTagRef" @tagSelected="handleTagSelect"></select-tag>
<model-dialog :tplVisible="tplVisible" v-bind="sopItem" @dialogClose="dialogClose" @confirm="updateContent"></model-dialog>
......@@ -365,6 +365,7 @@ export default {
this.updateParam(options)
},
updateParam(options) {
console.log(options)
let { day, stage, stageid, taskType, nodeId } = this.sopItem
let dataTag = options.dataTag || this.sopItem.dataTag,
taskParam = options.taskParam || this.sopItem.taskParam,
......@@ -374,11 +375,14 @@ export default {
stageid,
time: this.stage_time[this.sopItem.taskType],
taskType,
taskParam,
dataTag
dataTag,
taskParam
}
if (taskType == 7) {
data.taskParam.content = taskParam.attachments[0].attContent;
delete data.taskParam.attachments
}
this.$apis.journeyConfig.updateParam({ nodeId, data }).then(res => {
console.log(res)
if (res == 'success') {
this.$parent.getDetail()
this.tplVisible = false
......@@ -392,8 +396,7 @@ export default {
* 企微群发/企微朋友圈
*/
editContent(item) {
console.log(item)
this.sopItem = item
this.sopItem = item
this.tplVisible = true
},
dialogClose(val) {
......@@ -417,6 +420,8 @@ export default {
this.conditionVisible = false
},
showStat() {
this.stageid=this.stepItem.order.slice(5);
console.log( this.stageid,' this.stageid')
this.statVisible = true
},
remind(v, k) {
......
......@@ -9,8 +9,8 @@
</el-form-item>
</template>
<el-form-item :label="labelName+':'">
<GLEditor ref="welcome" :form="'customer'" style="line-height: 12px; width: 580px" boxHeight="200" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<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>
</el-form-item>
</el-form>
<div class="explain" v-show="taskType == 8 || taskType == 9">
......@@ -80,122 +80,10 @@ export default {
},
followList: [],
btnList: [
{
name: '表情',
funcName: '',
type: 'expression',
limitSize: 10
},
{
name: '图片',
funcName: '',
togetherItem: [ATT_TYPE.TEXT],
type: 'img',
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// Isdraggable: true, //图片拖拽
uploadApi: this.$apis.common.pictureUpload
},
{
name: '活动',
type: 'activity',
funName: 'activity',
togetherItem: [ATT_TYPE.TEXT],
funParams: [
{
itemName: '权益卡试用',
itemValue: 3,
itemType: 'card',
getInterfaceApi: this.$apis.welcomeword.getCard,
params: {
tryAble: 1,
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '权益套餐',
itemValue: 4,
itemType: 'package',
getInterfaceApi: this.$apis.welcomeword.getPackage,
params: {
state: 1
}
},
{
itemName: '商城券',
itemValue: 2,
itemType: 'coupon',
getInterfaceApi: this.$apis.welcomeword.getMerchant,
params: {
discountTypes: [2, 3, 4],
directionalFlag: 1, // 1所有人可用2定向礼包专用3关联优惠券
validType: 'valid',
status: 2
}
},
{
itemName: '秒杀活动',
itemValue: 5,
itemType: 'activity',
getInterfaceApi: this.$apis.welcomeword.getActivity,
params: {
// activityStatus: 2,
activityStatusList: [1, 2],
currentPage: 1
}
},
{
itemName: '众筹活动',
itemValue: 8,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
},
{
itemName: '问卷调查',
itemValue: 7,
itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: {
merchantId: this.$globalState.session.merchantId,
statuses: [0, 1]
}
}
]
},
{
name: '素材',
type: 'material',
funName: 'material',
togetherItem: [ATT_TYPE.TEXT],
fileType: true,
groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi
// pdfNo: 1
// videoNo: 1
},
{
name: '视频',
funcName: '',
type: 'video',
togetherItem: [ATT_TYPE.TEXT],
// limitSize: 10, //限制视频大小
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitNum: 1, //限制视频数量
// limitWidth: 1280, //限制视频宽度
// limitHeight: 720, //限制视频高度
limitTime: 30, //限制视频时长
paramsType: 'form-data',
uploadApi: this.$apis.common.compressVideo
}
]
btnList: [],
mapList: {
客户人数: '${dataSize}'
}
}
},
watch: {
......@@ -214,7 +102,8 @@ export default {
}
},
taskType(newVal) {
this.changeEdit(newVal, 999999)
console.log(newVal)
this.changeEdit(newVal)
switch (this.taskType) {
case 7:
this.title = '企微提醒模版'
......@@ -251,10 +140,11 @@ export default {
return obj[type]
},
changeEdit(taskType) {
console.log(taskType)
if (taskType == 7 || taskType == 5) {
this.btnList = [
{
type: 'dataSize',
type: '客户人数',
name: '客户人数'
}
]
......@@ -342,6 +232,123 @@ export default {
// videoNo: 1
}
]
} else {
this.btnList = [
{
name: '表情',
funcName: '',
type: 'expression',
limitSize: 10
},
{
name: '图片',
funcName: '',
togetherItem: [ATT_TYPE.TEXT],
type: 'img',
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// Isdraggable: true, //图片拖拽
uploadApi: this.$apis.common.pictureUpload
},
{
name: '活动',
type: 'activity',
funName: 'activity',
togetherItem: [ATT_TYPE.TEXT],
funParams: [
{
itemName: '权益卡试用',
itemValue: 3,
itemType: 'card',
getInterfaceApi: this.$apis.welcomeword.getCard,
params: {
tryAble: 1,
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '权益套餐',
itemValue: 4,
itemType: 'package',
getInterfaceApi: this.$apis.welcomeword.getPackage,
params: {
state: 1
}
},
{
itemName: '商城券',
itemValue: 2,
itemType: 'coupon',
getInterfaceApi: this.$apis.welcomeword.getMerchant,
params: {
discountTypes: [2, 3, 4],
directionalFlag: 1, // 1所有人可用2定向礼包专用3关联优惠券
validType: 'valid',
status: 2
}
},
{
itemName: '秒杀活动',
itemValue: 5,
itemType: 'activity',
getInterfaceApi: this.$apis.welcomeword.getActivity,
params: {
// activityStatus: 2,
activityStatusList: [1, 2],
currentPage: 1
}
},
{
itemName: '众筹活动',
itemValue: 8,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
},
{
itemName: '问卷调查',
itemValue: 7,
itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: {
merchantId: this.$globalState.session.merchantId,
statuses: [0, 1]
}
}
]
},
{
name: '素材',
type: 'material',
funName: 'material',
togetherItem: [ATT_TYPE.TEXT],
fileType: true,
groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi
// pdfNo: 1
// videoNo: 1
},
{
name: '视频',
funcName: '',
type: 'video',
togetherItem: [ATT_TYPE.TEXT],
// limitSize: 10, //限制视频大小
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitNum: 1, //限制视频数量
// limitWidth: 1280, //限制视频宽度
// limitHeight: 720, //限制视频高度
limitTime: 30, //限制视频时长
paramsType: 'form-data',
uploadApi: this.$apis.common.compressVideo
}
]
}
},
//跟进员工类型
......
......@@ -20,7 +20,8 @@ const STAGE = Object.freeze({
})
export default {
props: {
statVisible: Boolean
statVisible: Boolean,
stageid:Number
},
data() {
return {
......@@ -72,7 +73,8 @@ export default {
return new Promise(resolve => {
this.loading = true
this.tableSearchForm = {
instId:this.query.instId
instId:this.query.instId,
stageid:this.stageid
}
resolve()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!