菜品复制测试问题修改
This commit is contained in:
parent
d202b70381
commit
07f8e87ca0
|
|
@ -949,8 +949,17 @@ export default {
|
||||||
choseDateRadio(e){
|
choseDateRadio(e){
|
||||||
let index = this.dateRangeList.findIndex(v=>v.applyDate==this.dateRangeRadio)
|
let index = this.dateRangeList.findIndex(v=>v.applyDate==this.dateRangeRadio)
|
||||||
this.dateRangeIndex = index
|
this.dateRangeIndex = index
|
||||||
this.detailList = this.dateRangeList[index].detailList
|
this.detailList = this.dateRangeList[index].detailList;
|
||||||
this.getRecipeDetailByDate()
|
let hasDishes = false
|
||||||
|
this.detailList.forEach(item=>{
|
||||||
|
if(item.dishesList.length>0){
|
||||||
|
hasDishes=true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(!hasDishes){
|
||||||
|
this.getRecipeDetailByDate()
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// ----每周重复-----
|
// ----每周重复-----
|
||||||
getWeekDates() {
|
getWeekDates() {
|
||||||
|
|
@ -997,7 +1006,16 @@ export default {
|
||||||
choseWeekDate(item,index){
|
choseWeekDate(item,index){
|
||||||
this.weekId = item.applyWeek;
|
this.weekId = item.applyWeek;
|
||||||
this.detailList = this.weekDateList[index].detailList;
|
this.detailList = this.weekDateList[index].detailList;
|
||||||
this.getRecipeDetailByWeek()
|
let hasDishes2 = false
|
||||||
|
this.detailList.forEach(item=>{
|
||||||
|
if(item.dishesList.length>0){
|
||||||
|
hasDishes2=true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log(this.detailList)
|
||||||
|
if(!hasDishes2){
|
||||||
|
this.getRecipeDetailByWeek()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue