|
@@ -1,7 +1,7 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
- <title>平台与微信交易对账信息表-列表</title>
|
|
|
+ <title>日交易对账</title>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
<!-- 所有的 css & js 资源 -->
|
|
@@ -66,40 +66,40 @@
|
|
|
<script>
|
|
|
var app = new Vue({
|
|
|
components: {
|
|
|
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
|
|
|
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
|
|
|
+ "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
|
|
|
+ "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
|
|
|
},
|
|
|
el: '.vue-box',
|
|
|
data: {
|
|
|
- p: { // 查询参数
|
|
|
- billId: '', // 账单ID
|
|
|
- billDate: '', // 账单日期
|
|
|
- receiveCountPlatform: '', // 平台收款笔数
|
|
|
- receiveAmountPlatform: '', // 平台收款金额
|
|
|
- transferCountPlatform: '', // 平台转账笔数
|
|
|
- transferAmountPlatform: '', // 平台转账金额
|
|
|
- refundCountPlatform: '', // 平台退款笔数
|
|
|
- refundAmountPlatform: '', // 平台退款金额
|
|
|
- receiveCountWechat: '', // 微信收款笔数
|
|
|
- receiveAmountWechat: '', // 微信收款金额
|
|
|
- transferCountWechat: '', // 微信转账笔数
|
|
|
- transferAmountWechat: '', // 微信转账金额
|
|
|
- refundCountWechat: '', // 微信退款笔数
|
|
|
- refundAmountWechat: '', // 微信退款金额
|
|
|
- pageNo: 1, // 当前页
|
|
|
- pageSize: 10, // 页大小
|
|
|
- sortType: 0 // 排序方式
|
|
|
+ p: { // 查询参数
|
|
|
+ billId: '', // 账单ID
|
|
|
+ billDate: '', // 账单日期
|
|
|
+ receiveCountPlatform: '', // 平台收款笔数
|
|
|
+ receiveAmountPlatform: '', // 平台收款金额
|
|
|
+ transferCountPlatform: '', // 平台转账笔数
|
|
|
+ transferAmountPlatform: '', // 平台转账金额
|
|
|
+ refundCountPlatform: '', // 平台退款笔数
|
|
|
+ refundAmountPlatform: '', // 平台退款金额
|
|
|
+ receiveCountWechat: '', // 微信收款笔数
|
|
|
+ receiveAmountWechat: '', // 微信收款金额
|
|
|
+ transferCountWechat: '', // 微信转账笔数
|
|
|
+ transferAmountWechat: '', // 微信转账金额
|
|
|
+ refundCountWechat: '', // 微信退款笔数
|
|
|
+ refundAmountWechat: '', // 微信退款金额
|
|
|
+ pageNo: 1, // 当前页
|
|
|
+ pageSize: 10, // 页大小
|
|
|
+ sortType: 0 // 排序方式
|
|
|
},
|
|
|
dataCount: 0,
|
|
|
- dataList: [], // 数据集合
|
|
|
+ dataList: [], // 数据集合
|
|
|
},
|
|
|
methods: {
|
|
|
// 刷新
|
|
|
f5: function() {
|
|
|
sa.ajax('/transport-server/TbTransportTradeBill/getList', sa.removeNull(this.p), function(res) {
|
|
|
this.dataList = res.data; // 数据
|
|
|
- this.dataCount = res.dataCount; // 数据总数
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ this.dataCount = res.dataCount; // 数据总数
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this));
|
|
|
},
|
|
|
// 查看
|
|
@@ -128,24 +128,24 @@
|
|
|
sa.ajax('/TbTransportTradeBill/delete?id=' + data.billId, function(res) {
|
|
|
sa.arrayDelete(this.dataList, data);
|
|
|
sa.ok('删除成功');
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
},
|
|
|
// 批量删除
|
|
|
deleteByIds: function() {
|
|
|
- // 获取选中元素的id列表
|
|
|
+ // 获取选中元素的id列表
|
|
|
let selection = this.$refs['data-table'].selection;
|
|
|
let ids = sa.getArrayField(selection, 'id');
|
|
|
if(selection.length == 0) {
|
|
|
return sa.msg('请至少选择一条数据')
|
|
|
}
|
|
|
- // 提交删除
|
|
|
+ // 提交删除
|
|
|
sa.confirm('是否批量删除选中数据?此操作不可撤销', function() {
|
|
|
sa.ajax('/TbTransportTradeBill/deleteByIds', {ids: ids.join(',')}, function(res) {
|
|
|
sa.arrayDelete(this.dataList, selection);
|
|
|
sa.ok('删除成功');
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
},
|