Browse Source

请款金额不能为0

lxf 1 year ago
parent
commit
a2fba0eb4d
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/components/process/SendFunds.vue

+ 7 - 1
src/components/process/SendFunds.vue

@@ -113,7 +113,7 @@
                   v-model="row.amount"
                   :precision="4"
                   :controls="false"
-                  :min="0.0001"
+                  :min="0"
                   style="width: 100%"
                   @change="handleChangeAmount" />
               </el-form-item>
@@ -470,6 +470,12 @@ const handleSubmit = async () => {
       ElMessage("请添加请款明细!");
       return false;
     }
+    for (let i = 0; i < formData.data.accountRequestFundsDetailList.length; i++) {
+      if (!formData.data.accountRequestFundsDetailList[i].amount || Number(formData.data.accountRequestFundsDetailList[i].amount) === 0) {
+        ElMessage("请款金额不能为0");
+        return false;
+      }
+    }
     return true;
   } else {
     setTimeout(() => {