|
@@ -1,7 +1,7 @@
|
|
|
import { DateFormat, IBestToast, userInfo, UserInfo, YTAvoid, YTDateUtil, yTRouter } from "basic"
|
|
import { DateFormat, IBestToast, userInfo, UserInfo, YTAvoid, YTDateUtil, yTRouter } from "basic"
|
|
|
import { BabyFoodApi } from "../Apis/BabyFoodApi"
|
|
import { BabyFoodApi } from "../Apis/BabyFoodApi"
|
|
|
import { routerUtils } from "../utils/RouterUtils"
|
|
import { routerUtils } from "../utils/RouterUtils"
|
|
|
-import { AppStorageV2 } from "@kit.ArkUI"
|
|
|
|
|
|
|
+import { AppStorageV2, UIUtils } from "@kit.ArkUI"
|
|
|
import {
|
|
import {
|
|
|
AddRecipeEventData,
|
|
AddRecipeEventData,
|
|
|
BabyInfo, Cuisine, DayPlan, PurchaseList, WeeklyPlan, WeeklyPlanPurchaseList } from "../model/Index"
|
|
BabyInfo, Cuisine, DayPlan, PurchaseList, WeeklyPlan, WeeklyPlanPurchaseList } from "../model/Index"
|
|
@@ -181,7 +181,8 @@ export class MainViewModel{
|
|
|
try {
|
|
try {
|
|
|
IBestToast.showLoading({message: "修改中"})
|
|
IBestToast.showLoading({message: "修改中"})
|
|
|
|
|
|
|
|
- await BabyFoodApi.updateWeeklyPlan(WeeklyPlanPurchaseList.clone(this.planList!))
|
|
|
|
|
|
|
+ let requestData = WeeklyPlanPurchaseList.clone(this.planList!)
|
|
|
|
|
+ await BabyFoodApi.updateWeeklyPlan(requestData)
|
|
|
// 修改食谱清单后需刷新采购清单
|
|
// 修改食谱清单后需刷新采购清单
|
|
|
this.getWeeklyPurchaseList()
|
|
this.getWeeklyPurchaseList()
|
|
|
// 刷新数据源
|
|
// 刷新数据源
|