pdf-html.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. exports.ids = [23];
  2. exports.modules = {
  3. /***/ 280:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 340:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PdfHtml_vue_vue_type_style_index_0_id_09c4a114_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(280);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PdfHtml_vue_vue_type_style_index_0_id_09c4a114_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PdfHtml_vue_vue_type_style_index_0_id_09c4a114_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PdfHtml_vue_vue_type_style_index_0_id_09c4a114_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PdfHtml_vue_vue_type_style_index_0_id_09c4a114_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 377:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PdfHtml.vue?vue&type=template&id=09c4a114&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('div', {
  27. ref: "printArea",
  28. staticStyle: {
  29. "font-family": "ProximaNova-Semibold"
  30. }
  31. }, [_vm._ssrNode("<table data-v-09c4a114><tr data-v-09c4a114><td data-v-09c4a114><img" + _vm._ssrAttr("src", _vm.comInfo.image) + " style=\"width: 300px;height: 300px;margin-right: 14px;\" data-v-09c4a114></td> <td style=\"vertical-align: top;\" data-v-09c4a114><p style=\"font-weight: bold;font-size: 22px;padding-bottom: 24px;color:#00213B\" data-v-09c4a114><span style=\"margin-right: 5px;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.pageData.product_code)) + "</span> <span data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.pageData.product_name)) + "</span></p> <p style=\"line-height: 20px;color:#00213B;font-size: 14px;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.comInfo.description)) + "</p></td></tr></table> <div data-v-09c4a114><p style=\"font-weight: bold;font-size: 17px;margin: 40px 0 10px;color:#00213B\" data-v-09c4a114>Specifications</p> <table style=\"width:100%;border-collapse: collapse;font-size: 14px;table-layout: fixed;text-align:center;\" data-v-09c4a114><tr style=\"background-color: #F7F8FC;\" data-v-09c4a114>" + _vm._ssrList(_vm.tabColumns, function (item, key) {
  32. return "<td style=\"font-weight: bold;padding:15px 0;color:#00213B;width: 25%;font-size: 14px;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(item.label)) + "</td>";
  33. }) + "</tr> <tr style=\"padding:10px 0;\" data-v-09c4a114><td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.specificationsObj.time)) + "</td> <td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.specificationsObj.model)) + "</td> <td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrList(_vm.specificationsObj.decorationArr, function (item, idx) {
  34. return "<div style=\"padding-bottom:4px;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(item)) + "</div>";
  35. }) + "</td> <td style=\"padding:14px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrList(_vm.specificationsObj.addonArr, function (item, idx) {
  36. return "<div style=\"padding-bottom:4px;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(item)) + "</div>";
  37. }) + "</td></tr></table></div> <div data-v-09c4a114><p style=\"font-weight: bold;font-size: 17px;margin: 40px 0 10px;color:#00213B\" data-v-09c4a114>Quote</p> <table style=\"width:100%;border-collapse: collapse;font-size: 14px;table-layout: fixed;text-align:center;\" data-v-09c4a114><tr style=\"background-color: #F7F8FC;font-weight: bold;\" data-v-09c4a114>" + _vm._ssrList(_vm.tableColumns, function (item, key) {
  38. return "<td" + _vm._ssrStyle({
  39. "font-weight": "bold",
  40. "padding": "15px 0",
  41. "color": "#00213B",
  42. "border-bottom": "1px solid #EFEFEF"
  43. }, {
  44. width: _vm.width
  45. }, null) + " data-v-09c4a114>" + _vm._ssrEscape(_vm._s(item.label)) + "</td>";
  46. }) + "</tr> " + _vm._ssrList(_vm.tableData, function (items, key) {
  47. return "<tr style=\"padding:10px 0;\" data-v-09c4a114><td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF;font-weight: bold;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.project)) + "</td> <td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty1)) + "</td> " + (items.website_qty2 == 0 || items.website_qty2 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty2)) + "</td>" : "<!---->") + " " + (items.website_qty3 == 0 || items.website_qty3 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty3)) + "</td>" : "<!---->") + " " + (items.website_qty4 == 0 || items.website_qty4 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty4)) + "</td>" : "<!---->") + " " + (items.website_qty5 == 0 || items.website_qty5 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty5)) + "</td>" : "<!---->") + " " + (items.website_qty6 == 0 || items.website_qty6 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty6)) + "</td>" : "<!---->") + " " + (items.website_qty7 == 0 || items.website_qty7 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty7)) + "</td>" : "<!---->") + " " + (items.website_qty8 == 0 || items.website_qty8 ? "<td style=\"padding:15px 0;color:#00213B;border-bottom:1px solid #EFEFEF\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(items.website_qty8)) + "</td>" : "<!---->") + "</tr>";
  48. }) + "</table></div> " + (_vm.emailForm.Comments ? "<div style=\"color:#00213B\" data-v-09c4a114><p style=\"font-weight: bold;font-size: 17px;margin: 40px 0 2px;\" data-v-09c4a114>Comment</p> <p style=\"text-indent:2em;\" data-v-09c4a114>" + _vm._ssrEscape(_vm._s(_vm.emailForm.Comments)) + "</p></div>" : "<!---->"))]);
  49. };
  50. var staticRenderFns = [];
  51. // CONCATENATED MODULE: ./components/PdfHtml.vue?vue&type=template&id=09c4a114&scoped=true
  52. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PdfHtml.vue?vue&type=script&lang=js
  53. /* harmony default export */ var PdfHtmlvue_type_script_lang_js = ({
  54. props: {
  55. pageData: {
  56. type: Object,
  57. default: {}
  58. },
  59. specificationsObj: {
  60. type: Object,
  61. default: {}
  62. },
  63. tableData: {
  64. type: Array,
  65. default: []
  66. },
  67. tableColumns: {
  68. type: Array,
  69. default: []
  70. },
  71. emailForm: {
  72. type: Object,
  73. default: {}
  74. }
  75. },
  76. data() {
  77. return {
  78. tabColumns: [{
  79. label: "LeadTime",
  80. prop: "time",
  81. type: "pre" //去掉$符号
  82. }, {
  83. label: "Model",
  84. prop: "model",
  85. type: "pre" //去掉$符号
  86. }, {
  87. label: "Decoration",
  88. prop: "decoration",
  89. type: "pre" //去掉$符号
  90. }, {
  91. label: "Addon",
  92. prop: "addon",
  93. type: "pre" //去掉$符号
  94. }]
  95. };
  96. },
  97. computed: {
  98. comInfo() {
  99. var _this$pageData;
  100. return (_this$pageData = this.pageData) === null || _this$pageData === void 0 ? void 0 : _this$pageData.main;
  101. },
  102. width() {
  103. return 100 / this.tableColumns.length + '%';
  104. }
  105. },
  106. mounted() {},
  107. methods: {}
  108. });
  109. // CONCATENATED MODULE: ./components/PdfHtml.vue?vue&type=script&lang=js
  110. /* harmony default export */ var components_PdfHtmlvue_type_script_lang_js = (PdfHtmlvue_type_script_lang_js);
  111. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  112. var componentNormalizer = __webpack_require__(2);
  113. // CONCATENATED MODULE: ./components/PdfHtml.vue
  114. function injectStyles (context) {
  115. var style0 = __webpack_require__(340)
  116. if (style0.__inject__) style0.__inject__(context)
  117. }
  118. /* normalize component */
  119. var component = Object(componentNormalizer["a" /* default */])(
  120. components_PdfHtmlvue_type_script_lang_js,
  121. render,
  122. staticRenderFns,
  123. false,
  124. injectStyles,
  125. "09c4a114",
  126. "6979ff02"
  127. )
  128. /* harmony default export */ var PdfHtml = __webpack_exports__["default"] = (component.exports);
  129. /***/ })
  130. };;
  131. //# sourceMappingURL=pdf-html.js.map