fix: 简化真实采购创建并恢复客户端选择 (#112)
This commit is contained in:
@@ -162,8 +162,7 @@
|
||||
<h2 id="purchase-modal-title">确认创建采购任务</h2>
|
||||
<button type="button" class="modal-x" data-modal-close aria-label="关闭">×</button>
|
||||
</div>
|
||||
<form method="post" action="/syb/create-task" data-purchase-form
|
||||
data-confirm-submit="确认创建真实的未付款订单?系统不会自动支付。">
|
||||
<form method="post" action="/syb/create-task" data-purchase-form>
|
||||
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
||||
<input type="hidden" name="order_no" value="{{.Keyword}}">
|
||||
<input type="hidden" name="stage" value="{{.StageFilter}}">
|
||||
@@ -173,20 +172,9 @@
|
||||
<label for="purchase-client">执行客户端</label>
|
||||
<select id="purchase-client" name="client_id" required autofocus>
|
||||
<option value="">请选择可执行真实采购的客户端</option>
|
||||
{{range .AssignableClients}}<option value="{{.ClientID}}">{{.Name}}({{.ClientID}})</option>{{end}}
|
||||
{{range .AssignableClients}}<option value="{{.ClientID}}" {{if ne .PurchaseMode "live"}}disabled{{else if eq $.LivePurchaseClientCount 1}}selected{{end}}>{{.Name}}({{.ClientID}}){{if ne .PurchaseMode "live"}} — 未启用真实采购{{end}}</option>{{end}}
|
||||
</select>
|
||||
{{if not .AssignableClients}}<small class="missing">当前没有可执行真实采购的在线客户端。请检查客户端绑定、在线状态和真实采购授权。</small>{{end}}
|
||||
</div>
|
||||
<div class="live-confirm-panel" data-live-confirm-panel>
|
||||
<strong>真实下单安全确认</strong>
|
||||
<p>这会产生真实未付款订单。必须选择声明 live 能力的客户端;系统不会自动支付。</p>
|
||||
<label class="choice-row">
|
||||
<input type="checkbox" name="live_acknowledged" value="1" data-live-acknowledged required>
|
||||
<span>我确认本次操作会创建真实未付款订单</span>
|
||||
</label>
|
||||
<label for="live-confirmation">输入“创建未付款订单”继续</label>
|
||||
<input id="live-confirmation" name="live_confirmation" type="text"
|
||||
autocomplete="off" data-live-confirmation required>
|
||||
{{if eq .LivePurchaseClientCount 0}}<small class="missing">当前没有可执行真实采购的客户端。请先在 Client 设置页启用真实采购并重新登记。</small>{{else}}<small>离线客户端也可以提前指派,待其上线后领取。</small>{{end}}
|
||||
</div>
|
||||
<p class="hint">价格上限单位是人民币元,默认取已映射 PDD 规格的采集价;不会使用顺运宝的台币售价。</p>
|
||||
{{range .Rows}}
|
||||
@@ -206,7 +194,7 @@
|
||||
</div>
|
||||
<div class="modal-foot">
|
||||
<button type="button" data-modal-close>取消</button>
|
||||
<button type="submit" class="primary" data-purchase-submit {{if not .AssignableClients}}disabled{{end}}>确认创建真实采购任务</button>
|
||||
<button type="submit" class="primary" data-purchase-submit {{if eq .LivePurchaseClientCount 0}}disabled{{end}}>创建真实采购任务</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user