소스 검색

成本分配表打印-取消打印空的sheet

jbb 2 년 전
부모
커밋
ddb6affcf7
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      src/views/reportForms/cost-allocation-table.vue
  2. 3 3
      src/views/reportForms/cost-allocation-table/tabs.vue

+ 3 - 3
src/views/reportForms/cost-allocation-table.vue

@@ -186,7 +186,7 @@
 
     <!-- 事故单 -->
     <a-card :bordered="true" style="margin:10px 0">
-      <div style="margin:60px 0 40px 0">
+      <div style="margin:60px 0 40px 0" :class="[(accidentListData.length==0?'noprint': '')]">
         <h6 class="table-title">事故单</h6>
         <a-table
           rowKey="id"
@@ -205,8 +205,8 @@
       </div>
 
       <!-- 费用支出 -->
-      <div>
-        <h6 class="table-title">费用支出</h6>
+      <div :class="[(costPayData.length==0?'noprint': '')]">
+        <h6 class="table-title" >费用支出</h6>
         <a-table
           rowKey="id"
           :loading="loading"

+ 3 - 3
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -5,7 +5,7 @@
     <a-tabs @change="tabsCallback" :default-active-key="activeKey">
       <a-tab-pane v-for="(item, index) in tabNameList" :key="index" :tab="item">
         <!-- tabs 面料 -->
-        <div>
+        <div :class="[(fabData.length==0?'noprint': '')]">
           <h6 class="table-title">面料</h6>
           <a-table
             rowKey="(item)=>item.id"
@@ -36,7 +36,7 @@
         </div>
 
         <!-- tabs 辅料   -->
-        <div style="margin:30px 0">
+        <div style="margin:30px 0" :class="[(ingData.length==0?'noprint': '')]">
           <h6 class="table-title">辅料</h6>
           <a-table
             rowKey="(item)=>item.id"
@@ -63,7 +63,7 @@
         </div>
 
         <!-- tabs 发运明细   :scroll="{ x: 1500 }"-->
-        <div>
+        <div :class="[(shipData.length==0?'noprint': '')]">
           <h6 class="table-title">发运明细</h6>
           <a-table
             rowKey="(item)=>item.id"