Commit 801c5970 by 杨明

fixed

1 parent 0d927d0c
Showing 44 changed files with 663 additions and 12 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06 * @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 10:26:03 * @LastEditTime: 2023-12-22 14:54:37
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js * @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @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
*/ */
...@@ -85,5 +85,14 @@ const activityRelInfo = params => { ...@@ -85,5 +85,14 @@ const activityRelInfo = params => {
sign: true sign: true
}) })
} }
//选择成员
export default { activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo } const listDepartmentTree = params => {
params.method = 'entmicro.api.department.listDepartmentTree'
return http({
url: 'rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
export default { activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo, listDepartmentTree }
import { http, http_merchant } from '@/main'
const path = 'entmicro.api.mass.'
const URL = 'rop-scrm-entmicro/router'
//权益卡
const getCard = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//权益卡
const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//是否开通权益
const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//优惠券
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({
url: '/rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
//套餐
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getMerchant = params => {
params.method = 'scrm.api.coupon.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
//秒杀活动
const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材组列表
const getGroupListApi = params => {
params.method = 'marketing.api.material.group.list'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材列表
const getMaterialListApi = params => {
// params.method = 'marketing.api.material.page'
params.method = 'marketing.api.material.sop.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 众筹模式活动
const crowdfundingActivity = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//膨胀金活动
const bulgeActivity = params => {
params.method = 'scrm.api.shopmall.bulge.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//膨胀金活动
const activityQuestionnaireForm = params => {
params.method = 'marketing.api.activityQuestionnaireForm.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板保存
const templateSave = params => {
params.method = `${path}template.save`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板更新
const templateUpdate = params => {
params.method = `${path}template.update`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板创建人
const createdNameList = params => {
params.method = `${path}template.created.name.list`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
const templateDetail = params => {
params.method = `${path}template.detail`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
const findMerchantListByPage = params => {
params.method = 'merchants.api.open.findMerchantListByPage'
return http_merchant({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
const channelPreview = params => {
params.method = `scrm.api.shopmall.discover.channel.merchant.preview`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
getActivity,
getPackage,
getMerchant,
getCoupon,
merchantOpen,
getGroupListApi,
getMaterialListApi,
templatePage,
createdNameList,
templateUpdate,
templateSave,
templateDetail,
crowdfundingActivity,
bulgeActivity,
findMerchantListByPage,
channelPreview,
activityQuestionnaireForm
}
...@@ -33,7 +33,18 @@ img { ...@@ -33,7 +33,18 @@ img {
height: 100%; height: 100%;
vertical-align: middle; vertical-align: middle;
} }
.m-b-20 {
margin-bottom: 20px;
}
.m-b-10 {
margin-bottom: 10px;
}
.m-t-20 {
margin-top: 20px;
}
.m-t-10 {
margin-top: 10px;
}
.bg-fff { .bg-fff {
background: #ffffff; background: #ffffff;
} }
......
...@@ -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-12-18 15:06:40 * @LastEditTime: 2023-12-22 17:40: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
--> -->
...@@ -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"> <div class="tab-sop" @click.stop="showStat">
SOP执行统计 SOP执行统计
</div> </div>
</div> </div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<img src="@/assets/config/arrow.png" v-if="spiltString(v, 1)" /> <img src="@/assets/config/arrow.png" v-if="spiltString(v, 1)" />
<span>{{ spiltString(v, 1) }}</span> <span>{{ spiltString(v, 1) }}</span>
</div> </div>
<div class="progress-edit">编辑</div> <div class="progress-edit" @click="showEdit">编辑</div>
</div> </div>
<div class="empty-panel" v-else> <div class="empty-panel" v-else>
<div class="empty-img"> <div class="empty-img">
...@@ -68,7 +68,20 @@ ...@@ -68,7 +68,20 @@
<div class="step-item-desc"> <div class="step-item-desc">
<span>[{{ stage_time[value.taskType] }}]发送 | {{ stage[value.taskType] }} |{{ stage_info[value.taskType] }}</span> <span>[{{ stage_time[value.taskType] }}]发送 | {{ stage[value.taskType] }} |{{ stage_info[value.taskType] }}</span>
</div> </div>
<div class="step-item-name" v-if="value.taskType">{{ stage_prefix[value.taskType].key ? activityInfo[stage_prefix[value.taskType].key] : remind(stage_prefix[value.taskType], k) }}</div> <div class="step-item-name flex-column-center " v-if="value.taskType">
<div class="task-type">{{ stage_prefix[value.taskType].key ? activityInfo[stage_prefix[value.taskType].key] : remind(stage_prefix[value.taskType], k) }}</div>
<div class="task-type-edit">
<img src="@/assets/config/icon-edit.png" />
<a>设置条件</a>
</div>
</div>
<div class="step-item-name flex-column-center " v-if="value.taskType">
<div class="task-type">{{ stage_prefix[value.taskType].key ? activityInfo[stage_prefix[value.taskType].key] : remind(stage_prefix[value.taskType], k) }}</div>
<div class="task-type-edit">
<img src="@/assets/config/icon-edit.png" />
<a>编辑内容</a>
</div>
</div>
</div> </div>
<!-- <div class="step-detail-btn" @click="getEmpDetail">详情</div> --> <!-- <div class="step-detail-btn" @click="getEmpDetail">详情</div> -->
</div> </div>
...@@ -122,7 +135,8 @@ ...@@ -122,7 +135,8 @@
</template> </template>
</div> </div>
</div> </div>
<!-- <emp-detail v-if="empVisible" :empVisible="empVisible"></emp-detail> --> <stat-dialog v-if="statVisible" :statVisible="statVisible"></stat-dialog>
<edit-condition v-if="conditionVisible" :conditionVisible="conditionVisible"></edit-condition>
</div> </div>
</template> </template>
<script> <script>
...@@ -179,10 +193,12 @@ const STAGE_PREFIX = Object.freeze({ ...@@ -179,10 +193,12 @@ const STAGE_PREFIX = Object.freeze({
}, },
6: '查询内容:到保日期' 6: '查询内容:到保日期'
}) })
// import empDetail from './empDetail' import statDialog from './statDialog'
import editCondition from './editCondition'
export default { export default {
components: { components: {
// empDetail statDialog,
editCondition
}, },
props: { props: {
stepItem: { stepItem: {
...@@ -201,11 +217,19 @@ export default { ...@@ -201,11 +217,19 @@ export default {
stage_info: STAGE_INFO, stage_info: STAGE_INFO,
stage_time: STAGE_TIME, stage_time: STAGE_TIME,
stage_prefix: STAGE_PREFIX, stage_prefix: STAGE_PREFIX,
empVisible: false empVisible: false,
statVisible: false,
conditionVisible: false
} }
}, },
created() {}, created() {},
methods: { methods: {
showEdit() {
this.conditionVisible = true
},
showStat() {
this.statVisible = true
},
remind(v, k) { remind(v, k) {
if (typeof v == 'string') return v if (typeof v == 'string') return v
if (this.stepItem.label == '保费报价') { if (this.stepItem.label == '保费报价') {
...@@ -396,6 +420,23 @@ export default { ...@@ -396,6 +420,23 @@ export default {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
margin-top: 8px; margin-top: 8px;
line-height: 20px;
e .task-type {
max-width: calc(100% - 150px);
}
.task-type-edit {
width: 80px;
color: #5850ff;
margin-left: 10px;
img {
width: 14px;
height: 14px;
}
a {
font-size: 12px;
color: #5850ff;
}
}
} }
.calendar-panel { .calendar-panel {
display: grid; display: grid;
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-12-22 16:28:03
* @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>
<GLDialog title="编辑条件" mode="big" class="gl-form-page gl-form-min" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="conditionVisible">
<div class="dialog-body">
<div class="condition-item" v-for="(item, index) in conditionItem" :key="index">
<label>{{ item.label }}:</label>
<span>555</span>
</div>
<div class="condition-panel" v-if="status == 1">
<div class="flex">
<label class="condition-label">企微成员范围:</label>
<div class="condition-select">
<div class="m-b-10">
<el-radio-group v-model="radio">
<el-radio :label="3">全部成员</el-radio>
<el-radio :label="6">指定成员</el-radio>
</el-radio-group>
</div>
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择成员
</el-button>
</div>
</div>
</div>
<div class="condition-panel" v-else-if="status == 2">
<div class="flex">
<label class="condition-label">进入条件:</label>
<div class="condition-select">
<div class="condition-title">自动切换</div>
<div class="condition-input m-t-10">
<span>进入旅程</span>
<el-input></el-input>
<span>天后自动切换到此旅程阶段,排除</span>
<el-input></el-input>
<span>旅程阶段</span>
</div>
</div>
</div>
</div>
<div class="condition-panel" v-else>
<div class="flex-column-center">
<label class="condition-label">进入条件:</label>
<div class="condition-select">
<div class="condition-input">
<span>页面停留</span>
<el-input></el-input>
<span>至</span>
<el-input></el-input>
<span>秒</span>
</div>
</div>
</div>
<div class="flex-column-center">
<label class="require">*</label>
<label class="condition-label">页面配置:</label>
<div class="condition-select">
<div class="condition-input">
<span>当前页面营销活动为</span>
<el-input style="width: 284px;"></el-input>
<a @click="typeVisible=true">编辑页面</a>
</div>
</div>
</div>
</div>
</div>
<GLDialog :bigTitle="'选择成员'" mode="big" :append-to-body="true" :visible.sync="membersVisible" @onOk="handleConfirm" @onCancel="membersVisible = !membersVisible">
<selectEmp ref="membersForm" v-if="membersVisible" :selectData="selectData"></selectEmp>
</GLDialog>
<select-type :typeVisible="typeVisible" v-if="typeVisible" @handleCloseType="handleCloseType"></select-type>
</GLDialog>
</template>
<script>
import selectEmp from './selectEmp'
import selectType from './selectType'
export default {
components: {
selectEmp,
selectType
},
props: {
conditionVisible: Boolean
},
data() {
return {
status: 3,
membersVisible: false,
typeVisible:false,
selectData: [],
conditionItem: [
{
label: '客户旅程'
},
{
label: '旅程阶段'
},
{
label: '手动标记'
},
{
label: '条件类型'
}
]
}
},
methods: {
// 成员弹窗
handleConfirm() {
console.log(this.$refs.membersForm.innerTags)
if (this.$refs.membersForm.innerTags.length) {
// this.basicForm.userList = this.$refs.membersForm.innerTags
this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags)
this.selectData = this.basicForm.userList
this.openMembers()
this.isUpdate = true
this.editStatus = true
} else {
this.$message({
type: 'error',
message: '请选择成员'
})
}
},
handleCloseType() {
this.typeVisible = false
},
handleAddEmp() {
this.membersVisible = true
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body {
padding: 0px 50px;
}
.require {
color: red;
}
.condition-item {
line-height: 30px;
font-size: 14px;
color: #666666;
span {
color: #333333;
}
}
.condition-panel {
background: #f9f9f9;
padding: 20px 80px;
margin-left: 70px;
.flex-column-center {
margin-bottom: 10px;
}
.condition-label {
// width: 100px;
}
.condition-input {
a {
color: #5850ff;
}
/deep/ {
.el-input {
width: 136px;
margin: 0px 4px;
}
.el-input__inner {
height: 32px;
background: #eeeeee;
line-height: 32px;
}
}
}
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 16:01:13
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-12-22 17:23:13
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\selectType.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<GLDialog title="编辑页面" mode="small" :append-to-body="true" cancelText="取消" okText="下一步" :visible.sync="typeVisible" @onOk="handleConfirm" @onCancel="handleClose" :before-close="handleClose">
<div class="dialog-body flex">
<label>选择页面类型:</label>
<el-radio-group v-model="type">
<el-radio :label="1">营销活动</el-radio>
<el-radio :label="2">营销素材</el-radio>
</el-radio-group>
</div>
<activity-model ref="activity" @selectActivity="selectActivity" :activityList="activityList"></activity-model>
<material-model ref="material" :materialList="materialList" @handleMaterialConfirm="handleMaterialConfirm"></material-model>
</GLDialog>
</template>
<script>
import materialModel from '@/components/model/materialModel'
import activityModel from '@/components/model/activityModel'
export default {
components: {
materialModel,
activityModel
},
props: {
typeVisible: Boolean
},
data() {
return {
type: 1,
materialList: {
name: '素材',
type: 'material',
funName: 'material',
fileType: true,
groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi,
params: {
merchant: this.$globalState.session.merchantId
}
},
activityList: [
{
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: 3,
activityStatusList: [1, 2],
currentPage: 1
}
},
// {
// itemName: '无忧服务',
// itemValue: 6,
// itemType: 'merchant',
// getInterfaceApi: this.$apis.welcomeword.merchant,
// merchantOpen: {
// merchantOpenApi: this.$apis.welcomeword.merchantOpen,
// params: {
// merchantId: this.$globalState.session.merchantId
// }
// },
// params: {
// merchantId: this.$globalState.session.merchantId
// }
// },
{
itemName: '众筹活动',
itemValue: 6,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
},
// 膨胀金活动
{
itemName: '膨胀金活动',
itemValue: 7,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.bulgeActivity,
params: {
currentPage: 1,
activityStatus: 2
}
}
]
}
},
methods: {
handleClose() {
this.$emit('handleCloseType')
},
handleConfirm() {
this.$refs.activity.init()
}
}
}
</script>
<style scoped lang="scss"></style>
<template>
<GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
<div class="dialog-body">
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable>
</div>
</GLDialog>
</template>
<script>
import { getTableList } from '@/api/modules/leadManage'
export default {
props: {
statVisible: Boolean
},
data() {
return {
getListApi: getTableList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '营销计划',
prop: 'orderNo'
},
{
label: '触达方式',
prop: 'name'
},
{
label: '今日营销客户数',
prop: 'phone'
},
{
label: '今日下发任务数',
prop: 'type',
addHtml: 'type'
},
{
label: '累计营销客户数',
prop: 'status'
},
{
label: '累计下发任务数',
prop: 'userName'
}
]
}
}
},
methods: {
handleClose() {
this.$parent.statVisible = false
}
}
}
</script>
<style scoped lang="scss"></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!