diff --git a/apps/admin-web/src/components/AdminStorePackagesSection.tsx b/apps/admin-web/src/components/AdminStorePackagesSection.tsx index df78188..7d8b12e 100644 --- a/apps/admin-web/src/components/AdminStorePackagesSection.tsx +++ b/apps/admin-web/src/components/AdminStorePackagesSection.tsx @@ -59,7 +59,7 @@ const AdminStorePackagesSection = forwardRef message.error(e instanceof Error ? e.message : '加载套餐失败')) @@ -124,7 +124,13 @@ const AdminStorePackagesSection = forwardRef item.name || item.dishes || item.price || item.imageUrls.length > 0); + // 允许整店无套餐:忽略空白占位行(默认 price=0 不算已填) + .filter((item) => { + const hasText = !!(item.name || item.dishes || item.usableTime || item.otherNotes); + const hasImages = item.imageUrls.length > 0; + const hasNonZeroPrice = item.price !== '' && Number(item.price) !== 0; + return hasText || hasImages || hasNonZeroPrice; + }); for (let i = 0; i < filled.length; i++) { const item = filled[i]; @@ -168,7 +174,7 @@ const AdminStorePackagesSection = forwardRef + ) : isPdfUrl(value) ? ( + +
+ + PDF 合同 +
+ + + + + setPdfPreviewOpen(false)} + footer={null} + width="90vw" + styles={{ body: { height: '75vh', padding: 0 } }} + destroyOnClose + > +