diff --git a/src/api/img/withdraw.js b/src/api/img/withdraw.js
new file mode 100644
index 0000000..21f6cd9
--- /dev/null
+++ b/src/api/img/withdraw.js
@@ -0,0 +1,37 @@
+import request from '@/utils/request'
+
+// 查询提现记录分页列表
+export function listWithdraw(data) {
+ return request({
+ url: '/img/img/withdrawLog/page',
+ method: 'post',
+ data: data
+ })
+}
+
+
+// 删除提现记录
+export function delWithdraw(ids) {
+ return request({
+ url: '/img/img/withdrawLog/delete/' + ids,
+ method: 'delete'
+ })
+}
+
+// 获取提现记录详情
+export function getWithdrawDetails(id) {
+ return request({
+ url: '/img/img/withdrawLog/details/' + id,
+ method: 'get'
+ })
+}
+
+// 审核提现记录
+export function verify(data) {
+ return request({
+ url: '/img/img/withdrawLog/verify',
+ method: 'post' ,
+ data: data
+ })
+}
+
diff --git a/src/views/img/profitVerifyOrder/index.vue b/src/views/img/profitVerifyOrder/index.vue
index 522d757..01dcf64 100644
--- a/src/views/img/profitVerifyOrder/index.vue
+++ b/src/views/img/profitVerifyOrder/index.vue
@@ -88,7 +88,7 @@
{{scope.row.verifyStatus == '0' ? "待审核" : scope.row.verifyStatus == '1' ? "通过": scope.row.verifyStatus == '2' ? "不通过" : ''}}
-
+
@@ -121,6 +121,7 @@
v-hasPermi="['img:profitVerifyOrder:verify']"
>审核
-
+
@@ -189,6 +190,68 @@
取 消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -214,10 +277,14 @@ export default {
dateRange: [],
// 表单参数
form: {},
+ // 审核表单参数
+ verifyForm: {},
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
+ // 是否显示审核弹出层
+ verifyOpen: false,
// 总条数
total: 0,
// 审核单列表数据
@@ -273,6 +340,12 @@ export default {
appType: [
{ required: true, message: "应用不能为空", trigger: "blur" }
],
+ reason: [
+ { required: true, message: "审核意见不能为空", trigger: "blur" }
+ ],
+ verifyStatus: [
+ { required: true, message: "审核状态不能为空", trigger: "blur" }
+ ]
}
};
},
@@ -298,12 +371,15 @@ export default {
// 取消按钮
cancel() {
this.open = false;
+ this.verifyOpen = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
- amt: undefined
+ amt: undefined,
+ appType: undefined,
+ platform: undefined
};
this.resetForm("form");
},
@@ -348,25 +424,23 @@ export default {
},
/** 审核按钮操作 */
- // handleVerify(row){
- // console.log(row)
- // const id = row.id || this.ids;
- // getProfitVerifyOrderDetails(id).then(response => {
- // this.form = response.data;
- // //获取管理员id
- // getUserProfile().then(response => {
- // this.form.verifyAdminId = response.data.userId
- // });
- // this.open = true;
- // this.title = "审核收益审核单";
- // this.form.amt.
- // });
- // },
+ handleVerify(row){
+ console.log(row)
+ const id = row.id || this.ids;
+ getProfitVerifyOrderDetails(id).then(response => {
+ this.verifyForm = response.data;
+ //获取管理员id
+ getUserProfile().then(response => {
+ this.verifyForm.verifyAdminId = response.data.userId
+ });
+ this.verifyOpen = true;
+ this.title = "审核收益审核单";
+ });
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
-
getProfitVerifyOrderDetails(id).then(response => {
this.form = response.data;
//获取管理员id
@@ -396,6 +470,29 @@ export default {
}
}
});
+ },
+ /** 提交审核 */
+ verify: function() {
+ this.$refs["verifyForm"].validate(valid => {
+ if (valid) {
+ if (this.verifyForm.id != undefined) {
+ let data = {
+ id : this.verifyForm.id,
+ verifyStatus : this.verifyForm.verifyStatus,
+ reason : this.verifyForm.reason,
+ verifyAdminId : this.verifyForm.verifyAdminId,
+ amt : this.verifyForm.amt,
+ platform : this.verifyForm.platform,
+ appType : this.verifyForm.appType
+ }
+ verify(data).then(response => {
+ this.$modal.msgSuccess("审核成功");
+ this.verifyOpen = false;
+ this.getList();
+ });
+ }
+ }
+ });
}
}
};
diff --git a/src/views/img/withdraw/index.vue b/src/views/img/withdraw/index.vue
new file mode 100644
index 0000000..492daf5
--- /dev/null
+++ b/src/views/img/withdraw/index.vue
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.channel == '0' ? "微信" : scope.row.channel == '1' ? "银行卡": ''}}
+
+
+
+
+ {{scope.row.status == '0' ? "待审核" : scope.row.status == '1' ? "提现中": scope.row.status == '2' ? "提现成功": scope.row.status == '3' ? "提现失败": scope.row.status == '4' ? "审核拒绝": ''}}
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ {{ parseTime(scope.row.updateTime) }}
+
+
+
+
+ 审核
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file