feat: 新增提现详情页与撤销微信转账功能
新增分销提现单详情页面及接口,支持查看提现单据完整信息;新增后台撤销转账中提现单功能,前端添加对应操作按钮与交互逻辑;完善提现记录跳转逻辑,支持点击进入详情页,同时新增部署脚本同步线上代码。
这个提交包含在:
@@ -174,6 +174,38 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'backend/format'], fu
|
||||
return true;
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'cancel',
|
||||
text: '撤销',
|
||||
title: '撤销微信转账',
|
||||
classname: 'btn btn-xs btn-danger btn-click',
|
||||
icon: 'fa fa-times-circle',
|
||||
visible: function (row) {
|
||||
return row.status === 'paying';
|
||||
},
|
||||
click: function (options, row) {
|
||||
Layer.confirm('确认撤销提现单「' + row.withdraw_no + '」的微信转账?<br><span class="text-danger" style="font-size:12px;">撤销后微信转账单将失效,款项额度自动退回用户可提现余额。</span>', {
|
||||
title: '撤销转账单确认',
|
||||
icon: 3,
|
||||
btn: ['确认撤销', '取消']
|
||||
}, function (index) {
|
||||
Layer.close(index);
|
||||
var loadIdx = Layer.load(1);
|
||||
Fast.api.ajax({
|
||||
url: 'fc/withdraw/cancel',
|
||||
data: {id: row.id}
|
||||
}, function (data, ret) {
|
||||
Layer.close(loadIdx);
|
||||
Toastr.success(ret.msg || '转账已撤销');
|
||||
$('#' + options.tableId).bootstrapTable('refresh');
|
||||
return false;
|
||||
}, function () {
|
||||
Layer.close(loadIdx);
|
||||
return true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -292,6 +324,36 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'backend/format'], fu
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
||||
// 4. 撤销微信转账单
|
||||
$(document).on('click', '.btn-action-cancel', function () {
|
||||
var id = $(this).data('id');
|
||||
var no = $(this).data('no');
|
||||
|
||||
Layer.confirm('确认撤销提现单「' + no + '」的微信转账?<br><span class="text-danger" style="font-size:12px;">撤销后微信转账单失效,款项额度将自动退回用户可提现余额。</span>', {
|
||||
title: '撤销转账单确认',
|
||||
icon: 3,
|
||||
btn: ['确认撤销', '取消']
|
||||
}, function (index) {
|
||||
Layer.close(index);
|
||||
var loadIdx = Layer.load(1);
|
||||
Fast.api.ajax({
|
||||
url: 'fc/withdraw/cancel',
|
||||
data: {id: id}
|
||||
}, function (data, ret) {
|
||||
Layer.close(loadIdx);
|
||||
Toastr.success(ret.msg || '转账已撤销');
|
||||
setTimeout(function () {
|
||||
Fast.api.close();
|
||||
parent.$("#table").bootstrapTable('refresh');
|
||||
}, 1200);
|
||||
return false;
|
||||
}, function () {
|
||||
Layer.close(loadIdx);
|
||||
return true;
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
api: {
|
||||
|
||||
在新工单中引用
屏蔽一个用户