|
|
@@ -864,6 +864,22 @@
|
|
|
<!-- </div>-->
|
|
|
<!-- </div>-->
|
|
|
<!-- </div>-->
|
|
|
+ <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
|
|
|
+ <div class="grid-demo grid-demo-bg1">
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">赠送优惠券</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <select name="give_coupon" lay-filter="give_coupon">
|
|
|
+ <option value="0">无</option>
|
|
|
+ <option :value="item.id" v-for="item in couponList"
|
|
|
+ :selected=" item.id == formData.give_coupon ? true : false ">
|
|
|
+ {{item.title}}
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="layui-col-xs12 layui-col-sm4 layui-col-md4">
|
|
|
<div class="grid-demo grid-demo-bg1">
|
|
|
<div class="layui-form-item">
|
|
|
@@ -995,12 +1011,14 @@
|
|
|
cateList: [],
|
|
|
//运费模板
|
|
|
tempList: [],
|
|
|
+ couponList: [],
|
|
|
upload: {
|
|
|
videoIng: false
|
|
|
},
|
|
|
formData: {
|
|
|
cate_id: [],
|
|
|
temp_id: 0,
|
|
|
+ give_coupon: 0,
|
|
|
commission: 0,
|
|
|
store_name: '',
|
|
|
keyword: '',
|
|
|
@@ -1223,6 +1241,7 @@
|
|
|
})).then(function (res) {
|
|
|
that.$set(that, 'cateList', res.data.cateList);
|
|
|
that.$set(that, 'tempList', res.data.tempList);
|
|
|
+ that.$set(that, 'couponList', res.data.couponsList);
|
|
|
var productInfo = res.data.productInfo || {};
|
|
|
if (productInfo.id && that.id) {
|
|
|
that.$set(that, 'formData', productInfo);
|
|
|
@@ -1488,6 +1507,9 @@
|
|
|
that.form.on('select(temp_id)', function (data) {
|
|
|
that.$set(that.formData, 'temp_id', data.value);
|
|
|
});
|
|
|
+ that.form.on('select(give_coupon)', function (data) {
|
|
|
+ that.$set(that.formData, 'give_coupon', data.value);
|
|
|
+ });
|
|
|
that.form.on('select(rule_index)', function (data) {
|
|
|
that.ruleIndex = data.value;
|
|
|
});
|