Commit e96642c9 authored by 黄同智's avatar 黄同智

联调表格样式,对接数据

Co-authored-by: 's avatarCopilot <copilot@github.com>
parent 9b4dd528
......@@ -259,7 +259,7 @@
<form id="myForm">
<div class="form-row">
<label class="form-label"><span class="required">*</span>查询类型:</label>
<select class="form-select" name="voucherType">
<select class="form-select">
<option value="1">明细</option>
<option value="2">明细汇总</option>
</select>
......@@ -267,15 +267,15 @@
<div class="form-row">
<label class="form-label"><span class="required">*</span>起止日期:</label>
<input type="text" id="startDate" class="form-input small x-small" name="dateFrom">
<input type="text" id="dateFrom" class="form-input small x-small" name="dateFrom">
<div class="date-picker" id="sDate">
<img class="dateimg" src="/imagse/date.png" alt="" />
</div>
<span>-</span>
<input type="text" id="endDate" class="form-input small x-small" name="dateTo">
<input type="text" id="dateTo" class="form-input small x-small" name="dateTo">
<div class="date-picker" id="eDate">
<img class="dateimg" src="/imagse/date.png" alt="" />
<!-- <input class="date-input endDate" type="date" /> -->
<!-- <input class="date-input dateTo" type="date" /> -->
</div>
<div class="radio-group">
<label><input type="radio" name="quickDate" value="7" /> 最近7天</label>
......@@ -331,7 +331,8 @@
</div>
<div class="form-row">
<label class="form-label">交易摘要:</label>
<select class="form-select hide" style="width: 200px;" name="summary">
<!-- name="summary" -->
<select class="form-select hide" style="width: 200px;">
<option>请选择</option>
</select>
<div class="select-down-icon">
......@@ -372,7 +373,7 @@
trigger: '#sDate',
onSelect: function (date) {
const result = date.replaceAll('-', '');
document.getElementById('startDate').value = result || '未选择';
document.getElementById('dateFrom').value = result || '未选择';
}
});
......@@ -380,22 +381,23 @@
trigger: '#eDate',
onSelect: function (date) {
const result = date.replaceAll('-', '');
document.getElementById('endDate').value = result || '未选择';
document.getElementById('dateTo').value = result || '未选择';
}
});
// const dateStartInput = document.querySelector('.startDate');
// const dateEndInput = document.querySelector('.endDate');
// const startDate = document.querySelector('#startDate');
// const endDate = document.querySelector('#endDate');
// dateStartInput.addEventListener('change', function() {
// const result = this.value.replaceAll('-', '');
// startDate.value = result; // 格式:YYYYMMDD
// });
// dateEndInput.addEventListener('change', function() {
// const result = this.value.replaceAll('-', '');
// endDate.value = result; // 格式:YYYYMMDD
// });
// 快速日期
document.querySelectorAll('input[name=quickDate]').forEach(el => {
el.addEventListener('change', () => {
const days = parseInt(el.value, 10);
const today = new Date('2026-04-29');
const from = new Date(today.getTime() - days * 86400000);
const fmt = d => d.getFullYear() + String(d.getMonth() + 1).padStart(2, '0') + String(d.getDate()).padStart(2, '0');
document.getElementById('dateFrom').value = fmt(from);
document.getElementById('dateTo').value = fmt(today);
});
});
const form = document.getElementById('myForm');
......@@ -403,10 +405,7 @@
function onAccount(number) {
if (number == 2) {
window.history.back();
}
if (number == 3) {
if( number == 1) {
form.addEventListener('submit', async (e) => {
e.preventDefault(); // 阻止页面刷新
......@@ -418,6 +417,12 @@
}, 500);
});
}
if (number == 2) {
window.history.back();
}
if (number == 3) {
}
}
</script>
\ No newline at end of file
......@@ -138,10 +138,17 @@
}
/* 交易明细表格 */
.tablebox {
width: 1145px;
overflow-x: auto;
margin: auto;
}
.detail-table {
width: calc(100% - 40px);
border-collapse: collapse;
border: 1px solid #62a7e3;
overflow: hidden;
}
.lashen {
......@@ -171,7 +178,7 @@
}
.detail-table td {
padding: 10px;
padding: 0 5px;
border: none;
}
......@@ -322,6 +329,20 @@
margin-left: 2px;
margin-bottom: 2px;
}
table.grid td.center {
text-align: center;
}
table.grid td.num {
text-align: right;
font-family: Consolas, monospace;
}
/* table.grid td.col-select,
table.grid th.col-select {
display: none;
} */
</style>
</head>
......@@ -384,108 +405,112 @@
</div>
<!-- 交易明细表格 -->
<table class="detail-table" id="resultTable">
<thead>
<tr>
<th style="min-width: 54px;">选择</th>
<th style="min-width: 84px;">
<div class="xflex">
<span>交易时间 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</th>
<th colspan="2" class="thbox" style="min-width: 200px;">
<div>发生额/元</div>
<div class="flex">
<div class="tablebox">
<table class="detail-table grid" id="resultTable">
<thead>
<tr>
<th class="col-select" style="min-width: 54px;">选择</th>
<th style="min-width: 84px;">
<div class="xflex">
<span>借方(支取) </span>
<span>交易时间 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</th>
<th colspan="2" style="min-width: 200px;">
<div class="thbox">
<div>发生额/元</div>
<div class="flex">
<div class="xflex">
<span>借方(支取) </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
<div class="xflex">
<span>贷方(收入) </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</div>
</th>
<th style="min-width: 84px;">
<div class="xflex">
<span>贷方(收入) </span>
<span>余额 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 84px;">
<div class="xflex">
<span>余额 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</th>
<th style="min-width: 160px;">
<div class="xflex">
<span>对方户名 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 160px;">
<div class="xflex">
<span>对方户名 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 160px;">
<div class="xflex">
<span>对方账号 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 160px;">
<div class="xflex">
<span>对方账号 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 100px;">
<div class="xflex">
<span>对方<br>开户机构 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 100px;">
<div class="xflex">
<span>对方<br>开户机构 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 85px;">
<div class="xflex">
<span>记账日期 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 85px;">
<div class="xflex">
<span>记账日期 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 85px;">
<div class="xflex">
<span>摘要 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 85px;">
<div class="xflex">
<span>摘要 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th style="min-width: 100px;">
<div class="xflex">
<span>备注 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</th>
<th style="min-width: 100px;">
<div class="xflex">
<span>备注 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></div>
</div>
</div>
</div>
</th>
<th>
<div class="lashen">>></div>
</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</th>
<th>
<div class="lashen">>></div>
</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
<div class="empty" id="emptyMsg" style="display:none;">未查询到符合条件的记录</div>
<!-- 工具栏/统计栏 -->
<div class="toolbar-box">
......@@ -533,17 +558,25 @@
</html>
<script>
let CURRENT_ROWS = [];
let CURRENT_RANGE = { from: '', to: '' };
const params = JSON.parse(localStorage.getItem('accountQueryParams') || '{}');
const DATA = [{ "account": "42050123704500001941", "tradeTime": "2025-12-30 14:01:00", "debit": 0.0, "credit": 5000000.0, "balance": 5000000.0, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "42001023704560000002307967", "counterBank": "中国建设银行股份有限公司武汉南湖大道支行", "postDate": "2025-12-30", "summary": "2408", "remark": "贷款42001023704560000002307967", "detailNo": "1", "tradeSerial": "420000018DSM53H9FX3", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-01-21 02:23:19", "debit": 7791.66, "credit": 0.0, "balance": 4992208.34, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "42001023704560000002307967", "counterBank": "", "postDate": "2026-01-21", "summary": "收回贷款本息", "remark": "收回贷款42001023704560000002307967本息", "detailNo": "2", "tradeSerial": "42000001827469LWGM4", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-04 03:02:25", "debit": 380.0, "credit": 0.0, "balance": 4991828.34, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-02-04", "summary": "收费", "remark": "对公结算套餐\"代付通达\"年费", "detailNo": "3", "tradeSerial": "4202370452Z546PP8U4", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-08 19:40:26", "debit": 990000.0, "credit": 0.0, "balance": 4001828.34, "currency": "人民币", "counterName": "中科网联(武汉)信息技术有限公司", "counterAccount": "42050123704500001737", "counterBank": "", "postDate": "2026-02-08", "summary": "电子转账", "remark": "技术服务费", "detailNo": "4", "tradeSerial": "420237045J3RJMTSKEH", "entSerial": "电子转账凭证", "voucherType": "108184074073", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-08 19:40:26", "debit": 0.8, "credit": 0.0, "balance": 4001827.54, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-02-08", "summary": "收费", "remark": "对公人民币转账、汇款(含退汇)-本行同城", "detailNo": "5", "tradeSerial": "420237045J3RJMTSKEH", "entSerial": "电子转账凭证", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-10 14:26:24", "debit": 1000000.0, "credit": 0.0, "balance": 3001827.54, "currency": "人民币", "counterName": "中科网联(武汉)信息技术有限公司", "counterAccount": "42050123704500001737", "counterBank": "", "postDate": "2026-02-10", "summary": "电子转账", "remark": "技术服务费", "detailNo": "6", "tradeSerial": "420237045E1K6XS7QAN", "entSerial": "电子转账凭证", "voucherType": "108190675394", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-10 14:26:24", "debit": 0.8, "credit": 0.0, "balance": 3001826.74, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-02-10", "summary": "收费", "remark": "对公人民币转账、汇款(含退汇)-本行同城", "detailNo": "7", "tradeSerial": "420237045E1K6XS7QAN", "entSerial": "电子转账凭证", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-02-21 02:31:02", "debit": 10979.17, "credit": 0.0, "balance": 2990847.57, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "42001023704560000002307967", "counterBank": "", "postDate": "2026-02-21", "summary": "收回贷款本息", "remark": "收回贷款42001023704560000002307967本息", "detailNo": "8", "tradeSerial": "42000001829W1P42DEU", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-02 14:29:37", "debit": 0.0, "credit": 0.01, "balance": 2990847.58, "currency": "人民币", "counterName": "北京数字认证股份有限公司", "counterAccount": "110906291910608", "counterBank": "招商银行股份有限公司北京城市副中心分行营业部", "postDate": "2026-03-02", "summary": "电子汇入", "remark": "029958", "detailNo": "9", "tradeSerial": "420000018E2O7WXN8WQ", "entSerial": "电汇凭证", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-21 01:55:23", "debit": 0.0, "credit": 450.87, "balance": 2991298.45, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-03-21", "summary": "结息", "remark": "", "detailNo": "10", "tradeSerial": "null", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-21 02:31:04", "debit": 9916.66, "credit": 0.0, "balance": 2981381.79, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "42001023704560000002307967", "counterBank": "", "postDate": "2026-03-21", "summary": "收回贷款本息", "remark": "收回贷款42001023704560000002307967本息", "detailNo": "11", "tradeSerial": "42000001829WAIHAJ62", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-27 09:43:09", "debit": 40.0, "credit": 0.0, "balance": 2981341.79, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-03-27", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "12", "tradeSerial": "4202370459AAPU7L3S5", "entSerial": "电子转账凭证", "voucherType": "108279948286", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-27 09:43:09", "debit": 2000000.0, "credit": 0.0, "balance": 981341.79, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "567787824420", "counterBank": "中国银行股份有限公司武汉广埠屯支行", "postDate": "2026-03-27", "summary": "电子转账", "remark": "往来款", "detailNo": "13", "tradeSerial": "4202370459AAPU7L3S5", "entSerial": "电子转账凭证", "voucherType": "108279948286", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-03-30 10:07:25", "debit": 0.0, "credit": 10000.0, "balance": 991341.79, "currency": "人民币", "counterName": "商城县安顺达广告传媒有限公司", "counterAccount": "941003010004716690", "counterBank": "中国邮政储蓄银行股份有限公司", "postDate": "2026-03-30", "summary": "电子汇入", "remark": "合同款", "detailNo": "14", "tradeSerial": "4200000189X1I6EAQ6M", "entSerial": "电汇凭证", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-08 11:31:38", "debit": 1.0, "credit": 0.0, "balance": 991340.79, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-08", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "15", "tradeSerial": "420237045B51JZFCPYL", "entSerial": "电子转账凭证", "voucherType": "108301853889", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-08 11:31:38", "debit": 10000.0, "credit": 0.0, "balance": 981340.79, "currency": "人民币", "counterName": "湖北京田互联网科技有限公司", "counterAccount": "127920048910001", "counterBank": "招商银行股份有限公司武汉硚口支行", "postDate": "2026-04-08", "summary": "电子转账", "remark": "百度推广费用", "detailNo": "16", "tradeSerial": "420237045B51JZFCPYL", "entSerial": "电子转账凭证", "voucherType": "108301853889", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-10 18:30:07", "debit": 60000.0, "credit": 0.0, "balance": 921340.79, "currency": "人民币", "counterName": "中科软通(武汉)科技有限公司", "counterAccount": "42050110239900001040", "counterBank": "", "postDate": "2026-04-10", "summary": "电子转账", "remark": "往来款", "detailNo": "17", "tradeSerial": "420237045I0PF8677XQ", "entSerial": "电子转账凭证", "voucherType": "108308941348", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-11 10:50:55", "debit": 40000.0, "credit": 0.0, "balance": 881340.79, "currency": "人民币", "counterName": "中科软通(武汉)科技有限公司", "counterAccount": "42050110239900001040", "counterBank": "", "postDate": "2026-04-11", "summary": "电子转账", "remark": "往来款", "detailNo": "18", "tradeSerial": "420237045ACE1YQI02D", "entSerial": "电子转账凭证", "voucherType": "108309377123", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-17 17:46:05", "debit": 15.0, "credit": 0.0, "balance": 881325.79, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-17", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "19", "tradeSerial": "420237045H6X91WWWU2", "entSerial": "电子转账凭证", "voucherType": "108324286737", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-17 17:46:05", "debit": 104000.0, "credit": 0.0, "balance": 777325.79, "currency": "人民币", "counterName": "武汉智森浩科技有限公司", "counterAccount": "416180100100531523", "counterBank": "兴业银行股份有限公司武汉东湖高新科技支行", "postDate": "2026-04-17", "summary": "电子转账", "remark": "技术服务费", "detailNo": "20", "tradeSerial": "420237045H6X91WWWU2", "entSerial": "电子转账凭证", "voucherType": "108324286737", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-20 09:55:21", "debit": 1.0, "credit": 0.0, "balance": 777324.79, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-20", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "21", "tradeSerial": "4202370459ELET95OOO", "entSerial": "电子转账凭证", "voucherType": "108326340712", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-20 09:55:21", "debit": 6000.0, "credit": 0.0, "balance": 771324.79, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "3202180119060031447", "counterBank": "中国工商银行股份有限公司武汉熊廷弼路支行", "postDate": "2026-04-20", "summary": "电子转账", "remark": "往来款", "detailNo": "22", "tradeSerial": "4202370459ELET95OOO", "entSerial": "电子转账凭证", "voucherType": "108326340712", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-21 02:41:29", "debit": 10979.17, "credit": 0.0, "balance": 760345.62, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "42001023704560000002307967", "counterBank": "", "postDate": "2026-04-21", "summary": "收回贷款本息", "remark": "收回贷款42001023704560000002307967本息", "detailNo": "23", "tradeSerial": "4200000182DJ6V2QYER", "entSerial": "", "voucherType": "", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-22 15:19:35", "debit": 1.0, "credit": 0.0, "balance": 760344.62, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-22", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "24", "tradeSerial": "420237045EYKF1XJ4O1", "entSerial": "电子转账凭证", "voucherType": "108333129804", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-22 15:19:35", "debit": 10000.0, "credit": 0.0, "balance": 750344.62, "currency": "人民币", "counterName": "湖北京田互联网科技有限公司", "counterAccount": "127920048910001", "counterBank": "招商银行股份有限公司武汉硚口支行", "postDate": "2026-04-22", "summary": "电子转账", "remark": "百度搜索推广费用", "detailNo": "25", "tradeSerial": "420237045EYKF1XJ4O1", "entSerial": "电子转账凭证", "voucherType": "108333129804", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-27 09:45:33", "debit": 0.0, "credit": 90000.0, "balance": 840344.62, "currency": "人民币", "counterName": "中科网联(武汉)信息技术有限公司", "counterAccount": "42050123704500001737", "counterBank": "中国建设银行股份有限公司武汉南湖大道支行", "postDate": "2026-04-27", "summary": "电子转账", "remark": "往来款", "detailNo": "26", "tradeSerial": "4202370459B3BOHPCKA", "entSerial": "电子转账凭证", "voucherType": "108341488976", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-27 09:55:11", "debit": 1.0, "credit": 0.0, "balance": 840343.62, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-27", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "27", "tradeSerial": "4202370459EK7R2Y2S6", "entSerial": "电子转账凭证", "voucherType": "108341558401", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-27 09:55:11", "debit": 15000.0, "credit": 0.0, "balance": 825343.62, "currency": "人民币", "counterName": "中科软盈(武汉)科技有限公司", "counterAccount": "567787824420", "counterBank": "中国银行股份有限公司武汉广埠屯支行", "postDate": "2026-04-27", "summary": "电子转账", "remark": "往来款", "detailNo": "28", "tradeSerial": "4202370459EK7R2Y2S6", "entSerial": "电子转账凭证", "voucherType": "108341558401", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-27 10:01:54", "debit": 1.0, "credit": 0.0, "balance": 825342.62, "currency": "人民币", "counterName": "", "counterAccount": "", "counterBank": "", "postDate": "2026-04-27", "summary": "手续费", "remark": "对公人民币转账、汇款(含退汇)-跨行同城", "detailNo": "29", "tradeSerial": "4202370459V0N0W2NR7", "entSerial": "电子转账凭证", "voucherType": "108341599871", "voucherNo": "", "mediaNo": "" }, { "account": "42050123704500001941", "tradeTime": "2026-04-27 10:01:54", "debit": 50000.0, "credit": 0.0, "balance": 775342.62, "currency": "人民币", "counterName": "中科软齐(武汉)科技有限公司", "counterAccount": "127915363610701", "counterBank": "招商银行武汉分行经济技术开发区支行", "postDate": "2026-04-27", "summary": "电子转账", "remark": "往来款", "detailNo": "30", "tradeSerial": "4202370459V0N0W2NR7", "entSerial": "电子转账凭证", "voucherType": "108341599871", "voucherNo": "", "mediaNo": "" }];
function tradeYMD(r) { return r.tradeTime.slice(0, 10).replace(/-/g, ''); }
console.log(1111111111, params)
(function () {
doSearch()
})();
let CURRENT_ROWS = [];
let CURRENT_RANGE = { from: '', to: '' };
function fmtAmt(n) {
return Number(n).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
}
delete params.quickDate;
delete params.reverse;
for (const k in params) {
if (params[k] === '') {
params[k] = null;
};
}
(function () {
doSearch()
})();
function filterData(v) {
return DATA.filter(r => {
......@@ -576,22 +609,23 @@
const tr = document.createElement('tr');
tr.innerHTML = `
<td class="center col-select"><input type="checkbox"></td>
<td class="center">${r.tradeTime}</td>
<td class="center">${r.tradeTime?.replaceAll('-', '')}</td>
<td class="num">${fmtAmt(r.debit)}</td>
<td class="num">${fmtAmt(r.credit)}</td>
<td class="num">${fmtAmt(r.balance)}</td>
<td>${r.counterName || ''}</td>
<td>${r.counterAccount || ''}</td>
<td>${r.counterBank || ''}</td>
<td class="center">${r.postDate || ''}</td>
<td class="center">${r.postDate?.replaceAll('-', '') || ''}</td>
<td class="center">${r.summary || ''}</td>
<td>${r.remark || ''}</td>
<td></td>
`;
tbody.appendChild(tr);
});
document.getElementById('cnt').textContent = rows.length;
document.getElementById('totalDebit').textContent = fmtAmt(totDebit);
document.getElementById('totalCredit').textContent = fmtAmt(totCredit);
// document.getElementById('cnt').textContent = rows.length;
// document.getElementById('totalDebit').textContent = fmtAmt(totDebit);
// document.getElementById('totalCredit').textContent = fmtAmt(totCredit);
document.getElementById('emptyMsg').style.display = rows.length ? 'none' : '';
document.getElementById('resultTable').style.display = rows.length ? '' : 'none';
}
......@@ -599,7 +633,7 @@
function doSearch() {
const v = params;
const rows = filterData(v);
console.log(3333, rows)
console.log(3333, rows, v)
CURRENT_RANGE.from = v.dateFrom;
CURRENT_RANGE.to = v.dateTo;
......
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