Commit 08b658ba by wangyalan-git

提现审核列表

parent 9d1c8c14
......@@ -14,7 +14,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': {
target: 'http://192.168.31.118:8085/bapi',
target: 'http://zhqg.jsonpro.cn/bapi',
changeOrigin: true,
pathRewrite: {
'^/proxyApi': '/'
......
......@@ -13,14 +13,13 @@ export const tableOption = {
delBtn: false,
column: [
{
label: '用户昵称',
label: '申请人昵称',
prop: 'nickName',
search: true
},
{
label: '金额',
prop: 'amount',
search: true
prop: 'amount'
},
{
label: '到账金额',
......@@ -29,7 +28,22 @@ export const tableOption = {
{
label: '审核状态',
prop: 'applyStatus',
slot: true
type: 'select',
slot: true,
search: true,
dicData: [
{
label: '待审核',
value: 0
}, {
label: '已通过',
value: 1
},
{
label: '不通过',
value: 2
}
]
},
{
label: '审核类型',
......
......@@ -27,8 +27,22 @@ http.interceptors.request.use(config => {
/**
* 响应拦截
*/
http.interceptors.response.use(response => {
return response
http.interceptors.response.use(
response => {
/**
* code为非200是抛错 可结合自己业务进行修改
*/
const res = response.data
if(res.code == undefined || res.code == 1 ){
return response
}else {
Message({
message: res.note,
type: 'error',
duration: 3 * 1000
})
return Promise.reject(error)
}
}, error => {
switch (error.response.status) {
case 400:
......
<template>
<div class="mod-home">
<p>一个基于spring boot、spring oauth2.0、mybatis、redis的轻量级、前后端分离、拥有完整sku和下单流程的完全开源商城</p>
<p>&nbsp;</p>
<p>该项目仅供学习参考、可供个人学习使用、如需商用联系作者进行授权,否则必将追究法律责任</p>
<p>&nbsp;</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 class="logo-img">
<img src="~@/assets/img/login-logo.png"></img>
</div>
<p>欢迎使用中厦全供后台管理系统</p>
</div>
</template>
......@@ -149,7 +13,19 @@ export default {}
<style>
.mod-home {
margin-top: 100px;
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>
......@@ -3,14 +3,35 @@
title="审核"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="审核" prop="applyStatus">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="150px">
<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 :label="1">通过</el-radio>
<el-radio :label="2">不通过</el-radio>
</el-radio-group>
</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-form-item>
</el-form>
......@@ -25,6 +46,7 @@
export default {
data () {
return {
resourcesUrl:window.SITE_CONFIG.resourcesUrl,
visible: false,
dataForm: {
id: 0,
......@@ -46,11 +68,22 @@
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.dataForm.paramName = row.paramName
this.dataForm.paramCode = row.paramCode
this.dataForm.paramValue = row.paramValue
this.dataForm.paramType = row.paramType
this.dataForm.remark = row.remark
this.$http({
url: this.$http.adornUrl(`/cashApplyRecord/queryDetailById`),
method: 'get',
params: this.$http.adornParams({
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 @@
window.SITE_CONFIG = {}
// api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://mall4j-admin.gz-yami.com/apis'
window.SITE_CONFIG['baseUrl'] = 'http://zhqg.jsonpro.cn/bapi'
// 静态资源文件url
window.SITE_CONFIG['resourcesUrl'] = 'http://img-test.gz-yami.com/'
window.SITE_CONFIG['resourcesUrl'] = 'https://zhqg.jsonpro.cn/zhqgImages'
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名
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