Jelajahi Sumber

fix(财务支付计划): 修正支付条件判断逻辑

liujt 4 bulan lalu
induk
melakukan
bef732ac30
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/financialManage/paymentPlan/index.vue

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

@@ -540,9 +540,9 @@ export default {
         const isCashOnDelivery = row.settlementMode == 3;
         const isPrepayment = row.paymentType == 1;
         const isDelivered = row.deliveryStatus != 0;
-        const deliveryCondition = !isCashOnDelivery || (isPrepayment || isDelivered);
+        const deliveryCondition = isCashOnDelivery && (isPrepayment || (!isPrepayment && isDelivered));
         
-        return isNotFullInvoiced && paymentCondition && deliveryCondition;
+        return isNotFullInvoiced && (paymentCondition || deliveryCondition);
       };
     }
   },