Commit a06d686c by lixiaomin

修改优惠券

parent eb0f9e5f
......@@ -162,7 +162,7 @@
<el-cascader :options="shopRangeList" v-model="shopRange" clearable placeholder="请选择使用商品范围" class="width" :props="{ multiple: true}" collapse-tags :show-all-levels="false"/>
<el-cascader ref="area" :options="shopAreaTreeList" v-model="storesRange" :props="{ multiple: true }" clearable collapse-tags placeholder="请选择地区门店"
:show-all-levels="false" style="margin-left:55px;width:300px;" />
<el-select v-model="form.weekLimit" placeholder="请选择可用日期" multiple collapse-tags style="margin-left: 130px;width: 328px;" clearable>
<el-select v-model="form.week" placeholder="请选择可用日期" multiple collapse-tags style="margin-left: 130px;width: 328px;" clearable>
<el-option
v-for="item in weekList"
:key="item.value"
......@@ -252,7 +252,8 @@ export default {
city:[],
province:[],
userLimit:null,
daysLimit:null
daysLimit:null,
week:[]
},
// 表单校验
rules: {
......@@ -483,7 +484,6 @@ export default {
this.getShopAreaTree();
this.getMessageMoudle();
getCouponDetail(row.id).then((response) => {
console.log("response",response.data);
if(response.code==200){
this.form.id=response.data.id;
this.form.name=response.data.name;
......@@ -524,9 +524,9 @@ export default {
this.form.relativeTime=response.data.relativeTime;
this.form.receivableTime=response.data.receivableTime;
if(response.data.weekLimit[0]==0){
this.form.weekLimit=[];
this.form.week=[];
}else{
this.form.weekLimit=response.data.weekLimit;
this.form.week=response.data.weekLimit;
}
//短信通知
if(response.data.sendMsg){
......@@ -756,8 +756,8 @@ export default {
}else if(this.form.sendMsgTag==2){
this.form.sendMsg=false;
}
if(this.form.weekLimit.length==0){
this.form.weekLimit=[0]
if(this.form.week.length==0){
this.form.weekLimit=[0]
}
console.log("this.form",this.form);
if (this.form.id != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment