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"> + + +