|
@@ -762,18 +762,21 @@ const selectCurrencyAfter = (params, openWindow = true) => {
|
|
setCurrentCurrencyListInfo(tempCurrentCurrencyList.value);
|
|
setCurrentCurrencyListInfo(tempCurrentCurrencyList.value);
|
|
showCurrencyPop.value = false;
|
|
showCurrencyPop.value = false;
|
|
finalAmountData.value.currencyCode = currentCurrencyInfo.value.currencyCode;
|
|
finalAmountData.value.currencyCode = currentCurrencyInfo.value.currencyCode;
|
|
- resetFormIpt();
|
|
|
|
|
|
+ resetFormIpt(false);
|
|
onIptSetErrorTxt();
|
|
onIptSetErrorTxt();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const resetFormIpt = () => {
|
|
|
|
|
|
+const resetFormIpt = (clearMode = true) => {
|
|
baseFormData.amountValue = "";
|
|
baseFormData.amountValue = "";
|
|
baseFormData.totalCount = "";
|
|
baseFormData.totalCount = "";
|
|
baseFormData.validityDuration = "";
|
|
baseFormData.validityDuration = "";
|
|
- selectModeInfo.index = 0;
|
|
|
|
- selectModeInfo.type = publishModeList[selectModeInfo.index]['type'];
|
|
|
|
- baseFormData.type = selectModeInfo.type;
|
|
|
|
|
|
+
|
|
|
|
+ if(clearMode) {
|
|
|
|
+ selectModeInfo.index = 0;
|
|
|
|
+ selectModeInfo.type = publishModeList[selectModeInfo.index]['type'];
|
|
|
|
+ baseFormData.type = selectModeInfo.type;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
const setLocalSelectCurrencyInfo = (params = {}) => {
|
|
const setLocalSelectCurrencyInfo = (params = {}) => {
|
|
@@ -815,7 +818,7 @@ const messageBoxCancel = () => {
|
|
showMessageBox.value = false;
|
|
showMessageBox.value = false;
|
|
showCurrencyPop.value = false;
|
|
showCurrencyPop.value = false;
|
|
showCurrencySelect.value = false;
|
|
showCurrencySelect.value = false;
|
|
- resetFormIpt();
|
|
|
|
|
|
+ resetFormIpt(false);
|
|
onIptSetErrorTxt();
|
|
onIptSetErrorTxt();
|
|
};
|
|
};
|
|
|
|
|
|
@@ -1114,11 +1117,17 @@ const onAmountInput = () => {
|
|
|
|
|
|
const onCountInput = () => {
|
|
const onCountInput = () => {
|
|
let val = baseFormData.totalCount;
|
|
let val = baseFormData.totalCount;
|
|
|
|
+ const maxCount = 100000000;
|
|
|
|
+
|
|
if (val == 0) {
|
|
if (val == 0) {
|
|
val = "";
|
|
val = "";
|
|
}
|
|
}
|
|
val = val.replace(/^\D*(\d*(?:\.\d{0,18})?).*$/g, '$1');
|
|
val = val.replace(/^\D*(\d*(?:\.\d{0,18})?).*$/g, '$1');
|
|
|
|
|
|
|
|
+ if(val > maxCount) {
|
|
|
|
+ val = maxCount
|
|
|
|
+ }
|
|
|
|
+
|
|
baseFormData.totalCount = val;
|
|
baseFormData.totalCount = val;
|
|
setInputErrorMsg({from: 'count', type:'input'});
|
|
setInputErrorMsg({from: 'count', type:'input'});
|
|
return val;
|
|
return val;
|