Commit 9b4dd528 authored by 黄同智's avatar 黄同智

联调交易详情列表

Co-authored-by: 's avatarCopilot <copilot@github.com>
parent 396dcde7
......@@ -196,7 +196,6 @@
color: red;
font-weight: bold;
margin-bottom: 10px;
font-size: 16px;
}
.tips-section p {
......@@ -413,7 +412,6 @@
// 方式1:使用 FormData 自动搜集
const formData = new FormData(form);
console.log(4444, Object.fromEntries(formData.entries()));
localStorage.setItem('accountQueryParams', JSON.stringify(Object.fromEntries(formData.entries())));
setTimeout(() => {
window.location.href = './account_list.html'
......
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
......@@ -12,10 +13,12 @@
font-family: "Microsoft Yahei", sans-serif;
font-size: 14px;
}
body {
background-color: #ffffff;
padding: 0;
}
/* 顶部导航栏 */
.top-nav {
background-color: #ffffff;
......@@ -25,11 +28,13 @@
padding: 10px 20px;
gap: 40px;
}
.top-nav a {
color: #1890ff;
text-decoration: none;
font-size: 16px;
}
/* 面包屑 */
.breadcrumb {
background-color: #f5f7fa;
......@@ -37,146 +42,289 @@
color: #666;
margin: 10px 0;
}
/* 账户信息卡片 */
.account-card {
margin: 10px 20px;
border: 1px solid #e8e8e8;
margin: 10px 0;
border-radius: 4px;
}
.account-card .account-number {
padding: 10px;
background: #fff;
border-bottom: 1px solid #e8e8e8;
position: relative;
}
.account-number span {
border: 1px solid #1890ff;
color: #1890ff;
.account-card .account-number::before {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 0;
width: 42px;
}
.account-card .account-number::after {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 158px;
right: 0
}
.account-number div {
display: inline-block;
border: 2px solid #1f93d5;
border-bottom: none;
color: #1f93d5;
padding: 4px 8px;
border-radius: 4px;
border-radius: 4px 4px 0 0;
margin-left: 40px;
height: 40px;
width: 120px;
text-align: center;
line-height: 30px;
font-weight: bold;
}
.info-table {
width: 100%;
border-collapse: collapse;
margin-top: 6px;
border: 1px solid #62a7e3;
}
.info-table td {
padding: 8px 15px;
border: 1px solid #e8e8e8;
border: none
}
.info-table tr {
border-top: 1px solid #c5d7e8;
}
.info-table tr:first-child {
border-top: 1px solid #1f93d5;
}
.info-table tr td:nth-child(2n+1) {
background-color: #f7fbfe;
text-align: right;
}
.info-table td:first-child {
width: 150px;
width: 230px;
background: #fafafa;
}
/* 工具栏 */
.toolbar {
.toolbar-btn {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 20px;
padding: 10px 20px;
margin-top: 20px;
}
.toolbar a {
.toolbar-btn a {
color: #1890ff;
text-decoration: none;
display: flex;
align-items: center;
gap: 4px;
}
/* 交易明细表格 */
.detail-table {
width: calc(100% - 40px);
margin: 0 20px;
border-collapse: collapse;
border: 1px solid #e8e8e8;
border: 1px solid #62a7e3;
}
.detail-table th {
background-color: #e6f4ff;
.lashen {
transform: scaleY(1.8);
color: #1890ff;
}
.detail-table th {
background-color: #c8e0f5;
padding: 10px;
text-align: left;
border: 1px solid #e8e8e8;
font-weight: normal;
}
.detail-table tr:nth-child(2n+1) {
background-color: #ebf4fb;
}
.detail-table tr:nth-child(2n) {
background-color: #fff;
}
.detail-table tr:hover {
background-color: #ebf4fb;
}
.detail-table td {
padding: 10px;
border: 1px solid #e8e8e8;
border: none;
}
.detail-table tr:nth-child(even) {
background-color: #fafafa;
.toolbar-box {
border: 1px solid #e8e8e8;
padding-bottom: 4px;
}
/* 工具栏/统计栏 */
.toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
padding: 10px 10px 0 10px;
background: #f8faf5;
border-top: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
}
.toolbar-left {
display: flex;
align-items: center;
gap: 20px;
gap: 30px;
}
.toolbar-right {
display: flex;
align-items: center;
gap: 20px;
}
.toolbar a {
color: #1890ff;
color: #1f93d5;
text-decoration: none;
display: flex;
align-items: center;
gap: 4px;
font-size: 16px;
}
.pagination {
display: flex;
align-items: center;
gap: 10px;
}
.pagination input {
width: 40px;
text-align: center;
border: 1px solid #d9d9d9;
padding: 2px;
}
/* 底部按钮组 */
.bottom-btn-group {
.btn-group {
display: flex;
justify-content: center;
gap: 30px;
gap: 20px;
margin: 30px 0;
padding-left: 120px;
}
.bottom-btn-group button {
background-color: #1890ff;
.btn-group button {
background-color: #1f93d5;
color: #fff;
border: none;
padding: 15px 40px;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
font-size: 15px;
height: 35px;
min-width: 100px;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: center;
}
.thbox {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.flex {
display: flex;
justify-content: space-between;
margin-top: 10px;
width: 100%;
}
.empty {
padding: 30px;
text-align: center;
color: #999;
border: 1px solid #dfe7ee;
border-top: none;
}
/* 温馨提示 */
.tips-section {
background-color: #f5faff;
padding: 20px;
background-color: #f0f7ff;
padding: 10px;
border: 1px solid #e8e8e8;
}
.tips-title {
color: #ff4d4f;
color: red;
font-weight: bold;
margin-bottom: 10px;
font-size: 18px;
}
.tips-section p {
line-height: 1.8;
color: #333;
font-size: 16px;
}
/* 箭头 */
.detail-table .xflex {
display: flex;
text-align: center;
align-items: flex-end;
}
.top {
width: 0;
height: 0;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
border-bottom: 6px solid #1f93d5;
}
.down {
width: 0;
height: 0;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
border-top: 6px solid #1f93d5;
}
.jiantou {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2px;
margin-left: 2px;
margin-bottom: 2px;
}
</style>
</head>
<body>
<!-- 顶部导航栏 -->
<!-- <div class="top-nav">
......@@ -195,12 +343,13 @@
当前位置:账户查询 > 账户信息查询 > 活期账户
</div>
<!-- 账户信息卡片 -->
<div class="account-card">
<div class="account-number">
<span>4205***1941</span>
<div>4205***1941</div>
</div>
<table class="info-table">
<table class="info-table" border="none">
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 号:</td>
<td>42050123704500001941</td>
......@@ -208,7 +357,7 @@
<td>中科软盈(武汉)科技有限公司</td>
</tr>
<tr>
<td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 种:</td>
<td>币种:</td>
<td>人民币元</td>
<td>开户行名称:</td>
<td>中国建设银行股份有限公司武汉南湖大道支行</td>
......@@ -222,168 +371,155 @@
<tr>
<td>账户状态:</td>
<td>正常</td>
<td></td>
<td style="background: none;"></td>
<td></td>
</tr>
</table>
</div>
<!-- 工具栏 -->
<div class="toolbar">
<div class="toolbar-btn">
<a href="#"><span></span> 下载当前页</a>
<a href="#"><span></span> 下载全部</a>
</div>
<!-- 交易明细表格 -->
<table class="detail-table">
<table class="detail-table" id="resultTable">
<thead>
<tr>
<th>选择</th>
<th>交易时间 ↕</th>
<th colspan="2">发生额/元<br>借方(支取) &nbsp;&nbsp;&nbsp; 贷方(收入)</th>
<th>余额 ↕</th>
<th>对方户名 ↕</th>
<th>对方账号 ↕</th>
<th>对方开户机构 ↕</th>
<th>记账日期 ↕</th>
<th>摘要 ↕</th>
<th>备注 ↕</th>
<th>>></th>
<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="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>
</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>
</div>
</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>
</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>
</th>
<th style="min-width: 85px;">
<div class="xflex">
<span>记账日期 </span>
<div class="jiantou">
<div class="top"></div>
<div class="down"></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>
</div>
</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>
</th>
<th>
<div class="lashen">>></div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox"></td>
<td>20251230<br>14:01:00</td>
<td>0.00</td>
<td>5,000,000.00</td>
<td>5,000,000.00</td>
<td>中科软盈(武汉)科技有限公司</td>
<td>4200102370456000002307987</td>
<td>中国建设银行股份有限公司武汉南湖大道支行</td>
<td>20251230</td>
<td>2408</td>
<td>贷款4200102370456000002307987 967 收回贷款42001023704560000023704 56000 00023 07987 本息</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260121<br>02:23:19</td>
<td>7,791.66</td>
<td>0.00</td>
<td>4,992,208.34</td>
<td>中科软盈(武汉)科技有限公司</td>
<td>4200102370456000002307987</td>
<td></td>
<td>20260121</td>
<td>收回贷款本息</td>
<td></td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260204<br>03:02:25</td>
<td>380.00</td>
<td>0.00</td>
<td>4,991,828.34</td>
<td></td>
<td></td>
<td></td>
<td>20260204</td>
<td>收费</td>
<td>对公结算套餐&quot;代付通达&quot;年费</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260208<br>19:40:26</td>
<td>990,000.00</td>
<td>0.00</td>
<td>4,001,828.34</td>
<td>中科网联(武汉)信息技术有限公司</td>
<td>42050123704500001737</td>
<td></td>
<td>20260208</td>
<td>电子转账</td>
<td>技术服务费</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260208<br>19:40:26</td>
<td>0.80</td>
<td>0.00</td>
<td>4,001,827.54</td>
<td></td>
<td></td>
<td></td>
<td>20260208</td>
<td>收费</td>
<td>对公人民币转账、汇款(含退汇)-本行同城</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260210<br>14:26:24</td>
<td>1,000,000.00</td>
<td>0.00</td>
<td>3,001,827.54</td>
<td>中科网联(武汉)信息技术有限公司</td>
<td>42050123704500001737</td>
<td></td>
<td>20260210</td>
<td>电子转账</td>
<td>技术服务费</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>20260210<br>14:26:24</td>
<td>0.80</td>
<td>0.00</td>
<td>3,001,826.74</td>
<td></td>
<td></td>
<td></td>
<td>20260210</td>
<td>收费</td>
<td>对公人民币转账、汇款(含退汇)-本行同城 收回贷款4</td>
<td></td>
</tr>
</tbody>
<tbody id="tbody"></tbody>
</table>
<div class="empty" id="emptyMsg" style="display:none;">未查询到符合条件的记录</div>
<!-- 工具栏/统计栏 -->
<div class="toolbar">
<div class="toolbar-left">
<label><input type="checkbox"> 全选</label>
<span>本次查询时间:20250901-20260428</span>
<div class="toolbar-box">
<div class="toolbar">
<div class="toolbar-left">
<label><input type="checkbox"> 全选</label>
<span>本次查询时间:20250901-20260428</span>
</div>
<div class="toolbar-right">
<a href="#"><img src="/imagse/tableDownload.png" alt=""> 下载当前页</a>
<a href="#"><img src="/imagse/tableDownload.png" alt=""> 下载全部</a>
</div>
</div>
<div class="toolbar-right">
<a href="#"><span></span> 下载当前页</a>
<a href="#"><span></span> 下载全部</a>
</div>
</div>
<!-- 交易统计+分页栏 -->
<div class="toolbar" style="border-top:none;">
<div class="toolbar-left">
<span>转出交易:25笔 &nbsp;&nbsp; 金额:4,325,108.26元;</span>
<span>转入交易:5笔 &nbsp;&nbsp; 金额:5,100,450.88元;</span>
<span style="color:#1890ff; font-size:18px;">?</span>
</div>
<div class="pagination">
<a href="#" style="color:#1890ff; text-decoration:none; font-size:16px;"></a>
<a href="#" style="color:#1890ff; text-decoration:none; font-size:16px;">&lt;上一页</a>
<span style="border:1px solid #ddd; padding:4px 10px; background:#fff;">1</span>
<a href="#" style="color:#1890ff; text-decoration:none; font-size:16px;">下一页&gt;</a>
<span>共1</span>
<span>到第 <input type="text"></span>
<a href="#" style="color:#1890ff; text-decoration:none; font-size:16px;">转至</a>
<!-- 交易统计+分页栏 -->
<div class="toolbar" style="border-top:none;">
<div class="toolbar-left">
<span>转出交易:25笔 &nbsp;&nbsp;&nbsp;&nbsp;金额:4,325,108.26元;</span>
<span>转入交易:5笔 &nbsp;&nbsp;&nbsp;&nbsp;金额:5,100,450.88元;</span>
</div>
<div class="pagination">
<a href="#" style="color:#0066b3; text-decoration:none;">首页</a>
<a href="#" style="color:#333; text-decoration:none;">&lt;上一</a>
<span style="border:1px solid #ddd; padding:4px 10px; background:#fff;">1</span>
<a href="#" style="color:#333; text-decoration:none; ">下一页&gt;</a>
<span>共1页</span>
<span>到第 <input type="text"> </span>
<a href="#" style="color:#0066b3; text-decoration:none; ">转至</a>
</div>
</div>
</div>
<!-- 底部按钮组 -->
<div class="bottom-btn-group">
<div class="btn-group">
<button>电子回执打印/预览</button>
<button onclick="onBack()">返回</button>
</div>
......@@ -394,10 +530,89 @@
<p>下载其他格式功能提供使用至2015年12月31日截止。</p>
</div>
</body>
</html>
<script>
console.log(2222, localStorage.getItem('accountQueryParams'))
function onBack(){
window.history.back();
}
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 filterData(v) {
return DATA.filter(r => {
const ymd = tradeYMD(r);
if (v.dateFrom && ymd < v.dateFrom) return false;
if (v.dateTo && ymd > v.dateTo) return false;
const amt = r.debit > 0 ? r.debit : r.credit;
if (v.amtFrom !== null && amt < v.amtFrom) return false;
if (v.amtTo !== null && amt > v.amtTo) return false;
if (v.direction === 'in' && !(r.credit > 0)) return false;
if (v.direction === 'out' && !(r.debit > 0)) return false;
if (v.counterName && !r.counterName.includes(v.counterName)) return false;
if (v.counterAccount && !r.counterAccount.includes(v.counterAccount)) return false;
if (v.remark && !r.remark.includes(v.remark)) return false;
if (v.summary && r.summary !== v.summary) return false;
const dn = parseInt(r.detailNo, 10);
if (v.detailFrom !== null && dn < v.detailFrom) return false;
if (v.detailTo !== null && dn > v.detailTo) return false;
return true;
});
}
function render(rows) {
CURRENT_ROWS = rows;
const tbody = document.getElementById('tbody');
tbody.innerHTML = '';
let totDebit = 0, totCredit = 0;
rows.forEach(r => {
totDebit += r.debit; totCredit += r.credit;
const tr = document.createElement('tr');
tr.innerHTML = `
<td class="center col-select"><input type="checkbox"></td>
<td class="center">${r.tradeTime}</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.summary || ''}</td>
<td>${r.remark || ''}</td>
`;
tbody.appendChild(tr);
});
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';
}
function doSearch() {
const v = params;
const rows = filterData(v);
console.log(3333, rows)
CURRENT_RANGE.from = v.dateFrom;
CURRENT_RANGE.to = v.dateTo;
// document.getElementById('resultArea').style.display = '';
render(rows);
// document.getElementById('resultArea').scrollIntoView({ behavior: 'smooth', block: 'start' });
}
function onBack() {
window.history.back();
}
</script>
\ No newline at end of file
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