diff --git a/web-admin/src/components/business/pl-plan-arrange-dialog/index.vue b/web-admin/src/components/business/pl-plan-arrange-dialog/index.vue
index df5e971cb..6a1b7aa17 100644
--- a/web-admin/src/components/business/pl-plan-arrange-dialog/index.vue
+++ b/web-admin/src/components/business/pl-plan-arrange-dialog/index.vue
@@ -273,24 +273,38 @@
>
|
+
+ 收货单位:
+ {{receivingUnit}}
+
+ |
+
+
+ 收货联系方式:
+ {{receiveContact}}
+
+ |
+
+ ${buildDeliverySlipTypeCheckboxesHtml()}
+
+ 日 期:
+ {{planDateChinese}}
+
+ |
+ ||||
|
-
- 收货单位:
- {{receivingUnit}}
-
- |
-
- ${buildDeliverySlipTypeCheckboxesHtml()}
-
- 单据编号:
- {{planNo}}
-
- |
- |||||
|
-
- 收货联系方式:
- {{receiveContact}}
-
- |
-
-
- 日 期:
- {{planDateChinese}}
-
- |
- |||||
| 单据编号 | 物料编号 | 物料名称 | 规格 | @@ -671,7 +677,7 @@ export function generateDeliverySlipTemplate(_plan?: Plan): string {||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + | 备注:{{remark}} | ${buildDeliverySlipTermsHtml()} | -+ | ${SEAL_BLOCK} | @@ -781,7 +787,7 @@ function patchDeliverySlipProductGridCellAttrs(attrs: string): string { function normalizeDeliverySlipProductGridCell(html: string): string { if (!html.includes('delivery-slip-doc') || !html.includes('delivery-slip-product-cell')) return html - let result = html.replace(/|||||||||||||||||||||||||||||||
| \s*){7}\s*<\/tr>/g, (rowMatch) => { + let result = html.replace(/ | |||||||||||||||||||||||||||||||||||
| \s*){8}\s*<\/tr>/g, (rowMatch) => { if (!rowMatch.includes('物料编号') || rowMatch.includes('colspan')) return rowMatch let row = rowMatch.includes('delivery-slip-product-header') ? rowMatch @@ -791,7 +797,7 @@ function normalizeDeliverySlipProductGridCell(html: string): string { }) }) - result = result.replace(/ | |||||||||||||||||||||||||||||||||||
| ]*colspan)[^>]*>[\s\S]*?<\/td>\s*){7}\s*<\/tr>/g, (rowMatch) => { + result = result.replace(/ | |||||||||||||||||||||||||||||||||||
| ]*colspan)[^>]*>[\s\S]*?<\/td>\s*){8}\s*<\/tr>/g, (rowMatch) => { if ( rowMatch.includes('备注') || rowMatch.includes('1.本送货单') || @@ -1120,9 +1126,10 @@ function normalizeDeliverySlipProductTableFooter(html: string): string { let result = html - result = result.replace(/ | ]*colspan="7"[^>]*)>(\s*)备注:/g, (_match, attrs, space) => { + result = result.replace(/ | ]*colspan="[78]"[^>]*)>(\s*)备注:/g, (_match, attrs, space) => { + const withSpan = String(attrs).replace(/colspan="[78]"/, 'colspan="8"') const patched = patchProductFooterCellAttrs( - attrs, + withSpan, 'delivery-slip-product-cell', PRODUCT_TABLE_CELL_LEFT ) @@ -1130,9 +1137,9 @@ function normalizeDeliverySlipProductTableFooter(html: string): string { }) result = result.replace( - / | ]*colspan="[45]"[^>]*)>\s*( ]*colspan="[456]"[^>]*)>\s*( {
- const withSpan = String(attrs).replace(/colspan="[45]"/, 'colspan="5"')
+ const withSpan = String(attrs).replace(/colspan="[456]"/, 'colspan="5"')
const patched = patchProductFooterCellAttrs(
withSpan,
'delivery-slip-product-cell delivery-slip-terms-cell',
@@ -1145,7 +1152,7 @@ function normalizeDeliverySlipProductTableFooter(html: string): string {
result = result.replace(
/ ]*colspan="[23]"[^>]*)>\s* | {
- const withSpan = String(attrs).replace(/colspan="[23]"/, 'colspan="2"')
+ const withSpan = String(attrs).replace(/colspan="[23]"/, 'colspan="3"')
const patched = patchProductFooterCellAttrs(withSpan, 'delivery-slip-product-cell', PRODUCT_TABLE_CELL_LEFT)
return ` \n | ]*)>\s* ]*)>\s* {
if (attrs.includes('delivery-slip-terms-cell') && attrs.includes('border:0.3px solid #000') && /colspan="5"/.test(match)) {
return match
@@ -1227,10 +1234,15 @@ function normalizeDeliverySlipTermsText(html: string): string {
/** 刷新已有间距行的 inline 样式(TinyMCE 保存后可能丢失) */
function refreshDeliverySlipGapBeforeProduct(html: string): string {
- return html.replace(
- / | \n | \n ]*>[\s\S]*?<\/div>/,
+ ` | | | ||||||||||||||||||||||||||