diff --git a/public/components/admin/editPropertyCompany/editPropertyCompany.html b/public/components/admin/editPropertyCompany/editPropertyCompany.html index c5925f1f1..78975b044 100644 --- a/public/components/admin/editPropertyCompany/editPropertyCompany.html +++ b/public/components/admin/editPropertyCompany/editPropertyCompany.html @@ -1,5 +1,4 @@ -
@@ -73,4 +76,4 @@
- + \ No newline at end of file diff --git a/public/components/property/commonReportTable/commonReportTable.js b/public/components/property/commonReportTable/commonReportTable.js index da2b4c918..3efb58ae7 100644 --- a/public/components/property/commonReportTable/commonReportTable.js +++ b/public/components/property/commonReportTable/commonReportTable.js @@ -201,9 +201,11 @@ } let urlParam = _result.join('&'); - vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam) - + }, + _printReportTableMethod: function(_data) { + vc.saveData('printCommonReportTableData', _data); + window.open('/print.html#/pages/property/printCommonReportTable'); } } }); diff --git a/public/pages/property/printCommonReportTable/printCommonReportTable.html b/public/pages/property/printCommonReportTable/printCommonReportTable.html new file mode 100644 index 000000000..3d1bd0486 --- /dev/null +++ b/public/pages/property/printCommonReportTable/printCommonReportTable.html @@ -0,0 +1,33 @@ +
+
+

{{printCommonReportTableInfo.componentName}}

+
+ +
+ + + + + + + + + + + +
{{itemTh}}
+ {{itemData[tmpItemTh]}}
+
+ +
{{key}}: {{tmpItemTh}}
+
+
+ +
+
\ No newline at end of file diff --git a/public/pages/property/printCommonReportTable/printCommonReportTable.js b/public/pages/property/printCommonReportTable/printCommonReportTable.js new file mode 100644 index 000000000..65fc808f2 --- /dev/null +++ b/public/pages/property/printCommonReportTable/printCommonReportTable.js @@ -0,0 +1,33 @@ +/** + 入驻小区 + **/ +(function(vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + printCommonReportTableInfo: {} + }, + _initMethod: function() { + $that.printCommonReportTableInfo = vc.getData('printCommonReportTableData') + + }, + methods: { + _printPurchaseApplyDiv: function() { + + $that.printFlag = '1'; + console.log('console.log($that.printFlag);', $that.printFlag); + document.getElementById("print-btn").style.display = "none"; //隐藏 + + window.print(); + //$that.printFlag = false; + window.opener = null; + window.close(); + }, + _closePage: function() { + window.opener = null; + window.close(); + }, + } + }); +})(window.vc); \ No newline at end of file