Commit 208d9014 by 杨北旺

售中转化

1 parent 73ecb5dc
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="never"> <meta name="referrer" content="never">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 使用CDN的CSS文件 --> <!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %> <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
......
...@@ -116,6 +116,16 @@ const introConpute = params => { ...@@ -116,6 +116,16 @@ const introConpute = params => {
data: params, data: params,
sign: true sign: true
}) })
}
// 获取商户列表
const getMerchantList = params => {
params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
} }
export { export {
getRulesData, getRulesData,
...@@ -139,5 +149,6 @@ export { ...@@ -139,5 +149,6 @@ export {
orderTotalNumOfJT, orderTotalNumOfJT,
myAccountTotalNumOfJT, myAccountTotalNumOfJT,
get4SList, get4SList,
introConpute introConpute,
getMerchantList
} }
\ No newline at end of file \ No newline at end of file
...@@ -58,6 +58,9 @@ export default { ...@@ -58,6 +58,9 @@ export default {
border-radius: 0px 4px 4px 0px; border-radius: 0px 4px 4px 0px;
// border: 1px solid #e8e8ea; // border: 1px solid #e8e8ea;
} }
// .right_widget /deep/ .el-select .el-input {
// border: none;
// }
.el-icon-caret-bottom { .el-icon-caret-bottom {
color: #999; color: #999;
} }
...@@ -65,6 +68,9 @@ export default { ...@@ -65,6 +68,9 @@ export default {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
} }
} }
</style> </style>
<template>
<div v-if="show" class="select-seach-con">
<div class="find_line">
<div class="cell_wrapper flex_sc">
<div v-if="accountLevel == 2" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">市级经销商</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">省级经销商</div>
<el-select v-if="accountLevel == 2" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select v-if="accountLevel == 1" clearable size="mini" v-model="nextAccountId" placeholder="请选择" @change="selectCurAccount">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId" class="cell_wrapper flex_sc">
<div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">市级经销商</div>
<el-select v-if="!isAdmin" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select v-if="isAdmin" clearable size="mini" v-model="nextAccountId1" placeholder="请选择" @change="selectLastAccount">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId1" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">4S店</div>
<el-select clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in lastStoreList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
</div>
</div>
</template>
<script>
import { getMerchantList } from '../../api/modules/rules'
export default {
name: '',
props: {
show: Boolean
},
data() {
return {
accountLevel: 1,
isAdmin: false,
storeId: '',
nextAccountId: '',
nextAccountId1: '',
newStroeList: [],
lastStoreList: [],
merchantList: [],
storeList: []
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.isAdmin = session.admin
if (session.accountLevel < 3) {
this.getMerchantListData()
}
},
methods: {
getMerchantListData() {
getMerchantList({}).then(res => {
this.merchantList = res || []
})
},
selectCurMechant(e) {
this.$emit('getId', e)
this.nextAccountId = ''
this.storeId = ''
this.nextAccountId1 = ''
if (!e) {
this.showThreeLine = false
return
}
let arr = this.merchantList
let newArr = []
arr.forEach(item => {
if (item.id == Number(e)) {
newArr = item.children || []
}
})
this.storeList = newArr
// 测试时使用
if (this.isAdmin) {
this.storeList = arr
}
this.showThreeLine = true
},
selectCurAccount(e) {
this.storeId = ''
this.nextAccountId1 = ''
this.$emit('getId', e)
if (!e) {
return
}
let newArr = []
this.storeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.newStroeList = newArr
},
selectLastAccount(e) {
this.$emit('getId', e)
this.storeId = ''
if (!e) {
return
}
let newArr = []
this.newStroeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.lastStoreList = newArr
},
selectStoreId(e) {
this.$emit('getId', e)
}
}
}
</script>
<style lang="scss" scoped>
.select-seach-con {
.find_line {
padding: 9px 15px;
display: flex;
align-items: center;
.cell_wrapper {
width: 25%;
box-sizing: border-box;
padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
}
}
</style>
...@@ -122,6 +122,7 @@ export default { ...@@ -122,6 +122,7 @@ export default {
let inSale = num1 * 12 * onSalePermeability * onSaleUnitPrice let inSale = num1 * 12 * onSalePermeability * onSaleUnitPrice
let afterSale = num1 * 12 * 3 * afterSalePermeability * afterSaleUnitPrice let afterSale = num1 * 12 * 3 * afterSalePermeability * afterSaleUnitPrice
let totalValue = beforeSale + inSale + afterSale let totalValue = beforeSale + inSale + afterSale
console.log(totalValue);
let singleStoreValue = totalValue / num2 let singleStoreValue = totalValue / num2
let totalProduct = this.priceFormat(totalValue) let totalProduct = this.priceFormat(totalValue)
let singleProduct = this.priceFormat(singleStoreValue) let singleProduct = this.priceFormat(singleStoreValue)
...@@ -133,30 +134,37 @@ export default { ...@@ -133,30 +134,37 @@ export default {
onSalePermeabilityString: this.computeValue.onSalePermeabilityString, onSalePermeabilityString: this.computeValue.onSalePermeabilityString,
afterSalePermeabilityString: this.computeValue.afterSalePermeabilityString afterSalePermeabilityString: this.computeValue.afterSalePermeabilityString
} }
// this.getParams(options)
this.getOptions(options) this.getOptions(options)
return { totalProduct, singleProduct } return { totalProduct, singleProduct }
}, },
// 价格格式化 // 价格格式化
priceFormat(num,point=2) { priceFormat(num, point = 2) {
// return util.priceFormat(num)
num = util.decimal(num,2)
// 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
let numStr = num.toString().split('.')[0] let numStr = num.toString().split('.')[0]
if (numStr.length < 5) { if (numStr.length < 6) {
// 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示 return util.decimal(num,2)
return num } else if (numStr >= 6) {
} else if (numStr.length >= 5) { let decimal = numStr.substring(numStr.length - 4, numStr.length - 4 + point)
// 如果数字大于6位,小于8位,让其数字后面加单位万
let decimal = numStr.substring(numStr.length - 3, numStr.length - 3 + point)
// 由千位,百位组成的一个数字
return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万' return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
} }
else if (numStr.length > 6) { return num
// 如果数字大于8位,让其数字后面加单位亿 // return util.priceFormat(num)
let decimal = numStr.substring(numStr.length - 6, numStr.length - 6 + point) // num = util.decimal(num,2)
return parseFloat(parseInt(num / 100000000) + '.' + decimal) + '亿' // 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
} // let numStr = num.toString().split('.')[0]
// if (numStr.length < 5) {
// // 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示
// return num
// } else if (numStr.length >= 5) {
// // 如果数字大于6位,小于8位,让其数字后面加单位万
// let decimal = numStr.substring(numStr.length - 3, numStr.length - 3 + point)
// // 由千位,百位组成的一个数字
// return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
// }
// else if (numStr.length > 6) {
// // 如果数字大于8位,让其数字后面加单位亿
// let decimal = numStr.substring(numStr.length - 6, numStr.length - 6 + point)
// return parseFloat(parseInt(num / 100000000) + '.' + decimal) + '亿'
// }
} }
} }
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">手 机 号</div> <div class="cell_label h13_title">手 机 号</div>
<el-input style="width:73%" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input> <el-input style="width: 73%" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
</div> </div>
<div class="cell_wrapper flex_sc" style="width: 30%"> <div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">核销时间</div> <div class="cell_label h13_title">核销时间</div>
...@@ -348,10 +348,15 @@ export default { ...@@ -348,10 +348,15 @@ export default {
padding-right: 15px; padding-right: 15px;
white-space: nowrap; white-space: nowrap;
} }
.cell_btn{ .cell_btn {
width: 78px; width: 78px;
} }
} }
.cell_wrapper /deep/ .el-select .el-input--mini .el-input__inner {
// border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
} }
} }
.table_wrap { .table_wrap {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="tip_btn flex_scb"> <div class="tip_btn flex_scb">
<el-button size="mini" :type="curDivisionType == 2 ? 'primary' : ''" @click="changDivisionType(2)">线上分账</el-button> <el-button size="mini" :type="curDivisionType == 2 ? 'primary' : ''" @click="changDivisionType(2)">线上分账</el-button>
<el-button size="mini" :type="curDivisionType == 1 ? 'primary' : ''" @click="changDivisionType(1)">线下分账</el-button> <el-button size="mini" :type="curDivisionType == 1 ? 'primary' : ''" @click="changDivisionType(1)">线下对账</el-button>
</div> </div>
</div> </div>
<div class="tip_wrap_line"></div> <div class="tip_wrap_line"></div>
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</div> </div>
<div v-if="accountLevel != 4" class="cell_wrapper flex_sc"> <div v-if="accountLevel == 3" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">导流4S店名称</div> <div class="cell_label h13_title">4S店</div>
<el-select clearable size="mini" v-model="storeId" placeholder="请选择"> <el-select clearable size="mini" v-model="storeId" placeholder="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.id"></el-option> <el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select> </el-select>
...@@ -54,61 +54,27 @@ ...@@ -54,61 +54,27 @@
<div class="cell_label h13_title">商品名称</div> <div class="cell_label h13_title">商品名称</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input> <el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div> </div>
<div class="cell_wrapper flex_sc" style="width: 15%"> <div v-if="accountLevel < 3" class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button> <div v-if="accountLevel == 2" class="cell_label h13_title">市级经销商</div>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button> <div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">省级经销商</div>
</div> <div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">工厂</div>
</div> <el-select clearable size="mini" filterable v-model="curMerchantNo" placeholder="请选择" @change="selectCurMechant">
</div> <el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.merchantNo"></el-option>
<!-- <div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu :options="timeOptions" :leftName="timeChangeName" @getValue="timeChange">
<div slot="right_con">
<el-date-picker class="myfindWidth" size="mini" clearable v-model="timeBetwean" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</my-drop-menu>
</div>
<div v-if="accountLevel == 4&&curDivisionType==2" class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel != 4" class="cell_item">
<div class="cell_label h13_title">4S店</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="storeId" placeholder="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind">
<div slot="right_con">
<el-input style="width: 166px" class="myfindWidth" clearable size="mini" placeholder="请输入" v-model="orderNum"></el-input>
</div>
</my-drop-menu>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input v-if="accountLevel == 4" style="width: 286px" size="mini" clearable v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div v-if="accountLevel != 4" class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</div> </div>
<div class="cell_btn_item"> <div class="cell_wrapper flex_sc" style="width: 15%">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button> <el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button> <el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div> </div>
</div> </div>
</div> --> <selectSearch ref="myNewSelect" :show="curMerchantNo?true:false" @getId="getCurStoreId"></selectSearch>
</div>
<div class="tipper flex_scb"> <div class="tipper flex_scb">
<div class="tip_text"> <div class="tip_text">
<span>共</span> <span>共</span>
<sapn style="color: #5850ff">{{ mytotalNumData.orderCount }}</sapn> <sapn style="color: #5850ff">{{ mytotalNumData.orderCount }}</sapn>
<span>笔订单,累计{{ curDivisionType == 1 ? '线下分账' : '线上分账' }}金额</span> <span>笔订单,累计{{ curDivisionType == 1 ? '线下对账' : '线上分账' }}金额</span>
<span style="color: #5850ff">{{ curDivisionType == 1 ? mytotalNumData.offlineDivisionMoneyCount : mytotalNumData.onlineDivisionMoneyCount }}</span> <span style="color: #5850ff">{{ curDivisionType == 1 ? mytotalNumData.offlineDivisionMoneyCount : mytotalNumData.onlineDivisionMoneyCount }}</span>
<template v-if="curDivisionType == 1"> <template v-if="curDivisionType == 1">
<span>元</span> <span>元</span>
...@@ -147,11 +113,13 @@ import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/m ...@@ -147,11 +113,13 @@ import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/m
import { converterApi } from '../../api/modules/converter' import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util' import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败'] const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
import selectSearch from '../../components/search-select/index.vue'
export default { export default {
name: '', name: '',
// components: { components: {
// 'my-drop-menu': myDropMenu // 'my-drop-menu': myDropMenu
// }, selectSearch
},
props: { props: {
list: Array list: Array
}, },
...@@ -357,18 +325,27 @@ export default { ...@@ -357,18 +325,27 @@ export default {
accountLevel: 1, accountLevel: 1,
mytotalNumData: { mytotalNumData: {
subOrderCount: 0 subOrderCount: 0
} },
curMerchantNo:'',
isAdmin:false
} }
}, },
created() { created() {
this.tableParams = this.tableParams2 this.tableParams = this.tableParams2
const { session } = this.$globalState const { session } = this.$globalState
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
this.isAdmin = session.admin
}, },
mounted() { mounted() {
this.toGetMyDivision() this.toGetMyDivision()
}, },
methods: { methods: {
getCurStoreId(e){
this.storeId = e
},
selectCurMechant(e){
this.$refs.myNewSelect.selectCurMechant(e)
},
changeNOFind(e) { changeNOFind(e) {
this.orderNumType = e this.orderNumType = e
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号' this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
...@@ -382,6 +359,7 @@ export default { ...@@ -382,6 +359,7 @@ export default {
this.goodsName = '' this.goodsName = ''
this.storeId = '' this.storeId = ''
this.$refs.table.page.pageNum = 1 this.$refs.table.page.pageNum = 1
this.curMerchantNo = ''
this.toGetMyDivision() this.toGetMyDivision()
}, },
handlerParams() { handlerParams() {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<span class="h8_title">¥{{ productValueInfo.divisionMoney || '---' }}</span> <span class="h8_title">¥{{ productValueInfo.divisionMoney || '---' }}</span>
</div> </div>
<template v-if="accountLevel == 4"> <template v-if="accountLevel == 4">
<span class="text_tip h12_title">低于基准线</span> <span class="text_tip h12_title">{{showMoneyLineTitle}}</span>
<span class="text_tip_price h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span> <span class="text_tip_price h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
<span class="text_tip_price1 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span> <span class="text_tip_price1 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
<span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> <span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span>
...@@ -94,9 +94,9 @@ ...@@ -94,9 +94,9 @@
</template> </template>
<div class="box_bg_wrap mini_margin"> <div class="box_bg_wrap mini_margin">
<div class="tab_wrap"> <div class="tab_wrap">
<div class="tab_line flex_sc" :style="accountLevel==4?'width:48%':'width:32%'"> <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'">
<template v-for="(item, index) in tabList"> <template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" :style="accountLevel==4?'width:33.33%':'width:50%'" @click="changeTab(index)"> <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)">
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div> <div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div> </div>
</template> </template>
...@@ -167,6 +167,7 @@ export default { ...@@ -167,6 +167,7 @@ export default {
hxdateBetween: '', hxdateBetween: '',
phoneNum: '', phoneNum: '',
productValueInfo: {}, productValueInfo: {},
showMoneyLineTitle:'',
//图表时间 //图表时间
chartStartDate: '', chartStartDate: '',
chartEndDate: '', chartEndDate: '',
...@@ -180,15 +181,6 @@ export default { ...@@ -180,15 +181,6 @@ export default {
return time.getTime() > Date.now() || time.getTime() < new Date('2021-07-01').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2021-07-01').getTime()
} }
} }
// pickerOptionsStart: {
// disabledDate: time => {
// let date = JSON.parse(localStorage.getItem('openInfo'))
// if (date) {
// return time.getTime() > Date().now() - 8.64e6 || time.getTime() > date
// }
// return time.getTime() > Date().now() - 8.64e6
// }
// }
} }
}, },
created() { created() {
...@@ -304,6 +296,8 @@ export default { ...@@ -304,6 +296,8 @@ export default {
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.productValueInfo = res this.productValueInfo = res
// 判断累计产值跟行业平均产值
this.showMoneyLineTitle = res.divisionMoney>res.totalDivisionMoney?'高于基准线':'低于基准线'
this.orderAll() this.orderAll()
}) })
}, },
...@@ -331,10 +325,19 @@ export default { ...@@ -331,10 +325,19 @@ export default {
}) })
}, },
toGet4SStore() { toGet4SStore() {
const { session } = this.$globalState
let level = this.accountLevel
let para = { let para = {
currentPage: 1, currentPage: 1,
pageSize: 100, pageSize: 200000
'merchantAccountLevelList[0]': 4 }
let temp = level + 1
if (session.admin) {
temp = 1
}
para = {
...para,
'merchantAccountLevelList[0]': temp
} }
get4SList(para).then(res => { get4SList(para).then(res => {
this.storeList = res.list || [] this.storeList = res.list || []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!