瀏覽代碼

合计行不点击

jbb 2 年之前
父節點
當前提交
c92abd4cee
共有 1 個文件被更改,包括 9 次插入4 次删除
  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 {
           }
         }
       }
+      }
     },
 
     // 事故单 单号 弹框