修复接单模板商品成本范围可见性

This commit is contained in:
yml
2026-11-14 21:48:15 +08:00
parent 9a7aaf605e
commit ba6d5fb43b
11 changed files with 199 additions and 17 deletions
@@ -911,7 +911,7 @@ export function ProductCatalogPanel() {
name="canonicalSku"
label="标准 SKU"
rules={[{ required: true, message: '请输入标准 SKU' }]}
extra="来源由前缀决定:aff: 自动发货 / tpl: 接单模板 / wo: 工单证据 / man: 人工。"
extra="aff: 自动发货 / wo: 工单证据;tpl: 接单模板和 man: 人工商品分别由对应配置自动创建。"
>
<Input placeholder="例如:tpl:bb 或 aff:SKU-1" disabled={Boolean(editingProduct)} />
</Form.Item>
@@ -905,7 +905,10 @@ export default function ProductRulesPanel() {
description={
<span>
在这里选择“固定金额”或“按 SKU 按件”;具体金额与价格同步统一由
<a href="#/admin/cost-center" style={{ margin: '0 4px', fontWeight: 500 }}>
<a
href="#/admin/cost-center?scope=work_order&tab=products"
style={{ margin: '0 4px', fontWeight: 500 }}
>
商品与成本中心
</a>
管理。新模板默认停用,配置成本并启用模板后自动出现在商品目录。