Qukatie 2 недель назад
Родитель
Сommit
a64c7946b4

+ 2 - 2
src/components/boxManagement/businessReportsJc.vue

@@ -292,8 +292,8 @@ export default {
     }
   },
   methods: {
-    openDialog() {
-      console.log(11111111);
+    openDialog(query) {
+      this.query=query
       this.previewDialog = true;
       this.onLoad(this.page, this.query);
     },

+ 2 - 1
src/components/boxManagement/reportsJc.vue

@@ -332,7 +332,8 @@ export default {
     }
   },
   methods: {
-    openDialog() {
+    openDialog(query) {
+      this.query=query
       this.previewDialog = true;
     },
     // 设计报表

+ 2 - 2
src/views/iosBasicData/UnpaidPaymentsDetails/index.vue

@@ -21,8 +21,8 @@
     >
       <template slot="menuLeft">
         <el-button type="success" size="small" plain @click="exportfun">导出</el-button>
-        <el-button size="small" @click="$refs.print.openDialog()">预 览</el-button>
-        <el-button size="small" @click="$refs.report.openDialog()">报表设计</el-button>
+        <el-button size="small" @click="$refs.print.openDialog(query)">预 览</el-button>
+        <el-button size="small" @click="$refs.report.openDialog(query)">报表设计</el-button>
       </template>
       <template slot="header">
         <el-table :data="commodityData" border size="small" @header-click="cellClick" style="width: 100%">

+ 2 - 2
src/views/iosBasicData/financeProfit/index.vue

@@ -21,8 +21,8 @@
     >
       <template slot="menuLeft">
         <el-button type="success" size="small" plain @click="exportfun">导出</el-button>
-        <el-button size="small" @click="$refs.print.openDialog()">预 览 </el-button>
-        <el-button size="small" @click="$refs.report.openDialog()">报表设计 </el-button>
+        <el-button size="small" @click="$refs.print.openDialog(query)">预 览 </el-button>
+        <el-button size="small" @click="$refs.report.openDialog(query)">报表设计 </el-button>
       </template>
       <template slot="header">
         <el-table v-loading="itemLoading" :data="commodityData" border size="small" @header-click="cellClick" style="width: 100%">

+ 2 - 2
src/views/iosBasicData/paymentDetail/index.vue

@@ -21,8 +21,8 @@
     >
       <template slot="menuLeft">
         <el-button type="success" size="small" plain @click="exportfun">导出</el-button>
-        <el-button size="small" @click="$refs.print.openDialog()">预 览</el-button>
-        <el-button size="small" @click="$refs.report.openDialog()">报表设计</el-button>
+        <el-button size="small" @click="$refs.print.openDialog(query)">预 览</el-button>
+        <el-button size="small" @click="$refs.report.openDialog(query)">报表设计</el-button>
       </template>
       <template slot="header">
         <el-table :data="commodityData" border size="small" @header-click="cellClick" style="width: 100%">