|
@@ -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: "选择成功",
|