Browse Source

fix: 更新开票条件,增加未开票状态检查

xieyong 4 ngày trước cách đây
mục cha
commit
3465b1d195
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 2 2
      src/views/financialManage/receivedManaged/index.vue

+ 2 - 2
src/views/financialManage/receivedManaged/index.vue

@@ -457,8 +457,8 @@
       canAddInvoice() {
         return function(row) {
           if (!row) return false;
-          // 要审核通过并且要先款后票才能开票
-          return [2].includes(row.approvalStatus) && [2].includes(row.transactionMode);
+          // 要审核通过并且要先款后票才能开票+开票状态0未开票
+          return [2].includes(row.approvalStatus) && [2].includes(row.transactionMode) && row.invoiceStatus === 0;
         };
       }
     },