{"id":43439,"date":"2025-06-12T15:28:21","date_gmt":"2025-06-12T07:28:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/43439.html"},"modified":"2025-06-12T15:28:21","modified_gmt":"2025-06-12T07:28:21","slug":"html%e6%89%93%e5%8d%b0%e5%90%88%e5%90%8c%e6%a8%a1%e6%9d%bf","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/43439.html","title":{"rendered":"html\u6253\u5370\u5408\u540c\u6a21\u677f"},"content":{"rendered":"<p>\u6982\u8ff0&#xff08;\u5410\u69fd&#xff09;&#xff1a;\u8bb0\u5f55\u4e00\u4e2ahtml\u6253\u5370\u5408\u540c\u6a21\u677f\u7684\u529f\u80fd&#xff0c;\u6280\u672f\u6808\u6709\u70b9\u6742&#xff0c;\u5343\u79a7\u5e74\u51fa\u4ea7\u8001\u7cfb\u7edf\u7684\u6570\u636e\u5e93\u662fsqlserver2008&#xff0c;\u539f\u7cfb\u7edf\u6846\u67b6\u662fc#&#xff0c;\u65e0\u6cd5\u4e8c\u5f00&#xff0c;\u56e0\u4e3a\u539f\u7cfb\u7edf\u7684\u5408\u540c\u751f\u6210\u529f\u80fd\u51fa\u73b0bug&#xff0c;\u6ca1\u6709\u4f9b\u5e94\u5546\u53ef\u4ee5\u89e3\u51b3&#xff0c;\u56e0\u6b64\u53ea\u80fd\u91cd\u65b0\u5f00\u53d1\u5408\u540c\u751f\u6210\u7684\u529f\u80fd\u3002\u73b0\u91c7\u7528fastadmin\u540e\u53f0\u8fde\u63a5sqlserver\u6570\u636e\u5e93&#xff08;\u8fd9\u91cc\u53c8\u6709\u6587\u7ae0\u2026\u2026&#xff09;\u63d0\u4f9b\u6570\u636eapi\u63a5\u53e3&#xff0c;\u524d\u7aef\u7528\u7684\u662funiapp\u6846\u67b6\u505a\u7684h5\u9879\u76ee&#xff0c;\u524d\u7aef\u6280\u672f\u6808\u53c8\u5f88\u6742&#xff0c;\u4e3b\u8981\u7528\u5230\u4e86vue3&#043;ts&#043;js&#043;uniui&#043;z-paging&#xff0c;\u662f\u7684\u4f60\u6ca1\u770b\u9519&#xff0c;ts\u548cjs\u540c\u65f6\u7528&#xff0c;\u5c31\u662f\u8fd9\u4e48\u6742\u2026\u2026<\/p>\n<p>\u4e0b\u9762\u91cd\u70b9\u8bb2\u8ff0html\u5b9a\u5236\u6253\u5370\u529f\u80fd&#xff0c;\u901a\u8fc7\u7cfb\u7edf\u81ea\u5e26\u7684\u6253\u5370PDF\u529f\u80fd\u751f\u6210\u5408\u540c\u6587\u4ef6\u3002<\/p>\n<p>\u4e00\u3001\u524d\u7aef\u9879\u76ee\u76ee\u5f55\u7ed3\u6784<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"689\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a819271c04.png\" width=\"265\" \/>\u9879\u76ee\u7ed3\u6784\u5982\u56fe&#xff0c;\u4e00\u4e2a\u662flist\u5408\u540c\u5217\u8868&#xff0c;detail\u5408\u540c\u8be6\u60c5\u8868&#xff0c;\u4ee5\u53ca\u6700\u6700\u6838\u5fc3\u7684print.js<\/p>\n<p>\u4e8c\u3001\u6548\u679c\u9875\u9762\u5c55\u793a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"476\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a819282002.png\" width=\"222\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"472\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a8192b4f50.png\" width=\"221\" \/>\u56fe1\u662f\u5217\u8868\u9875&#xff0c;\u5217\u8868\u9875\u7528\u4e86z-paging\u7ec4\u4ef6&#xff0c;\u81ea\u5e26\u5206\u9875\u67e5\u8be2&#xff0c;\u5f3a\u70c8\u63a8\u8350&#xff5e;<\/p>\n<p>\u56fe2\u662f\u8be6\u60c5\u9875&#xff0c;\u8c46\u5305\u5199\u7684&#xff0c;\u4e5f\u8fd8\u884c&#xff5e;\u5f3a\u70c8\u63a8\u8350&#043;1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1338\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a8192e5441.png\" width=\"2030\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1338\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072819-684a8193c7688.png\" width=\"2030\" \/><\/p>\n<p>\u6253\u5370\u9884\u89c8\u6548\u679c\u5982\u4e0a\u56fe\u6240\u793a<\/p>\n<p>\u4e09\u3001\u4ee3\u7801<\/p>\n<p>print.js<\/p>\n<p>import {generateStandardContract} from &#039;.\/template3_7_no_ad.js&#039;<\/p>\n<p>\/**<br \/>\n * \u4f7f\u7528\u6d4f\u89c8\u5668\u539f\u751f\u6253\u5370\u529f\u80fd\u751f\u6210PDF<br \/>\n * &#064;param {Object} contractData \u5408\u540c\u6570\u636e<br \/>\n * &#064;param {string} templateType \u6a21\u677f\u7c7b\u578b<br \/>\n * &#064;param {string} fileName \u751f\u6210\u7684PDF\u6587\u4ef6\u540d<br \/>\n *\/<br \/>\nexport const printToPdf &#061; (contractData, templateType &#061; &#039;default&#039;, fileName &#061; &#039;\u5408\u540c\u8be6\u60c5&#039;) &#061;&gt; {<br \/>\nconsole.log(contractData);<\/p>\n<p>  \/\/ \u4fdd\u5b58\u5f53\u524d\u6eda\u52a8\u4f4d\u7f6e<br \/>\n  const scrollTop &#061; window.scrollY;<\/p>\n<p>  \/\/ \u521b\u5efa\u6253\u5370\u524d\u7684\u56de\u8c03\u51fd\u6570<br \/>\n  const beforePrint &#061; () &#061;&gt; {<br \/>\n    console.log(&#039;\u51c6\u5907\u6253\u5370&#8230;&#039;);<br \/>\n  };<\/p>\n<p>  \/\/ \u521b\u5efa\u6253\u5370\u540e\u7684\u56de\u8c03\u51fd\u6570<br \/>\n  const afterPrint &#061; () &#061;&gt; {<br \/>\n    window.scrollTo(0, scrollTop);<br \/>\n    console.log(&#039;\u6253\u5370\u5b8c\u6210&#039;);<br \/>\n  };<\/p>\n<p>  \/\/ \u68c0\u67e5\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301beforeprint\/afterprint\u4e8b\u4ef6<br \/>\n  if (window.matchMedia) {<br \/>\n    const mediaQueryList &#061; window.matchMedia(&#039;print&#039;);<br \/>\n    mediaQueryList.addEventListener(&#039;change&#039;, (mql) &#061;&gt; {<br \/>\n      if (mql.matches) {<br \/>\n        beforePrint();<br \/>\n      } else {<br \/>\n        afterPrint();<br \/>\n      }<br \/>\n    });<br \/>\n  } else {<br \/>\n    window.onbeforeprint &#061; beforePrint;<br \/>\n    window.onafterprint &#061; afterPrint;<br \/>\n  }<\/p>\n<p>  \/\/ \u751f\u6210\u5408\u540cHTML<br \/>\n  const contractHtml &#061; generateStandardContract(contractData);<\/p>\n<p>  \/\/ \u521b\u5efa\u4e34\u65f6\u6253\u5370\u7a97\u53e3<br \/>\n  const printWindow &#061; window.open(&#039;&#039;, &#039;_blank&#039;);<br \/>\n  if (!printWindow) {<br \/>\n    console.error(&#039;\u65e0\u6cd5\u6253\u5f00\u65b0\u7a97\u53e3&#xff0c;\u8bf7\u68c0\u67e5\u6d4f\u89c8\u5668\u8bbe\u7f6e&#xff08;\u53ef\u80fd\u88ab\u963b\u6b62&#xff09;&#039;);<br \/>\n    return;<br \/>\n  }<\/p>\n<p>  \/\/ \u83b7\u53d6\u5f53\u524d\u9875\u9762\u7684\u6837\u5f0f<br \/>\n  const styleElements &#061; document.querySelectorAll(&#039;style, link[rel&#061;&#034;stylesheet&#034;]&#039;);<br \/>\n  let styleHtml &#061; &#039;&#039;;<\/p>\n<p>  styleElements.forEach((element) &#061;&gt; {<br \/>\n    if (element.tagName &#061;&#061;&#061; &#039;STYLE&#039;) {<br \/>\n      styleHtml &#043;&#061; element.outerHTML;<br \/>\n    } else if (element.tagName &#061;&#061;&#061; &#039;LINK&#039;) {<br \/>\n      styleHtml &#043;&#061; &#096;&lt;link rel&#061;&#034;stylesheet&#034; href&#061;&#034;${element.href}&#034;&gt;&#096;;<br \/>\n    }<br \/>\n  });<\/p>\n<p>  \/\/ \u6dfb\u52a0\u6253\u5370\u4e13\u7528\u6837\u5f0f &#8211; A4\u5e03\u5c40&#xff0c;\u79fb\u9664\u9875\u7709\u9875\u811a<br \/>\n  const printStyle &#061; &#096;<br \/>\n     &lt;style&gt;<br \/>\n       &#064;media print {<br \/>\n         \/* \u8bbe\u7f6eA4\u5c3a\u5bf8 *\/<br \/>\n         &#064;page {<br \/>\n           size: A4;<br \/>\n           margin: 1.5cm; \/* \u8c03\u6574\u9875\u8fb9\u8ddd *\/<br \/>\n         }<\/p>\n<p>         body {<br \/>\n           margin: 0;<br \/>\n           font-family: &#034;SimSun&#034;, &#034;\u5b8b\u4f53&#034;;<br \/>\n           width: 210mm; \/* A4\u5bbd\u5ea6 *\/<br \/>\n           min-height: 297mm; \/* A4\u9ad8\u5ea6 *\/<br \/>\n         }<\/p>\n<p>         \/* \u9690\u85cf\u6240\u6709\u4e0d\u9700\u8981\u6253\u5370\u7684\u5143\u7d20 *\/<br \/>\n         .no-print, .navbar, .action-buttons, .loading-mask {<br \/>\n           display: none !important;<br \/>\n         }<\/p>\n<p>         \/* \u786e\u4fdd\u8868\u683c\u4e0d\u65ad\u9875 *\/<br \/>\n         table, .detail-item {<br \/>\n           page-break-inside: avoid;<br \/>\n         }<\/p>\n<p>         \/* \u8868\u683c\u6837\u5f0f *\/<br \/>\n         table {<br \/>\n           border-collapse: collapse;<br \/>\n           width: 100%;<br \/>\n         }<\/p>\n<p>         th, td {<br \/>\n           border: 1px solid #ddd;<br \/>\n           padding: 8px;<br \/>\n         }<\/p>\n<p>         th {<br \/>\n           background-color: #f2f2f2;<br \/>\n         }<\/p>\n<p>         \/* \u79fb\u9664\u6d4f\u89c8\u5668\u9ed8\u8ba4\u6dfb\u52a0\u7684\u9875\u7709\u9875\u811a *\/<br \/>\n         &#064;page {<br \/>\n           margin-top: 0;<br \/>\n           margin-bottom: 0;<br \/>\n           &#064;top-left { content: none; }<br \/>\n           &#064;top-center { content: none; }<br \/>\n           &#064;top-right { content: none; }<br \/>\n           &#064;bottom-left { content: none; }<br \/>\n           &#064;bottom-center { content: none; }<br \/>\n           &#064;bottom-right { content: none; }<br \/>\n         }<br \/>\n       }<br \/>\n     &lt;\/style&gt;<br \/>\n   &#096;;<br \/>\n  \/\/ \u751f\u6210\u9875\u7709HTML&#xff08;\u542b\u56fe\u7247&#xff09;<br \/>\n  const headerHtml &#061; &#096;<br \/>\n    &lt;div class&#061;&#034;contract-header&#034; style&#061;&#034;text-align:center;height:75px;line-height:75px;&#034;&gt;<br \/>\n      &lt;img src&#061;&#034;..\/..\/..\/static\/header.png&#034; alt&#061;&#034;\u9875\u7709\u56fe\u7247&#034; class&#061;&#034;header-img&#034; style&#061;&#034;max-width:100%;max-height:65px;vertical-align:middle;&#034;&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096;;<\/p>\n<p> \/\/ \u751f\u6210\u9875\u811aHTML&#xff08;\u4e0d\u542b\u56fa\u5b9a\u5b9a\u4f4d&#xff09;<br \/>\n  const footerHtml &#061; &#096;<br \/>\n    &lt;div class&#061;&#034;contract-footer&#034; style&#061;&#034;text-align:center;height:50px;line-height:50px;&#034;&gt;<br \/>\n      &lt;img src&#061;&#034;..\/..\/..\/static\/footer.png&#034; alt&#061;&#034;\u9875\u811a\u56fe\u7247&#034; class&#061;&#034;footer-img&#034; style&#061;&#034;max-width:100%;max-height:40px;vertical-align:middle;&#034;&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096;;<\/p>\n<p>  \/\/ \u6784\u5efa\u6253\u5370\u9875\u9762\u5185\u5bb9<br \/>\n  printWindow.document.write(&#096;<br \/>\n    &lt;html&gt;<br \/>\n      &lt;head&gt;<br \/>\n        &lt;title&gt;${fileName}&lt;\/title&gt;<br \/>\n        ${styleHtml}<br \/>\n        ${printStyle}<br \/>\n      &lt;\/head&gt;<br \/>\n      &lt;body&gt;<br \/>\n${headerHtml}<br \/>\n        ${contractHtml}<br \/>\n        ${footerHtml}<br \/>\n        &lt;script&gt;<br \/>\n          \/\/ \u7b49\u5f85\u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u540e\u6253\u5370<br \/>\n          window.onload &#061; function() {<br \/>\n            window.print();<br \/>\n            \/\/ \u6253\u5370\u540e\u5173\u95ed\u7a97\u53e3&#xff08;\u53ef\u9009&#xff09;<br \/>\n            \/\/ setTimeout(function() { window.close(); }, 100);<br \/>\n          };<br \/>\n        &lt;\/script&gt;<br \/>\n      &lt;\/body&gt;<br \/>\n    &lt;\/html&gt;<br \/>\n  &#096;);<\/p>\n<p>  printWindow.document.close();<br \/>\n};<\/p>\n<p>\u6253\u5370\u6a21\u677f\u7684js<\/p>\n<p>\u00a0<\/p>\n<p>\/**<br \/>\n * \u751f\u6210\u6807\u51c6\u5408\u540c\u6a21\u677f&#xff08;\u6761\u6b3e\u663e\u793a\u4fee\u590d\u7248&#xff09;<br \/>\n * &#064;param {Object} contractData \u5408\u540c\u6570\u636e<br \/>\n * &#064;param {boolean} [showStamp&#061;true] \u662f\u5426\u663e\u793a\u7535\u5b50\u7ae0&#xff0c;\u9ed8\u8ba4\u4e3atrue<br \/>\n * &#064;returns {string} \u751f\u6210\u7684HTML\u5185\u5bb9<br \/>\n *\/<br \/>\nconst generateStandardContract &#061; (contractData, showStamp &#061; true) &#061;&gt; {<br \/>\n  \/\/ \u683c\u5f0f\u5316\u65e5\u671f<br \/>\n  const formatDate &#061; (dateStr) &#061;&gt; {<br \/>\n    if (!dateStr) return &#039;&#039;;<br \/>\n    return new Date(dateStr).toLocaleDateString();<br \/>\n  };<\/p>\n<p>  \/\/ \u683c\u5f0f\u5316\u91d1\u989d<br \/>\n  const formatMoney &#061; (amount) &#061;&gt; {<br \/>\n    if (!amount) return &#039;0.00&#039;;<br \/>\n    return parseFloat(amount).toFixed(2);<br \/>\n  };<\/p>\n<p>  \/\/ \u63d0\u53d6\u4e3b\u8981\u6570\u636e<br \/>\n  const mainData &#061; contractData.main || {};<br \/>\n  const detailItems &#061; contractData.datail || [];<\/p>\n<p>  \/\/ \u8fc7\u6ee4\u5c55\u4f4d\u548c\u5e7f\u544a\u9879\u76ee<br \/>\n  const boothDetails &#061; detailItems.filter(item &#061;&gt; item.OddTypName &#061;&#061;&#061; &#039;\u5c55\u4f4d&#039;);<br \/>\n  const adDetails &#061; detailItems.filter(item &#061;&gt; item.OddTypName !&#061;&#061; &#039;\u5c55\u4f4d&#039;);<\/p>\n<p>  \/\/ \u8ba1\u7b97\u5408\u8ba1\u91d1\u989d<br \/>\n  const totalAmount &#061; detailItems.reduce((sum, item) &#061;&gt; {<br \/>\n    return sum &#043; parseFloat(item.OddTotalPrice || 0);<br \/>\n  }, 0);<\/p>\n<p>  \/\/ \u751f\u6210\u5c55\u4f4d\u8868\u683c<br \/>\n  let boothTableHtml &#061; &#039;&#039;;<br \/>\n  if (boothDetails.length &gt; 0) {<br \/>\n    boothTableHtml &#061; &#096;<br \/>\n      &lt;h3 style&#061;&#034;font-size:16px;margin:20px 0;padding-bottom:10px;border-bottom:1px solid #ddd;&#034;&gt;\u5c55\u4f4d\u4fe1\u606f&lt;\/h3&gt;<br \/>\n      &lt;table class&#061;&#034;contract-table&#034; style&#061;&#034;width:100%;border-collapse:collapse;margin:15px 0;&#034;&gt;<br \/>\n        &lt;thead&gt;<br \/>\n          &lt;tr&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u5c55\u9986&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u5c55\u4f4d&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u9762\u79ef&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u5c55\u4f4d\u8d39&#xff08;\u5143&#xff09;&lt;\/th&gt;<br \/>\n          &lt;\/tr&gt;<br \/>\n        &lt;\/thead&gt;<br \/>\n        &lt;tbody&gt;<br \/>\n          ${boothDetails.map(item &#061;&gt; {<br \/>\n            \/\/ \u4eceOddName\u4e2d\u63d0\u53d6\u5c55\u9986\u548c\u5c55\u4f4d\u4fe1\u606f<br \/>\n            const boothInfo &#061; item.OddName || &#039;&#039;;<br \/>\n            const match &#061; boothInfo.match(\/\u5c55\u4f4d&#xff1a;([\\\\d-]&#043;)-([\\\\dA-Z]&#043;)\/);<br \/>\n            const srmName &#061; match ? match[1] : &#039;&#039;;<br \/>\n            const bthCode &#061; match ? match[2] : &#039;&#039;;<\/p>\n<p>            \/\/ \u4ece\u540d\u79f0\u4e2d\u63d0\u53d6\u9762\u79ef\u4fe1\u606f<br \/>\n            const areaMatch &#061; boothInfo.match(\/\\\\((\\\\d&#043;\\\\.\\\\d&#043;|\\\\d&#043;)\u5e73\u65b9\u7c73\\\\)\/);<br \/>\n            const area &#061; areaMatch ? areaMatch[1] : &#039;&#039;;<\/p>\n<p>            return &#096;<br \/>\n              &lt;tr&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${srmName}&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${bthCode}&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${area}\u5e73\u65b9\u7c73&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${formatMoney(item.OddTotalPrice)}&lt;\/td&gt;<br \/>\n              &lt;\/tr&gt;<br \/>\n            &#096;;<br \/>\n          }).join(&#039;&#039;)}<br \/>\n        &lt;\/tbody&gt;<br \/>\n      &lt;\/table&gt;<br \/>\n    &#096;;<br \/>\n  }<\/p>\n<p>  \/\/ \u751f\u6210\u5e7f\u544a\u8868\u683c<br \/>\n  let adTableHtml &#061; &#039;&#039;;<br \/>\n  if (adDetails.length &gt; 0) {<br \/>\n    adTableHtml &#061; &#096;<br \/>\n      &lt;h3 style&#061;&#034;font-size:16px;margin:20px 0;padding-bottom:10px;border-bottom:1px solid #ddd;&#034;&gt;\u5e7f\u544a\u4fe1\u606f&lt;\/h3&gt;<br \/>\n      &lt;table class&#061;&#034;contract-table&#034; style&#061;&#034;width:100%;border-collapse:collapse;margin:15px 0;&#034;&gt;<br \/>\n        &lt;thead&gt;<br \/>\n          &lt;tr&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u5e7f\u544a\u540d\u79f0&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u89c4\u683c&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u5355\u4ef7&#xff08;\u5143&#xff09;&lt;\/th&gt;<br \/>\n            &lt;th style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;background-color:#f0f0f0;font-weight:bold;&#034;&gt;\u91d1\u989d&#xff08;\u5143&#xff09;&lt;\/th&gt;<br \/>\n          &lt;\/tr&gt;<br \/>\n        &lt;\/thead&gt;<br \/>\n        &lt;tbody&gt;<br \/>\n          ${adDetails.map(item &#061;&gt; {<br \/>\n            \/\/ \u4ece\u540d\u79f0\u4e2d\u63d0\u53d6\u89c4\u683c\u4fe1\u606f<br \/>\n            const specMatch &#061; item.OddName.match(\/\\\\((.*?)\\\\)\/);<br \/>\n            const scale &#061; specMatch ? specMatch[1] : &#039;&#039;;<\/p>\n<p>            return &#096;<br \/>\n              &lt;tr&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${item.OddName}&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${scale}&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${formatMoney(item.OddPrice)}&lt;\/td&gt;<br \/>\n                &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${formatMoney(item.OddTotalPrice)}&lt;\/td&gt;<br \/>\n              &lt;\/tr&gt;<br \/>\n            &#096;;<br \/>\n          }).join(&#039;&#039;)}<br \/>\n          &lt;tr style&#061;&#034;font-weight:bold;&#034;&gt;<br \/>\n            &lt;td colspan&#061;&#034;3&#034; style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:right;&#034;&gt;\u5408\u8ba1\u91d1\u989d&#xff1a;&lt;\/td&gt;<br \/>\n            &lt;td style&#061;&#034;border:1px solid #000;padding:8px 12px;text-align:center;&#034;&gt;${formatMoney(totalAmount)}&lt;\/td&gt;<br \/>\n          &lt;\/tr&gt;<br \/>\n        &lt;\/tbody&gt;<br \/>\n      &lt;\/table&gt;<br \/>\n    &#096;;<br \/>\n  }<\/p>\n<p>  \/\/ \u751f\u6210\u7532\u65b9\u7535\u5b50\u7ae0 &#8211; \u901a\u8fc7\u53c2\u6570\u63a7\u5236\u662f\u5426\u663e\u793a<br \/>\n  const firstPageStamp &#061; showStamp ? &#096;<br \/>\n    &lt;div class&#061;&#034;stamp-container first-page-stamp&#034; style&#061;&#034;position:absolute;right:30%;top:30%;width:250px;height:250px;z-index:-10;opacity:0.5%;&#034;&gt;<br \/>\n      &lt;img src&#061;&#034;..\/..\/..\/static\/stamp.png&#034; alt&#061;&#034;\u7535\u5b50\u7ae0&#034; class&#061;&#034;stamp-img&#034; style&#061;&#034;max-width:100%;max-height:100%;opacity:0.8;&#034;&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096; : &#039;&#039;;<\/p>\n<p>  const signaturePageStamp &#061; showStamp ? &#096;<br \/>\n    &lt;div class&#061;&#034;stamp-container signature-page-stamp&#034; style&#061;&#034;position:absolute;right:0%;top:-50px;width:250px;height:250px;z-index:-10;&#034;&gt;<br \/>\n      &lt;img src&#061;&#034;..\/..\/..\/static\/stamp.png&#034; alt&#061;&#034;\u7535\u5b50\u7ae0&#034; class&#061;&#034;stamp-img&#034; style&#061;&#034;max-width:100%;max-height:100%;opacity:0.9;&#034;&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096; : &#039;&#039;;<\/p>\n<p>  \/\/ \u751f\u6210\u5b8c\u6574\u5408\u540cHTML<br \/>\n  return &#096;<\/p>\n<p>    &lt;div class&#061;&#034;contract-container&#034; style&#061;&#034;position:relative;min-height:297mm;width:210mm;margin:0 auto;font-family:&#039;SimSun&#039;,&#039;\u5b8b\u4f53&#039;;font-size:14px;line-height:1.6;margin-bottom:10%;&#034;&gt;<\/p>\n<p>      &lt;!&#8211; \u5185\u5bb9\u5bb9\u5668&#xff0c;\u7528\u4e8e\u6253\u5370\u65f6\u8c03\u6574\u5185\u5bb9\u4f4d\u7f6e &#8211;&gt;<br \/>\n      &lt;div class&#061;&#034;content-container&#034; style&#061;&#034;margin-bottom:10%;&#034;&gt;<br \/>\n        &lt;h1 class&#061;&#034;contract-title&#034; style&#061;&#034;text-align:center;font-size:22px;margin:30px 0;color:#333;&#034;&gt;\u53c2\u5c55\u534f\u8bae\u4e66&lt;\/h1&gt;<\/p>\n<p>        &lt;p class&#061;&#034;contract-party&#034; style&#061;&#034;margin:10px 0;&#034;&gt;\u7532\u65b9&#xff1a;\u5e7f\u4e1c\u73b0\u4ee3\u4f1a\u5c55\u7ba1\u7406\u6709\u9650\u516c\u53f8&lt;\/p&gt;<br \/>\n        &lt;p class&#061;&#034;contract-party&#034; style&#061;&#034;margin:10px 0;&#034;&gt;\u4e59\u65b9&#xff1a;${mainData.OdrComName || &#039;&#039;}&lt;\/p&gt;<\/p>\n<p>        &lt;p class&#061;&#034;contract-intro&#034; style&#061;&#034;margin:20px 0;&#034;&gt;\u4e59\u65b9\u51b3\u5b9a\u53c2\u52a0\u7532\u65b92025\u5e748\u670818\u65e5\u81f321\u65e5\u4e3e\u529e\u7684&#034;\u7b2c54\u5c4a\u56fd\u9645\u540d\u5bb6\u5177(\u4e1c\u839e)\u5c55\u89c8\u4f1a\u66a82025\u4e1c\u839e\u56fd\u9645\u8bbe\u8ba1\u5468&#034;&#xff0c;\u7ecf\u7532\u4e59\u53cc\u65b9\u53cb\u597d\u534f\u5546&#xff0c;\u786e\u8ba4\u5982\u4e0b&#xff1a;&lt;\/p&gt;<\/p>\n<p>        ${boothTableHtml}<\/p>\n<p>        ${adTableHtml}<\/p>\n<p>        &lt;p class&#061;&#034;contract-amount&#034; style&#061;&#034;margin:20px 0;font-weight:bold;text-align:right;&#034;&gt;\u5408\u540c\u603b\u91d1\u989d&#xff1a;${formatMoney(totalAmount)}\u5143&lt;\/p&gt;<\/p>\n<p>        &lt;p class&#061;&#034;contract-handbook&#034; style&#061;&#034;margin:20px 0;&#034;&gt;\u300a\u53c2\u5c55\u5546\u624b\u518c\u300b&#xff08;\u9644\u4ef6\u4e00&#xff09;\u4e2d\u5df2\u8be6\u7ec6\u5217\u660e\u5404\u6709\u5173\u4e8b\u9879&#xff0c;\u4e59\u65b9\u5fc5\u987b\u6309\u300a\u53c2\u5c55\u5546\u624b\u518c\u300b\u7684\u6709\u5173\u89c4\u5b9a\u8fdb\u884c\u88c5\u4fee\u3001\u5e03\u5c55\u548c\u5c55\u89c8\u7b49&#xff1a;&lt;\/p&gt;<\/p>\n<p>        ${generateContractClauses()}<\/p>\n<p>        &lt;div class&#061;&#034;contract-remark&#034; style&#061;&#034;margin:30px 0;padding:15px;border:1px dashed #999;background-color:#f9f9f9;&#034;&gt;<br \/>\n          ${mainData.OdrRemark || &#039;&#039;}<br \/>\n        &lt;\/div&gt;<\/p>\n<p>        &lt;div class&#061;&#034;contract-signatures&#034; style&#061;&#034;margin-top:80px;padding-top:20px;border-top:1px dashed #999;display:flex;flex-wrap:wrap;gap:40px;position:relative;&#034;&gt;<br \/>\n          &lt;div class&#061;&#034;contract-signature&#034; style&#061;&#034;flex:1;position:relative;min-width:200px;&#034;&gt;<br \/>\n            &lt;p class&#061;&#034;signature-title&#034; style&#061;&#034;font-weight:bold;margin-bottom:10px;&#034;&gt;\u7532\u65b9&#xff1a;\u5e7f\u4e1c\u73b0\u4ee3\u4f1a\u5c55\u7ba1\u7406\u6709\u9650\u516c\u53f8&lt;\/p&gt;<br \/>\n            ${signaturePageStamp}<br \/>\n            &lt;p class&#061;&#034;signature-blank&#034; style&#061;&#034;margin:20px 0;min-height:40px;border-bottom:1px solid #ccc;&#034;&gt;&#xff08;\u7b7e\u7f72\u53ca\u76d6\u7ae0&#xff09;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u8054\u7cfb\u5730\u5740&#xff1a;\u4e1c\u839e\u5e02\u539a\u8857\u5bb6\u5177\u5927\u9053&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u8054\u7cfb\u4eba&#xff1a;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u7535\u8bdd:&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u7535\u5b50\u90ae\u7bb1&#xff1a;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-date&#034; style&#061;&#034;margin-top:20px;&#034;&gt;\u65e5\u671f&#xff1a;${formatDate(mainData.OdrCreateTime)}&lt;\/p&gt;<br \/>\n          &lt;\/div&gt;<\/p>\n<p>          &lt;div class&#061;&#034;contract-signature&#034; style&#061;&#034;flex:1;position:relative;min-width:200px;&#034;&gt;<br \/>\n            &lt;p class&#061;&#034;signature-title&#034; style&#061;&#034;font-weight:bold;margin-bottom:10px;&#034;&gt;\u4e59\u65b9&#xff1a;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-blank&#034; style&#061;&#034;margin:20px 0;min-height:40px;border-bottom:1px solid #ccc;&#034;&gt;&#xff08;\u7b7e\u7f72\u53ca\u76d6\u7ae0&#xff09;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u8054\u7cfb\u5730\u5740&#xff1a;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u8054\u7cfb\u4eba&#xff1a;${mainData.OdrHandler || &#039;&#039;}&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u7535\u8bdd:&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-info&#034; style&#061;&#034;margin-bottom:5px;&#034;&gt;\u7535\u5b50\u90ae\u7bb1&#xff1a;&lt;\/p&gt;<br \/>\n            &lt;p class&#061;&#034;signature-date&#034; style&#061;&#034;margin-top:20px;&#034;&gt;\u65e5\u671f&#xff1a;20__\u5e74_____\u6708_____\u65e5&lt;\/p&gt;<br \/>\n          &lt;\/div&gt;<br \/>\n        &lt;\/div&gt;<br \/>\n      &lt;\/div&gt;<\/p>\n<p>      ${firstPageStamp}<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096;;<br \/>\n};<\/p>\n<p>\/**<br \/>\n * \u751f\u6210\u5408\u540c\u6761\u6b3e<br \/>\n * &#064;returns {string} \u751f\u6210\u7684HTML\u5185\u5bb9<br \/>\n *\/<br \/>\nconst generateContractClauses &#061; () &#061;&gt; {<br \/>\n  const clauses &#061; [<br \/>\n    {<br \/>\n      number: &#039;1\u3001&#039;,<br \/>\n      text: &#039;\u534f\u8bae\u7b7e\u7f72\u540e&#xff0c;\u5728\u7532\u65b9\u4e0d\u8fdd\u7ea6\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5982\u4e59\u65b9\u8981\u6c42\u53d6\u6d88\u5c55\u4f4d&#xff0c;\u5df2\u4ea4\u7684\u5c55\u4f4d\u8d39\u4e0d\u4e88\u9000\u8fd8&#xff0c;\u4e59\u65b9\u56e0\u6b64\u89e3\u9664\u534f\u8bae\u7ed9\u7532\u65b9\u9020\u6210\u635f\u5931\u7684&#xff0c;\u7532\u65b9\u6709\u6743\u8981\u6c42\u4e59\u65b9\u8d54\u507f\u5e76\u4fdd\u7559\u8ffd\u7a76\u5176\u6cd5\u5f8b\u8d23\u4efb\u7684\u6743\u5229\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;2\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u5728\u786e\u8ba4\u5c55\u4f4d\u540e&#xff0c;\u5fc5\u987b\u6309\u7532\u65b9\u53d1\u51fa\u7684\u300a\u7f34\u6b3e\u901a\u77e5\u4e66\u300b\u6240\u89c4\u5b9a\u7684\u65f6\u95f4\u5982\u671f\u4ed8\u6e05\u6709\u5173\u6b3e\u9879&#xff0c;\u5426\u5219&#xff0c;\u5c55\u4f4d\u4e0d\u4e88\u4fdd\u7559&#xff0c;\u5df2\u7f34\u6b3e\u9879\u4e0d\u4e88\u9000\u8fd8\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;3\u3001&#039;,<br \/>\n      text: &#039;\u7532\u65b9\u4fdd\u7559\u5728\u7279\u6b8a\u6761\u4ef6\u4e0b&#xff0c;\u7ecf\u4e0e\u4e59\u65b9\u534f\u5546\u6700\u7ec8\u8c03\u6574\u5c55\u4f4d\u7684\u6743\u5229&#xff1b;\u7532\u65b9\u5982\u4e0d\u80fd\u5b89\u6392\u5c55\u4f4d\u7ed9\u4e59\u65b9&#xff0c;\u7532\u65b9\u5c06\u9000\u56de\u4e59\u65b9\u5df2\u4ea4\u7684\u5c55\u4f4d\u8d39\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;4\u3001&#039;,<br \/>\n      text: &#039;\u7ecf\u7532\u3001\u4e59\u53cc\u65b9\u786e\u8ba4\u7684\u5c55\u4f4d&#xff0c;\u4e59\u65b9\u5fc5\u987b\u72ec\u7acb\u4f7f\u7528\u3002\u672a\u7ecf\u7532\u65b9\u4e66\u9762\u540c\u610f&#xff0c;\u4e59\u65b9\u4e0d\u5f97\u79c1\u4e0b\u8f6c\u8ba9\u6216\u90e8\u5206\u8f6c\u8ba9\u5c55\u4f4d\u3002\u82e5\u6709\u4e0a\u8ff0\u60c5\u51b5&#xff0c;\u7532\u65b9\u6709\u6743\u89e3\u9664\u672c\u534f\u8bae\u5e76\u6536\u56de\u5c55\u4f4d&#xff0c;\u6240\u4ea4\u8d39\u7528\u4e0d\u4e88\u9000\u8fd8&#xff0c;\u4e14\u7532\u65b9\u4e0d\u627f\u62c5\u5c55\u4f4d\u53d7\u8ba9\u65b9\u53ca\u4e59\u65b9\u7684\u4e00\u5207\u7ecf\u6d4e\u635f\u5931&#xff08;\u5907\u6ce8:\u7532\u65b9\u6536\u53d6\u5c55\u53f0\u65bd\u5de5\u5e73\u9762\u56fe\u3001\u7535\u8def\u56fe\u3001\u6548\u679c\u56fe\u6216\u4ea7\u54c1\u56fe\u7247\u7b49\u7684\u884c\u4e3a\u5e76\u4e0d\u89c6\u4e3a\u7532\u65b9\u9ed8\u8ba4\u6216\u540c\u610f\u4e59\u65b9\u7684\u8f6c\u8ba9\u884c\u4e3a&#xff09;\u3002\u82e5\u4ee5\u4e59\u65b9\u4e4b\u540d\u4e49\u4e3a\u5176\u5b50\/\u6bcd\u516c\u53f8\u3001\u603b\/\u5206\u516c\u53f8\u3001\u96c6\u56e2\u516c\u53f8\u3001\u5173\u8054\u516c\u53f8\u7b49\u7b7e\u7f72\u672c\u534f\u8bae\u4e66\u7684&#xff0c;\u5e94\u5728\u7b7e\u7f72\u672c\u534f\u8bae\u524d\u5411\u7532\u65b9\u4e66\u9762\u58f0\u660e&#xff0c;\u5426\u5219&#xff0c;\u89c6\u4e3a\u8f6c\u8ba9\u6216\u90e8\u5206\u8f6c\u8ba9\u5c55\u4f4d\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;5\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u4fdd\u8bc1\u5c55\u51fa\u5c55\u54c1\u62e5\u6709\u81ea\u4e3b\u77e5\u8bc6\u4ea7\u6743&#xff0c;\u82e5\u6709\u5408\u7406\u7406\u7531\u6000\u7591\u4e59\u65b9\u5c55\u54c1\u6d89\u5acc\u4fb5\u6743&#xff0c;\u7532\u65b9\u6709\u6743\u4ee5\u505c\u7535\u3001\u6682\u5c01\u5c55\u4f4d&#xff0c;\u7b49\u7b49\u65b9\u5f0f&#xff0c;\u8981\u6c42\u4e59\u65b9\u5b8c\u5168\u64a4\u51fa\u6d89\u5acc\u4fb5\u6743\u4ea7\u54c1\u76f4\u81f3\u64a4\u51fa\u5c55\u4f4d&#xff1b;\u7532\u65b9\u5e76\u4fdd\u7559\u8ffd\u7a76\u4e59\u65b9\u8fdd\u7ea6\u8d23\u4efb&#xff08;\u4ee5\u7532\u65b9\u7684\u5b9e\u9645\u635f\u5931\u62162\u500d\u5408\u540c\u603b\u91d1\u989d\u4e4b\u95f4&#xff0c;\u4ee5\u4ef7\u989d\u9ad8\u8005\u4e3a\u51c6&#xff09;\u53ca\u635f\u5bb3\u7532\u65b9\u5546\u4e1a\u4fe1\u8a89\u7684\u6743\u5229&#xff08;\u5546\u4e1a\u4fe1\u8a89\u635f\u5931\u96be\u4ee5\u786e\u5b9a\u7684&#xff0c;\u7532\u65b9\u6709\u6743\u6839\u636e\u8be5\u4e8b\u4ef6\u8fdd\u6cd5\u60c5\u8282\u6076\u52a3\u7a0b\u5ea6\u3001\u5bf9\u7532\u65b9\u5546\u4e1a\u4fe1\u8a89\u9020\u6210\u8d1f\u9762\u5f71\u54cd\u7684\u8303\u56f4\u53ca\u635f\u5bb3\u7684\u7a0b\u5ea6\u7b49\u56e0\u7d20&#xff0c;\u5728\u4eba\u6c11\u5e01 20 \u4e07\u5143\u81f3 50 \u4e07\u5143\u7684\u5e45\u5ea6\u6765\u4e3b\u5f20&#xff09;&#xff0c;\u7532\u65b9\u4e3a\u6b64\u800c\u5411\u7b2c\u4e09\u65b9\u627f\u62c5\u4fb5\u6743\u7b49\u6cd5\u5f8b\u8d23\u4efb\u7684&#xff0c;\u6709\u6743\u5411\u4e59\u65b9\u8ffd\u507f\u5168\u90e8\u635f\u5931\u4ee5\u53ca\u652f\u4ed8\u7684\u4e00\u5207\u5408\u7406\u8d39\u7528&#xff08;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5f8b\u5e08\u8d39\u3001\u5dee\u65c5\u8d39\u3001\u516c\u8bc1\u8d39\u3001\u62c5\u4fdd\u8d39\u3001\u4fdd\u5168\u8d39\u3001\u8bc9\u8bbc\u8d39\u3001\u8bc4\u4f30\u9274\u5b9a\u62cd\u5356\u8d39\u3001\u6267\u884c\u8d39\u7b49&#xff09;\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;6\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u4fdd\u8bc1\u5c55\u51fa\u5c55\u54c1\u7b26\u5408\u56fd\u5bb6\u8d28\u91cf\u90e8\u95e8\u76f8\u5173\u7684\u8d28\u91cf\u8981\u6c42&#xff0c;\u5426\u5219&#xff0c;\u5982\u6709\u751f\u4ea7\u5546\u3001\u9500\u552e\u5546\u3001\u6d88\u8d39\u8005\u7b49\u63d0\u51fa\u5b58\u5728\u4e0d\u7b26\u5408\u8d28\u91cf\u8981\u6c42\u5e76\u63d0\u4f9b\u521d\u6b65\u7684\u8bc1\u636e\u6750\u6599\u7684&#xff0c;\u7532\u65b9\u6709\u6743\u4ee5\u505c\u7535\u3001\u6682\u5c01\u5c55\u4f4d&#xff0c;\u7b49\u7b49\u7684\u65b9\u5f0f&#xff0c;\u8981\u6c42\u4e59\u65b9\u5b8c\u5168\u64a4\u51fa\u6d89\u4e8b\u4ea7\u54c1\u76f4\u81f3\u64a4\u51fa\u5c55\u4f4d&#xff0c;\u7532\u65b9\u5e76\u4fdd\u7559\u8ffd\u7a76\u4e59\u65b9\u8fdd\u7ea6\u8d23\u4efb\u53ca\u635f\u5bb3\u7532\u65b9\u5546\u4e1a\u4fe1\u8a89\u7684\u6743\u5229&#xff08;\u8fdd\u7ea6\u8d23\u4efb\u53ca\u5546\u4e1a\u4fe1\u8a89\u635f\u5931\u7684\u8ba1\u7b97\u53c2\u7167\u7b2c5\u6761&#xff09;\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;7\u3001&#039;,<br \/>\n      text: &#039;\u4e3a\u7ef4\u62a4\u5c55\u4f1a\u73b0\u573a\u79e9\u5e8f&#xff0c;\u4fdd\u969c\u6240\u6709\u53c2\u5c55\u5546\u7684\u5171\u540c\u5229\u76ca&#xff0c;\u4e25\u7981\u4e59\u65b9\u5728\u5c55\u4f1a\u73b0\u573a\u6d3e\u4eba\u5458\u5217\u961f\u5de1\u6e38\u3001\u6d3e\u53d1\u8d44\u6599\u6216\u793c\u54c1\u3001\u4f7f\u7528\u9ad8\u97f3\u8bbe\u5907\u5927\u58f0\u55a7\u54d7\u3001\u4e3e\u529e\u5404\u79cd\u5f62\u5f0f\u7684\u8868\u6f14\u6d3b\u52a8&#xff0c;\u5426\u5219\u7532\u65b9\u6709\u6743\u4ee5\u505c\u7535\u3001\u6682\u5c01\u5c55\u4f4d&#xff0c;\u7b49\u7b49\u65b9\u5f0f\u5236\u6b62&#xff0c;\u60c5\u8282\u4e25\u91cd\u7684\u3001\u6216\u4e0d\u542c\u529d\u963b\u7684&#xff0c;\u7532\u65b9\u6709\u6743\u89e3\u9664\u672c\u534f\u8bae&#xff0c;\u5e76\u5bf9\u4e59\u65b9\u9650\u65f6\u64a4\u573a&#xff0c;\u6216\u7531\u7532\u65b9\u81ea\u884c\u64a4\u573a&#xff0c;\u7532\u65b9\u65e0\u9700\u627f\u62c5\u4efb\u4f55\u7684\u8fdd\u7ea6\u8d23\u4efb\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;8\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u9700\u6309\u300a\u53c2\u5c55\u5546\u624b\u518c\u300b\u7684\u76f8\u5173\u89c4\u5b9a\u8bbe\u8ba1\u3001\u88c5\u4fee\u5c55\u4f4d&#xff0c;\u4e8e\u89c4\u5b9a\u65f6\u95f4\u524d\u63d0\u4f9b\u5c55\u53f0\u65bd\u5de5\u5e73\u9762\u56fe\u3001\u7535\u8def\u56fe\u3001\u6548\u679c\u56fe\u7ed9\u7532\u65b9\u5ba1\u6838&#xff0c;\u4e25\u7981\u642d\u5efa\u4e8c\u5c42&#xff0c;\u5e76\u6309\u300a\u53c2\u5c55\u5546\u624b\u518c\u300b\u89c4\u5b9a\u7f34\u7eb3\u76f8\u5173\u8d39\u7528\u3002\u672a\u7ecf\u7532\u65b9\u5ba1\u6838\u901a\u8fc7\u7684&#xff0c;\u4e59\u65b9\u5e94\u5728\u7532\u65b9\u6307\u5b9a\u7684\u65f6\u95f4\u5185\u8fdb\u884c\u6574\u6539\u5e76\u91cd\u65b0\u5448\u9001\u7532\u65b9\u5ba1\u6838&#xff0c;\u5426\u5219\u7532\u65b9\u6709\u6743\u89e3\u9664\u672c\u534f\u8bae&#xff0c;\u5df2\u7f34\u6b3e\u9879\u4e0d\u4e88\u9000\u8fd8\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;9\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u6700\u8fdf\u5e94\u5728\u5c55\u89c8\u4f1a\u5f00\u5c55\u524d48\u5c0f\u65f6&#xff0c;\u5230\u5c55\u89c8\u4f1a\u73b0\u573a\u529e\u516c\u5ba4\u62a5\u5230&#xff0c;\u529e\u7406\u6709\u5173\u624b\u7eed&#xff0c;\u7f34\u7eb3\u6e05\u6d01\u62bc\u91d1\u3002\u5426\u5219&#xff0c;\u7532\u65b9\u6709\u6743\u5c06\u5176\u5c55\u4f4d\u53e6\u884c\u5904\u7406&#xff0c;\u5df2\u652f\u4ed8\u7684\u5c55\u4f4d\u8d39\u7528\u4e0d\u4e88\u9000\u8fd8\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;10\u3001&#039;,<br \/>\n      text: &#039;\u9047\u4e0d\u53ef\u6297\u529b\u56e0\u7d20&#xff08;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u81ea\u7136\u707e\u5bb3\u3001\u6218\u4e89\u3001\u66b4\u52a8\u3001\u653f\u5e9c\u884c\u4e3a\u3001\u75ab\u60c5\u7b49&#xff09;&#xff0c;\u5c55\u89c8\u4f1a\u9700\u5ef6\u671f\u4e3e\u529e\u65f6&#xff0c;\u4e59\u65b9\u786e\u8ba4\u4e4b\u5c55\u4f4d\u4fdd\u6301\u6709\u6548&#xff0c;\u5177\u4f53\u4e3e\u529e\u65f6\u95f4\u7532\u65b9\u5c06\u53e6\u884c\u901a\u77e5\u3002\u7532\u65b9\u53d8\u66f4\u5c55\u4f1a\u4e3e\u529e\u65e5\u671f\u540e&#xff0c;\u4ee5\u4e66\u9762\u3001\u5fae\u4fe1\u3001\u77ed\u4fe1\u3001\u7b49\u4efb\u4f55\u4e00\u79cd\u5f62\u5f0f\u901a\u77e5\u4e59\u65b9&#xff0c;\u5e76\u540c\u65f6\u5728\u516c\u4f17\u53f7\u53ca\u5b98\u7f51\u5bf9\u5916\u516c\u544a\u76f8\u5173\u4fe1\u606f\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;11\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u52a1\u5fc5\u6309\u7167\u63d0\u4f9b\u7ed9\u7ec4\u59d4\u4f1a\u7684\u4ea7\u54c1\u56fe\u7247\u6446\u5c55&#xff0c;\u4e00\u65e6\u53d1\u73b0\u5c55\u54c1\u4e0d\u7b26\u5408\u8981\u6c42\u4f5c\u5c01\u5c55\u4f4d\u5904\u7406&#xff0c;\u4e59\u65b9\u5e76\u9700\u5411\u7532\u65b9\u652f\u4ed8\u603b\u5c55\u4f4d\u8d39\u7684\u4e24\u500d\u91d1\u989d\u4f5c\u4e3a\u8fdd\u7ea6\u91d1\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;12\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u5728\u5e03\u5c55\u3001\u53c2\u5c55\u3001\u64a4\u5c55\u8fc7\u7a0b\u4e2d\u53d1\u751f\u7684\u4e00\u5207\u4eba\u8eab\u3001\u8d22\u4ea7\u635f\u5bb3\u4ee5\u53ca\u56e0\u52b3\u8d44\u7ea0\u7eb7\u3001\u5408\u540c\u7ea0\u7eb7\u800c\u4ea7\u751f\u7684\u4e00\u5207\u6cd5\u5f8b\u8d23\u4efb&#xff0c;\u5747\u81ea\u884c\u627f\u62c5\u5168\u90e8\u8d54\u507f&#xff0c;\u7532\u65b9\u4e3a\u6b64\u800c\u5411\u7b2c\u4e09\u65b9\u627f\u62c5\u6cd5\u5f8b\u8d23\u4efb\u7684&#xff0c;\u6709\u6743\u5411\u4e59\u65b9\u8ffd\u507f\u5168\u90e8\u635f\u5931\u4ee5\u53ca\u652f\u4ed8\u7684\u4e00\u5207\u5408\u7406\u8d39\u7528&#xff08;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5f8b\u5e08\u8d39\u3001\u5dee\u65c5\u8d39\u3001\u516c\u8bc1\u8d39\u3001\u62c5\u4fdd\u8d39\u3001\u4fdd\u5168\u8d39\u3001\u8bc9\u8bbc\u8d39\u3001\u8bc4\u4f30\u9274\u5b9a\u62cd\u5356\u8d39\u3001\u6267\u884c\u8d39\u7b49&#xff09;\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;13\u3001&#039;,<br \/>\n      text: &#039;\u5728\u7532\u65b9\u6709\u5408\u7406\u7406\u7531\u6000\u7591\u64a4\u5c55\u65b9\u5e76\u975e\u4e59\u65b9\u7684\u60c5\u51b5\u4e0b&#xff0c;\u4e3a\u4fdd\u969c\u4e59\u65b9\u7684\u8d22\u4ea7\u5b89\u5168&#xff0c;\u7532\u65b9\u6709\u6743\u8981\u6c42\u4e59\u65b9\u63d0\u4f9b\u64a4\u5c55\u7533\u8bf7\u53ca\u76f8\u5173\u8bc1\u660e\u6587\u4ef6\u65b9\u53ef\u64a4\u573a&#xff0c;\u5426\u5219\u7532\u65b9\u6709\u6743\u62d2\u7edd\u4efb\u4f55\u76f8\u5173\u65b9\u7684\u64a4\u5c55\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;14\u3001&#039;,<br \/>\n      text: &#039;\u4e59\u65b9\u5b58\u5728\u5176\u4ed6\u8fdd\u7ea6\u884c\u4e3a&#xff0c;\u53ef\u53c2\u7167\u4e0a\u8ff0\u8fdd\u7ea6\u6761\u6b3e\u627f\u62c5\u8fdd\u7ea6\u8d23\u4efb\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;15\u3001&#039;,<br \/>\n      text: &#039;\u672c\u534f\u8bae\u5c65\u884c\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u4e89\u8bae\u7684&#xff0c;\u5e94\u53cc\u65b9\u534f\u5546\u89e3\u51b3&#xff0c;\u534f\u5546\u4e0d\u6210\u7684&#xff0c;\u63d0\u4ea4\u7532\u65b9\u6240\u5728\u5730\u4eba\u6c11\u6cd5\u9662\u89e3\u51b3\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;16\u3001&#039;,<br \/>\n      text: &#039;\u7532\u3001\u4e59\u53cc\u65b9\u56e0\u5c65\u884c\u672c\u534f\u8bae\u800c\u76f8\u4e92\u53d1\u51fa\u6216\u8005\u63d0\u4f9b\u7684\u6240\u6709\u901a\u77e5\u3001\u6587\u4ef6\u7b49\u6587\u4e66\u6750\u6599&#xff0c;\u5747\u4ee5\u672c\u534f\u8bae\u6240\u5217\u660e\u7684\u8054\u7cfb\u5730\u5740\u3001\u7535\u8bdd\u3001\u7535\u5b50\u90ae\u7bb1\u901a\u77e5\u548c\u9001\u8fbe\u3002\u4e00\u65b9\u8fc1\u5740\u6216\u8005\u53d8\u66f4\u7535\u8bdd\u3001\u7535\u5b50\u90ae\u7bb1\u7684&#xff0c;\u5e94\u5f53\u4e66\u9762\u901a\u77e5\u5bf9\u65b9&#xff0c;\u5426\u5219\u5f53\u4e00\u65b9\u53d1\u51fa\u7684\u901a\u77e5\u548c\u9001\u8fbe\u88ab\u62d2\u6536\u3001\u9000\u56de\u65f6&#xff0c;\u4ecd\u53ef\u89c6\u4e3a\u6709\u6548\u9001\u8fbe\u3002\u4ee5\u5f53\u9762\u4ea4\u4ed8\u6587\u4ef6\u65b9\u5f0f\u9001\u8fbe\u7684&#xff0c;\u4ea4\u4ed8\u4e4b\u65f6\u89c6\u4e3a\u9001\u8fbe&#xff1b;\u4ee5\u7535\u5b50\u90ae\u4ef6\u65b9\u5f0f\u9001\u8fbe\u7684&#xff0c;\u53d1\u51fa\u7535\u5b50\u90ae\u4ef6\u65f6\u89c6\u4e3a\u9001\u8fbe&#xff1b;\u4ee5\u90ae\u5bc4\u65b9\u5f0f\u9001\u8fbe\u7684&#xff0c;\u90ae\u4ef6\u4ea4\u90ae\u5f53\u65e5\u89c6\u4e3a\u9001\u8fbe\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;17\u3001&#039;,<br \/>\n      text: &#039;\u9644\u4ef6\u6216\u5408\u540c\u5c65\u884c\u8fc7\u7a0b\u4e2d\u53cc\u65b9\u7b7e\u7f72\u7684\u8865\u5145\u534f\u8bae&#xff0c;\u4e0e\u672c\u534f\u8bae\u5177\u6709\u540c\u7b49\u6cd5\u5f8b\u6548\u529b&#xff0c;\u5185\u5bb9\u4e0e\u672c\u534f\u8bae\u4e0d\u4e00\u81f4\u7684&#xff0c;\u9664\u6709\u7279\u522b\u7ea6\u5b9a&#xff0c;\u4ee5\u6700\u65b0\u5f62\u6210\u4e4b\u6587\u4ef6\u5185\u5bb9\u4e3a\u51c6\u3002&#039;<br \/>\n    },<br \/>\n    {<br \/>\n      number: &#039;18\u3001&#039;,<br \/>\n      text: &#039;\u672c\u534f\u8bae\u81ea\u53cc\u65b9\u7b7e\u7f72\u4e4b\u65e5\u8d77\u53d1\u751f\u6cd5\u5f8b\u6548\u529b&#xff0c;\u672c\u534f\u8bae\u4e00\u5f0f\u4e24\u4efd&#xff0c;\u53cc\u65b9\u5404\u6267\u4e00\u4efd\u3002&#039;<br \/>\n    }<br \/>\n  ];<\/p>\n<p>  return clauses.map((clause, index) &#061;&gt; &#096;<br \/>\n    &lt;div class&#061;&#034;contract-clause&#034; style&#061;&#034;margin:10px 0;padding-left:30px;text-indent:-30px;&#034;&gt;<br \/>\n      &lt;span class&#061;&#034;clause-text&#034; style&#061;&#034;text-indent:0;&#034;&gt;${clause.number}${clause.text}&lt;\/span&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &#096;).join(&#039;&#039;);<br \/>\n};<\/p>\n<p>\/\/ \u5bfc\u51fa\u5408\u540c\u751f\u6210\u51fd\u6570<br \/>\nexport { generateStandardContract };<\/p>\n<p>\u4e3b\u8981\u5b9e\u73b0\u7684\u529f\u80fd\u70b9&#xff1a;<\/p>\n<p>1\u3001\u5408\u540c\u6a21\u677f\u6709\u4e03\u516b\u4e2a&#xff0c;\u5148\u5b9e\u73b01\u4e2a&#xff0c;\u5c31\u4f1a\u6709\u7b2c\u4e8c\u3001\u4e09\u4e2a&#xff0c;\u5957\u5c31\u5b8c\u4e86&#xff1b;<\/p>\n<p>2\u3001\u6392\u7248&#xff0c;\u8fd9\u91cc\u662f\u8017\u65f6\u6700\u957f\u7684&#xff0c;\u8c46\u5305\u5b8c\u6210\u4e8680%&#xff0c;\u5269\u4e0b\u6765\u7684\u53ea\u80fd\u81ea\u5df1\u624b\u52a8\u8c03\u6574&#xff1b;<\/p>\n<p>3\u3001\u5173\u4e8e\u5206\u9875\u6253\u5370\u7684\u95ee\u9898&#xff0c;\u8fd9\u91cc\u6211\u4e5f\u6ca1\u6709\u89e3\u51b3&#xff0c;\u539f\u6765\u662f\u60f3\u6253\u5370\u7684\u6bcf\u4e00\u9875\u90fd\u80fd\u663e\u793a\u9875\u7709\u9875\u811a&#xff0c;\u7c7b\u4f3cword\u6587\u6863\u7684\u9875\u7709\u9875\u811a&#xff0c;\u4f46\u662f\u7531\u4e8e\u5185\u5bb9\u662f\u52a8\u6001\u751f\u6210&#xff0c;\u65e0\u6cd5\u9884\u77e5\u5177\u4f53\u6253\u5370\u9875\u6570&#xff0c;\u5206\u9875\u63a7\u5236\u4e0d\u597d\u505a&#xff0c;\u6c42\u89e3\u51b3\u529e\u6cd5&#xff5e;<\/p>\n<p>4\u3001\u4f7f\u7528 CSS \u7684&#064;page\u89c4\u5219&#xff1b;<\/p>\n<p>5\u3001\u7535\u5b50\u7b7e\u7ae0\u52a8\u6001\u63a7\u5236\u662f\u5426\u663e\u793a&#xff0c;\u4f20\u4e2a\u53c2\u6570\u63a7\u5236\u5c31\u597d\u4e86&#xff1b;<\/p>\n<p>\u5176\u5b83\u9875\u9762\u7684\u4ee3\u7801\u6ca1\u5565\u4eae\u70b9\u5c31\u4e0d\u5c55\u793a\u4e86&#xff0c;\u57fa\u672c\u90fd\u662f\u8c46\u5305&#043;\u5957\u5a03\u3002<\/p>\n<p>\u56db\u3001\u603b\u7ed3<\/p>\n<p>\u4f5c\u4e3a\u8001\u7cfb\u7edf\u7684\u8865\u5145&#xff0c;\u53ea\u80fd\u505a\u5230\u8fd9\u6837\u4e86&#xff5e;\u53ea\u8981\u601d\u8def\u4e0d\u6ed1\u5761&#xff0c;\u4e8b\u60c5\u603b\u6709\u89e3\u51b3\u7684\u529e\u6cd5&#xff01;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u57fa\u4e8e\u6df7\u5408\u6280\u672f\u6808\u7684\u5408\u540c\u6253\u5370\u529f\u80fd\u5b9e\u73b0\u65b9\u6848\u3002\u9488\u5bf9\u9057\u7559\u7cfb\u7edf\uff08SQL Server 2008+C#\uff09\u7684\u5408\u540c\u751f\u6210\u529f\u80fd\u7f3a\u9677\uff0c\u56e2\u961f\u91c7\u7528FastAdmin\u540e\u53f0+UniApp\u524d\u7aef\uff08Vue3+TS\/JS\u6df7\u5408\uff09\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u91cd\u70b9\u9610\u8ff0\u4e86\u901a\u8fc7\u6d4f\u89c8\u5668\u539f\u751f\u6253\u5370\u529f\u80fd\u751f\u6210PDF\u7684\u5b9e\u73b0\uff1a1) \u4f7f\u7528print.js\u521b\u5efa\u5305\u542b\u9875\u7709\u9875\u811a\u7684\u6253\u5370\u7a97\u53e3\uff1b2) \u52a8\u6001\u6e32\u67d3\u5c55\u4f4d\u548c\u5e7f\u544a\u8868\u683c\u5e76\u8ba1\u7b97\u91d1\u989d\uff1b3) \u91c7\u7528CSS @page\u89c4\u5219\u5b9e\u73b0A4\u6392\u7248\u3002\u6587\u7ae0\u8fd8\u63d0\u51fa\u4e86\u5f53\u524d\u672a\u89e3\u51b3\u7684\u81ea\u52a8\u5206\u9875\u9875\u7709\u9875\u811a\u95ee\u9898\uff0c\u5e76\u5206\u4eab\u4e86\u5728\u6df7\u5408\u6280\u672f\u73af\u5883\u4e0b\u5b9e\u73b0\u529f\u80fd\u9002\u914d\u7684\u7ecf\u9a8c\u3002\u8be5\u65b9\u6848\u5c55\u73b0\u4e86\u5728\u9057\u7559\u7cfb<\/p>\n","protected":false},"author":2,"featured_media":43434,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[567,4026,87],"topic":[],"class_list":["post-43439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-html","tag-4026","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/43439.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u57fa\u4e8e\u6df7\u5408\u6280\u672f\u6808\u7684\u5408\u540c\u6253\u5370\u529f\u80fd\u5b9e\u73b0\u65b9\u6848\u3002\u9488\u5bf9\u9057\u7559\u7cfb\u7edf\uff08SQL Server 2008+C#\uff09\u7684\u5408\u540c\u751f\u6210\u529f\u80fd\u7f3a\u9677\uff0c\u56e2\u961f\u91c7\u7528FastAdmin\u540e\u53f0+UniApp\u524d\u7aef\uff08Vue3+TS\/JS\u6df7\u5408\uff09\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u91cd\u70b9\u9610\u8ff0\u4e86\u901a\u8fc7\u6d4f\u89c8\u5668\u539f\u751f\u6253\u5370\u529f\u80fd\u751f\u6210PDF\u7684\u5b9e\u73b0\uff1a1) \u4f7f\u7528print.js\u521b\u5efa\u5305\u542b\u9875\u7709\u9875\u811a\u7684\u6253\u5370\u7a97\u53e3\uff1b2) \u52a8\u6001\u6e32\u67d3\u5c55\u4f4d\u548c\u5e7f\u544a\u8868\u683c\u5e76\u8ba1\u7b97\u91d1\u989d\uff1b3) \u91c7\u7528CSS @page\u89c4\u5219\u5b9e\u73b0A4\u6392\u7248\u3002\u6587\u7ae0\u8fd8\u63d0\u51fa\u4e86\u5f53\u524d\u672a\u89e3\u51b3\u7684\u81ea\u52a8\u5206\u9875\u9875\u7709\u9875\u811a\u95ee\u9898\uff0c\u5e76\u5206\u4eab\u4e86\u5728\u6df7\u5408\u6280\u672f\u73af\u5883\u4e0b\u5b9e\u73b0\u529f\u80fd\u9002\u914d\u7684\u7ecf\u9a8c\u3002\u8be5\u65b9\u6848\u5c55\u73b0\u4e86\u5728\u9057\u7559\u7cfb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/43439.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-12T07:28:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a819271c04.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43439.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/43439.html\",\"name\":\"html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-12T07:28:21+00:00\",\"dateModified\":\"2025-06-12T07:28:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/43439.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/43439.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43439.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"html\u6253\u5370\u5408\u540c\u6a21\u677f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/43439.html","og_locale":"zh_CN","og_type":"article","og_title":"html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb410\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u57fa\u4e8e\u6df7\u5408\u6280\u672f\u6808\u7684\u5408\u540c\u6253\u5370\u529f\u80fd\u5b9e\u73b0\u65b9\u6848\u3002\u9488\u5bf9\u9057\u7559\u7cfb\u7edf\uff08SQL Server 2008+C#\uff09\u7684\u5408\u540c\u751f\u6210\u529f\u80fd\u7f3a\u9677\uff0c\u56e2\u961f\u91c7\u7528FastAdmin\u540e\u53f0+UniApp\u524d\u7aef\uff08Vue3+TS\/JS\u6df7\u5408\uff09\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u91cd\u70b9\u9610\u8ff0\u4e86\u901a\u8fc7\u6d4f\u89c8\u5668\u539f\u751f\u6253\u5370\u529f\u80fd\u751f\u6210PDF\u7684\u5b9e\u73b0\uff1a1) \u4f7f\u7528print.js\u521b\u5efa\u5305\u542b\u9875\u7709\u9875\u811a\u7684\u6253\u5370\u7a97\u53e3\uff1b2) \u52a8\u6001\u6e32\u67d3\u5c55\u4f4d\u548c\u5e7f\u544a\u8868\u683c\u5e76\u8ba1\u7b97\u91d1\u989d\uff1b3) \u91c7\u7528CSS @page\u89c4\u5219\u5b9e\u73b0A4\u6392\u7248\u3002\u6587\u7ae0\u8fd8\u63d0\u51fa\u4e86\u5f53\u524d\u672a\u89e3\u51b3\u7684\u81ea\u52a8\u5206\u9875\u9875\u7709\u9875\u811a\u95ee\u9898\uff0c\u5e76\u5206\u4eab\u4e86\u5728\u6df7\u5408\u6280\u672f\u73af\u5883\u4e0b\u5b9e\u73b0\u529f\u80fd\u9002\u914d\u7684\u7ecf\u9a8c\u3002\u8be5\u65b9\u6848\u5c55\u73b0\u4e86\u5728\u9057\u7559\u7cfb","og_url":"https:\/\/www.wsisp.com\/helps\/43439.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-12T07:28:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250612072818-684a819271c04.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/43439.html","url":"https:\/\/www.wsisp.com\/helps\/43439.html","name":"html\u6253\u5370\u5408\u540c\u6a21\u677f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-12T07:28:21+00:00","dateModified":"2025-06-12T07:28:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/43439.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/43439.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/43439.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"html\u6253\u5370\u5408\u540c\u6a21\u677f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=43439"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43439\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/43434"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=43439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=43439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=43439"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=43439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}