Commit e7ea2c2e by 徐忆琳

Merge branch 'v3.19.0_10' into 'v3.19.0'

更新客户旅程代码

See merge request !4
2 parents 4c508ece 89d4d533
...@@ -22,9 +22,9 @@ const pictureUpload = params => { ...@@ -22,9 +22,9 @@ const pictureUpload = params => {
} }
const getMerchantList = params => { const getMerchantList = params => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant` params.method = 'merchants.api.open.findMerchantListByPage'
return http_merchant({ return http_merchant({
url: 'rop-scrm-carlife/router', url: 'rop-merchants/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
......
...@@ -62,7 +62,7 @@ const sopInstsApi = (params) => { ...@@ -62,7 +62,7 @@ const sopInstsApi = (params) => {
method: 'POST', method: 'POST',
data: params, data: params,
sign: false, sign: false,
noNeed:true noSessionId:true
}) })
} }
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<template> <template>
<div class="border-content"> <div class="border-content">
<div class="journey-step-info" v-for="(stepItem, k) in configList" :key="k"> <div class="journey-step-info" v-for="(stepItem, k) in configList" :key="k">
<div v-if="stepItem.sopList.flat(Initify).length>0"> <!-- v-if="stepItem.sopList.flat(Initify).length>0"-->
<div >
<div :class="{ 'collapse-item': true, 'is-active': stepItem.isExpaned }"> <div :class="{ 'collapse-item': true, 'is-active': stepItem.isExpaned }">
<div class="collapse-item-tab flex-column-center pl20"> <div class="collapse-item-tab flex-column-center pl20">
<i class="el-icon-caret-bottom" v-show="stepItem.isExpaned" @click="handleExpand(stepItem)"></i> <i class="el-icon-caret-bottom" v-show="stepItem.isExpaned" @click="handleExpand(stepItem)"></i>
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
], ],
pageConfig: { pageConfig: {
pageSize: 10, pageSize: 10,
currentPage: 1 pageNum: 1
}, },
tableParams: { tableParams: {
listName: 'list', listName: 'list',
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {} baseData: {}
} }
}, },
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
getList(pageCon) { getList(pageCon) {
pageCon && (this.pageConfig = pageCon) pageCon && (this.pageConfig = pageCon)
var params = { var params = {
merchantAccountLevel:[4],
merchantId: this.merchantId, merchantId: this.merchantId,
...this.searchForm, ...this.searchForm,
...this.pageConfig ...this.pageConfig
...@@ -173,14 +174,13 @@ export default { ...@@ -173,14 +174,13 @@ export default {
} }
this.$apis.common.getMerchantList(params).then(res => { this.$apis.common.getMerchantList(params).then(res => {
this.storeList = res.list this.storeList = res.data
this.total = res.total this.total = res.count
// // this.storeList = res.staffUnitList // // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page // // var page = this.$refs.staffRef.page
// // // 添加序号 // // // 添加序号
// pageConfig // pageConfig
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1) let nowIndex = this.pageConfig.pageSize * (this.pageConfig.pageNum - 1)
this.storeList.forEach((item, index) => { this.storeList.forEach((item, index) => {
item.idx = index + 1 + nowIndex item.idx = index + 1 + nowIndex
}) })
......
...@@ -19,7 +19,7 @@ const tableConfig = { ...@@ -19,7 +19,7 @@ const tableConfig = {
label: '旅程阶段', label: '旅程阶段',
prop: 'instRemark', prop: 'instRemark',
addHtml: 'instRemark', addHtml: 'instRemark',
width:250 width:320
}, },
{ {
label: '门店名称', label: '门店名称',
......
...@@ -111,7 +111,8 @@ export default { ...@@ -111,7 +111,8 @@ 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 stages = JSON.parse(res.instParam).stages.defaultValue const stages = JSON.parse(res.instParam).stages
// .defaultValue
const nodes = res.nodes const nodes = res.nodes
const configList = [] const configList = []
for (let k in stages) { for (let k in stages) {
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
:beforeSearchFn="beforeSearchFn"> :beforeSearchFn="beforeSearchFn">
<div slot="instRemark" slot-scope="scope" style="display:flex"> <div slot="instRemark" slot-scope="scope" style="display:flex">
<div v-for="(item,index) in handleStage(scope)" :key="index"> <div v-for="(item,index) in handleStage(scope)" :key="index">
<div v-if="index <= 4"> <div v-if="index <= 3">
{{ item.name }} {{ item.name }}
{{ getCommaSeparator('less', index, scope) }} {{ getCommaSeparator('less', index, scope) }}
</div> </div>
<div v-if="index > 4"> <div v-if="index > 3">
<el-popover placement="top" width="600" trigger="hover" <el-popover placement="top" width="600" trigger="hover"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...</span> <span slot="reference">...</span>
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
}, },
handleStage(scope) { handleStage(scope) {
let stages = JSON.parse(scope.scope.instParam).stages.defaultValue let stages = JSON.parse(scope.scope.instParam).stages
let list = [] let list = []
for (let k in stages) { for (let k in stages) {
list.push({ list.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!