fix: 统一顺运宝单条采集客户端选择 (#174)

This commit is contained in:
chengma
2026-08-12 09:56:15 +08:00
parent 6127551a7b
commit f693d2a6fc
5 changed files with 98 additions and 4 deletions
+12 -2
View File
@@ -39,7 +39,7 @@
</form>
{{if .PddGoodsID}}
<form method="post" action="/syb/collect-pdd" class="inline">
<form method="post" action="/syb/collect-pdd" class="form-stack">
<input type="hidden" name="csrf_token" value="{{$.CSRFToken}}">
<input type="hidden" name="syb_id" value="{{.SybID}}">
<input type="hidden" name="order_no" value="{{$.Keyword}}">
@@ -47,7 +47,17 @@
<input type="hidden" name="stage" value="{{$.StageFilter}}">
<input type="hidden" name="page" value="{{$.CurrentPage}}">
{{if .CanCollect}}
<button type="submit">{{if or (eq .CollectStatus "failed") (eq .Stage "pdd_collecting_stale")}}重新创建采集任务{{else}}创建采集任务{{end}}</button>
<div class="field">
<label for="syb-detail-collect-client">执行客户端</label>
<select id="syb-detail-collect-client" name="client_id">
<option value="">不指定(任意客户端可领取)</option>
{{range $.AssignableClients}}
<option value="{{.ClientID}}">{{.Name}}({{.ClientID}},{{.Status}})</option>
{{end}}
</select>
<small>通常保持不指定即可;指定后任务只等待该客户端领取。</small>
</div>
<div><button type="submit">{{if or (eq .CollectStatus "failed") (eq .Stage "pdd_collecting_stale")}}重新创建采集任务{{else}}创建采集任务{{end}}</button></div>
{{else}}
<span class="hint">{{if eq .CollectStatus "collecting"}}采集任务正在执行,请稍后刷新。{{else}}PDD 数据已采集,下一步匹配采购规格。{{end}}</span>
{{end}}