分销等级配置商品券

main
ztt 8 months ago
parent 5b33285960
commit f83af8fa1d
  1. 72
      application/admin/view/shopro/commission/level/add.html

@ -99,51 +99,55 @@
<el-button type="primary" link
@click="onSelectCoupon1">选择商品券
</el-button>
<!-- <template v-if="form.model.coupon_rules.programme_1.length > 0">-->
</el-form-item>
<div class="sa-template-wrap">
<template>
<div class="header sa-flex">
<div class="key">券名称</div>
<div class="oper">操作</div>
</div>
<div class="item" v-for="(element, index) in form.model.coupon_rules.programme_1" :key="element">
<div class="key">
<div class="goods-title sa-m-b-6">{{ element.description }}</div>
<el-form-item>
<div class="sa-template-wrap">
<template v-if="form.model.coupon_rules.programme_1.length > 0">
<div class="header sa-flex">
<div class="key">券名称</div>
<div class="oper">操作</div>
</div>
<div class="oper">
<el-button type="danger" link @click="onDeleteCoupon1(index)">
移除
</el-button>
<div class="item" v-for="(element, index) in form.model.coupon_rules.programme_1" :key="element">
<div class="key">
<div class="goods-title sa-m-b-6">{{ element.description }}</div>
</div>
<div class="oper">
<el-button type="danger" link @click="onDeleteCoupon1(index)">
移除
</el-button>
</div>
</div>
</div>
</template>
</div>
</template>
</div>
</el-form-item>
<el-form-item label="方案二" prop="coupon_rules.programme_2">
<el-button type="primary" link
@click="onSelectCoupon2">选择商品券
</el-button>
<!-- <template v-if="form.model.coupon_rules.programme_2.length > 0">-->
</el-form-item>
<div class="sa-template-wrap">
<template>
<div class="header sa-flex">
<div class="key">券名称</div>
<div class="oper">操作</div>
</div>
<div class="item" v-for="(element, index) in form.model.coupon_rules.programme_2" :key="element">
<div class="key">
<div class="goods-title sa-m-b-6">{{ element.description }}</div>
<el-form-item>
<div class="sa-template-wrap">
<template v-if="form.model.coupon_rules.programme_2.length > 0">
<div class="header sa-flex">
<div class="key">券名称</div>
<div class="oper">操作</div>
</div>
<div class="oper">
<el-button type="danger" link @click="onDeleteCoupon2(index)">
移除
</el-button>
<div class="item" v-for="(element, index) in form.model.coupon_rules.programme_2" :key="element">
<div class="key">
<div class="goods-title sa-m-b-6">{{ element.description }}</div>
</div>
<div class="oper">
<el-button type="danger" link @click="onDeleteCoupon2(index)">
移除
</el-button>
</div>
</div>
</div>
</template>
</div>
</template>
</div>
</el-form-item>
<!-- <el-form-item label="一级(自购)佣金比例" prop="commission_rules.commission_1"-->
<!-- :rules="form.rules.commission_rules.commission">-->

Loading…
Cancel
Save