修复 日常收费 - 收费 清空选择日期时错误
This commit is contained in:
parent
21416475a2
commit
422bd341ef
@ -457,7 +457,7 @@ export default {
|
|||||||
|
|
||||||
dateSpan = sDate2 - sDate1;
|
dateSpan = sDate2 - sDate1;
|
||||||
if (dateSpan < 0) {
|
if (dateSpan < 0) {
|
||||||
this.msgError("你现在的结算日期小于上一次结算日期!!");
|
this.msgError("你现在的结算日期小于上一次上次结算 / 用餐日期");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
dateSpan = Math.abs(dateSpan);
|
dateSpan = Math.abs(dateSpan);
|
||||||
@ -465,12 +465,19 @@ export default {
|
|||||||
this.formAddNewSettlement.settlementDays = iDays;
|
this.formAddNewSettlement.settlementDays = iDays;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.formAddNewSettlement.selectBillingDate!=null){
|
||||||
showMealsWithSelect(this.formAddNewSettlement).then(response => {
|
showMealsWithSelect(this.formAddNewSettlement).then(response => {
|
||||||
this.mealsList = response.data.reportMealsList;
|
this.mealsList = response.data.reportMealsList;
|
||||||
this.dinnerTotalPrice = response.data.reportMealsPrice.dinnerTotalPrice;
|
this.dinnerTotalPrice = response.data.reportMealsPrice.dinnerTotalPrice;
|
||||||
this.nutritionTotalPrice = response.data.reportMealsPrice.nutritionTotalPrice;
|
this.nutritionTotalPrice = response.data.reportMealsPrice.nutritionTotalPrice;
|
||||||
this.sumTotalPrice = response.data.reportMealsPrice.sumTotalPrice;
|
this.sumTotalPrice = response.data.reportMealsPrice.sumTotalPrice;
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
this.mealsList = null;
|
||||||
|
this.dinnerTotalPrice = 0;
|
||||||
|
this.nutritionTotalPrice = 0;
|
||||||
|
this.sumTotalPrice = 0;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 获取用户相关信息
|
// 获取用户相关信息
|
||||||
myGetUser() {
|
myGetUser() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user