Commit cc8674f7 by 前端

Merge branch 'v3.23.1' into 'master'

V3.23.1

See merge request !5
2 parents 49c769cd 2302cbac
Showing 65 changed files with 1015 additions and 346 deletions
......@@ -1879,51 +1879,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1932,28 +1887,6 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -2649,6 +2582,14 @@
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==",
"dev": true
},
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
},
"babel-eslint": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
......@@ -13026,6 +12967,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true
},
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
......@@ -13209,6 +13165,14 @@
"csstype": "^3.1.0"
}
},
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
......@@ -13289,6 +13253,75 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
......@@ -14065,6 +14098,39 @@
"dayjs": "^1.8.25"
}
},
"word-edit": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.5.tgz",
"integrity": "sha512-9vc+0V3l+QNXrmsZQd800DuE2aftlNxloFPCgJz6hnn68DrimH3IP9UM2xliBkld8I6FHtHAMLZWhlMuJ6f5Nw==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
"dayjs": "^1.11.10",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3"
},
"dependencies": {
"dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
},
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
"qs": "^6.10.1",
"sha1": "^1.1.1"
}
}
}
},
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
......
......@@ -15,7 +15,8 @@
"echarts": "^5.4.3",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4",
"glsx-components": "^1.2.5"
"glsx-components": "^1.2.5",
"word-edit": "^1.3.5"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......
......@@ -6,7 +6,7 @@
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_common } from '@/main'
import { http_common,http_upload } from '@/main'
const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({
......@@ -17,6 +17,19 @@ const pictureUpload = params => {
noSignAttr: ['file']
})
}
const compressVideo = params => {
// params.method = '/video/compression/upload'
// params.sessionId = session
// let paramsVideo = JSON.(params)
return http_upload({
url: '/rpc-scrm-entmicro-container/video/compression/upload',
method: 'POST',
data: params,
sign: false,
noSignAttr: ['file']
})
}
export default {
pictureUpload
pictureUpload,
compressVideo
}
......@@ -2,11 +2,12 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 10:26:03
* @LastEditTime: 2024-01-04 15:17:51
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http, http_sop } from '@/main'
import { http, http_sop } from '@/main';
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
//活动列表
const activityPage = params => {
params.method = `scrm.api.shopmall.bulge.activity.page`
......@@ -17,6 +18,16 @@ const activityPage = params => {
sign: true
})
}
const authorizeMerchant = params => {
params.method = `entmicro.api.department.authorizeMerchant`
return http({
url: 'rop-scrm-entmicro/router',
method: 'get',
data: params,
sign: true
})
}
//活动详情
const getActivityDetailApi = params => {
params.method = `scrm.api.shopmall.activity.detail`
......@@ -76,6 +87,17 @@ const concatActivity = params => {
sign: false
})
}
//更新SOP模板实例节点输入参数
const updateParam = params => {
return http_sop({
url: `process/sop/api/sopInstNodes/${params.nodeId}/updateParam`,
method: 'post',
data:params.data,
noSessionId: true,
sign: false
})
}
const activityRelInfo = params => {
params.method = `marketing.api.supermarket.activityRelInfo`
return http({
......@@ -85,5 +107,86 @@ const activityRelInfo = params => {
sign: true
})
}
//选择成员
const listDepartmentTree = params => {
params.method = 'entmicro.api.department.listDepartmentTree'
return http({
url: 'rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session
return http({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
// 跟进专员类型查询
const getFollowListType = params => {
params.method = 'entmicro.api.staff.listEntFollowerType'
// params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 跟进专员类型查询
const getStaffList = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
// params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 查询任务详情
const getTaskList = params => {
return http_sop({
url: `/process/sop/api/sopInsts/getTaskList`,
method: 'post',
data: params,
noSessionId: true,
sign: false
})
}
//触达类型列表
const SopTplNodeProtosList = params => {
return http_sop({
url: '/process/sop/api/SopTplNodeProtos/list',
method: 'get',
data: params,
sign: false
})
}
//条件列表
const sopConditionList = params => {
return http_sop({
url: '/process/sop/api/sopData/condition/list',
method: 'get',
data: params,
sign: false
})
}
//条件列表
const setStageData = params => {
return http_sop({
url: `/process/sop/api/sopInsts/${params.instId}/instParam/stageData`,
method: 'post',
data: params.data,
noSessionId: true,
sign: false
})
}
export default { activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo }
// entmicro.api.staff.listFollowerStaffByPage 跟进专员类型查询员工
export default {authorizeMerchant, setStageData,sopConditionList,SopTplNodeProtosList,getTaskList,updateParam,getStaffList,getFollowListType,querylabeltree,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 {
height: 100%;
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 {
background: #ffffff;
}
......@@ -53,7 +64,9 @@ img {
.pl20 {
padding-left: 20px;
}
.plr20 {
padding: 0px 20px;
}
.live-room .m-r-8 {
margin-right: 8px;
}
......@@ -153,4 +166,12 @@ img {
.customMessageClass {
z-index: 9999 !important;
}
\ No newline at end of file
}
.el-popover.el-popper.popover-dialog {
padding: 10px !important;
.popover-panel {
background: #f7f7fc;
padding: 5px 20px 5px 5px;
margin-bottom: 10px;
}
}
......@@ -23,3 +23,5 @@ export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_sop = params => Vue.prototype.$http_sop(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_upload = params => Vue.prototype.$http_upload(params)
export default {
data() {
return {
journeyStatus: 0,
statusList: [],
noConfig: false,
activityType: {
1: [
{
describe: '步骤一:关联营销活动',
icon: 'el-icon-warning',
isDisabled: false,
status: [1],
with: 165,
btnName: '去关联',
clickFun: () => {
this.handleConcat()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: true,
with: 165,
status: [1],
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: [2],
with: 165,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: false,
with: 165,
status: [2],
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
with: 165,
status: [3],
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已启用客户旅程',
icon: 'el-icon-success',
with: 165,
isDisabled: false,
status: [3],
btnName: '去停用',
clickFun: () => {
this.handleClose(-1)
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
with: 165,
status: [4],
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已停用客户旅程',
icon: 'el-icon-success',
with: 165,
isDisabled: true,
status: [4],
btnName: '已停用'
}
],
2: [
{
describe: '客户旅程 未开启',
icon: 'el-icon-warning',
isDisabled: false,
with: 115,
status: [1, 2],
btnName: '去启用',
clickFun: () => {
this.haneldOpenQY()
}
},
{
describe: '客户旅程 已开启',
icon: 'el-icon-success',
isDisabled: false,
status: [3],
with: 115,
btnName: '去停用',
clickFun: () => {
this.handleClose(-1)
}
},
{
describe: '客户旅程 已停用',
icon: 'el-icon-warning',
isDisabled: true,
with: 115,
status: [4],
btnName: '已停用'
}
]
}
}
},
mounted() {
this.statusList = this.activityType[2]
const query = this.$route.query
this.query = query
this.getDetail()
},
methods: {
getDetail(order) {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
console.log(res,'res')
const instParam = JSON.parse(res.instParam)
this.dataTypeCode = instParam.dataTypeCode
this.noConfig = false
//xbpzj 关联续保膨胀金
if (this.dataTypeCode == 'xbpzj') {
this.statusList = this.activityType[1]
} else {
this.statusList = this.activityType[2]
}
const stages = instParam.stages
const instStatus = res.instStatus
this.activityInfo = instParam.customData
const activityId = this.activityInfo.activityId
if (instStatus == 0 && !activityId) {
this.journeyStatus = 1
}
if (instStatus == 0 && activityId) {
this.journeyStatus = 2
}
if (instStatus == 1) {
this.journeyStatus = 3
}
if (instStatus == -1) {
this.journeyStatus = 4
}
const nodes = res.nodes.filter(item=>item.nodeSkip!=1)
const configList = []
for (let k in stages) {
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 = list.filter(item => item.day)
list.sort((a, b) => {
return a.day - b.day
})
list.forEach(i => {
if ([5, 7, 8, 9, 10].includes(i.taskType) && !i.taskParam) {
this.noConfig = true
}
})
if (stages[k].conditions && this.dataTypeCode == 'xbpzj') {
stages[k].conditions.forEach(con => {
const condition = con.conditions.filter(i => i.isHide)
if (condition.length && condition.length == 1) {
if (!condition[0].operators[0].value) {
this.noConfig = true
}
}
})
}
const sopList = this.groupBy(list, 'day')
configList.push({
order: k,
label: stages[k].value,
isExpaned: order == k ? true : false,
editable: stages[k].editable,
conditionsList: stages[k].conditions || [],
sopList,
instStatus
})
}
this.configList = configList
})
},
async openAllConfig() {
const supMerchantNo = await this.$apis.journeyConfig.authorizeMerchant({ merchantId: this.$globalState.session.merchantId })
await this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data: { supMerchantNo } })
this.setSopInsts(1)
},
async haneldOpenQY() {
if (this.noConfig) {
this.handleConfirm('开启提示', '确定', '请完善进入条件及SOP任务后,再启动客户旅程。', '', () => {
// this.openAllConfig()
})
} else {
this.openAllConfig()
}
}
}
}
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 15:15:25
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-15 14:52:50
* @FilePath: \scrm-micro-scene\src\mixins\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { mapActions, mapState } from 'vuex'
export default {
data() {
return {
...mapActions('model', ['setModelList'])
}
},
computed: {
...mapState('model', ['modelList'])
},
mounted() {
if (!this.modelList) {
this.setModelList()
}
},
methods: {
...mapActions('model', ['setModelList']),
//获取sop映射字段
stageInfo(i) {
if (this.modelList) {
return this.modelList.find(item => {
if (item.id == i) {
return item
}
})
} else {
return {
nodeName: '',
desc: ''
}
}
}
}
}
......@@ -2,11 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
<<<<<<< HEAD
* @LastEditTime: 2023-09-27 12:07:58
=======
* @LastEditTime: 2023-09-25 09:59:38
>>>>>>> e728fa5b69f3ed7e05a72000ab34add4d75d5961
* @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -17,12 +13,15 @@ import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限
import { getRoutes } from '@/router'
import ElementUI from 'element-ui'
import render from './render'
import { GLEditor } from 'word-edit'
import 'glsx-components/dist/glsx-components.css'
import 'word-edit/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLEditor)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, response_sop, request_sop, request_merchant, tmplUrl } = await fetchConfig(common)
Vue.prototype.$tmplUrl = tmplUrl
......@@ -36,6 +35,14 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_sop = new common.Http({ response: response_sop, request: request_sop, sign, secret, alert: message.error, headers: { token: globalState.session.token, 'Content-Type': 'application/json' } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request:request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_upload = new common.Http({
response: { ...response, data_key: 'result', code_success_value: true, code_key: 'success' },
request,
sign,
secret,
alert: message.error,
headers: { token: globalState.session.token, 'Content-Type': 'multipart/form-data' }
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-27 16:50:15
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-03 15:19:16
* @FilePath: \scrm-micro-peregrination\src\store\modules\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import api from '@/api'
export default {
namespaced: true,
state: {
modelList: null
},
mutations: {
// 设置模块阶段
SET_MODEL(state, data) {
state.modelList = data
}
},
actions: {
// 设置分页大小
async setModelList({ commit }, data) {
const res = await api.journeyConfig.SopTplNodeProtosList({})
commit('SET_MODEL', res)
}
}
}
<template>
<div
class="journey"
v-loading="loading"
>
<div class="journey" v-loading="loading">
<div class="container">
<div class="sticky">
<GLCombiForm
ref="showSearch"
:rowNumber="2"
:formObj="searchForm"
:formData="searchFormData"
:searchSelectObj="searchSelectObj"
@handleOk="handleSearch"
@handleRest="handleReset"
:key="FormKey"
></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="searchFormData" :searchSelectObj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset" :key="FormKey"></GLCombiForm>
<div :class="['sticky-btns', { hiddenExport: viewType == 1 }]">
<div class="btns">
<el-button
type="default"
@click="refreshInst"
plain
>状态刷新</el-button>
<el-button
type="default"
@click="changeViewType"
>切换为{{ viewType == 1 ? '列表' : '看板' }}视图</el-button>
<el-button
type="default"
@click="handleExport"
>导出</el-button>
<el-button type="default" @click="refreshInst" plain>状态刷新</el-button>
<el-button type="default" @click="changeViewType">切换为{{ viewType == 1 ? '列表' : '看板' }}视图</el-button>
<el-button type="default" @click="handleExport">导出</el-button>
</div>
</div>
</div>
<template v-if="viewType == 1">
<div class="journey-data-view">
<data-view
:params="tableSearchForm"
ref="dataView"
:stageList="stageList"
></data-view>
<data-view :params="tableSearchForm" ref="dataView" :stageList="stageList"></data-view>
</div>
</template>
<template v-else>
......@@ -48,11 +22,7 @@
<template v-if="stageList && stageList.length">
<template v-for="(i, index) in stageList">
<template>
<div
:class="['tab', { active: searchForm.sopJourneyStage == i.value }]"
:key="index"
@click="changeTab(i.value)"
>
<div :class="['tab', { active: searchForm.sopJourneyStage == i.value }]" :key="index" @click="changeTab(i.value)">
{{ i.label }}
</div>
</template>
......@@ -61,11 +31,7 @@
</div>
</div>
<div class="journey-table">
<journey-table
ref="table"
:params="tableSearchForm"
:stageList="stageList"
></journey-table>
<journey-table ref="table" :params="tableSearchForm" :stageList="stageList"></journey-table>
</div>
</template>
</div>
......@@ -125,6 +91,7 @@ export default {
value: ''
}]
for (let k in stages) {
item.journeyItem.push({
label: stages[k].value,
value: stages[k].value, // 后台要求改成label值 20230927
......
......@@ -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>
......@@ -163,15 +135,14 @@ export default {
methods: {
// 下拉加载
async infiniteLoad (cindex, index) {
// console.log(this.pageCount, this.pageNumber)
if (this.viewList[index][cindex].list.length == 0) return
if (this.viewList[index][cindex].list.length == this.pageCount[cindex]) return
this.pageNumber[cindex]++
const params = {
...JSON.parse(JSON.stringify(this.params)),
...this.$common.utils.deepClone(this.params),
pageSize: 10,
pageNumber: this.pageNumber[cindex],
sopJourneyStage: this.stageList[cindex].value
sopJourneyStage: this.stageList[cindex+1].value
}
let { list } = await this.$apis.journey.getCustomersList(params)
list.length &&
......@@ -193,7 +164,7 @@ export default {
}, [])
}
const params = {
...JSON.parse(JSON.stringify(this.params)),
...this.$common.utils.deepClone(this.params),
pageSize: 10,
pageNumber: 1
}
......@@ -220,6 +191,7 @@ export default {
k != 0 && this.$set(this.pageNumber, k - 1, 1)
const { list: apiList, total } = await this.$apis.journey.getCustomersList(params)
console.log(total,'total')
list = apiList
k != 0 && this.$set(this.pageCount, k - 1, total)
}
......@@ -344,6 +316,7 @@ export default {
}
.bottom {
height: 33px;
line-height: 33px;
justify-content: space-between;
padding: 0 8px;
font-size: 12px;
......
<template>
<div class="journey-table">
<GLTable
ref="tableRef"
:noDataImg="url"
:tableParams="tableParams"
:tableData="tableData"
:pageConf="pageConf"
@refreshTable="refreshTable"
:tableTotal="tableTotal"
>
<div
class="table-btns"
slot="auth-button"
slot-scope="scope"
>
<GLTableButton
:buttonList="tableButtonList"
:buttonItem="scope.scope"
></GLTableButton>
<GLTable ref="tableRef" :noDataImg="url" :tableParams="tableParams" :tableData="tableData" :pageConf="pageConf" @refreshTable="refreshTable" :tableTotal="tableTotal">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope"></GLTableButton>
</div>
</GLTable>
<el-drawer
:visible.sync="showDrawer"
direction="rtl"
size="720px"
>
<el-drawer :visible.sync="showDrawer" direction="rtl" size="720px">
<template #title>
<div class="drawer-title">编辑客户旅程</div>
</template>
......@@ -47,15 +28,8 @@
<div class="label">旅程阶段:</div>
<template v-for="(i, index) in stageList">
<template v-if="index != 0">
<div
:key="index"
class="tags-item flex"
>
<el-button
:class="['text',{disabled:i.disabled}, { active: index == stageIndex }]"
:disabled="i.disabled"
@click="editStage(index)"
>{{ i.label }}</el-button>
<div :key="index" class="tags-item flex">
<el-button :class="['text', { disabled: i.disabled }, { active: index == stageIndex }]" :disabled="i.disabled" @click="editStage(index)">{{ i.label }}</el-button>
<div class="arrow"></div>
</div>
</template>
......@@ -70,10 +44,7 @@
</div>
<template v-for="(i, index) in fileObject">
<template>
<div
:key="index"
class="file-item flex"
>
<div :key="index" class="file-item flex">
<div class="label">{{ i.label }}:</div>
<div class="value">
<template v-if="userInfo.carMaintenanceInsurances && userInfo.carMaintenanceInsurances[0]">
......@@ -86,14 +57,8 @@
</div>
</div>
<div class="footer flex">
<el-button
type="default"
@click="showDrawer = false"
>取消</el-button>
<el-button
type="primary"
@click="handleConfirm"
>确定</el-button>
<el-button type="default" @click="showDrawer = false">取消</el-button>
<el-button type="primary" @click="handleConfirm">确定</el-button>
</div>
</el-drawer>
</div>
......
<template>
<GLDialog :title="modelTitle" :visible.sync="dialogVisible" width="70%" :before-close="handleClose"></GLDialog>
</template>
<script>
export default {
data() {
return {
modelTitle: ''
}
}
}
</script>
<style scoped lang="scss"></style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 16:01:13
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 18:04:31
* @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="编辑页面" class="activity-dialog" 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
}
},
methods: {
handleClose() {
this.$emit('handleCloseType')
},
handleConfirm() {
this.$emit('handleCloseType', this.type)
}
}
}
</script>
<style scoped lang="scss">
.activity-dialog {
/deep/.el-dialog__body {
height: 100px;
padding: 40px;
box-sizing: border-box;
}
}
</style>
<template>
<GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
<div class="dialog-body">
<GLTable v-loading="loading" :searchForm="tableSearchForm" :hasNum="true" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable>
</div>
</GLDialog>
</template>
<script>
const STAGE = Object.freeze({
1: '门店助手短信',
2: 'AI外呼',
3: '门店助手朋友圈',
4: '门店助手1v1',
5: '跟进提醒',
6: '客户信息查询',
7: '企微提醒',
8: '企微群发',
9: '企微朋友圈',
10: '发送短信'
})
export default {
props: {
statVisible: Boolean,
stageid:Number
},
data() {
return {
stage: STAGE,
loading:false,
tableSearchForm:{},
getListApi: this.$apis.journeyConfig.getTaskList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '营销计划',
prop: 'plan'
},
{
label: '触达方式',
prop: 'taskType',
formatter: cellValue => {
return this.stage[cellValue.taskType] ? this.stage[cellValue.taskType] : '--'
}
},
{
label: '今日营销客户数',
prop: 'todayCusCount'
},
{
label: '今日下发任务数',
prop: 'todayTaskCount',
formatter:cellValue => {
return cellValue.taskType!=10 ? cellValue.todayTaskCount : '--'
}
},
{
label: '累计营销客户数',
prop: 'totalCusCount'
},
{
label: '累计下发任务数',
prop: 'totalTaskCount'
}
]
}
}
},
created() {
const query = this.$route.query
this.query = query
},
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.loading = true
this.tableSearchForm = {
instId:this.query.instId,
stageid:this.stageid
}
resolve()
})
},
setTableFinishFun() {
this.loading = false
},
handleClose() {
this.$parent.statVisible = false
}
}
}
</script>
<style scoped lang="scss"></style>
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-25 19:37:31
* @LastEditTime: 2024-01-16 17:12:02
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -10,17 +10,15 @@
<div class="journey-main">
<div class="bg-fff pb20 journey-config">
<template v-for="(item, index) in statusList">
<div class="journey-step-config" v-if="journeyStatus == item.status" :key="index">
<div class="journey-step-config" v-if="item.status.includes(journeyStatus)" :key="index">
<i :class="`${item.icon}`"></i>
<span>{{ item.describe }}</span>
<el-button :type="item.isDisabled ? 'info' : 'primary'" :size="size" @click="item.clickFun" :disabled="item.isDisabled">{{ item.btnName }}</el-button>
<span :style="{'width':item.with+'px'}">{{ item.describe }}</span>
<el-button :type="item.isDisabled ? 'info' : 'primary'" :size="size" @click="item.clickFun" :disabled="item.isDisabled" :plain="item.plain">{{ item.btnName }}</el-button>
</div>
</template>
</div>
<div class="journey-step bg-fff pb20">
<div class="journey-step-title border-title">
客户旅程阶段
</div>
<div class="journey-step-title border-title">客户旅程阶段</div>
<div class="journey-step-body">
<div class="journey-step-info" v-for="(val, k) in configList" :key="k">
<collapse-item :stepItem="val" :activityInfo="activityInfo"></collapse-item>
......@@ -33,91 +31,13 @@
<script>
import CollapseItem from './components/CollapseItem'
import relatedActivity from './components/relatedActivity'
import config from '@/mixins/config'
export default {
components: { CollapseItem, relatedActivity },
mixins: [config],
data() {
return {
journeyStatus: 1,
activityInfo: {},
statusList: [
{
describe: '步骤一:关联营销活动',
icon: 'el-icon-warning',
isDisabled: false,
status: 1,
btnName: '去关联',
clickFun: () => {
this.handleConcat()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: true,
status: 1,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 2,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:启用客户旅程',
icon: 'el-icon-warning',
isDisabled: false,
status: 2,
btnName: '去开启',
clickFun: () => {
this.haneldOpen()
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已启用客户旅程',
icon: 'el-icon-success',
isDisabled: false,
status: 3,
btnName: '去停用',
clickFun: () => {
this.handleClose(-1)
}
},
{
describe: '步骤一:已关联营销活动',
icon: 'el-icon-success',
isDisabled: false,
status: 4,
btnName: '去查看',
clickFun: () => {
this.concatActivity()
}
},
{
describe: '步骤二:已停用客户旅程',
icon: 'el-icon-success',
isDisabled: true,
status: 4,
btnName: '已停用'
}
],
configList: [],
configList2: [
{
......@@ -202,55 +122,8 @@ export default {
]
}
},
mounted() {
const query = this.$route.query
this.query = query
this.getDetail()
},
mounted() {},
methods: {
getDetail() {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
const instParam = JSON.parse(res.instParam)
const stages = instParam.stages
const instStatus = res.instStatus
this.activityInfo = instParam.customData
const activityId = this.activityInfo.activityId
if (instStatus == 0 && !activityId) {
this.journeyStatus = 1
}
if (instStatus == 0 && activityId) {
this.journeyStatus = 2
}
if (instStatus == 1 && activityId) {
this.journeyStatus = 3
}
if (instStatus == -1 && activityId) {
this.journeyStatus = 4
}
const nodes = res.nodes
const configList = []
for (let k in stages) {
let list = []
for (let v of nodes) {
if (v.nodeParam && JSON.parse(v.nodeParam).stage == stages[k].value) {
list.push(JSON.parse(v.nodeParam))
}
}
list = list.filter(item => item.day)
list.sort((a, b) => {
return a.day - b.day
})
const sopList = this.groupBy(list, 'day')
configList.push({
label: stages[k].value,
isExpaned: false,
conditionsList: stages[k].conditions || [],
sopList
})
}
this.configList = configList
})
},
groupBy(list, name) {
const m = new Map()
list.map(item => {
......@@ -289,6 +162,11 @@ export default {
},
//开启
haneldOpen() {
if(this.noConfig) {
this.handleConfirm('开启提示', '确定', 'SOP内容未配置完整', '', () => {
})
return
}
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', () => {
this.setSopInsts(1)
})
......@@ -316,8 +194,8 @@ export default {
padding: 20px;
}
.journey-step-config {
&:first-child {
margin-bottom: 20px;
&:not(:first-child) {
margin-top: 20px;
}
i {
font-size: 14px;
......@@ -333,7 +211,7 @@ export default {
color: #666666;
margin-left: 5px;
display: inline-block;
width: 166px;
width: 156px;
}
}
.journey-step-body {
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-15 09:47:05
* @LastEditTime: 2024-01-10 09:14:20
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -27,7 +27,7 @@
<img src="@/assets/config/icon-next.png" class="journey-status" v-if="index != item.journeyItem.length - 1" />
<img src="@/assets/config/icon-end.png" class="journey-status" v-else />
<div class="journey-step__main">
<div :class="['journey-step-icon', `step-icon-${p.process}`]"></div>
<div class="journey-step-icon"></div>
<div class="journey-step-desc">{{ p.label }}</div>
</div>
</div>
......@@ -261,6 +261,10 @@ export default {
.journey-step-desc {
font-size: 14px;
color: #333333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0px 6px;
}
}
}
......@@ -270,6 +274,8 @@ export default {
.journey-step-icon {
width: 25px;
height: 24px;
background: url('../../assets/config/sop_icon.png');
background-size: 100% 100%;
}
.step-icon-2 {
background: url('../../assets/config/icon-sprites.png') -10px -10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!