Explorar el Código

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

liujt hace 4 meses
padre
commit
bef732ac30
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
       };
     }
   },