style: 压缩档口入库码筛选工具栏 (#239)

This commit is contained in:
chengma
2026-08-15 11:04:10 +08:00
parent 7b766f5c2a
commit d79bdb10d3
3 changed files with 69 additions and 10 deletions
+4 -8
View File
@@ -2,11 +2,6 @@
{{template "header" .}}
<div class="toolbar inner-code-toolbar" data-inner-code-page>
<div class="inline">
<label for="inner-code-date">业务日期</label>
<input id="inner-code-date" type="date" value="{{.BusinessDate}}" data-inner-code-date>
</div>
<form class="inline" method="post" action="/inner-codes/import" enctype="multipart/form-data"
data-upload-form>
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
@@ -16,17 +11,18 @@
<button type="submit" data-upload-submit>导入</button>
</form>
<form id="inner-code-filter" class="inline grow" method="get" action="/inner-codes">
<input type="hidden" name="date" value="{{.BusinessDate}}" data-inner-code-date-field>
<form id="inner-code-filter" class="inline grow inner-code-filter-form" method="get" action="/inner-codes">
<label for="inner-code-status">状态</label>
<select id="inner-code-status" name="status">
{{range .StatusOptions}}<option value="{{.Value}}" {{if eq .Value $.StatusFilter}}selected{{end}}>{{.Text}}</option>{{end}}
</select>
<label for="inner-code-date">业务日期</label>
<input id="inner-code-date" type="date" name="date" value="{{.BusinessDate}}" data-inner-code-date>
<label class="visually-hidden" for="inner-code-keyword">搜索订单号、档口、规格或入库码</label>
<input id="inner-code-keyword" class="inner-code-search" type="text" name="q" value="{{.Keyword}}"
placeholder="订单号 / 档口 / 规格 / 入库码">
<button type="submit">搜索</button>
<a class="button-link" href="/inner-codes?date={{.BusinessDate}}">清除</a>
<button type="submit">搜索</button>
</form>
<form id="inner-code-match-form" method="post" action="/inner-codes/match" hidden>