Просмотр исходного кода

费用申请新加打印报表

Qukatie 8 месяцев назад
Родитель
Сommit
148a666585
1 измененных файлов с 12 добавлено и 7 удалено
  1. 12 7
      src/views/iosBasicData/feeApplication/detailsPage.vue

+ 12 - 7
src/views/iosBasicData/feeApplication/detailsPage.vue

@@ -7,6 +7,11 @@
         </el-button>
       </div>
       <div class="add-customer-btn">
+        <el-button size="small" style="margin-right: 8px" :disabled="!form.id" @click="$refs.print.openDialog()">预 览
+        </el-button>
+        <el-button v-if="roleName.indexOf('admin') != -1" size="small" style="margin-right: 8px" :disabled="!form.id"
+          @click="$refs.report.openDialog()">报表设计
+        </el-button>
         <el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small" v-if="editButton"
           :disabled="showLock || !(roleName.indexOf('admin') != -1 || roleName.indexOf('允许修改他人业务') != -1 || saberUserInfo.user_id == form.createUser)"
           @click="inEdit">编 辑
@@ -127,10 +132,8 @@
             </div> -->
       </trade-card>
     </div>
-    <business-reports :id="form.id" :itemIds="itemIds" ref="print" businessValue="MYDL" :type="true"></business-reports>
-    <business-reports :id="form.id" :itemIds="itemCIds" ref="printC" businessValue="MYDL" classifyCode="费用"
-      groupCode="应付" :selecList="selectionfeecList"></business-reports>
-    <reports :id="form.id" :assemblyForm="form" businessValue="MYDL" ref="report"></reports>
+    <business-reports :id="form.id" :itemIds="itemIds" ref="print" businessValue="FYSQ" :type="true"></business-reports>
+    <reports :id="form.id" :assemblyForm="form" businessValue="FYSQ" ref="report"></reports>
   </div>
 </template>
 
@@ -141,8 +144,8 @@ import {
 } from "@/api/iosBasicData/feeApplication.js";
 import dicSelect from "@/components/dicSelect/main";
 import checkSchedule from "@/components/checkH/checkSchedule.vue";
-import businessReports from "@/components/tradeAgency/businessReports.vue";
-import reports from "@/components/tradeAgency/reports.vue";
+import businessReports from "@/components/boxManagement/businessReports.vue";
+import reports from "@/components/boxManagement/reports.vue";
 import { dateFormat } from "@/util/date";
 import { bcurrencyGetExrate } from "@/api/iosBasicData/rateManagement";
 import { getToken } from "@/util/auth";
@@ -643,7 +646,9 @@ export default {
     }
   },
   components: {
-    dicSelect
+    dicSelect,
+    businessReports,
+    reports
   },
   props: {
     detailData: Object