From b467fcd4db04cd45c67cec73a7d8e1e62010b976 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 24 Sep 2026 16:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=8F=E6=97=A5=E8=8F=9C?= =?UTF-8?q?=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canteenDailyMenu/importConfirmDialog.vue | 11 ++++++--- src/views/canteen/canteenDailyMenu/index.vue | 23 +++++++++++++++++++ .../canteen/canteenDailyMenu/rowDialog.vue | 14 +++++++++++ src/views/canteen/canteenSpu/form.vue | 8 ------- 4 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/views/canteen/canteenDailyMenu/importConfirmDialog.vue b/src/views/canteen/canteenDailyMenu/importConfirmDialog.vue index 2cf59e56..9a29c48e 100644 --- a/src/views/canteen/canteenDailyMenu/importConfirmDialog.vue +++ b/src/views/canteen/canteenDailyMenu/importConfirmDialog.vue @@ -450,6 +450,10 @@ const open = (payload: { bizDate, mealNames: mealNames.length ? mealNames : [], mealName: mealNames.join(",") || r.mealName, + id: r.id != null && r.id !== "" ? String(r.id) : r.id, + spuId: r.spuId != null && r.spuId !== "" ? String(r.spuId) : r.spuId, + childSpuId: + r.childSpuId != null && r.childSpuId !== "" ? String(r.childSpuId) : r.childSpuId, } }) mealFilters.value = [...ALL_MEALS] @@ -517,9 +521,10 @@ const submitConfirm = async () => { onlineStock: toNumberOrUndef(r.onlineStock), offlineStock: toNumberOrUndef(r.offlineStock), ingredients: r.ingredients, - id: r.id, - spuId: r.spuId, - childSpuId: r.childSpuId, + // 雪花 ID 必须始终以字符串回传,避免 JSON Number 丢末位精度 + id: r.id != null && r.id !== "" ? String(r.id) : undefined, + spuId: r.spuId != null && r.spuId !== "" ? String(r.spuId) : undefined, + childSpuId: r.childSpuId != null && r.childSpuId !== "" ? String(r.childSpuId) : undefined, } }), } diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue index e0fcb8cf..d7e3571d 100644 --- a/src/views/canteen/canteenDailyMenu/index.vue +++ b/src/views/canteen/canteenDailyMenu/index.vue @@ -90,6 +90,10 @@ | {{ getCategoryName(item.categoryId) }} +
+ {{ displayComboName(item) }} +
含:{{ formatComboItems(item.comboItems) }} @@ -113,6 +117,10 @@ | {{ getCategoryName(item.categoryId) }}
+
+ {{ displayComboName(item) }} +
含:{{ formatComboItems(item.comboItems) }} @@ -137,6 +145,10 @@ | {{ getCategoryName(item.categoryId) }}
+
+ {{ displayComboName(item) }} +
含:{{ formatComboItems(item.comboItems) }} @@ -223,6 +235,11 @@ :max-height="listTableMaxHeight" :default-sort="{ prop: 'sort', order: 'ascending' }" :cell-style="tableStyle.cellStyle" :header-cell-style="tableStyle.headerCellStyle"> + + +