Browse Source

feat(express): 添加快递名称选择选项

- 在快递配送规则中增加 delivery_name 字段的选择配置
- 添加次卡兑换码选项作为快递名称的可选值
- 为 delivery_id 输入字段保持必填验证规则
shichen 4 months ago
parent
commit
e631561547
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/common/repositories/store/shipping/ExpressRepository.php

+ 3 - 0
app/common/repositories/store/shipping/ExpressRepository.php

@@ -164,6 +164,9 @@ class ExpressRepository extends BaseRepository
164 164
                     [
165 165
                         'value' => 3,
166 166
                         'rule'=> [
167
+                            Elm::select('delivery_name', '快递名称')->options([
168
+                                ['label' => '次卡兑换码', 'value' => 1],
169
+                            ]),
167 170
                             Elm::input('delivery_id', '兑换码')->required(),
168 171
                         ]
169 172
                     ],