Преглед изворни кода

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

liujt пре 4 месеци
родитељ
комит
b7f7b38a1b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/financialManage/paymentPlan/index.vue

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

@@ -535,14 +535,14 @@ export default {
         
         const isPaymentFirstThenInvoice = row.transactionMode == 2;
         const isNotUnpaid = row.paymentStatus != 0;
-        const paymentCondition = isPaymentFirstThenInvoice && isNotUnpaid;
+        const paymentCondition = (isPaymentFirstThenInvoice && isNotUnpaid) || !isPaymentFirstThenInvoice;
         
         const isCashOnDelivery = row.settlementMode == 3;
         const isPrepayment = row.paymentType == 1;
         const isDelivered = row.deliveryStatus != 0;
         const deliveryCondition = isCashOnDelivery && (isPrepayment || (!isPrepayment && isDelivered));
         
-        return isNotFullInvoiced && (paymentCondition || deliveryCondition);
+        return isNotFullInvoiced && ((deliveryCondition || !isCashOnDelivery) && paymentCondition);
       };
     }
   },