Commit 6d04ed6a by lixiaomin

修改页面

parent 5cb2c7cb
...@@ -477,30 +477,50 @@ export default { ...@@ -477,30 +477,50 @@ export default {
this.form.categoryId=response.data.categoryId; this.form.categoryId=response.data.categoryId;
this.type=response.data.type; this.type=response.data.type;
if(this.type=="1"){ if(this.type=="1"){
this.firstRadioValue=1; this.liJian=response.data.priceDiscount;
}else{ if(response.data.priceLimit==0){
this.firstRadioValue=1; this.firstRadioValue=1;
this.twoRadioValue=3; }else{
this.firstRadioValue=2;
this.priceLimit=response.data.priceLimit;
}
}else if(this.type=="2"){
this.jiZhe=response.data.priceDiscount;
if(response.data.orderLimit){
this.twoRadioValue=3;
}else{
this.twoRadioValue=4;
}
}else if(this.type=="3"){
this.twoRadioValue=3;
if(response.data.priceLimit==0){
this.firstRadioValue=1;
}else{
this.firstRadioValue=2;
this.priceLimit=response.data.priceLimit;
}
} }
if(response.data.daysLimit==0){ if(response.data.daysLimit==0){
this.form.userNumber=2 this.form.userNumber=2
}else if(response.data.daysLimit!=0){ }else if(response.data.daysLimit!=0){
this.form.userNumber=1 this.form.userNumber=1;
this.form.daysLimit=response.data.daysLimit;
this.form.userLimit=response.data.userLimit;
} }
this.form.times.push(response.data.useEndTime); this.form.times=[response.data.useStartTime,response.data.useEndTime];
this.form.times.push(response.data.useStartTime);
this.form.relativeTime=response.data.relativeTime; this.form.relativeTime=response.data.relativeTime;
this.form.receivableTime=response.data.receivableTime; this.form.receivableTime=response.data.receivableTime;
this.form.weekLimit=response.data.weekLimit; this.form.weekLimit=response.data.weekLimit;
if(response.data.categoryIds.length>0){ if(response.data.categoryIds.length>0){
if(response.data.categoryIds[0][0]=='0'){ if(response.data.categoryIds[0]=='0'){
this.shopRange=[0]; this.shopRange=[0];
}else{ }else{
console.log("response.data.categoryIds",response.data.categoryIds[0]);
this.shopRange=[1,"49"]
} }
} }
this.form.goodsIds=goodSList;
} }
...@@ -548,15 +568,13 @@ export default { ...@@ -548,15 +568,13 @@ export default {
if(this.form.userNumber=="2"){ if(this.form.userNumber=="2"){
this.form.daysLimit=0; this.form.daysLimit=0;
this.form.userLimit=0; this.form.userLimit=0;
}else{
this.form.daysLimit="";
this.form.userLimit="";
} }
if(this.form.times.length>0){ if(this.form.times.length>0){
this.form.useStartTime=this.form.times[0]; this.form.useStartTime=this.form.times[0];
this.form.useEndTime=this.form.times[1] this.form.useEndTime=this.form.times[1]
} }
//适用下拉商品类范围 //适用下拉商品类范围
console.log("this.shopRange",this.shopRange);
if(this.shopRange.length>0){ if(this.shopRange.length>0){
let cateList=[]; let cateList=[];
let goodSList=[]; let goodSList=[];
...@@ -667,7 +685,18 @@ export default { ...@@ -667,7 +685,18 @@ export default {
this.shopAreaTreeList=[{value:"0",label:"全国通用"},{value:"1",label:"限定区域",children:treeList}] this.shopAreaTreeList=[{value:"0",label:"全国通用"},{value:"1",label:"限定区域",children:treeList}]
} }
}); });
} },
// reset(){
// this.form.id=null;
// this.form.name=null;
// this.form.categoryId=null;
// this.form.categoryIds=null;
// this.form.userNumber=null,
// this.form.times=null;
// this.form.relativeTime=null;
// this.form.receivableTime=null;
// this.form.weekLimit=null;
// }
}, },
}; };
</script> </script>
......
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