Commit a06d686c by lixiaomin

修改优惠券

parent eb0f9e5f
...@@ -162,7 +162,7 @@ ...@@ -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 :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="请选择地区门店" <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;" /> :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 <el-option
v-for="item in weekList" v-for="item in weekList"
:key="item.value" :key="item.value"
...@@ -252,7 +252,8 @@ export default { ...@@ -252,7 +252,8 @@ export default {
city:[], city:[],
province:[], province:[],
userLimit:null, userLimit:null,
daysLimit:null daysLimit:null,
week:[]
}, },
// 表单校验 // 表单校验
rules: { rules: {
...@@ -483,7 +484,6 @@ export default { ...@@ -483,7 +484,6 @@ export default {
this.getShopAreaTree(); this.getShopAreaTree();
this.getMessageMoudle(); this.getMessageMoudle();
getCouponDetail(row.id).then((response) => { getCouponDetail(row.id).then((response) => {
console.log("response",response.data);
if(response.code==200){ if(response.code==200){
this.form.id=response.data.id; this.form.id=response.data.id;
this.form.name=response.data.name; this.form.name=response.data.name;
...@@ -524,9 +524,9 @@ export default { ...@@ -524,9 +524,9 @@ export default {
this.form.relativeTime=response.data.relativeTime; this.form.relativeTime=response.data.relativeTime;
this.form.receivableTime=response.data.receivableTime; this.form.receivableTime=response.data.receivableTime;
if(response.data.weekLimit[0]==0){ if(response.data.weekLimit[0]==0){
this.form.weekLimit=[]; this.form.week=[];
}else{ }else{
this.form.weekLimit=response.data.weekLimit; this.form.week=response.data.weekLimit;
} }
//短信通知 //短信通知
if(response.data.sendMsg){ if(response.data.sendMsg){
...@@ -756,7 +756,7 @@ export default { ...@@ -756,7 +756,7 @@ export default {
}else if(this.form.sendMsgTag==2){ }else if(this.form.sendMsgTag==2){
this.form.sendMsg=false; this.form.sendMsg=false;
} }
if(this.form.weekLimit.length==0){ if(this.form.week.length==0){
this.form.weekLimit=[0] this.form.weekLimit=[0]
} }
console.log("this.form",this.form); console.log("this.form",this.form);
......
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