Commit 08b658ba by wangyalan-git

提现审核列表

parent 9d1c8c14
...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置 // 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : { proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': { '/proxyApi': {
target: 'http://192.168.31.118:8085/bapi', target: 'http://zhqg.jsonpro.cn/bapi',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/proxyApi': '/' '^/proxyApi': '/'
......
...@@ -13,14 +13,13 @@ export const tableOption = { ...@@ -13,14 +13,13 @@ export const tableOption = {
delBtn: false, delBtn: false,
column: [ column: [
{ {
label: '用户昵称', label: '申请人昵称',
prop: 'nickName', prop: 'nickName',
search: true search: true
}, },
{ {
label: '金额', label: '金额',
prop: 'amount', prop: 'amount'
search: true
}, },
{ {
label: '到账金额', label: '到账金额',
...@@ -29,7 +28,22 @@ export const tableOption = { ...@@ -29,7 +28,22 @@ export const tableOption = {
{ {
label: '审核状态', label: '审核状态',
prop: 'applyStatus', prop: 'applyStatus',
slot: true type: 'select',
slot: true,
search: true,
dicData: [
{
label: '待审核',
value: 0
}, {
label: '已通过',
value: 1
},
{
label: '不通过',
value: 2
}
]
}, },
{ {
label: '审核类型', label: '审核类型',
......
...@@ -27,8 +27,22 @@ http.interceptors.request.use(config => { ...@@ -27,8 +27,22 @@ http.interceptors.request.use(config => {
/** /**
* 响应拦截 * 响应拦截
*/ */
http.interceptors.response.use(response => { http.interceptors.response.use(
response => {
/**
* code为非200是抛错 可结合自己业务进行修改
*/
const res = response.data
if(res.code == undefined || res.code == 1 ){
return response return response
}else {
Message({
message: res.note,
type: 'error',
duration: 3 * 1000
})
return Promise.reject(error)
}
}, error => { }, error => {
switch (error.response.status) { switch (error.response.status) {
case 400: case 400:
......
<template> <template>
<div class="mod-home"> <div class="mod-home">
<p>一个基于spring boot、spring oauth2.0、mybatis、redis的轻量级、前后端分离、拥有完整sku和下单流程的完全开源商城</p> <div class="logo-img">
<p>&nbsp;</p> <img src="~@/assets/img/login-logo.png"></img>
<p>该项目仅供学习参考、可供个人学习使用、如需商用联系作者进行授权,否则必将追究法律责任</p> </div>
<p>&nbsp;</p> <p>欢迎使用中厦全供后台管理系统</p>
<h2>前言</h2>
<p>
<code>亚米商城</code>项目致力于为中小企业打造一个完整、易于维护的开源的电商系统,采用现阶段流行技术实现。后台管理系统包含商品管理、订单管理、运费模板、规格管理、会员管理、运营管理、内容管理、统计报表、权限管理、设置等模块。
</p>
<p>&nbsp;</p>
<h2>技术选型</h2>
<figure>
<table border="1"
cellspacing="0"
cellpadding="5px">
<thead>
<tr>
<th>技术</th>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Spring Boot</td>
<td>2.1.6.RELEASE</td>
<td>MVC核心框架</td>
</tr>
<tr>
<td>Spring Security oauth2</td>
<td>2.1.5.RELEASE</td>
<td>认证和授权框架</td>
</tr>
<tr>
<td>MyBatis</td>
<td>3.5.0</td>
<td>ORM框架</td>
</tr>
<tr>
<td>MyBatisPlus</td>
<td>3.1.0</td>
<td>基于mybatis,使用lambda表达式的</td>
</tr>
<tr>
<td>Swagger-UI</td>
<td>2.9.2</td>
<td>文档生产工具</td>
</tr>
<tr>
<td>Hibernator-Validator</td>
<td>6.0.17.Final</td>
<td>验证框架</td>
</tr>
<tr>
<td>redisson</td>
<td>3.10.6</td>
<td>对redis进行封装、集成分布式锁等</td>
</tr>
<tr>
<td>hikari</td>
<td>3.2.0</td>
<td>数据库连接池</td>
</tr>
<tr>
<td>log4j2</td>
<td>2.11.2</td>
<td>更快的log日志工具</td>
</tr>
<tr>
<td>fst</td>
<td>2.57</td>
<td>更快的序列化和反序列化工具</td>
</tr>
<tr>
<td>orika</td>
<td>1.5.4</td>
<td>更快的bean复制工具</td>
</tr>
<tr>
<td>lombok</td>
<td>1.18.8</td>
<td>简化对象封装工具</td>
</tr>
<tr>
<td>hutool</td>
<td>4.5.0</td>
<td>更适合国人的java工具集</td>
</tr>
<tr>
<td>swagger-bootstrap</td>
<td>1.9.3</td>
<td>基于swagger,更便于国人使用的swagger ui</td>
</tr>
</tbody>
</table>
</figure>
<p>&nbsp;</p>
<h2>部署教程</h2>
<p>&nbsp;</p>
<h3>1.开发环境</h3>
<figure>
<table border="1"
cellspacing="0"
cellpadding="5px">
<thead>
<tr>
<th>工具</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>jdk</td>
<td>1.8+</td>
</tr>
<tr>
<td>mysql</td>
<td>5.7+</td>
</tr>
<tr>
<td>redis</td>
<td>3.2+</td>
</tr>
</tbody>
</table>
</figure>
<h3>2.启动</h3>
<ul>
<li>推荐使用idea,安装lombok插件,使用idea导入maven项目</li>
<li>
将shop.sql导入到mysql中,修改
<code>application-dev.yml</code>更改 datasource.url、user、password
</li>
<li>启动redis</li>
<li>
通过
<code>WebApplication</code>启动项目后台接口,
<code>ApiApplication</code> 启动项目前端接口
</li>
</ul>
<p>&nbsp;</p>
</div> </div>
</template> </template>
...@@ -149,7 +13,19 @@ export default {} ...@@ -149,7 +13,19 @@ export default {}
<style> <style>
.mod-home { .mod-home {
margin-top: 100px;
line-height: 1.5; line-height: 1.5;
} }
.logo-img{
text-align: center;
}
.logo-img img{
width: 400px;
text-align: center;
}
p{
text-align: center;
font-size: 30px;
}
</style> </style>
...@@ -3,14 +3,35 @@ ...@@ -3,14 +3,35 @@
title="审核" title="审核"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="visible"> :visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="150px">
<el-form-item label="审核" prop="applyStatus"> <el-form-item label="申请人昵称:" prop="nickName">
<span>{{dataForm.nickName}}</span>
</el-form-item>
<el-form-item label="提现人名称:" prop="bankName">
<span>{{dataForm.bankName}}</span>
</el-form-item>
<el-form-item :label="dataForm.applyType == 2? '退款金额:': '提现金额:'" prop="amount">
<span>{{dataForm.amount}}</span>
</el-form-item>
<el-form-item label="到账金额:" prop="cashAmount">
<span>{{dataForm.cashAmount}}</span>
</el-form-item>
<el-form-item label="银行开户行名称:" prop="bankCard">
<span>{{dataForm.bankCard}}</span>
</el-form-item>
<el-form-item label="收款码图片:" prop="bankCard">
<img style="width: 300px;" :src="resourcesUrl + dataForm.img" alt="">
</el-form-item>
<el-form-item label="类型:" prop="applyType">
<span>{{dataForm.applyType == 1? '订单收益提现申请':(dataForm.applyType == 2 ? '退单申请': '余额提现申请') }}</span>
</el-form-item>
<el-form-item label="审核:" prop="applyStatus">
<el-radio-group v-model="dataForm.applyStatus"> <el-radio-group v-model="dataForm.applyStatus">
<el-radio :label="1">通过</el-radio> <el-radio :label="1">通过</el-radio>
<el-radio :label="2">不通过</el-radio> <el-radio :label="2">不通过</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="dataForm.remark" placeholder="备注"></el-input> <el-input v-model="dataForm.remark" placeholder="备注"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -25,6 +46,7 @@ ...@@ -25,6 +46,7 @@
export default { export default {
data () { data () {
return { return {
resourcesUrl:window.SITE_CONFIG.resourcesUrl,
visible: false, visible: false,
dataForm: { dataForm: {
id: 0, id: 0,
...@@ -46,11 +68,22 @@ ...@@ -46,11 +68,22 @@
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (this.dataForm.id) { if (this.dataForm.id) {
this.dataForm.paramName = row.paramName this.$http({
this.dataForm.paramCode = row.paramCode url: this.$http.adornUrl(`/cashApplyRecord/queryDetailById`),
this.dataForm.paramValue = row.paramValue method: 'get',
this.dataForm.paramType = row.paramType params: this.$http.adornParams({
this.dataForm.remark = row.remark id: this.dataForm.id
})
}).then(({data}) => {
this.dataForm.bankName = data.result.bankName
this.dataForm.nickName = data.result.nickName
this.dataForm.amount = data.result.amount
this.dataForm.img = data.result.img
this.dataForm.remark = data.result.remark
this.dataForm.applyType = data.result.applyType
this.dataForm.bankCard = data.result.bankCard
this.dataForm.cashAmount = data.result.cashAmount
})
} }
}) })
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
window.SITE_CONFIG = {} window.SITE_CONFIG = {}
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://mall4j-admin.gz-yami.com/apis' window.SITE_CONFIG['baseUrl'] = 'http://zhqg.jsonpro.cn/bapi'
// 静态资源文件url // 静态资源文件url
window.SITE_CONFIG['resourcesUrl'] = 'http://img-test.gz-yami.com/' window.SITE_CONFIG['resourcesUrl'] = 'https://zhqg.jsonpro.cn/zhqgImages'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名 window.SITE_CONFIG['domain'] = './' // 域名
window.SITE_CONFIG['version'] = '' // 版本号(年月日时分) window.SITE_CONFIG['version'] = '' // 版本号(年月日时分)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment