分销等级配置商品券

main
ztt 8 months ago
parent be6b960a1c
commit fd2e3a517b
  1. 4
      application/admin/view/shopro/commission/level/add.html
  2. 4
      public/assets/js/backend/shopro/commission/level.js

@ -95,7 +95,7 @@
<el-form-item label="消费门槛">
<el-input class="sa-w-360" v-model="form.model.total_consume" placeholder="请输入消费门槛"></el-input>
</el-form-item>
<el-form-item label="方案一" prop="coupon_rules.programme_1">
<el-form-item label="方案一" prop="coupon_rules.programme_1" :rules="form.rules.commission_rules.programme_1">
<el-button type="primary" link
@click="onSelectCoupon1">选择商品券
</el-button>
@ -122,7 +122,7 @@
</el-form-item>
<el-form-item label="方案二" prop="coupon_rules.programme_2">
<el-form-item label="方案二" prop="coupon_rules.programme_2" :rules="form.rules.commission_rules.programme_2">
<el-button type="primary" link
@click="onSelectCoupon2">选择商品券
</el-button>

@ -119,6 +119,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
rules: [{ required: true, message: '请输入', trigger: 'blur' }],
level: [{ required: true, message: '请选择分销商等级', trigger: 'blur' }],
},
coupon_rules: [{
programme_1:[{ required: true, message: '方案一', trigger: 'blur' }],
programme_2:[{ required: true, message: '方案二', trigger: 'blur' }],
}]
},
})

Loading…
Cancel
Save