diff --git a/ticket/detail.html b/ticket/detail.html index ffd3a8f..e272160 100644 --- a/ticket/detail.html +++ b/ticket/detail.html @@ -4,17 +4,22 @@ 单据详情 - - + + + -
- ← 返回查询页面 - -
-
正在加载详情...
-
+
+ + ← 返回查询页面 + +
+
正在加载详情...
+
- - // 页面加载时获取详情 - document.addEventListener('DOMContentLoaded', loadTicketDetail); - \ No newline at end of file diff --git a/ticket/index.html b/ticket/index.html index 523eaee..83ed570 100644 --- a/ticket/index.html +++ b/ticket/index.html @@ -4,90 +4,129 @@ 单据查询 - - + + + -
- ← 返回首页 - -

单据查询

+
+ ← 返回首页 -
-
- - -
+

单据查询

-
- - -
- -
- - -
- - +
+
+ +
-
- +
+ +
+ +
+ + +
+ +
- + + html += ''; + resultsDiv.innerHTML = html; + } + + function formatDate(dateString) { + if (!dateString) return ''; + return new Date(dateString).toLocaleDateString('zh-CN'); + } + + function viewDetail(id) { + window.location.href = `detail.html?id=${id}`; + } + + // 事件绑定(替代 onclick) + document.getElementById('searchBtn').addEventListener('click', searchTickets); + + document.getElementById('searchTerm').addEventListener('keypress', function(e) { + if (e.key === 'Enter') searchTickets(); + }); + + \ No newline at end of file diff --git a/ticket/print.html b/ticket/print.html new file mode 100644 index 0000000..bf0ecd5 --- /dev/null +++ b/ticket/print.html @@ -0,0 +1,157 @@ + + + + +打印单据 + + + + + + +
+ + +
BISS · OFFICIAL
+ +
单据详情
+ + + + + + + + +
编号
姓名
事由
金额
开具人
日期
+ + + +
+ + + + + + + \ No newline at end of file