Переглянути джерело

换算cny金额不能为0

cz 1 рік тому
батько
коміт
6ffb3a7e4c
1 змінених файлів з 7 додано та 1 видалено
  1. 7 1
      src/views/salesMange/saleContract/claim/index.vue

+ 7 - 1
src/views/salesMange/saleContract/claim/index.vue

@@ -522,6 +522,12 @@ const submitForm = () => {
           type: "info",
         });
       }
+      if (!(e.moneyCny > 0)) {
+        return ElMessage({
+          message: "换算CNY不能为0!",
+          type: "info",
+        });
+      }
     }
     const total = list.reduce((total, x) => (total += Number(x.money)), 0);
     if (total > Number(formData.data.waitAmount)) {
@@ -640,7 +646,7 @@ const handleSelectContrct = (row) => {
     currency: rowCurrency.value,
     rate: rowRate.value,
     claimType: "",
-    moneyCny: 0,
+    moneyCny: null,
   });
   return ElMessage({
     message: "选择成功",