MicroCommunityWeb/public/components/scm/addCouponPropertyPool/addCouponPropertyPool.html

95 lines
5.4 KiB
HTML

<div id="addCouponPropertyPoolModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<h3 class="m-t-none m-b ">
<vc:i18n name="制作优惠券" namespace="addCouponPropertyPool"></vc:i18n>
</h3>
<div class="ibox-content">
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name='优惠券名称' namespace='addCouponPropertyPool'></vc:i18n>
</label>
<div class="col-sm-10">
<input v-model="addCouponPropertyPoolInfo.couponName" type="text"
:placeholder="vc.i18n('必填,请填写优惠券名称','addCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name='用途' namespace='addCouponPropertyPool'></vc:i18n>
</label>
<div class="col-sm-10">
<select class="custom-select" v-model="addCouponPropertyPoolInfo.toType"
@change="_addChangeToType()">
<option selected disabled value="">
{{vc.i18n('必填,请选择用途','addCouponPropertyPool')}}</option>
</option>
<option value="1011">{{vc.i18n('购物','addCouponPropertyPool')}}
</option>
<!-- <option value="2002">{{vc.i18n('缴费','addCouponPropertyPool')}}
</option> -->
<option value="3003">{{vc.i18n('维修劵','addCouponPropertyPool')}}
</option>
<option value="4004">{{vc.i18n('停车劵','addCouponPropertyPool')}}
</option>
<option value="5005">{{vc.i18n('充电桩充电劵','addCouponPropertyPool')}}
</option>
</select>
</div>
</div>
<div class="form-group row" v-for="(item,index) in addCouponPropertyPoolInfo.toTypes" :key="index">
<label class="col-sm-2 col-form-label">{{item.name}}</label>
<div class="col-sm-10">
<input v-model="item.columnValue" type="text" :placeholder="item.remark"
class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name='数量' namespace='addCouponPropertyPool'></vc:i18n>
</label>
<div class="col-sm-10">
<input v-model="addCouponPropertyPoolInfo.stock" type="text"
:placeholder="vc.i18n('必填,请填写数量','addCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name='有效期' namespace='addCouponPropertyPool'></vc:i18n>
</label>
<div class="col-sm-10">
<input v-model="addCouponPropertyPoolInfo.validityDay" type="text"
:placeholder="vc.i18n('必填,请填写有效期(天)','addCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">
<vc:i18n name='使用说明' namespace='addCouponPropertyPool'></vc:i18n>
</label>
<div class="col-sm-10">
<textarea :placeholder="vc.i18n('必填,请填写使用说明','addCouponPropertyPool')" class="form-control"
v-model="addCouponPropertyPoolInfo.remark"></textarea>
</div>
</div>
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button"
v-on:click="saveCouponPropertyPoolInfo()"><i class="fa fa-check"></i>&nbsp;
<span>
<vc:i18n name="保存"></vc:i18n>
</span>
</button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal">
<vc:i18n name="取消"></vc:i18n>
</button>
</div>
</div>
</div>
</div>
</div>
</div>