Browse Source

合计行不点击

jbb 2 years ago
parent
commit
c92abd4cee
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/views/reportForms/fabric-loss-table.vue

+ 9 - 4
src/views/reportForms/fabric-loss-table.vue

@@ -266,8 +266,9 @@
           :pagination="false"
         >
           <!-- 发票数量 -->
-          <span slot="ingredientsInvoiceQuantity" slot-scope="text">
-            <a>{{ text }}</a>
+          <span slot="ingredientsInvoiceQuantity" slot-scope="text, record">
+            <a v-if="record.caccount!=='合计'">{{ text }}</a>
+            <span v-else>{{text}}</span>
           </span>
         </a-table>
       </div>
@@ -990,7 +991,8 @@ export default {
 
     // 开票成本-面料弹框
     invoiceNumCustomCell(record) {
-      return {
+      if(record.csbvcode!=='合计'){
+        return {
         on: {
           click: event => {
             this.$refs.invoiceNumModal.invoiceNumData = record.fabricCostClothDetailList;
@@ -1000,6 +1002,7 @@ export default {
           }
         }
       }
+      }
     },
 
     //成本发票 -----合计行
@@ -1100,7 +1103,8 @@ export default {
 
     // 开票成本辅料-弹框
     ingredientsInvoiceQuantityCustomCell(record) {
-      return {
+      if(record.caccount!=='合计'){
+        return {
         on: {
           click: event => {
             this.$refs.invoiceQuantityModal.invoiceQuantityData = record.fabricCostAssistDetailList;
@@ -1110,6 +1114,7 @@ export default {
           }
         }
       }
+      }
     },
 
     // 事故单 单号 弹框