Commit b2851209 by zhangxw

Merge remote-tracking branch 'origin/Saas+v4.14.0_1223' into v3.3.0

2 parents 5765221c 72feb1ac
import { http } from '@/main'
const defaultPath = 'entmicro.api.payment.'
const url = '/rop-scrm-entmicro/router'
// 获取支付商户列表数据
const getListApi = params => {
params.method = `${defaultPath}pageListPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 获取所属商户数据
const getBusinessListApi = params => {
params.method = `${defaultPath}listMerchant`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 创建支付商户账号
const creatPayMerchantApi = params => {
params.method = `${defaultPath}createPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 删除支付商户账号
const delPayMerchantApi = params => {
params.method = `${defaultPath}deleteById`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试公众号码
const creatBizQrcodeApi = params => {
params.method = `${defaultPath}createBizQrCode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试微信小程序码
const createWeappQrcodeApi = params => {
params.method = `${defaultPath}createWeappQrcode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 上传证书
const uploadCertApi = params => {
params.method = `${defaultPath}uploadCert`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取应用Id列表
const getlistAppInfoApi = params => {
params.method = `${defaultPath}listAppInfo`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
export default {
getListApi,
getBusinessListApi,
creatPayMerchantApi,
delPayMerchantApi,
creatBizQrcodeApi,
createWeappQrcodeApi,
uploadCertApi,
getlistAppInfoApi
}
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
getList() { getList() {
var params = { var params = {
goodsStatus: 1, goodsStatus: 1,
// goodsSource: 1, isActivityUsing: 1,
goodsSources: [1, 3], goodsSources: [1, 3],
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000,
......
...@@ -62,6 +62,19 @@ const staticRoutes = Object.freeze([ ...@@ -62,6 +62,19 @@ const staticRoutes = Object.freeze([
path: '/seckillActivity/dataBoard', path: '/seckillActivity/dataBoard',
component: resolve => require([`@/views/seckillActivity/dataBoard.vue`], resolve), component: resolve => require([`@/views/seckillActivity/dataBoard.vue`], resolve),
meta: {} meta: {}
},
// 支付商户管理
{
name: '支付商户管理',
path: '/payMerchantsManage/index',
component: resolve => require([`@/views/payMerchantsManage/index.vue`], resolve),
meta: {}
},
{
name: '新增支付商户',
path: '/payMerchantsManage/addPayMerchant',
component: resolve => require([`@/views/payMerchantsManage/addPayMerchant.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
...@@ -17,6 +17,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -17,6 +17,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$request = request
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
......
<template>
<GLDialog title="收款测试" mode="mid" okText="关闭" :visible.sync="isShowTestDialog" :close-on-click-modal="false" :close-on-press-escape="false" :before-close="handleDialogClose" :hasFooter="false">
<div class="dialog-look">
<div class="qrcode-box" v-for="(item, index) in dialogData" :key="index">
<div class="qrcode-tiltle">{{ item.title }}</div>
<div class="qrcode-tips">请扫码完成支付</div>
<img class="qrcode-img" :src="item.url" alt="" />
</div>
</div>
</GLDialog>
</template>
<script>
export default {
name: 'collection-test-dialog',
props: {
dialogData: {
type: Array,
default: () => []
},
isShowTestDialog: {
type: Boolean,
default: false
}
},
data() {
return {}
},
methods: {
handleDialogClose() {
this.$emit('handleDialogClose')
}
}
}
</script>
<style lang="scss" scoped>
.dialog-look {
padding: 24px 40px 48px 40px;
display: flex;
align-items: center;
justify-content: center;
.qrcode-box {
display: flex;
flex-flow: column;
align-items: center;
margin: 0 20px;
.qrcode-tiltle {
font-size: 16px;
color: #333;
}
.qrcode-tips {
font-size: 14px;
color: #666;
margin: 8px;
}
.qrcode-img {
width: 118px;
height: 118px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -3,34 +3,21 @@ ...@@ -3,34 +3,21 @@
<div class="data-board-box"> <div class="data-board-box">
<p class="edit-title">数据看板</p> <p class="edit-title">数据看板</p>
<div class="p-20"> <div class="p-20">
<GLCombiForm ref="dataRef" <GLCombiForm ref="dataRef" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch"></GLCombiForm>
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"></GLCombiForm>
<div class="data-view"> <div class="data-view">
<template v-for="(item, index) in dataList"> <template v-for="(item, index) in dataList">
<div :key="index" <div :key="index" class="item">
class="item">
<div class="name"> <div class="name">
{{ item.name }} {{ item.name }}
<el-popover class="tips" <el-popover class="tips" placement="top" width="260" trigger="hover" :content="item.tips">
placement="top" <img slot="reference" class="tips-icon" src="@/components/glsx-combi-form/images/icon-tip.png" />
width="260"
trigger="hover"
:content="item.tips">
<img slot="reference"
class="tips-icon"
src="@/components/glsx-combi-form/images/icon-tip.png" />
</el-popover> </el-popover>
</div> </div>
<div class="value">{{ dataBoard[item.key] || 0 }}</div> <div class="value">{{ dataBoard[item.key] || 0 }}</div>
<template v-if="item.half"> <template v-if="item.half">
<div class="half"> <div class="half">
日环比: 日环比:
<div <div :class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]"></div>
:class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]">
</div>
<span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span> <span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span>
</div> </div>
</template> </template>
...@@ -50,33 +37,14 @@ ...@@ -50,33 +37,14 @@
@handleRest="handleReset"></GLCombiForm> @handleRest="handleReset"></GLCombiForm>
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('rank')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('rank')">导出</el-button>
</div> </div>
<GLTable ref="dataTableRef" <GLTable ref="dataTableRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :hasNum="false">
:getListApi="getListApi" <div slot="shareName" class="flex-align" slot-scope="scope">
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
:hasNum="false">
<div slot="shareName"
class="flex-align"
slot-scope="scope">
<template v-if="scope.scope.shareAvatar"> <template v-if="scope.scope.shareAvatar">
<el-popover placement="top" <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
width="160" <img class="table-popover-img" :src="scope.scope.shareAvatar" />
trigger="hover" <img class="img-36 pointer" slot="reference" :src="scope.scope.shareAvatar" />
popper-class="table-popover-block">
<img class="table-popover-img"
:src="scope.scope.shareAvatar" />
<img class="img-36 pointer"
slot="reference"
:src="scope.scope.shareAvatar" />
</el-popover> </el-popover>
</template> </template>
<span class="m-l-10">{{ scope.scope.shareName }}</span> <span class="m-l-10">{{ scope.scope.shareName }}</span>
...@@ -90,32 +58,20 @@ ...@@ -90,32 +58,20 @@
<div class="p-20"> <div class="p-20">
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span> <span class="table-title">数据列表</span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('dailyOrders')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('dailyOrders')">导出</el-button>
</div> </div>
<el-table v-if="DailyOrderQuantityList.length" <el-table v-if="DailyOrderQuantityList.length" :data="DailyOrderQuantityListFormat" style="width: 100%">
:data="DailyOrderQuantityListFormat" <el-table-column :formatter="formatterHeader" label=""></el-table-column>
style="width: 100%">
<el-table-column :formatter="formatterHeader"
label=""></el-table-column>
<!-- width="140px" --> <!-- width="140px" -->
<el-table-column v-for="(item, index) in DailyOrderQuantityList" <el-table-column v-for="(item, index) in DailyOrderQuantityList" :key="index" :prop="item" :label="item.day">
:key="index"
:prop="item"
:label="item.day">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span> <span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :formatter="formatterEnd" <el-table-column :formatter="formatterEnd" fixed="right" label="总计"></el-table-column>
fixed="right"
label="总计"></el-table-column>
</el-table> </el-table>
<div v-else> <div v-else>
<img src="url" <img src="url" alt="" />
alt="" />
</div> </div>
</div> </div>
</div> </div>
...@@ -141,34 +97,19 @@ ...@@ -141,34 +97,19 @@
单 单
</span> </span>
</span> </span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('liveData')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('liveData')">导出</el-button>
</div> </div>
<!-- :searchForm="tableSearchForm" --> <!-- :searchForm="tableSearchForm" -->
<GLTable ref="dataTableRefDetailPage" <GLTable ref="dataTableRefDetailPage" :getListApi="getLiveDetailPage" :noDataImg="url" :tableParams="liveTableParams" :searchForm="LiveTableSearchForm" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
:getListApi="getLiveDetailPage" <div slot="weChatName" class="flex-align" slot-scope="scope">
:noDataImg="url" <img v-if="scope.scope.avatar" class="img-36 pointer img-circle" :src="scope.scope.avatar" />
:tableParams="liveTableParams"
:searchForm="LiveTableSearchForm"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn">
<div slot="weChatName"
class="flex-align"
slot-scope="scope">
<img v-if="scope.scope.avatar"
class="img-36 pointer img-circle"
:src="scope.scope.avatar" />
<span class="m-l-10">{{ scope.scope.nickname }}</span> <span class="m-l-10">{{ scope.scope.nickname }}</span>
<span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span> <span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span>
</div> </div>
<!-- <div slot="orderStatus" <div slot="orderStatus" slot-scope="scope">
slot-scope="scope"> <span :class="['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"></span>
<span <span>{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}</span>
:class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span> </div>
<span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
</div> -->
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -187,7 +128,7 @@ const dataList = [ ...@@ -187,7 +128,7 @@ const dataList = [
{ name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' }, { name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' },
{ name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' }, { name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' },
{ name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' } { name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' }
], ],
optionList = [ optionList = [
{ confId: '1', confName: '转发次数' }, { confId: '1', confName: '转发次数' },
{ confId: '2', confName: '访客总数' }, { confId: '2', confName: '访客总数' },
...@@ -333,7 +274,7 @@ export default { ...@@ -333,7 +274,7 @@ export default {
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
// addHtml: 'orderStatus', addHtml: 'orderStatus',
width: 160 width: 160
} }
] ]
...@@ -375,7 +316,7 @@ export default { ...@@ -375,7 +316,7 @@ export default {
...result ...result
} }
}) })
.catch(err => { }) .catch(err => {})
}, },
handleReset() { handleReset() {
this.searchRankForm = this.$options.data.call(this).searchRankForm this.searchRankForm = this.$options.data.call(this).searchRankForm
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!