feat(web-admin): support per-row planNo and multiline remarks on slip templates

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-27 21:14:59 +08:00
1 parent bbcb2b8936
commit e930e583a9
3 files changed
+12 -7

No files matched your search

@@ -1,4 +1,5 @@
import type { Plan, PlanProduct } from '@/api/pl'
import { formatRemarkForSlipHtml } from '@/utils/pl-batch-print'
import { applyPdfStableTableCellBorders } from '@/utils/pl-slip-pdf-render'
/** 分装单打印默认公司信息(可在富文本中修改) */
@@ -2119,7 +2120,7 @@ export function replaceSubpackSlipPlaceholders(
'{{driverInfo}}': '',
'{{planDateChinese}}': '',
'{{productTable}}': buildProductRows(plan.products, ctx),
'{{remark}}': plan.remark || '',
'{{remark}}': formatRemarkForSlipHtml(plan.remark),
'{{remarkExtra}}': '',
'{{companyAddress}}': '',
'{{companyPhone}}': '',