Procházet zdrojové kódy

fix:修改支付逻辑

ly před 9 měsíci
rodič
revize
5ede52360a
1 změnil soubory, kde provedl 10 přidání a 3 odebrání
  1. 10 3
      src/views/business/financial/payment/form.vue

+ 10 - 3
src/views/business/financial/payment/form.vue

@@ -217,7 +217,11 @@
                       <span>{{ rowNum(scope.row.payment) }}</span>
                     </template>
                   </el-table-column>
-
+                  <el-table-column label="审核支付金额" prop="payment" width="100" align="center">
+                    <template #default="scope">
+                      <span>{{ rowNum(scope.row.reviewAmount) }}</span>
+                    </template>
+                  </el-table-column>
                   <el-table-column label="可支出金额" align="center">
                     <template #default="scope">
                       {{rowNum((Number(scope.row.reallyAmount) || 0) - (Number(scope.row.payment) || 0)) - (Number(scope.row.reviewAmount || 0))}}
@@ -608,9 +612,12 @@
       let item = form.value.details[i];
 
       const tempAmount = rowNum((Number(item.reallyAmount) || 0) - (Number(item.payment) || 0)) - (Number(item.reviewAmount || 0));
+
       if (item.paymentAmount !== 0 && tempAmount <  item.paymentAmount) {
-        proxy.$modal.msgError("当前的" + item.taskTypeName + "填写的支出金额大于现系统内支出的全部金额");
-        return;
+        if(item.reallyAmount < (rowNum((Number(item.paymentAmount) || 0) + (Number(item.reviewAmount || 0)) + (Number(item.payment) || 0))) ){
+          proxy.$modal.msgError("当前的" + item.taskTypeName + "本次支出金额超过可支出金额,不可提交,请联系财务人员。");
+          return;
+        }
       }
     }
     proxy.$refs["orderRef"].validate((valid) => {