浏览代码

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

xieyong 4 天之前
父节点
当前提交
3465b1d195
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  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;
         };
       }
     },