Compare commits
8 Commits
main
...
gyq_openpl
| Author | SHA1 | Date | |
|---|---|---|---|
| 1659362dc5 | |||
| d4f60b66e8 | |||
| 681d16c0a1 | |||
| 7af9be8c53 | |||
| ab4e2e9663 | |||
| 408c611cca | |||
| 0f51176cee | |||
| 64c0ec97c9 |
24
index.html
24
index.html
@@ -1,16 +1,14 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh-cn">
|
<html lang="zh-cn">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favico.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>vue admin</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
<head>
|
<body>
|
||||||
<meta charset="UTF-8" />
|
<div id="app"></div>
|
||||||
<link rel="icon" type="image/svg+xml" href="/favico.ico" />
|
<script type="module" src="/src/main.js"></script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
</body>
|
||||||
<title>vue admin</title>
|
</html>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
<script type="module" src="/src/main.js"></script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-admin",
|
"name": "vue-admin",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.3.7",
|
"version": "1.3.14",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||||
"axios": "^1.3.4",
|
"axios": "^1.3.4",
|
||||||
|
"clipboard": "^2.0.11",
|
||||||
"echarts": "^5.4.2",
|
"echarts": "^5.4.2",
|
||||||
"element-china-area-data": "^6.1.0",
|
"element-china-area-data": "^6.1.0",
|
||||||
"element-plus": "^2.3.0",
|
"element-plus": "^2.3.0",
|
||||||
|
|||||||
@@ -99,4 +99,36 @@ export function unread(params) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取总流水
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function querySumAmount() {
|
||||||
|
return request({
|
||||||
|
method: "post",
|
||||||
|
url: "/open/querySumAmount"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取七日数据
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function queryRecentlyData() {
|
||||||
|
return request({
|
||||||
|
method: "post",
|
||||||
|
url: "/open/queryRecentlyData"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取近一年流水
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function queryRecentYears() {
|
||||||
|
return request({
|
||||||
|
method: "post",
|
||||||
|
url: "/open/queryRecentYears"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -274,15 +274,26 @@ export function updateAuthentication(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收银点列表
|
* 查询开发私钥
|
||||||
* @param {*} data
|
* @param {*} data
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function queryMerchantCashPlace(params) {
|
export function queryOrgan() {
|
||||||
return request({
|
return request({
|
||||||
method: 'get',
|
method: 'post',
|
||||||
url: '/agency/queryMerchantCashPlace',
|
url: '/open/queryOrgan'
|
||||||
params
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单信息
|
||||||
|
* @param {*} data
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function queryOrder(data) {
|
||||||
|
return request({
|
||||||
|
method: 'post',
|
||||||
|
url: '/open/queryOrder',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chart_header">
|
<div class="chart_header">
|
||||||
<div class="item" :class="{ active1: chartType == 1 }" @click="chartTypeChange(1)">
|
<!-- <div class="item" :class="{ active1: chartType == 1 }" @click="chartTypeChange(1)">
|
||||||
<div class="icon"></div>
|
<div class="icon"></div>
|
||||||
<span>收益</span>
|
<span>收益</span>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="item" :class="{ active2: chartType == 2 }" @click="chartTypeChange(2)">
|
<div class="item" :class="{ active2: chartType == 2 }">
|
||||||
<div class="icon"></div>
|
<div class="icon"></div>
|
||||||
<span>流水</span>
|
<span>流水</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { getChartData } from '@/api/home.js'
|
import { queryRecentlyData, queryRecentYears } from '@/api/home.js'
|
||||||
import * as echarts from "echarts"
|
import * as echarts from "echarts"
|
||||||
import { dayjs } from 'element-plus'
|
import { dayjs } from 'element-plus'
|
||||||
import hooks from '@/hooks'
|
import hooks from '@/hooks'
|
||||||
@@ -31,7 +31,7 @@ const chartsObj = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const chartLoading = ref(true)
|
const chartLoading = ref(true)
|
||||||
const chartType = ref(1)
|
const chartType = ref(2)
|
||||||
const chartYear = ref(dayjs().format('YYYY'))
|
const chartYear = ref(dayjs().format('YYYY'))
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
userId: {
|
userId: {
|
||||||
@@ -41,7 +41,7 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 初始化折线图
|
// 初始化折线图
|
||||||
function initDeicount(yearData = [], sevenData = [], sevenDataTime = []) {
|
function initDeicount(yearData = [], yearDataTime = [], sevenData = [], sevenDataTime = []) {
|
||||||
if (!chartsObj.lineRef1 && !chartsObj.lineRef2) {
|
if (!chartsObj.lineRef1 && !chartsObj.lineRef2) {
|
||||||
chartsObj.lineRef1 = echarts.init(lineRef1.value);
|
chartsObj.lineRef1 = echarts.init(lineRef1.value);
|
||||||
chartsObj.lineRef2 = echarts.init(lineRef2.value);
|
chartsObj.lineRef2 = echarts.init(lineRef2.value);
|
||||||
@@ -58,7 +58,7 @@ function initDeicount(yearData = [], sevenData = [], sevenDataTime = []) {
|
|||||||
xAxis: [
|
xAxis: [
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二'],
|
data: yearDataTime,
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: 'shadow'
|
type: 'shadow'
|
||||||
},
|
},
|
||||||
@@ -124,26 +124,35 @@ function chartTypeChange(t) {
|
|||||||
async function getChartDataMethod() {
|
async function getChartDataMethod() {
|
||||||
try {
|
try {
|
||||||
let yearData = ''
|
let yearData = ''
|
||||||
|
let yearDataTime = ''
|
||||||
let sevenData = ''
|
let sevenData = ''
|
||||||
let sevenDataTime = ''
|
let sevenDataTime = ''
|
||||||
if (chartType.value == 1) {
|
// if (chartType.value == 1) {
|
||||||
// 收益
|
// // 收益
|
||||||
const res1 = await getChartData(4, props.userId)
|
// const res1 = await getChartData(4, props.userId)
|
||||||
const res2 = await getChartData(2, props.userId)
|
// const res2 = await getChartData(2, props.userId)
|
||||||
yearData = res1.map(item => item.price.toFixed(2))
|
// yearData = res1.map(item => item.price.toFixed(2))
|
||||||
sevenData = res2.map(item => item.price.toFixed(2))
|
// sevenData = res2.map(item => item.price.toFixed(2))
|
||||||
sevenDataTime = res2.map(item => dayjs(item.times).format('MM/DD'))
|
// sevenDataTime = res2.map(item => dayjs(item.times).format('MM/DD'))
|
||||||
} else {
|
// } else {
|
||||||
// 流水
|
// // 流水
|
||||||
const res1 = await getChartData(3, props.userId)
|
// const res1 = await getChartData(3, props.userId)
|
||||||
const res2 = await getChartData(1, props.userId)
|
// const res2 = await getChartData(1, props.userId)
|
||||||
yearData = res1.map(item => item.consumeFee)
|
// yearData = res1.map(item => item.consumeFee)
|
||||||
sevenData = res2.map(item => item.consumeFee)
|
// sevenData = res2.map(item => item.consumeFee)
|
||||||
sevenDataTime = res2.map(item => dayjs(item.times).format('MM/DD'))
|
// sevenDataTime = res2.map(item => dayjs(item.times).format('MM/DD'))
|
||||||
}
|
// }
|
||||||
initDeicount(yearData, sevenData, sevenDataTime)
|
const res1 = await queryRecentYears()
|
||||||
|
const res2 = await queryRecentlyData()
|
||||||
|
yearData = res1.map(item => item.amount)
|
||||||
|
yearDataTime = res1.map(item => item.mymonth)
|
||||||
|
sevenData = res2.map(item => item.amount)
|
||||||
|
sevenDataTime = res2.map(item => item.createDate)
|
||||||
|
initDeicount(yearData, yearDataTime, sevenData, sevenDataTime)
|
||||||
chartLoading.value = false
|
chartLoading.value = false
|
||||||
} catch (error) { }
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批量设置 echarts resize
|
// 批量设置 echarts resize
|
||||||
|
|||||||
@@ -275,298 +275,322 @@ export const asyncRoutes = [
|
|||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
// },
|
// },
|
||||||
{
|
// {
|
||||||
path: '/organization',
|
// path: '/organization',
|
||||||
component: layout,
|
// component: layout,
|
||||||
meta: {
|
// meta: {
|
||||||
title: '大机构管理',
|
// title: '大机构管理',
|
||||||
roles: ['MG'],
|
// // roles: ['MG'],
|
||||||
isHide: true
|
// isHide: true
|
||||||
},
|
// },
|
||||||
redirect: '/organization/big_organization',
|
// redirect: '/organization/big_organization',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '/organization/big_organization',
|
// path: '/organization/big_organization',
|
||||||
component: () => import('@/views/organization/big_organization.vue'),
|
// component: () => import('@/views/organization/big_organization.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '大机构',
|
// title: '大机构',
|
||||||
icon: 'Tickets'
|
// icon: 'Tickets'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/organization/big_organization/agent_detail',
|
// path: '/organization/big_organization/agent_detail',
|
||||||
name: 'agent_detail',
|
// name: 'agent_detail',
|
||||||
component: () => import('@/views/organization/agent_detail.vue'),
|
// component: () => import('@/views/organization/agent_detail.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '机构详情',
|
// title: '机构详情',
|
||||||
isHide: true,
|
// isHide: true,
|
||||||
activeMenu: '/organization/big_organization'
|
// activeMenu: '/organization/big_organization'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/mini_organization_manage',
|
// path: '/mini_organization_manage',
|
||||||
component: layout,
|
// component: layout,
|
||||||
meta: {
|
// meta: {
|
||||||
title: '小机构管理',
|
// title: '小机构管理',
|
||||||
roles: ['FO'],
|
// // roles: ['FO'],
|
||||||
isHide: true
|
// isHide: true
|
||||||
},
|
// },
|
||||||
redirect: '/mini_organization_manage/mini_organization',
|
// redirect: '/mini_organization_manage/mini_organization',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '/mini_organization/mini_organization',
|
// path: '/mini_organization/mini_organization',
|
||||||
component: () => import('@/views/organization/mini_organization.vue'),
|
// component: () => import('@/views/organization/mini_organization.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '小机构',
|
// title: '小机构',
|
||||||
icon: 'SetUp'
|
// icon: 'SetUp'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/organization/mini_organization/mini_agent_detail',
|
// path: '/organization/mini_organization/mini_agent_detail',
|
||||||
name: 'mini_agent_detail',
|
// name: 'mini_agent_detail',
|
||||||
component: () => import('@/views/organization/mini_agent_detail.vue'),
|
// component: () => import('@/views/organization/mini_agent_detail.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '小机构详情',
|
// title: '小机构详情',
|
||||||
isHide: true,
|
// isHide: true,
|
||||||
activeMenu: '/mini_organization/mini_organization'
|
// activeMenu: '/mini_organization/mini_organization'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/agent_manage',
|
// path: '/agent_manage',
|
||||||
component: layout,
|
// component: layout,
|
||||||
meta: {
|
// meta: {
|
||||||
title: '大代理管理',
|
// title: '大代理管理',
|
||||||
roles: ['FO', 'SO'],
|
// // roles: ['FO', 'SO'],
|
||||||
isHide: true
|
// isHide: true
|
||||||
},
|
// },
|
||||||
redirect: '/agent_manage/agent_list',
|
// redirect: '/agent_manage/agent_list',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '/agent_manage/agent_list',
|
// path: '/agent_manage/agent_list',
|
||||||
component: () => import('@/views/organization/agent_list.vue'),
|
// component: () => import('@/views/organization/agent_list.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '大代理',
|
// title: '大代理',
|
||||||
icon: 'Discount'
|
// icon: 'Discount'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/promotion_manage',
|
// path: '/promotion_manage',
|
||||||
component: layout,
|
// component: layout,
|
||||||
meta: {
|
// meta: {
|
||||||
title: '代理',
|
// title: '代理',
|
||||||
icon: 'Connection',
|
// icon: 'Connection',
|
||||||
},
|
// },
|
||||||
redirect: '/promotion_manage/one_promotion_list',
|
// redirect: '/promotion_manage/one_promotion_list',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '/promotion_manage/one_promotion_list',
|
// path: '/promotion_manage/one_promotion_list',
|
||||||
component: () => import('@/views/organization/one_promotion_list.vue'),
|
// component: () => import('@/views/organization/one_promotion_list.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '一级代理',
|
// title: '一级代理',
|
||||||
icon: 'User',
|
// icon: 'User',
|
||||||
roles: ['FO', 'SO', 'AG']
|
// // roles: ['FO', 'SO', 'AG']
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/promotion_manage/two_promotion_list',
|
// path: '/promotion_manage/two_promotion_list',
|
||||||
component: () => import('@/views/organization/two_promotion_list.vue'),
|
// component: () => import('@/views/organization/two_promotion_list.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '二级代理',
|
// title: '二级代理',
|
||||||
icon: 'User',
|
// icon: 'User',
|
||||||
roles: ['FO', 'SO', 'AG', 'FB']
|
// // roles: ['FO', 'SO', 'AG', 'FB']
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: '/shop_manage',
|
path: '/shop_manage',
|
||||||
component: layout,
|
component: layout,
|
||||||
meta: {
|
meta: {
|
||||||
title: '商家管理',
|
title: '商户信息',
|
||||||
roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
|
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
|
||||||
icon: 'Handbag'
|
icon: 'Handbag'
|
||||||
},
|
},
|
||||||
redirect: '/shop_manage/shop_list',
|
redirect: '/shop_manage/shop_list',
|
||||||
children: [
|
children: [
|
||||||
{
|
// {
|
||||||
path: '/shop_manage/shop_list',
|
// path: '/shop_manage/shop_list',
|
||||||
name: 'shop_list',
|
// name: 'shop_list',
|
||||||
component: () => import('@/views/organization/shop_list.vue'),
|
// component: () => import('@/views/organization/shop_list.vue'),
|
||||||
meta: {
|
// meta: {
|
||||||
title: '商家列表',
|
// title: '商家列表',
|
||||||
icon: 'Tickets'
|
// icon: 'Tickets'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: '/shop_manage/shop_detail',
|
path: '/shop_manage/shop_detail',
|
||||||
name: 'shop_detail',
|
name: 'shop_detail',
|
||||||
component: () => import('@/views/organization/shop_detail.vue'),
|
component: () => import('@/views/organization/shop_detail.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '详情',
|
title: '基础信息',
|
||||||
isHide: true,
|
icon: 'Tickets'
|
||||||
activeMenu: '/shop_manage/shop_list'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop_manage/maker_apply',
|
path: '/shop_manage/appkey',
|
||||||
component: () => import('@/views/organization/maker_apply.vue'),
|
component: () => import('@/views/organization/appkey.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '创客申请',
|
title: '支付参数',
|
||||||
icon: 'User'
|
icon: 'Connection'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/order',
|
||||||
|
component: layout,
|
||||||
|
meta: {
|
||||||
|
title: '订单管理',
|
||||||
|
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
|
||||||
|
icon: 'Handbag',
|
||||||
|
isHide: true
|
||||||
|
},
|
||||||
|
redirect: '/order/order_list',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '/order/order_list',
|
||||||
|
name: 'order_list',
|
||||||
|
component: () => import('@/views/order/order_list.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '订单列表',
|
||||||
|
icon: 'Tickets'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// path: '/shop_manage/cashier_dot',
|
|
||||||
// component: () => import('@/views/organization/cashier_dot.vue'),
|
|
||||||
// meta: {
|
|
||||||
// title: '收银点列表',
|
|
||||||
// icon: 'PieChart',
|
|
||||||
// roles: ['MG']
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
path: '/shop_manage/cashierdot_detail',
|
|
||||||
name: 'cashierdot_detail',
|
|
||||||
component: () => import('@/views/organization/cashierdot_detail.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '详情',
|
|
||||||
isHide: true,
|
|
||||||
activeMenu: '/shop_manage/cashier_dot'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/withdraw_manage',
|
path: '/doc',
|
||||||
component: layout,
|
component: layout,
|
||||||
meta: {
|
meta: {
|
||||||
title: '提现管理',
|
title: '开发文档',
|
||||||
roles: ['FO', 'SO'],
|
// roles: ['FO', 'SO', 'AG', 'FB', 'SB'],
|
||||||
|
icon: 'Handbag',
|
||||||
isHide: true
|
isHide: true
|
||||||
},
|
},
|
||||||
redirect: '/withdraw_manage/withdraw_list',
|
redirect: '/doc/doc_detail',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/withdraw_manage/withdraw_list',
|
path: '/doc/doc_detail',
|
||||||
component: () => import('@/views/withdraw/withdraw_list.vue'),
|
name: 'doc_detail',
|
||||||
|
component: () => import('@/views/doc/doc_detail.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '提现申请',
|
title: '开发文档',
|
||||||
icon: 'CreditCard'
|
icon: 'Document'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/device_manage',
|
|
||||||
component: layout,
|
|
||||||
meta: {
|
|
||||||
title: '设备管理',
|
|
||||||
isHide: true
|
|
||||||
},
|
|
||||||
redirect: '/device_manage/device_list',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/device_manage/device_list',
|
|
||||||
component: () => import('@/views/device/device_list.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '设备列表',
|
|
||||||
icon: 'TakeawayBox'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/total_earnings',
|
|
||||||
component: layout,
|
|
||||||
meta: {
|
|
||||||
title: '累计收益管理',
|
|
||||||
isHide: true
|
|
||||||
},
|
|
||||||
redirect: '/total_earnings/total_earnings_list',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/total_earnings/total_earnings_list',
|
|
||||||
component: () => import('@/views/total_earnings/total_earnings_list.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '累计收益',
|
|
||||||
icon: 'Coin'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/promotion',
|
|
||||||
component: layout,
|
|
||||||
meta: {
|
|
||||||
title: '推广图片管理',
|
|
||||||
isHide: true,
|
|
||||||
roles: ['MG']
|
|
||||||
},
|
|
||||||
redirect: '/promotion/promotion_list',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/promotion/promotion_list',
|
|
||||||
component: () => import('@/views/promotion/promotion_list.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '推广图片',
|
|
||||||
icon: 'PictureRounded'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/app_manage',
|
|
||||||
component: layout,
|
|
||||||
meta: {
|
|
||||||
title: 'APP管理',
|
|
||||||
icon: 'Iphone',
|
|
||||||
roles: ['MG']
|
|
||||||
},
|
|
||||||
redirect: '/app_manage/menu_list',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/app_manage/menu_list',
|
|
||||||
component: () => import('@/views/app_manage/menu_list.vue'),
|
|
||||||
meta: {
|
|
||||||
title: '菜单管理',
|
|
||||||
icon: 'Tickets'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/setting',
|
|
||||||
component: layout,
|
|
||||||
meta: {
|
|
||||||
title: '系统设置',
|
|
||||||
icon: 'Setting',
|
|
||||||
roles: ['MG']
|
|
||||||
},
|
|
||||||
redirect: '/setting/appid_manage',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/setting/appid_manage',
|
|
||||||
component: () => import('@/views/setting/appid_manage.vue'),
|
|
||||||
meta: {
|
|
||||||
title: 'Appid管理',
|
|
||||||
icon: 'Tickets'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// path: '/withdraw_manage',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: '提现管理',
|
||||||
|
// // roles: ['FO', 'SO'],
|
||||||
|
// isHide: true
|
||||||
|
// },
|
||||||
|
// redirect: '/withdraw_manage/withdraw_list',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/withdraw_manage/withdraw_list',
|
||||||
|
// component: () => import('@/views/withdraw/withdraw_list.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: '提现申请',
|
||||||
|
// icon: 'CreditCard'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/device_manage',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: '设备管理',
|
||||||
|
// isHide: true
|
||||||
|
// },
|
||||||
|
// redirect: '/device_manage/device_list',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/device_manage/device_list',
|
||||||
|
// component: () => import('@/views/device/device_list.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: '设备列表',
|
||||||
|
// icon: 'TakeawayBox'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/total_earnings',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: '累计收益管理',
|
||||||
|
// isHide: true
|
||||||
|
// },
|
||||||
|
// redirect: '/total_earnings/total_earnings_list',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/total_earnings/total_earnings_list',
|
||||||
|
// component: () => import('@/views/total_earnings/total_earnings_list.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: '累计收益',
|
||||||
|
// icon: 'Coin'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/promotion',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: '推广图片管理',
|
||||||
|
// isHide: true,
|
||||||
|
// // roles: ['MG']
|
||||||
|
// },
|
||||||
|
// redirect: '/promotion/promotion_list',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/promotion/promotion_list',
|
||||||
|
// component: () => import('@/views/promotion/promotion_list.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: '推广图片',
|
||||||
|
// icon: 'PictureRounded'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/app_manage',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: 'APP管理',
|
||||||
|
// icon: 'Iphone',
|
||||||
|
// // roles: ['MG']
|
||||||
|
// },
|
||||||
|
// redirect: '/app_manage/menu_list',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/app_manage/menu_list',
|
||||||
|
// component: () => import('@/views/app_manage/menu_list.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: '菜单管理',
|
||||||
|
// icon: 'Tickets'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/setting',
|
||||||
|
// component: layout,
|
||||||
|
// meta: {
|
||||||
|
// title: '系统设置',
|
||||||
|
// icon: 'Setting',
|
||||||
|
// // roles: ['MG']
|
||||||
|
// },
|
||||||
|
// redirect: '/setting/appid_manage',
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '/setting/appid_manage',
|
||||||
|
// component: () => import('@/views/setting/appid_manage.vue'),
|
||||||
|
// meta: {
|
||||||
|
// title: 'Appid管理',
|
||||||
|
// icon: 'Tickets'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: '/notice',
|
path: '/notice',
|
||||||
component: layout,
|
component: layout,
|
||||||
meta: {
|
meta: {
|
||||||
title: '消息管理',
|
title: '消息管理',
|
||||||
isHide: true,
|
isHide: true,
|
||||||
roles: ['MG']
|
// roles: ['MG']
|
||||||
},
|
},
|
||||||
redirect: '/notice/index',
|
redirect: '/notice/index',
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { ENUMS } from "@/utils/enums.js";
|
|||||||
export const useConfigure = defineStore("useConfigure", {
|
export const useConfigure = defineStore("useConfigure", {
|
||||||
state: () => {
|
state: () => {
|
||||||
return {
|
return {
|
||||||
projectName: '银收客机构管理端',
|
projectName: '银收客开放平台',
|
||||||
defaultActive: "/home", // 默认选中的菜单
|
defaultActive: "/home", // 默认选中的菜单
|
||||||
configure: {
|
configure: {
|
||||||
// ---------- 主题 ----------
|
// ---------- 主题 ----------
|
||||||
|
|||||||
13
src/views/doc/doc_detail.vue
Normal file
13
src/views/doc/doc_detail.vue
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<iframe src="https://openplat.sxczgkj.cn/" class="iframe"></iframe>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.iframe {
|
||||||
|
border: none;
|
||||||
|
width: 100%;
|
||||||
|
height: 99%;
|
||||||
|
border-radius: 14px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<img class="img" src="../assets/home_icon1.png">
|
<img class="img" src="../assets/home_icon1.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="title">团队总流水</div>
|
<div class="title">今日收款</div>
|
||||||
<div class="num">
|
<div class="num">
|
||||||
<count-to :start-val="0" :decimals="2" :end-val="homeData.sumConsumeFee" :duration="1000" />
|
<count-to :start-val="0" :decimals="2" :end-val="homeData.sumConsumeFee" :duration="1000" />
|
||||||
<!-- {{ homeData.sumConsumeFee }} -->
|
<!-- {{ homeData.sumConsumeFee }} -->
|
||||||
@@ -22,14 +22,14 @@
|
|||||||
<img class="img" src="../assets/home_icon2.png">
|
<img class="img" src="../assets/home_icon2.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="title">总收益</div>
|
<div class="title">总收款</div>
|
||||||
<div class="num">
|
<div class="num">
|
||||||
<count-to :start-val="0" :decimals="2" :end-val="homeData.sumfansShareMoney" :duration="1000" />
|
<count-to :start-val="0" :decimals="2" :end-val="homeData.sumfansShareMoney" :duration="1000" />
|
||||||
<span class="i">元</span>
|
<span class="i">元</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<!-- <div class="item">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img class="img" src="../assets/home_icon3.png">
|
<img class="img" src="../assets/home_icon3.png">
|
||||||
</div>
|
</div>
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
<span class="i">元</span>
|
<span class="i">元</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="item">
|
<!-- <div class="item">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img class="img" src="../assets/home_icon4.png">
|
<img class="img" src="../assets/home_icon4.png">
|
||||||
</div>
|
</div>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<span class="i">%</span>
|
<span class="i">%</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card mt15">
|
<div class="card mt15">
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { getIndexData } from '@/api/home.js'
|
import { getIndexData, querySumAmount } from '@/api/home.js'
|
||||||
import { useUser } from "@/store/user.js";
|
import { useUser } from "@/store/user.js";
|
||||||
import chartCard from '@/components/chartCard.vue';
|
import chartCard from '@/components/chartCard.vue';
|
||||||
|
|
||||||
@@ -77,9 +77,9 @@ let homeData = reactive({
|
|||||||
// 获取首页数据
|
// 获取首页数据
|
||||||
async function getIndexDataHandle() {
|
async function getIndexDataHandle() {
|
||||||
try {
|
try {
|
||||||
const res = await getIndexData()
|
const res = await querySumAmount()
|
||||||
homeData.sumConsumeFee = res.sumConsumeFee
|
homeData.sumConsumeFee = res.yestedayAmount
|
||||||
homeData.sumfansShareMoney = res.sumfansShareMoney
|
homeData.sumfansShareMoney = res.sumAmount
|
||||||
homeData.yestedayShareMoney = res.yestedayShareMoney
|
homeData.yestedayShareMoney = res.yestedayShareMoney
|
||||||
homeData.currentFee = res.currentFee
|
homeData.currentFee = res.currentFee
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="login-case">
|
<div class="login-case">
|
||||||
<div class="form-case">
|
<div class="form-case">
|
||||||
<span class="Hello">Hello !</span>
|
<span class="Hello">Hello !</span>
|
||||||
<span class="title">欢迎来到银收客</span>
|
<span class="title">欢迎来到银收客开放平台</span>
|
||||||
<el-form ref="ruleFormRef" :rules="rules" :model="form">
|
<el-form ref="ruleFormRef" :rules="rules" :model="form">
|
||||||
<el-form-item prop="loginName">
|
<el-form-item prop="loginName">
|
||||||
<el-input class="inp" v-model="form.loginName" clearable autocomplete="new-password" size="large"
|
<el-input class="inp" v-model="form.loginName" clearable autocomplete="new-password" size="large"
|
||||||
@@ -12,13 +12,13 @@
|
|||||||
<el-input class="inp" v-model="form.password" clearable autocomplete="new-password" size="large" type="password"
|
<el-input class="inp" v-model="form.password" clearable autocomplete="new-password" size="large" type="password"
|
||||||
:prefix-icon="Lock" placeholder="请输入密码" style="width: 100%;" />
|
:prefix-icon="Lock" placeholder="请输入密码" style="width: 100%;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-select v-model="form.userType" placeholder="请选择机构类型" size="large" style="width: 100%;">
|
<el-select v-model="form.userType" placeholder="请选择机构类型" size="large" style="width: 100%;">
|
||||||
<el-option key="MG" label="平台" value="MG"></el-option>
|
<el-option key="MG" label="平台" value="MG"></el-option>
|
||||||
<el-option key="FO" label="大机构" value="FO"></el-option>
|
<el-option key="FO" label="大机构" value="FO"></el-option>
|
||||||
<el-option key="SO" label="小机构" value="SO"></el-option>
|
<el-option key="SO" label="小机构" value="SO"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<!-- <el-form-item prop="code">
|
<!-- <el-form-item prop="code">
|
||||||
<div class="code-case">
|
<div class="code-case">
|
||||||
<el-input class="inp" v-model="form.code" clearable autocomplete="new-password" size="large"
|
<el-input class="inp" v-model="form.code" clearable autocomplete="new-password" size="large"
|
||||||
@@ -65,7 +65,7 @@ function getCode(code) {
|
|||||||
const form = reactive({
|
const form = reactive({
|
||||||
loginName: "",
|
loginName: "",
|
||||||
password: "",
|
password: "",
|
||||||
userType: 'MG',
|
userType: 'MC',
|
||||||
code: "",
|
code: "",
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
|
|||||||
272
src/views/order/order_list.vue
Normal file
272
src/views/order/order_list.vue
Normal file
@@ -0,0 +1,272 @@
|
|||||||
|
<template>
|
||||||
|
<div class="card">
|
||||||
|
<el-space>
|
||||||
|
<el-input v-model="tableOptions.orderNo" placeholder="请输入订单号" style="width: 200px;" />
|
||||||
|
<el-select v-model="tableOptions.status" placeholder="请选择状态">
|
||||||
|
<el-option :label="item.label" :value="item.state" v-for="item in status" :key="item.state"></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-select v-model="tableOptions.payType" placeholder="请选择支付类型">
|
||||||
|
<el-option :label="item.label" :value="item.key" v-for="item in payTypes" :key="item.key"></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="primary" icon="Search" @click="searchHandle">搜索</el-button>
|
||||||
|
<el-button icon="RefreshRight" @click="resizeTable">重置</el-button>
|
||||||
|
</el-space>
|
||||||
|
<div class="table mt15">
|
||||||
|
<el-table ref="table" :data="tableOptions.list" border height="100%" v-loading="tableOptions.loading">
|
||||||
|
<el-table-column prop="amount" label="金额">
|
||||||
|
<template #default="scope">
|
||||||
|
¥{{ scope.row.amount }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column prop="orderType" label="订单类型">
|
||||||
|
<template #default="scope">
|
||||||
|
<span v-if="scope.row.orderType == 1">反扫收款</span>
|
||||||
|
<span v-if="scope.row.orderType == 2">收款码</span>
|
||||||
|
<span v-if="scope.row.orderType == 3">会员充值</span>
|
||||||
|
<span v-if="scope.row.orderType == 4">POS</span>
|
||||||
|
<span v-if="scope.row.orderType == 5">反扫会员充值</span>
|
||||||
|
<span v-if="scope.row.orderType == 6">扫码王、QR68机具收款</span>
|
||||||
|
<span v-if="scope.row.orderType == 7">H5</span>
|
||||||
|
<span v-if="scope.row.orderType == 8">升级收费</span>
|
||||||
|
<span v-if="scope.row.orderType == 9">小程序</span>
|
||||||
|
<span v-if="scope.row.orderType == 10">小程序线上店订单</span>
|
||||||
|
<span v-if="scope.row.orderType == 11">缴费通</span>
|
||||||
|
<span v-if="scope.row.orderType == 99">插件</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
<!-- <el-table-column prop="merchantCode" label="商户号"></el-table-column> -->
|
||||||
|
<el-table-column prop="orderNo" label="订单号"></el-table-column>
|
||||||
|
<el-table-column prop="transNo" label="三方订单号"></el-table-column>
|
||||||
|
<el-table-column prop="appletsAppId" label="小程序appid"></el-table-column>
|
||||||
|
<el-table-column prop="payType" label="支付类型">
|
||||||
|
<template #default="scope">
|
||||||
|
{{ filterPayType(scope.row.payType) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="status" label="状态">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag type="info" disable-transitions round v-if="scope.row.status == 0">交易失败</el-tag>
|
||||||
|
<el-tag type="success" disable-transitions round v-if="scope.row.status == 1">交易成功</el-tag>
|
||||||
|
<el-tag type="danger" disable-transitions round v-if="scope.row.status == 2">退款成功</el-tag>
|
||||||
|
<el-tag type="danger" disable-transitions round v-if="scope.row.status == 3">退款失败</el-tag>
|
||||||
|
<el-tag type="danger" disable-transitions round v-if="scope.row.status == 4">退款中</el-tag>
|
||||||
|
<el-tag type="danger" disable-transitions round v-if="scope.row.status == 5">待付款</el-tag>
|
||||||
|
<el-tag type="danger" disable-transitions round v-if="scope.row.status == 6">部分退款</el-tag>
|
||||||
|
<el-tag type="warning" disable-transitions round v-if="scope.row.status == 7">待支付</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="orderInfo" label="订单备注"></el-table-column>
|
||||||
|
<el-table-column prop="transTime" label="支付时间">
|
||||||
|
<template #default="scope">
|
||||||
|
{{ scope.row.transTime && dayjs(scope.row.transTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="createTime" label="创建时间">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-text>{{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}</el-text>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="操作" width="120">
|
||||||
|
<template #default="scope">
|
||||||
|
<template v-if="scope.row.status == 0">
|
||||||
|
<el-popconfirm title="是否通过审核?" width="200" confirm-button-text="通过" cancel-button-text="驳回"
|
||||||
|
@cancel="checkHandle(scope.row, 5)" @confirm="checkHandle(scope.row, 1)">
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="primary" size="small" icon="EditPen">待审核</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-button type="default" size="small" icon="EditPen" disabled v-if="scope.row.status == 1">
|
||||||
|
已通过
|
||||||
|
</el-button>
|
||||||
|
<el-button type="default" size="small" icon="EditPen" disabled v-if="scope.row.status == 5">
|
||||||
|
已驳回
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="mt15">
|
||||||
|
<el-pagination layout="prev, pager, next, total, sizes, jumper" background
|
||||||
|
v-model:current-page="tableOptions.pageNum" v-model:page-size="tableOptions.pageSize"
|
||||||
|
:page-size="tableOptions.pageSize" :page-sizes="[10, 20, 30, 50]" :total="tableOptions.total"
|
||||||
|
@size-change="paginationChange" @current-change="paginationChange" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { onMounted, ref } from 'vue';
|
||||||
|
import { dayjs, ElMessage } from 'element-plus';
|
||||||
|
import { queryOrder } from '@/api/shop.js'
|
||||||
|
|
||||||
|
const payTypes = ref([
|
||||||
|
{
|
||||||
|
key: 'alipay',
|
||||||
|
label: '支付宝App支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'alipay_qr',
|
||||||
|
label: '支付宝正扫'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'alipay_wap',
|
||||||
|
label: '支付宝H5支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'alipay_lite',
|
||||||
|
label: '支付宝小程序支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'alipay_pub',
|
||||||
|
label: '支付宝生活号支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'alipay_scan',
|
||||||
|
label: '支付宝反扫'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'wx_pub',
|
||||||
|
label: '微信公众号支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'wx_lite',
|
||||||
|
label: '微信小程序支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'wx_scan',
|
||||||
|
label: '微信反扫'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union',
|
||||||
|
label: '银联云闪付App'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union_qr',
|
||||||
|
label: '银联云闪付正扫'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union_wap',
|
||||||
|
label: '银联云闪付H5支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union_scan',
|
||||||
|
label: '银联云闪付反扫'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union_online',
|
||||||
|
label: '银联H5支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'union_checkout',
|
||||||
|
label: '银联统一收银台支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'fast_pay',
|
||||||
|
label: '快捷支付'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'b2c',
|
||||||
|
label: '个人网银支付'
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
|
const status = ref([
|
||||||
|
{
|
||||||
|
state: 0,
|
||||||
|
label: '交易失败'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 1,
|
||||||
|
label: '交易成功'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 2,
|
||||||
|
label: '退款成功'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 3,
|
||||||
|
label: '退款失败'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 4,
|
||||||
|
label: '退款中'
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// state: 5,
|
||||||
|
// label: '待付款'
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
state: 6,
|
||||||
|
label: '部分退款'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: 7,
|
||||||
|
label: '待支付'
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
|
const table = ref(null)
|
||||||
|
|
||||||
|
function filterPayType(type) {
|
||||||
|
return type ? payTypes.value.find(item => item.key == type).label : type
|
||||||
|
}
|
||||||
|
|
||||||
|
// 表格参数
|
||||||
|
const tableOptions = reactive({
|
||||||
|
loading: true,
|
||||||
|
status: '',
|
||||||
|
orderNo: '',
|
||||||
|
payType: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10
|
||||||
|
})
|
||||||
|
|
||||||
|
// 重置表格
|
||||||
|
function resizeTable() {
|
||||||
|
tableOptions.orderNo = ''
|
||||||
|
tableOptions.status = ''
|
||||||
|
tableOptions.payType = ''
|
||||||
|
searchHandle()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 搜索
|
||||||
|
function searchHandle() {
|
||||||
|
tableOptions.pageNum = 1;
|
||||||
|
paginationChange()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页回调
|
||||||
|
function paginationChange() {
|
||||||
|
tableOptions.loading = true
|
||||||
|
getUserMarkAjax()
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getUserMarkAjax() {
|
||||||
|
try {
|
||||||
|
const res = await queryOrder({
|
||||||
|
page: tableOptions.pageNum,
|
||||||
|
pageSize: tableOptions.pageSize,
|
||||||
|
orderNo: tableOptions.orderNo,
|
||||||
|
status: tableOptions.status,
|
||||||
|
payType: tableOptions.payType
|
||||||
|
})
|
||||||
|
tableOptions.loading = false
|
||||||
|
tableOptions.list = res.list
|
||||||
|
tableOptions.total = res.total
|
||||||
|
table.value.setScrollTop(0)
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getUserMarkAjax()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
||||||
149
src/views/organization/appkey.vue
Normal file
149
src/views/organization/appkey.vue
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
<template>
|
||||||
|
<div class="card">
|
||||||
|
<!-- <el-space>
|
||||||
|
<el-input v-model="tableOptions.phone" placeholder="请输入手机号" style="width: 200px;" />
|
||||||
|
<el-input v-model="tableOptions.name" placeholder="请输入姓名" style="width: 200px;" />
|
||||||
|
<el-button type="primary" icon="Search" @click="searchHandle">搜索</el-button>
|
||||||
|
<el-button icon="RefreshRight" @click="resizeTable">重置</el-button>
|
||||||
|
</el-space> -->
|
||||||
|
<div class="table mt15">
|
||||||
|
<el-table ref="table" :data="tableOptions.list" border height="100%" v-loading="tableOptions.loading">
|
||||||
|
<el-table-column prop="organNo" label="商户号"></el-table-column>
|
||||||
|
<el-table-column prop="privateKey" label="私钥">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tooltip>
|
||||||
|
<template #content>
|
||||||
|
<div class="content">点击复制:{{ scope.row.privateKey }}</div>
|
||||||
|
</template>
|
||||||
|
<el-text line-clamp="1" type="primary" @click="copy(scope.row.privateKey)">{{
|
||||||
|
scope.row.privateKey }}</el-text>
|
||||||
|
</el-tooltip>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="publicKey" label="公钥">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tooltip>
|
||||||
|
<template #content>
|
||||||
|
<div class="content">点击复制:{{ scope.row.publicKey }}</div>
|
||||||
|
</template>
|
||||||
|
<el-text line-clamp="1" type="primary" @click="copy(scope.row.publicKey)">{{ scope.row.publicKey
|
||||||
|
}}</el-text>
|
||||||
|
</el-tooltip>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="status" label="状态">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag type="success" disable-transitions round v-if="scope.row.status == 0">正常</el-tag>
|
||||||
|
<el-tag type="info" disable-transitions round v-if="scope.row.status == 1">禁用</el-tag>
|
||||||
|
<el-tag type="warning" disable-transitions round v-if="scope.row.status == 2">待激活</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="createTime" label="更新时间">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-text>{{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}</el-text>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="操作" width="120">
|
||||||
|
<template #default="scope">
|
||||||
|
<template v-if="scope.row.status == 0">
|
||||||
|
<el-popconfirm title="是否通过审核?" width="200" confirm-button-text="通过" cancel-button-text="驳回"
|
||||||
|
@cancel="checkHandle(scope.row, 5)" @confirm="checkHandle(scope.row, 1)">
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="primary" size="small" icon="EditPen">待审核</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-button type="default" size="small" icon="EditPen" disabled v-if="scope.row.status == 1">
|
||||||
|
已通过
|
||||||
|
</el-button>
|
||||||
|
<el-button type="default" size="small" icon="EditPen" disabled v-if="scope.row.status == 5">
|
||||||
|
已驳回
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="mt15">
|
||||||
|
<el-pagination layout="prev, pager, next, total, sizes, jumper" background
|
||||||
|
v-model:current-page="tableOptions.pageNum" v-model:page-size="tableOptions.pageSzie"
|
||||||
|
:page-size="tableOptions.pageSzie" :page-sizes="[10, 20, 30, 50]" :total="tableOptions.total"
|
||||||
|
@size-change="paginationChange" @current-change="paginationChange" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { onMounted } from 'vue';
|
||||||
|
import { dayjs, ElMessage } from 'element-plus';
|
||||||
|
import useClipboard from 'vue-clipboard3'
|
||||||
|
import { getUserMark, updateUserMark, queryOrgan } from '@/api/shop.js'
|
||||||
|
const { toClipboard } = useClipboard()
|
||||||
|
|
||||||
|
const table = ref(null)
|
||||||
|
|
||||||
|
|
||||||
|
// 表格参数
|
||||||
|
const tableOptions = reactive({
|
||||||
|
loading: true,
|
||||||
|
phone: '',
|
||||||
|
name: '',
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10
|
||||||
|
})
|
||||||
|
|
||||||
|
// 复制
|
||||||
|
async function copy(text) {
|
||||||
|
try {
|
||||||
|
await toClipboard(text)
|
||||||
|
ElMessage.success('复制成功')
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 重置表格
|
||||||
|
function resizeTable() {
|
||||||
|
tableOptions.phone = ''
|
||||||
|
tableOptions.name = ''
|
||||||
|
searchHandle()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 搜索
|
||||||
|
function searchHandle() {
|
||||||
|
tableOptions.pageNum = 1;
|
||||||
|
paginationChange()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页回调
|
||||||
|
function paginationChange() {
|
||||||
|
tableOptions.loading = true
|
||||||
|
getUserMarkAjax()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取创客审核列表
|
||||||
|
async function getUserMarkAjax() {
|
||||||
|
try {
|
||||||
|
const res = await queryOrgan()
|
||||||
|
tableOptions.loading = false
|
||||||
|
tableOptions.list = [res]
|
||||||
|
tableOptions.total = 1
|
||||||
|
table.value.setScrollTop(0)
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getUserMarkAjax()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.content {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="card">
|
|
||||||
<el-space>
|
|
||||||
<el-input v-model="tableOptions.phone" placeholder="请输入手机号" style="width: 200px;" />
|
|
||||||
<el-input v-model="tableOptions.name" placeholder="请输入姓名" style="width: 200px;" />
|
|
||||||
<el-button type="primary" icon="Search" @click="searchHandle">搜索</el-button>
|
|
||||||
<el-button icon="RefreshRight" @click="resizeTable">重置</el-button>
|
|
||||||
</el-space>
|
|
||||||
<div class="table mt15">
|
|
||||||
<el-table ref="table" :data="tableOptions.list" border height="100%" v-loading="tableOptions.loading">
|
|
||||||
<el-table-column prop="name" label="收银点名称"></el-table-column>
|
|
||||||
<el-table-column prop="subcode" label="收银点code"></el-table-column>
|
|
||||||
<el-table-column prop="address" label="收银点地址"></el-table-column>
|
|
||||||
<el-table-column prop="masterName" label="店铺名称"></el-table-column>
|
|
||||||
<el-table-column label="操作" width="120">
|
|
||||||
<template #default="scope">
|
|
||||||
<RouterLink
|
|
||||||
:to="{ name: 'cashierdot_detail', query: { id: scope.row.masterUserId, name: scope.row.name, account: scope.row.subcode, merchantcode: scope.row.masterCode } }">
|
|
||||||
<el-button type="primary" size="small" icon="Search" v-permission="['MG']">
|
|
||||||
商户详情
|
|
||||||
</el-button>
|
|
||||||
</RouterLink>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<div class="mt15">
|
|
||||||
<el-pagination layout="prev, pager, next, total, sizes, jumper" background
|
|
||||||
v-model:current-page="tableOptions.pageNum" v-model:page-size="tableOptions.pageSzie"
|
|
||||||
:page-size="tableOptions.pageSzie" :page-sizes="[10, 20, 30, 50]" :total="tableOptions.total"
|
|
||||||
@size-change="paginationChange" @current-change="paginationChange" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { onMounted } from 'vue';
|
|
||||||
import { dayjs, ElMessage } from 'element-plus';
|
|
||||||
import { queryMerchantCashPlace } from '@/api/shop.js'
|
|
||||||
|
|
||||||
const table = ref(null)
|
|
||||||
|
|
||||||
|
|
||||||
// 表格参数
|
|
||||||
const tableOptions = reactive({
|
|
||||||
loading: true,
|
|
||||||
phone: '',
|
|
||||||
name: '',
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10
|
|
||||||
})
|
|
||||||
|
|
||||||
// 重置表格
|
|
||||||
function resizeTable() {
|
|
||||||
tableOptions.phone = ''
|
|
||||||
tableOptions.name = ''
|
|
||||||
searchHandle()
|
|
||||||
}
|
|
||||||
|
|
||||||
// 搜索
|
|
||||||
function searchHandle() {
|
|
||||||
tableOptions.pageNum = 1;
|
|
||||||
paginationChange()
|
|
||||||
}
|
|
||||||
|
|
||||||
// 分页回调
|
|
||||||
function paginationChange() {
|
|
||||||
tableOptions.loading = true
|
|
||||||
getUserMarkAjax()
|
|
||||||
}
|
|
||||||
|
|
||||||
// 审核
|
|
||||||
async function checkHandle(row, type) {
|
|
||||||
try {
|
|
||||||
await updateUserMark({
|
|
||||||
status: type,
|
|
||||||
id: row.userId,
|
|
||||||
remark: ''
|
|
||||||
})
|
|
||||||
ElMessage.success('提交成功')
|
|
||||||
resizeTable()
|
|
||||||
} catch (error) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取创客审核列表
|
|
||||||
async function getUserMarkAjax() {
|
|
||||||
try {
|
|
||||||
const res = await queryMerchantCashPlace({
|
|
||||||
pageNum: tableOptions.pageNum,
|
|
||||||
pageSzie: tableOptions.pageSize
|
|
||||||
})
|
|
||||||
tableOptions.loading = false
|
|
||||||
tableOptions.list = res.list
|
|
||||||
tableOptions.total = res.total
|
|
||||||
table.value.setScrollTop(0)
|
|
||||||
} catch (error) {
|
|
||||||
console.log(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
getUserMarkAjax()
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
@@ -1,270 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="card">
|
|
||||||
<div class="nav_wrap">
|
|
||||||
<el-radio-group v-model="type">
|
|
||||||
<el-radio-button :label="item.type" v-for="item in navs" :key="item.type">
|
|
||||||
{{ item.label }}
|
|
||||||
</el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</div>
|
|
||||||
<div class="container mt15">
|
|
||||||
<div class="compont_wrap">
|
|
||||||
<component :is="componentList[type]" />
|
|
||||||
</div>
|
|
||||||
<div class="shop_info">
|
|
||||||
<div class="header">
|
|
||||||
<el-text size="large">商户关联信息</el-text>
|
|
||||||
</div>
|
|
||||||
<div class="title_wrap">
|
|
||||||
<el-text>身份信息关联(进件成功的)商户数量</el-text>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
|
||||||
<div class="row">
|
|
||||||
<el-space>
|
|
||||||
<el-text>实名身份证</el-text>
|
|
||||||
<el-text type="warning" tag="ins">{{ authInfo.CertNoCount }}</el-text>
|
|
||||||
</el-space>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<el-space>
|
|
||||||
<el-text>结算身份证</el-text>
|
|
||||||
<el-text type="warning" tag="ins">{{ authInfo.countMbiName }}</el-text>
|
|
||||||
</el-space>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<el-space>
|
|
||||||
<el-text>同名商户</el-text>
|
|
||||||
<el-text type="warning" tag="ins">{{ authInfo.countAccountCount }}</el-text>
|
|
||||||
</el-space>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="title_wrap">
|
|
||||||
<el-text>用户IP记录</el-text>
|
|
||||||
</div>
|
|
||||||
<div class="mt15">
|
|
||||||
<el-table :data="tableOptions.list" border height="200" v-loading="tableOptions.loading">
|
|
||||||
<el-table-column prop="ip" label="IP地址"></el-table-column>
|
|
||||||
<el-table-column prop="remark" label="操作"></el-table-column>
|
|
||||||
<el-table-column prop="createtime" label="操作时间">
|
|
||||||
<template #default="scope">
|
|
||||||
{{ dayjs(scope.row.createtime).format('YYYY-MM-DD HH:mm:ss') }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div class="mt15">
|
|
||||||
<el-pagination layout="prev, pager, next, total, sizes, jumper" background
|
|
||||||
v-model:current-page="tableOptions.pageNum" v-model:page-size="tableOptions.pageSzie" small
|
|
||||||
:page-size="tableOptions.pageSzie" :page-sizes="[10, 20, 30, 50]" :total="tableOptions.total"
|
|
||||||
@size-change="paginationChange" @current-change="paginationChange" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { connectInfo, merchBaseInfo, merchantInfoDetail, merchBaseAccount, messageChannel, userIpPage, merchLicense } from '@/api/shop.js'
|
|
||||||
|
|
||||||
import authentication from './components/authentication.vue'
|
|
||||||
import shopInfo from './components/shopInfo.vue'
|
|
||||||
import settleInfo from './components/settleInfo.vue'
|
|
||||||
import aisleInfo from './components/aisleInfo.vue'
|
|
||||||
import businessLicense from './components/businessLicense.vue'
|
|
||||||
|
|
||||||
import { useRoute } from 'vue-router'
|
|
||||||
import { reactive } from 'vue'
|
|
||||||
import { dayjs } from 'element-plus'
|
|
||||||
const route = useRoute()
|
|
||||||
|
|
||||||
const authInfo = ref({})
|
|
||||||
|
|
||||||
const type = ref(1)
|
|
||||||
|
|
||||||
const componentList = {
|
|
||||||
1: authentication,
|
|
||||||
2: shopInfo,
|
|
||||||
3: businessLicense,
|
|
||||||
4: settleInfo,
|
|
||||||
5: aisleInfo
|
|
||||||
}
|
|
||||||
|
|
||||||
const navs = reactive([])
|
|
||||||
|
|
||||||
// 表格参数
|
|
||||||
const tableOptions = reactive({
|
|
||||||
loading: true,
|
|
||||||
list: [],
|
|
||||||
total: 0,
|
|
||||||
pageNum: 1,
|
|
||||||
pageSzie: 10
|
|
||||||
})
|
|
||||||
|
|
||||||
// 分页回调
|
|
||||||
function paginationChange() {
|
|
||||||
tableOptions.loading = true
|
|
||||||
userIpPageAjax()
|
|
||||||
}
|
|
||||||
|
|
||||||
// 实名认证信息页面(实名个数)
|
|
||||||
async function connectInfoAjax() {
|
|
||||||
try {
|
|
||||||
const res = await connectInfo(route.query.id)
|
|
||||||
authInfo.value = res
|
|
||||||
} catch (error) {
|
|
||||||
console.log('实名认证信息页面error:', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ip记录
|
|
||||||
async function userIpPageAjax() {
|
|
||||||
try {
|
|
||||||
const res = await userIpPage({
|
|
||||||
userId: route.query.id,
|
|
||||||
currPage: tableOptions.pageNum,
|
|
||||||
size: tableOptions.pageSzie
|
|
||||||
})
|
|
||||||
tableOptions.loading = false
|
|
||||||
tableOptions.list = res.list
|
|
||||||
tableOptions.total = res.total
|
|
||||||
} catch (error) {
|
|
||||||
console.log('ip记录', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 实名认证信息
|
|
||||||
async function merchantInfoDetailAjax() {
|
|
||||||
try {
|
|
||||||
const res = await merchantInfoDetail(route.query.id)
|
|
||||||
if (res.bankCard.bankname) {
|
|
||||||
navs.push(
|
|
||||||
{
|
|
||||||
type: 1,
|
|
||||||
label: '实名认证信息'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('实名认证信息===', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 商户基本信息
|
|
||||||
async function merchBaseInfoAjax() {
|
|
||||||
try {
|
|
||||||
const res = await merchBaseInfo(route.query.id)
|
|
||||||
if (res.merchantBaseInfo.mccname) {
|
|
||||||
navs.push(
|
|
||||||
{
|
|
||||||
type: 2,
|
|
||||||
label: '商户基本信息'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.log('商户基本信息===', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 营业执照信息
|
|
||||||
async function merchLicenseAjax() {
|
|
||||||
try {
|
|
||||||
const res = await merchLicense(route.query.id)
|
|
||||||
if (res.license.principalperson) {
|
|
||||||
navs.push(
|
|
||||||
{
|
|
||||||
type: 3,
|
|
||||||
label: '营业执照信息'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.log('商户基本信息===', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 结算信息
|
|
||||||
async function merchBaseAccountAjax() {
|
|
||||||
try {
|
|
||||||
const res = await merchBaseAccount(route.query.id)
|
|
||||||
if (res.D0.bankCard) {
|
|
||||||
navs.push(
|
|
||||||
{
|
|
||||||
type: 4,
|
|
||||||
label: '结算信息'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.log('结算信息===', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 通道进件信息
|
|
||||||
async function messageChannelAjax() {
|
|
||||||
try {
|
|
||||||
const res = await messageChannel(route.query.id, route.query.merchantcode)
|
|
||||||
if (res.merchantChannelMessage.length) {
|
|
||||||
navs.push(
|
|
||||||
{
|
|
||||||
type: 5,
|
|
||||||
label: '通道进件信息'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.log('通道进件信息===', error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(async () => {
|
|
||||||
tableOptions.loading = false
|
|
||||||
connectInfoAjax()
|
|
||||||
userIpPageAjax()
|
|
||||||
await merchantInfoDetailAjax()
|
|
||||||
await merchBaseInfoAjax()
|
|
||||||
await merchLicenseAjax()
|
|
||||||
await merchBaseAccountAjax()
|
|
||||||
await messageChannelAjax()
|
|
||||||
type.value = navs[0].type
|
|
||||||
if (route.query.type && route.query.type == 'msg1') {
|
|
||||||
type.value = 5
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
@import './components/common.scss';
|
|
||||||
|
|
||||||
.nav_wrap {
|
|
||||||
padding-bottom: 15px;
|
|
||||||
border-bottom: 1px solid #ececec;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
.compont_wrap {
|
|
||||||
flex: 2;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shop_info {
|
|
||||||
flex: 1;
|
|
||||||
|
|
||||||
.header {
|
|
||||||
padding-bottom: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
padding: 14px 20px;
|
|
||||||
|
|
||||||
.row {
|
|
||||||
&:not(:first-child) {
|
|
||||||
margin-top: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -26,11 +26,11 @@
|
|||||||
<el-input v-model="item.valid" disabled placeholder="请输入默认结算方式" style="width: 50%" />
|
<el-input v-model="item.valid" disabled placeholder="请输入默认结算方式" style="width: 50%" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="微信小程序appid">
|
<el-form-item label="微信小程序appid">
|
||||||
<el-input v-model="item.wxLiteAppId" :disabled="item.thirdStatus != '-100'" placeholder="请输入微信小程序appid"
|
<el-input v-model="item.wxLiteAppld" :disabled="item.thirdStatus != '-100'" placeholder="请输入微信小程序appid"
|
||||||
style="width: 50%" />
|
style="width: 50%" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="微信公众号appld">
|
<el-form-item label="微信公众号appld">
|
||||||
<el-input v-model="item.wxPubAppId" :disabled="item.thirdStatus != '-100'" placeholder="请输入微信公众号appld"
|
<el-input v-model="item.wxPubAppld" :disabled="item.thirdStatus != '-100'" placeholder="请输入微信公众号appld"
|
||||||
style="width: 50%" />
|
style="width: 50%" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="微信公众号支付路径">
|
<el-form-item label="微信公众号支付路径">
|
||||||
@@ -60,6 +60,9 @@ import { messageChannel, manualMerchantIncom } from '@/api/shop.js'
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
const reviewRemarks = ref([])
|
const reviewRemarks = ref([])
|
||||||
const merchantChannels = ref([])
|
const merchantChannels = ref([])
|
||||||
const status = ref([
|
const status = ref([
|
||||||
@@ -87,7 +90,7 @@ const loading = ref(false)
|
|||||||
// 通道进件信息
|
// 通道进件信息
|
||||||
async function messageChannelAjax() {
|
async function messageChannelAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await messageChannel(route.query.id)
|
const res = await messageChannel(storeUser.userInfo.userId)
|
||||||
reviewRemarks.value = res.reviewRemarks
|
reviewRemarks.value = res.reviewRemarks
|
||||||
merchantChannels.value = res.merchantChannels
|
merchantChannels.value = res.merchantChannels
|
||||||
form.value = res.merchantChannelMessage
|
form.value = res.merchantChannelMessage
|
||||||
@@ -103,10 +106,10 @@ async function submitHandle(state, index) {
|
|||||||
await manualMerchantIncom({
|
await manualMerchantIncom({
|
||||||
type: state,
|
type: state,
|
||||||
errMsg: form.value[index].remake || '',
|
errMsg: form.value[index].remake || '',
|
||||||
userId: route.query.id,
|
userId: storeUser.userInfo.userId,
|
||||||
channelId: form.value[index].channel || '',
|
channelId: form.value[index].channel || '',
|
||||||
wxLiteAppId: form.value[index].wxLiteAppId,
|
wxLiteAppld: form.value[index].wxLiteAppld,
|
||||||
wxPubAppId: form.value[index].wxPubAppId,
|
wxPubAppld: form.value[index].wxPubAppld,
|
||||||
wxPubPath: form.value[index].wxPubPath
|
wxPubPath: form.value[index].wxPubPath
|
||||||
})
|
})
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
|||||||
@@ -117,9 +117,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-button type="primary" @click="submitHandle">立即提交</el-button>
|
<el-button type="primary" @click="submitHandle">立即提交</el-button>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -135,6 +135,9 @@ import { merchantInfoDetail, getBranchList, updatePromoterInformation } from '@/
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
const formRef = ref(null)
|
const formRef = ref(null)
|
||||||
const idCardRef1 = ref(null)
|
const idCardRef1 = ref(null)
|
||||||
const idCardRef2 = ref(null)
|
const idCardRef2 = ref(null)
|
||||||
@@ -149,8 +152,8 @@ const gutter = ref(50)
|
|||||||
const form = reactive({
|
const form = reactive({
|
||||||
status: '',
|
status: '',
|
||||||
id: '',
|
id: '',
|
||||||
merchantcode: route.query.merchantcode,
|
merchantcode: storeUser.userInfo.merchantcode,
|
||||||
userid: route.query.id,
|
userid: storeUser.userInfo.userId,
|
||||||
username: '',
|
username: '',
|
||||||
loginname: '',
|
loginname: '',
|
||||||
idCard: {},
|
idCard: {},
|
||||||
@@ -213,7 +216,7 @@ async function submitHandle() {
|
|||||||
// 获取实名认证信息
|
// 获取实名认证信息
|
||||||
async function merchantInfoDetailAjax() {
|
async function merchantInfoDetailAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchantInfoDetail(route.query.id)
|
const res = await merchantInfoDetail(storeUser.userInfo.userId)
|
||||||
await banknameChange(res.bankCard.bankname, res.bankCard.branchcity)
|
await banknameChange(res.bankCard.bankname, res.bankCard.branchcity)
|
||||||
form.id = res.id
|
form.id = res.id
|
||||||
form.status = res.status
|
form.status = res.status
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="span">
|
<el-col :span="span">
|
||||||
<el-form-item label="法人身份证号">
|
<el-form-item label="法人身份证号">
|
||||||
<el-input v-model="form.idCard.certno" placeholder="请输入法人身份证号" @input="e => form.idCard.certno = removeSpaces(e)" />
|
<el-input v-model="form.idCard.certno" placeholder="请输入法人身份证号"
|
||||||
|
@input="e => form.idCard.certno = removeSpaces(e)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -30,12 +31,14 @@
|
|||||||
<el-row :gutter="gutter">
|
<el-row :gutter="gutter">
|
||||||
<el-col :span="span">
|
<el-col :span="span">
|
||||||
<el-form-item label="执照名称">
|
<el-form-item label="执照名称">
|
||||||
<el-input v-model="form.license.bussauthname" placeholder="请输入执照名称" @input="e => form.license.bussauthname = removeSpaces(e)" />
|
<el-input v-model="form.license.bussauthname" placeholder="请输入执照名称"
|
||||||
|
@input="e => form.license.bussauthname = removeSpaces(e)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="span">
|
<el-col :span="span">
|
||||||
<el-form-item label="工商注册号">
|
<el-form-item label="工商注册号">
|
||||||
<el-input v-model="form.license.bussauthnum" placeholder="请输入工商注册号" @input="e => form.license.bussauthnum = removeSpaces(e)" />
|
<el-input v-model="form.license.bussauthnum" placeholder="请输入工商注册号"
|
||||||
|
@input="e => form.license.bussauthnum = removeSpaces(e)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -93,6 +96,8 @@ import { merchLicense, updatemerchLicense } from '@/api/shop.js'
|
|||||||
|
|
||||||
import uploadCard from './uploadCard.vue'
|
import uploadCard from './uploadCard.vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -137,7 +142,7 @@ async function submitHandel() {
|
|||||||
// 营业执照信息
|
// 营业执照信息
|
||||||
async function merchLicenseAjax() {
|
async function merchLicenseAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchLicense(route.query.id)
|
const res = await merchLicense(storeUser.userInfo.userId)
|
||||||
form.license = res.license
|
form.license = res.license
|
||||||
form.idCard = res.idCard
|
form.idCard = res.idCard
|
||||||
uploadRef1.value.pselectFile({ url: form.license.licenseimage })
|
uploadRef1.value.pselectFile({ url: form.license.licenseimage })
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- 结算信息 -->
|
<!-- 结算信息 -->
|
||||||
<template>
|
<template>
|
||||||
<el-row :gutter="gutter">
|
<el-row :gutter="gutter">
|
||||||
<el-col :span="span">
|
<el-col :span="24">
|
||||||
<el-form ref="d1FormRef" :model="d1Form" label-width="120" label-position="left">
|
<el-form ref="d1FormRef" :model="d1Form" label-width="120" label-position="left">
|
||||||
<div class="title_wrap">
|
<div class="title_wrap">
|
||||||
<el-text>D1</el-text>
|
<el-text>D1</el-text>
|
||||||
@@ -71,12 +71,12 @@
|
|||||||
<uploadCard ref="d1BankRef5" @selectFile="file => d1Form.publicimage = file"
|
<uploadCard ref="d1BankRef5" @selectFile="file => d1Form.publicimage = file"
|
||||||
@removeFile="d1Form.publicimage = ''" />
|
@removeFile="d1Form.publicimage = ''" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-button type="primary" @click="d1SubmitHandle">保存-D1</el-button>
|
<el-button type="primary" @click="d1SubmitHandle">保存-D1</el-button>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="span">
|
<el-col :span="span" v-if="false">
|
||||||
<el-form ref="d0FormRef" :model="d0Form" label-width="120" label-position="left">
|
<el-form ref="d0FormRef" :model="d0Form" label-width="120" label-position="left">
|
||||||
<div class="title_wrap">
|
<div class="title_wrap">
|
||||||
<el-text>D0</el-text>
|
<el-text>D0</el-text>
|
||||||
@@ -146,9 +146,9 @@
|
|||||||
<uploadCard ref="d0BankRef5" @selectFile="file => d0Form.publicimage = file"
|
<uploadCard ref="d0BankRef5" @selectFile="file => d0Form.publicimage = file"
|
||||||
@removeFile="d0Form.publicimage = ''" />
|
@removeFile="d0Form.publicimage = ''" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-button type="primary" @click="d0SubmitHandle">保存-D0</el-button>
|
<el-button type="primary" @click="d0SubmitHandle">保存-D0</el-button>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -164,9 +164,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-button type="primary" @click="updateAuthenticationAjax" :loading="authFormLoading">保存认证信息</el-button>
|
<el-button type="primary" @click="updateAuthenticationAjax" :loading="authFormLoading">保存认证信息</el-button>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -183,6 +183,8 @@ import { merchBaseAccount, getBranchList, updateAccount, authentication, updateA
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
const span = ref(12)
|
const span = ref(12)
|
||||||
const gutter = ref(50)
|
const gutter = ref(50)
|
||||||
@@ -196,7 +198,7 @@ const d1BankRef4 = ref(null)
|
|||||||
const d1BankRef5 = ref(null)
|
const d1BankRef5 = ref(null)
|
||||||
const bankBranchs = ref([])
|
const bankBranchs = ref([])
|
||||||
const d1Form = reactive({
|
const d1Form = reactive({
|
||||||
userid: route.query.id,
|
userid: storeUser.userInfo.userId,
|
||||||
channeltype: 'D1',
|
channeltype: 'D1',
|
||||||
bankCard: {},
|
bankCard: {},
|
||||||
idcard: {},
|
idcard: {},
|
||||||
@@ -268,7 +270,7 @@ const d0BankRef4 = ref(null)
|
|||||||
const d0BankRef5 = ref(null)
|
const d0BankRef5 = ref(null)
|
||||||
const d0FormRef = ref(null)
|
const d0FormRef = ref(null)
|
||||||
const d0Form = reactive({
|
const d0Form = reactive({
|
||||||
userid: route.query.id,
|
userid: storeUser.userInfo.userId,
|
||||||
channeltype: 'D0',
|
channeltype: 'D0',
|
||||||
bankCard: {},
|
bankCard: {},
|
||||||
idcard: {},
|
idcard: {},
|
||||||
@@ -335,7 +337,7 @@ async function d0SubmitHandle() {
|
|||||||
// 结算信息
|
// 结算信息
|
||||||
async function merchBaseAccountAjax() {
|
async function merchBaseAccountAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchBaseAccount(route.query.id)
|
const res = await merchBaseAccount(storeUser.userInfo.userId)
|
||||||
await d1BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
await d1BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
||||||
await d0BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
await d0BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
||||||
|
|
||||||
@@ -385,7 +387,7 @@ async function merchBaseAccountAjax() {
|
|||||||
|
|
||||||
// 结算人与收银台合照 结算人手持身份证照
|
// 结算人与收银台合照 结算人手持身份证照
|
||||||
const authForm = reactive({
|
const authForm = reactive({
|
||||||
merchantCode: route.query.merchantcode,
|
merchantCode: storeUser.userInfo.merchantcode,
|
||||||
picUrl: ''
|
picUrl: ''
|
||||||
})
|
})
|
||||||
const authFormLoading = ref(false)
|
const authFormLoading = ref(false)
|
||||||
@@ -394,7 +396,7 @@ const authFormUpload1 = ref(null)
|
|||||||
// 认证信息
|
// 认证信息
|
||||||
async function authenticationAjax() {
|
async function authenticationAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await authentication(route.query.id)
|
const res = await authentication(storeUser.userInfo.userId)
|
||||||
authForm.picUrl = res.image
|
authForm.picUrl = res.image
|
||||||
authFormUpload1.value.pselectFile({ url: res.image })
|
authFormUpload1.value.pselectFile({ url: res.image })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -33,7 +33,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="span">
|
<el-col :span="span">
|
||||||
<el-form-item prop="contactmobile" label="联系人电话">
|
<el-form-item prop="contactmobile" label="联系人电话">
|
||||||
<el-input v-model="form.contactmobile" placeholder="请输入联系人电话" @input="e => form.contactmobile = removeSpaces(e)"/>
|
<el-input v-model="form.contactmobile" placeholder="请输入联系人电话"
|
||||||
|
@input="e => form.contactmobile = removeSpaces(e)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -79,9 +80,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-button type="primary" @click="submitHandel">立即提交</el-button>
|
<el-button type="primary" @click="submitHandel">立即提交</el-button>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-dialog title="经营类目" v-model="showDialog" @open="mccOpen">
|
<el-dialog title="经营类目" v-model="showDialog" @open="mccOpen">
|
||||||
<el-space>
|
<el-space>
|
||||||
@@ -122,6 +123,8 @@ import { useRoute } from 'vue-router'
|
|||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { ElDialog } from 'element-plus';
|
import { ElDialog } from 'element-plus';
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
const span = ref(8)
|
const span = ref(8)
|
||||||
const gutter = ref(50)
|
const gutter = ref(50)
|
||||||
@@ -134,10 +137,10 @@ const uploadRef3 = ref(null)
|
|||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
id: '',
|
id: '',
|
||||||
userid: route.query.id,
|
userid: storeUser.userInfo.userId,
|
||||||
merchantname: '',
|
merchantname: '',
|
||||||
merchanttype: '',
|
merchanttype: '',
|
||||||
merchantcode: route.query.merchantcode,
|
merchantcode: storeUser.userInfo.merchantcode,
|
||||||
alias: '',
|
alias: '',
|
||||||
contactname: '',
|
contactname: '',
|
||||||
email: '',
|
email: '',
|
||||||
@@ -237,7 +240,7 @@ function selectMcc(row) {
|
|||||||
// 商户基本信息
|
// 商户基本信息
|
||||||
async function merchBaseInfoAjax() {
|
async function merchBaseInfoAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchBaseInfo(route.query.id)
|
const res = await merchBaseInfo(storeUser.userInfo.userId)
|
||||||
const m = {
|
const m = {
|
||||||
1: '小微',
|
1: '小微',
|
||||||
2: '个体',
|
2: '个体',
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="compont_wrap">
|
<div class="compont_wrap">
|
||||||
<component :is="componentList[type]" />
|
<component :is="componentList[type]" />
|
||||||
</div>
|
</div>
|
||||||
<div class="shop_info">
|
<!-- <div class="shop_info">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<el-text size="large">商户关联信息</el-text>
|
<el-text size="large">商户关联信息</el-text>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
@size-change="paginationChange" @current-change="paginationChange" />
|
@size-change="paginationChange" @current-change="paginationChange" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -75,7 +75,10 @@ import businessLicense from './components/businessLicense.vue'
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { dayjs } from 'element-plus'
|
import { dayjs } from 'element-plus'
|
||||||
const route = useRoute()
|
import { useUser } from "@/store/user.js";
|
||||||
|
const storeUser = useUser();
|
||||||
|
|
||||||
|
// const route = useRoute()
|
||||||
|
|
||||||
const authInfo = ref({})
|
const authInfo = ref({})
|
||||||
|
|
||||||
@@ -109,7 +112,7 @@ function paginationChange() {
|
|||||||
// 实名认证信息页面(实名个数)
|
// 实名认证信息页面(实名个数)
|
||||||
async function connectInfoAjax() {
|
async function connectInfoAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await connectInfo(route.query.id)
|
const res = await connectInfo(storeUser.userInfo.userId)
|
||||||
authInfo.value = res
|
authInfo.value = res
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('实名认证信息页面error:', error)
|
console.log('实名认证信息页面error:', error)
|
||||||
@@ -120,7 +123,7 @@ async function connectInfoAjax() {
|
|||||||
async function userIpPageAjax() {
|
async function userIpPageAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await userIpPage({
|
const res = await userIpPage({
|
||||||
userId: route.query.id,
|
userId: storeUser.userInfo.userId,
|
||||||
currPage: tableOptions.pageNum,
|
currPage: tableOptions.pageNum,
|
||||||
size: tableOptions.pageSzie
|
size: tableOptions.pageSzie
|
||||||
})
|
})
|
||||||
@@ -135,7 +138,7 @@ async function userIpPageAjax() {
|
|||||||
// 实名认证信息
|
// 实名认证信息
|
||||||
async function merchantInfoDetailAjax() {
|
async function merchantInfoDetailAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchantInfoDetail(route.query.id)
|
const res = await merchantInfoDetail(storeUser.userInfo.userId)
|
||||||
if (res.bankCard.bankname) {
|
if (res.bankCard.bankname) {
|
||||||
navs.push(
|
navs.push(
|
||||||
{
|
{
|
||||||
@@ -152,7 +155,7 @@ async function merchantInfoDetailAjax() {
|
|||||||
// 商户基本信息
|
// 商户基本信息
|
||||||
async function merchBaseInfoAjax() {
|
async function merchBaseInfoAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchBaseInfo(route.query.id)
|
const res = await merchBaseInfo(storeUser.userInfo.userId)
|
||||||
if (res.merchantBaseInfo.mccname) {
|
if (res.merchantBaseInfo.mccname) {
|
||||||
navs.push(
|
navs.push(
|
||||||
{
|
{
|
||||||
@@ -169,7 +172,7 @@ async function merchBaseInfoAjax() {
|
|||||||
// 营业执照信息
|
// 营业执照信息
|
||||||
async function merchLicenseAjax() {
|
async function merchLicenseAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchLicense(route.query.id)
|
const res = await merchLicense(storeUser.userInfo.userId)
|
||||||
if (res.license.principalperson) {
|
if (res.license.principalperson) {
|
||||||
navs.push(
|
navs.push(
|
||||||
{
|
{
|
||||||
@@ -186,7 +189,7 @@ async function merchLicenseAjax() {
|
|||||||
// 结算信息
|
// 结算信息
|
||||||
async function merchBaseAccountAjax() {
|
async function merchBaseAccountAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await merchBaseAccount(route.query.id)
|
const res = await merchBaseAccount(storeUser.userInfo.userId)
|
||||||
if (res.D0.bankCard) {
|
if (res.D0.bankCard) {
|
||||||
navs.push(
|
navs.push(
|
||||||
{
|
{
|
||||||
@@ -203,7 +206,7 @@ async function merchBaseAccountAjax() {
|
|||||||
// 通道进件信息
|
// 通道进件信息
|
||||||
async function messageChannelAjax() {
|
async function messageChannelAjax() {
|
||||||
try {
|
try {
|
||||||
const res = await messageChannel(route.query.id, route.query.merchantcode)
|
const res = await messageChannel(storeUser.userInfo.userId, storeUser.userInfo.merchantcode)
|
||||||
if (res.merchantChannelMessage.length) {
|
if (res.merchantChannelMessage.length) {
|
||||||
navs.push(
|
navs.push(
|
||||||
{
|
{
|
||||||
@@ -219,17 +222,17 @@ async function messageChannelAjax() {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
tableOptions.loading = false
|
tableOptions.loading = false
|
||||||
connectInfoAjax()
|
// connectInfoAjax()
|
||||||
userIpPageAjax()
|
// userIpPageAjax()
|
||||||
await merchantInfoDetailAjax()
|
await merchantInfoDetailAjax()
|
||||||
await merchBaseInfoAjax()
|
await merchBaseInfoAjax()
|
||||||
await merchLicenseAjax()
|
await merchLicenseAjax()
|
||||||
await merchBaseAccountAjax()
|
await merchBaseAccountAjax()
|
||||||
await messageChannelAjax()
|
// await messageChannelAjax()
|
||||||
type.value = navs[0].type
|
type.value = navs[0].type
|
||||||
if (route.query.type && route.query.type == 'msg1') {
|
// if (route.query.type && route.query.type == 'msg1') {
|
||||||
type.value = 5
|
// type.value = 5
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user