Commit bac1c203 by 杨明

第一轮bug修复

1 parent bfd52cba
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36 * @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:35:11 * @LastEditTime: 2024-01-09 15:39:12
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js * @FilePath: \scrm-micro-peregrination\src\mixins\model.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
*/ */
...@@ -44,7 +44,6 @@ export default { ...@@ -44,7 +44,6 @@ export default {
} }
}) })
} }
console.log(val.operators, day, 'dat')
if (/\[.*\]/.test(title) && day.length == 2) { if (/\[.*\]/.test(title) && day.length == 2) {
title = title.replace(/\[.*?\]/, day[0]).replace(/\[.*?\]/, day[1]) title = title.replace(/\[.*?\]/, day[0]).replace(/\[.*?\]/, day[1])
} }
......
...@@ -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 15:34:19 * @LastEditTime: 2024-01-10 16:36:13
* @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
--> -->
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<div v-for="(value, key) in v" :key="key" class="step-time-item flex-column-center"> <div v-for="(value, key) in v" :key="key" class="step-time-item flex-column-center">
<div style="width: 100%"> <div style="width: 100%">
<div class="step-item-desc"> <div class="step-item-desc">
<span>[{{ value.time }}]发送 | {{ stageInfo([value.taskType]).nodeName }} |{{ stageInfo([value.taskType]).desc }}</span> <span>[{{ value.time }}]发送 | {{ stageInfo([value.nodeProtoId]).nodeName }} |{{ stageInfo([value.nodeProtoId]).desc }}</span>
</div> </div>
<div class="step-item-name" v-if="value.taskType">{{ activity_name[value.taskType] }}</div> <div class="step-item-name" v-if="value.taskType">{{ activity_name[value.taskType] }}</div>
...@@ -102,7 +102,6 @@ ...@@ -102,7 +102,6 @@
<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-${t.taskType}`]"></div>
</div> </div>
<div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div> <div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div>
</div> </div>
...@@ -116,7 +115,6 @@ ...@@ -116,7 +115,6 @@
<!-- 5 =>跟进提醒--> <!-- 5 =>跟进提醒-->
<!-- 6 =>修改旅程阶段--> <!-- 6 =>修改旅程阶段-->
<!-- 7 => 获取客户信息--> <!-- 7 => 获取客户信息-->
<div :class="['stage-icon', `stage-${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>{{ v.length }}个任务</span> <span>{{ v.length }}个任务</span>
...@@ -249,13 +247,15 @@ export default { ...@@ -249,13 +247,15 @@ export default {
methods: { methods: {
//获取sop映射字段 //获取sop映射字段
stageInfo(i) { stageInfo(i) {
console.log(i)
const defaultStage = {
nodeName: '',
desc: ''
}
if (this.modelList) { if (this.modelList) {
return this.modelList.find(item => item.id == i) return this.modelList.find(item => item.id == i) || defaultStage
} else { } else {
return { return defaultStage
nodeName: '',
desc: ''
}
} }
}, },
//查看详情 //查看详情
......
...@@ -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-08 17:59:32 * @LastEditTime: 2024-01-10 16:35:33
* @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
--> -->
...@@ -90,14 +90,12 @@ ...@@ -90,14 +90,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" v-if="t.nodeSkip == '0'"> <div class="flex-column-center" v-if="t.nodeSkip == '0'">
<span>{{ value.time.defaultValue }}</span> <span>{{ value.time.defaultValue }}</span>
<div :class="['stage-icon', `stage-${t.taskType.defaultValue}`]"></div>
</div> </div>
<!-- <div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div> --> <!-- <div class="stage-desc">{{ stageInfo([t.taskType]).nodeName }}</div> -->
</div> </div>
<div slot="reference" class="flex-column-center" v-if="v.length <= 2 && value.nodeSkip == '0'"> <div slot="reference" class="flex-column-center" v-if="v.length <= 2 && value.nodeSkip == '0'">
<span>{{ value.time.defaultValue }}</span> <span>{{ value.time.defaultValue }}</span>
<div :class="['stage-icon', `stage-${value.taskType.defaultValue}`]"></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>{{ v.filter(item => item.nodeSkip == '0').length }}个任务</span> <span>{{ v.filter(item => item.nodeSkip == '0').length }}个任务</span>
...@@ -233,13 +231,14 @@ export default { ...@@ -233,13 +231,14 @@ export default {
}, },
//获取sop映射字段 //获取sop映射字段
stageInfo(i) { stageInfo(i) {
const defaultStage = {
nodeName: '',
desc: ''
}
if (this.modelList) { if (this.modelList) {
return this.modelList.find(item => item.id == i) return this.modelList.find(item => item.id == i) || defaultStage
} else { } else {
return { return defaultStage
nodeName: '',
desc: ''
}
} }
}, },
//查看详情 //查看详情
......
...@@ -16,7 +16,7 @@ import CollapseItem from './components/CollapseItem' ...@@ -16,7 +16,7 @@ import CollapseItem from './components/CollapseItem'
export default { export default {
components: { components: {
CollapseItem, CollapseItem
}, },
data() { data() {
return { return {
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
}, },
methods: { methods: {
getDetail(val) { getDetail(val) {
this.$apis.journeyConfig.getInsDetailsApi({instId: val}).then(res => { this.$apis.journeyConfig.getInsDetailsApi({ instId: val }).then(res => {
const instParam = JSON.parse(res.instParam) const instParam = JSON.parse(res.instParam)
const stages = instParam.stages const stages = instParam.stages
const customData = instParam.customData const customData = instParam.customData
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
nodeSkip: v.nodeSkip, nodeSkip: v.nodeSkip,
nodeVisible: v.nodeVisible, nodeVisible: v.nodeVisible,
nodeId: v.nodeId, nodeId: v.nodeId,
nodeProtoId: v.nodeProtoId,
customData customData
}) })
} }
...@@ -135,13 +136,13 @@ export default { ...@@ -135,13 +136,13 @@ export default {
return a.day - b.day return a.day - b.day
}) })
let sopList = this.groupBy(list, 'day') let sopList = this.groupBy(list, 'day')
sopList = sopList.map(function (arr) { sopList = sopList.map(function(arr) {
return arr.filter(function (obj) { return arr.filter(function(obj) {
// nodeVisible 0 节点不可见 1 可见 // nodeVisible 0 节点不可见 1 可见
// nodeSkip 0 节点不跳过 1 节点跳过 // nodeSkip 0 节点不跳过 1 节点跳过
return obj.nodeSkip == 0 && obj.nodeVisible == 1; return obj.nodeSkip == 0 && obj.nodeVisible == 1
}); })
}); })
configList.push({ configList.push({
label: stages[k].value, label: stages[k].value,
isExpaned: true, isExpaned: true,
......
...@@ -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 14:02:39 * @LastEditTime: 2024-01-10 09:23:30
* @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
--> -->
...@@ -147,24 +147,24 @@ export default { ...@@ -147,24 +147,24 @@ export default {
return this.showError('请选择圈化人群的方式') return this.showError('请选择圈化人群的方式')
} }
let stage = {} let stage = {}
this.configList.forEach((item, k) => { const nodes = []
stage['stage' + (k + 1)] = {
this.configList = this.configList.filter(item => item.label)
this.configList.forEach((item, index) => {
stage['stage' + (index + 1)] = {
editable: item.editable, editable: item.editable,
conditions: item.conditionsList, conditions: item.conditionsList,
value: item.label value: item.label
} }
})
const nodes = [] item.sopList.forEach(days => {
this.configList.forEach(i => {
i.sopList.forEach(days => {
days.forEach(k => { days.forEach(k => {
nodes.push({ nodes.push({
nodeParamDef: JSON.stringify({ nodeParamDef: JSON.stringify({
stage: { defaultValue: k.stage }, stage: { defaultValue: k.stage },
day: { defaultValue: k.day }, day: { defaultValue: k.day },
time: { time: { defaultValue: k.time }
defaultValue: k.time
}
}), }),
nodeProtoId: k.taskType nodeProtoId: k.taskType
}) })
...@@ -185,7 +185,6 @@ export default { ...@@ -185,7 +185,6 @@ export default {
tplParamDef: JSON.stringify(dataTypeCode), tplParamDef: JSON.stringify(dataTypeCode),
nodes nodes
} }
console.log(params, 7)
this.$apis.journeyModel.sopTplsSave(params).then(res => { this.$apis.journeyModel.sopTplsSave(params).then(res => {
if (res) { if (res) {
this.$router.go(-1) this.$router.go(-1)
......
...@@ -118,14 +118,12 @@ ...@@ -118,14 +118,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([t.taskType]).nodeName }}</div> <div class="stage-desc">{{ stageInfo([t.taskType]).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>
......
...@@ -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 13:39:49 * @LastEditTime: 2024-01-09 17:17:26
* @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
--> -->
...@@ -139,8 +139,26 @@ export default { ...@@ -139,8 +139,26 @@ export default {
}) })
}, },
handleSure() { handleSure() {
const { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm //条件序号condition_i
let { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm,
isInput = true
if (!conditionList.conditions) {
this.$message({
type: 'error',
message: '请选择进入条件',
customClass: 'error-tips'
})
return
}
conditionList.conditions.forEach(i => { conditionList.conditions.forEach(i => {
if (i.operators && i.operators.length) {
isInput = false
i.operators.forEach(o => {
if (o.value) {
isInput = true
}
})
}
conditionListAll.conditions.forEach(j => { conditionListAll.conditions.forEach(j => {
if (i.id == j.id) { if (i.id == j.id) {
j.operators = i.operators j.operators = i.operators
...@@ -148,7 +166,14 @@ export default { ...@@ -148,7 +166,14 @@ export default {
} }
}) })
}) })
console.log(conditionList, conditionListAll, 9) if (!isInput) {
this.$message({
type: 'error',
message: '请完善条件',
customClass: 'error-tips'
})
return
}
this.$emit('closeActivity', { conditionList: { ...conditionListAll, flag: conditionList.flag }, condition_i }) this.$emit('closeActivity', { conditionList: { ...conditionListAll, flag: conditionList.flag }, condition_i })
}, },
handleAddEmp() { handleAddEmp() {
...@@ -219,3 +244,8 @@ export default { ...@@ -219,3 +244,8 @@ export default {
} }
} }
</style> </style>
<style>
.error-tips {
z-index: 99999 !important;
}
</style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 14:31:26 * @Date: 2023-12-25 14:31:26
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:19:18 * @LastEditTime: 2024-01-09 17:57:40
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid
--> -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span>请设置营销时间:</span> <span>请设置营销时间:</span>
<el-input-number v-model="day" :min="1" :max="1000" :size="size"></el-input-number> <el-input-number v-model="day" :min="1" :max="1000" :size="size"></el-input-number>
<span>天后,当日</span> <span>天后,当日</span>
<el-time-picker v-model="time" :size="size" format="HH:mm" value-format="HH:mm"></el-time-picker> <el-time-picker :picker-options="rangeStart" v-model="time" :size="size" format="HH:mm" value-format="HH:mm"></el-time-picker>
<span>发送</span> <span>发送</span>
</div> </div>
<div class="sop-item flex"> <div class="sop-item flex">
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
}, },
data() { data() {
return { return {
rangeStart: {
selectableRange: '09:00:00 - 22:00:00' // 09:00:00 - 22:00:00的时间才可以选择
},
nodeKey: '', nodeKey: '',
day: 0, day: 0,
time: '', time: '',
......
...@@ -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-27 19:57:15 * @LastEditTime: 2024-01-10 09:13:25
* @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
--> -->
...@@ -276,6 +276,10 @@ export default { ...@@ -276,6 +276,10 @@ export default {
.journey-step-desc { .journey-step-desc {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0px 6px;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!