add charge coupon

This commit is contained in:
java110 2023-03-11 17:56:12 +08:00
parent 6dfce8f18e
commit 298f395db6
2 changed files with 118 additions and 127 deletions

View File

@ -1,96 +1,91 @@
<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 "><span>
<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 "><span>
<vc:i18n name="制作优惠券" namespace="addCouponPropertyPool"></vc:i18n>
</span></h3>
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<vc:i18n name='优惠券名称' namespace='addCouponPropertyPool'></vc:i18n>
</span></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"><span>
<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"><span>
<vc:i18n name='用途' namespace='addCouponPropertyPool'></vc:i18n>
</span></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>
</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"><span>
<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"><span>
<vc:i18n name='数量' namespace='addCouponPropertyPool'></vc:i18n>
</span></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"><span>
<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"><span>
<vc:i18n name='有效期' namespace='addCouponPropertyPool'></vc:i18n>
</span></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"><span>
<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"><span>
<vc:i18n name='使用说明' namespace='addCouponPropertyPool'></vc:i18n>
</span></label>
<div class="col-sm-10">
<textarea :placeholder="vc.i18n('必填,请填写使用说明','addCouponPropertyPool')" class="form-control"
v-model="addCouponPropertyPoolInfo.remark"></textarea>
</div>
</div>
<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
<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">
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">
<span>
<vc:i18n name="取消"></vc:i18n>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,29 +1,27 @@
<div id="editCouponPropertyPoolModel" 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 "><span>
<div id="editCouponPropertyPoolModel" 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 "><span>
<vc:i18n name="修改" namespace="editCouponPropertyPool"></vc:i18n>
</span></h3>
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<vc:i18n name='优惠券名称' namespace='editCouponPropertyPool'></vc:i18n>
</span> </label>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.couponName" type="text"
:placeholder="vc.i18n('必填,请填写优惠券名称','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.couponName" type="text" :placeholder="vc.i18n('必填,请填写优惠券名称','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<vc:i18n name='用途' namespace='editCouponPropertyPool'></vc:i18n>
</span> </label>
<div class="col-sm-10">
<select class="custom-select" v-model="editCouponPropertyPoolInfo.toType" @change="_editChangeToType()">
<div class="col-sm-10">
<select class="custom-select" v-model="editCouponPropertyPoolInfo.toType" @change="_editChangeToType()">
<option selected disabled value="">{{vc.i18n('必填,请选择用途','editCouponPropertyPool')}}</option>
</option>
<option value="1011">{{vc.i18n('购物','editCouponPropertyPool')}}
@ -34,57 +32,55 @@
</option>
<option value="4004">{{vc.i18n('停车劵','editCouponPropertyPool')}}
</option>
<option value="5005">{{vc.i18n('充电桩充电劵','editCouponPropertyPool')}}
</option>
</select>
</div>
</div>
<div class="form-group row" v-for="(item,index) in editCouponPropertyPoolInfo.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"><span>
</div>
</div>
<div class="form-group row" v-for="(item,index) in editCouponPropertyPoolInfo.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"><span>
<vc:i18n name='数量' namespace='editCouponPropertyPool'></vc:i18n>
</span> </label>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.stock" type="text"
:placeholder="vc.i18n('必填,请填写数量','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.stock" type="text" :placeholder="vc.i18n('必填,请填写数量','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<vc:i18n name='有效期' namespace='editCouponPropertyPool'></vc:i18n>
</span> </label>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.validityDay" type="text"
:placeholder="vc.i18n('必填,请填写有效期','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<div class="col-sm-10">
<input v-model="editCouponPropertyPoolInfo.validityDay" type="text" :placeholder="vc.i18n('必填,请填写有效期','editCouponPropertyPool')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label"><span>
<vc:i18n name='使用说明' namespace='editCouponPropertyPool'></vc:i18n>
</span></label>
<div class="col-sm-10">
<textarea :placeholder="vc.i18n('必填,请填写使用说明','editCouponPropertyPool')" class="form-control"
v-model="editCouponPropertyPoolInfo.remark"></textarea>
</div>
</div>
<div class="col-sm-10">
<textarea :placeholder="vc.i18n('必填,请填写使用说明','editCouponPropertyPool')" class="form-control" v-model="editCouponPropertyPoolInfo.remark"></textarea>
</div>
</div>
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button" v-on:click="editCouponPropertyPool()"><i
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button" v-on:click="editCouponPropertyPool()"><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"><span>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal"><span>
<vc:i18n name="取消"></vc:i18n>
</span></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>