|
|
@ -425,16 +425,20 @@ const submitEdit = async function () { |
|
|
ElMessage.error(t('elmessage.inputRefundBeansBoth')) |
|
|
ElMessage.error(t('elmessage.inputRefundBeansBoth')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
const isPositiveInteger = /^[1-9]\d*$/.test(editForm.value.partRefundGold) |
|
|
|
|
|
|
|
|
const isPositiveInteger = /^[0-9]\d*$/.test(editForm.value.partRefundGold) |
|
|
if (!isPositiveInteger) { |
|
|
if (!isPositiveInteger) { |
|
|
ElMessage.error(t('elmessage.checkPermanentFormat')) |
|
|
ElMessage.error(t('elmessage.checkPermanentFormat')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
const isPositiveInteger1 = /^[1-9]\d*$/.test(editForm.value.partRefundFree) |
|
|
|
|
|
|
|
|
const isPositiveInteger1 = /^[0-9]\d*$/.test(editForm.value.partRefundFree) |
|
|
if (!isPositiveInteger1) { |
|
|
if (!isPositiveInteger1) { |
|
|
ElMessage.error(t('elmessage.checkFreeFormat')) |
|
|
ElMessage.error(t('elmessage.checkFreeFormat')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if(editForm.value.partRefundFree == 0 && editForm.value.partRefundGold == 0){ |
|
|
|
|
|
ElMessage.error(t('elmessage.checkRefundgolds')) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
let params = { |
|
|
let params = { |
|
|
id: editRow.value.id, |
|
|
id: editRow.value.id, |
|
|
|