Commit 33319abc authored by 黄同智's avatar 黄同智

长期查询的页面

Co-authored-by: 's avatarCopilot <copilot@github.com>
parent 7c99dfbd
...@@ -278,16 +278,12 @@ ...@@ -278,16 +278,12 @@
<!-- <input class="date-input dateTo" type="date" /> --> <!-- <input class="date-input dateTo" type="date" /> -->
</div> </div>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="quickDate" value="7" /> 最近7</label> <label><input type="radio" name="quickDate" value="90" /> 最近90</label>
<label><input type="radio" name="quickDate" value="14" /> 最近14</label> <label><input type="radio" name="quickDate" value="180" /> 最近180</label>
<label><input type="radio" name="quickDate" value="30" /> 最近30</label> <label><input type="radio" name="quickDate" value="365" /> 最近365</label>
</div> </div>
<span class="form-question question1"></span> <span class="form-question question1"></span>
</div> </div>
<div class="form-row"> <div class="form-row">
<label class="form-label">交易金额:</label> <label class="form-label">交易金额:</label>
<input type="text" class="form-input small" name="amtFrom"> <input type="text" class="form-input small" name="amtFrom">
...@@ -295,40 +291,16 @@ ...@@ -295,40 +291,16 @@
<input type="text" class="form-input small" name="amtTo"> <input type="text" class="form-input small" name="amtTo">
</div> </div>
<div class="form-row">
<label class="form-label">交易方向:</label>
<div class="radio-group">
<label><input type="radio" name="direction" checked value="all"> 全部</label>
<label><input type="radio" name="direction" value="in"> 转入</label>
<label><input type="radio" name="direction" value="out"> 转出</label>
</div>
</div>
<div class="form-row mt-24">
<label class="form-label">冲正交易:</label>
<div class="radio-group">
<label><input type="radio" name="reverse" checked> 显示</label>
<label><input type="radio" name="reverse"> 不显示</label>
</div>
<span class="form-question question2"></span>
</div>
<div class="form-row mt-20"> <div class="form-row mt-20">
<label class="form-label">对方户名:</label> <label class="form-label">对方户名:</label>
<input type="text" class="form-input wide" name="counterName"> <input type="text" class="form-input wide" name="counterName">
<span class="form-tip">录入生僻字</span>
</div> </div>
<div class="form-row"> <div class="form-row">
<label class="form-label">对方账号:</label> <label class="form-label">对方账号:</label>
<input type="text" class="form-input wide" name="counterAccount"> <input type="text" class="form-input wide" name="counterAccount">
</div> </div>
<div class="form-row">
<label class="form-label">交易备注:</label>
<input type="text" class="form-input wide" name="remark">
<span class="form-tip">录入生僻字</span>
</div>
<div class="form-row"> <div class="form-row">
<label class="form-label">交易摘要:</label> <label class="form-label">交易摘要:</label>
<!-- name="summary" --> <!-- name="summary" -->
...@@ -351,7 +323,7 @@ ...@@ -351,7 +323,7 @@
<div class="btn-group"> <div class="btn-group">
<button onclick="onAccount(1)">确定</button> <button onclick="onAccount(1)">确定</button>
<button onclick="onAccount(2)">返回</button> <button onclick="onAccount(2)">返回</button>
<button onclick="onAccount(3)" type="submit">查询长期</button> <button onclick="onAccount(3)" type="submit">异步下载查询</button>
</div> </div>
</form> </form>
</div> </div>
...@@ -360,7 +332,7 @@ ...@@ -360,7 +332,7 @@
<div class="tips-section"> <div class="tips-section">
<div class="tips-title">温馨提示</div> <div class="tips-title">温馨提示</div>
<p>1、签约汇总记账账户仅提供历史明细查询。</p> <p>1、签约汇总记账账户仅提供历史明细查询。</p>
<p>2、当前交易明细查询页面仅支持查询最近一年半的账户明细,“查询长期”支持查询最近十年的账户明细,如需查询十年前的账户明细请联系您的开户行。</p> <p>2、当前交易明细查询页面支持查询最近十年的账户明细,如需查询十年前的账户明细请联系您的开户行。</p>
</div> </div>
<script src="calendar-plugin/calendar.js"></script> <script src="calendar-plugin/calendar.js"></script>
</body> </body>
...@@ -391,7 +363,14 @@ ...@@ -391,7 +363,14 @@
document.querySelectorAll('input[name=quickDate]').forEach(el => { document.querySelectorAll('input[name=quickDate]').forEach(el => {
el.addEventListener('change', () => { el.addEventListener('change', () => {
const days = parseInt(el.value, 10); const days = parseInt(el.value, 10);
const today = new Date('2026-04-29');
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); // 补零
const day = String(now.getDate()).padStart(2, '0');
const formattedDate = `${year}-${month}-${day}`;
const today = new Date(formattedDate);
const from = new Date(today.getTime() - days * 86400000); 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'); 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('dateFrom').value = fmt(from);
...@@ -403,7 +382,6 @@ ...@@ -403,7 +382,6 @@
const form = document.getElementById('myForm'); const form = document.getElementById('myForm');
function onAccount(number) { function onAccount(number) {
if( number == 1) { if( number == 1) {
form.addEventListener('submit', async (e) => { form.addEventListener('submit', async (e) => {
......
...@@ -284,6 +284,10 @@ ...@@ -284,6 +284,10 @@
</div> </div>
<span class="form-question question1"></span> <span class="form-question question1"></span>
</div> </div>
<div class="form-row"> <div class="form-row">
<label class="form-label">交易金额:</label> <label class="form-label">交易金额:</label>
<input type="text" class="form-input small" name="amtFrom"> <input type="text" class="form-input small" name="amtFrom">
......
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