|
|
@@ -95,7 +95,7 @@ layui.config({
|
|
|
, { field: 'CreateDate', width: 200, title: '创建时间', sort: true }
|
|
|
, { field: 'StatusName', width: 200, title: '状态', sort: true }
|
|
|
, { field: 'OperateMan', width: 200, title: '操作人', sort: true }
|
|
|
- , { field: 'SeoDescription', width: 200, title: '退押订单号', sort: true }
|
|
|
+ , { field: 'SeoKeyword', width: 200, title: '退押订单号', sort: true }
|
|
|
, { field: 'AlipayAccountNo', width: 200, title: '支付宝账号', sort: true }
|
|
|
, { field: 'ReturnAmount', width: 200, title: '返还金额', sort: true }
|
|
|
|
|
|
@@ -321,7 +321,7 @@ layui.config({
|
|
|
cancel: function () {
|
|
|
}
|
|
|
});
|
|
|
- $("#excelTemp").html('<a href="/excelfile/模板文件.xlsx">点击下载退押结果模板</a>');
|
|
|
+ $("#excelTemp").html('<a href="/users/退押结果模板.xlsx">点击下载退押结果模板</a>');
|
|
|
}
|
|
|
, ExportExcel: function () {
|
|
|
var userdata = '';
|
|
|
@@ -399,8 +399,38 @@ layui.config({
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
- }
|
|
|
+ },Cash: function () {
|
|
|
+ var checkStatus = table.checkStatus('LAY-list-manage'),
|
|
|
+ data = checkStatus.data; //得到选中的数据
|
|
|
+ if (data.length < 1) {
|
|
|
+ parent.layer.msg("请选择要提交代付的项");
|
|
|
+ } else {
|
|
|
+ var ids = "";
|
|
|
+ $.each(data, function (index, value) {
|
|
|
+ ids += data[index].Id + ",";
|
|
|
+ });
|
|
|
+ ids = ids.substring(0, ids.length - 1);
|
|
|
+ var index = layer.confirm('确定要提交到代付平台申请出款吗?', function (index) {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/Admin/MerchantDepositReturns/Cash?r=" + Math.random(1),
|
|
|
+ data: "Id=" + ids,
|
|
|
+ dataType: "text",
|
|
|
+ success: function (data) {
|
|
|
+ layer.close(index);
|
|
|
+ if (data == "success") {
|
|
|
+ layer.msg('提交成功,请等待代付平台处理');
|
|
|
+ table.reload('LAY-list-manage');
|
|
|
+ } else {
|
|
|
+ layer.msg(data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
};
|
|
|
+
|
|
|
|
|
|
$('.layui-btn').on('click', function () {
|
|
|
var type = $(this).data('type');
|