|
|
@ -81,12 +81,13 @@ const add = async function () { |
|
|
|
taskGold: (Number(addRefund.value.taskGold) || 0) * 100, |
|
|
|
sumGold: (Number(addRefund.value.sumGold) || 0) * 100 |
|
|
|
} |
|
|
|
|
|
|
|
addDisabled.value = true |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API({ |
|
|
|
url: '/refund/add', |
|
|
|
data: processedRefund |
|
|
|
}) |
|
|
|
addDisabled.value = false |
|
|
|
if (result.code === 0) { |
|
|
|
ElMessage.error(result.msg) |
|
|
|
return |
|
|
@ -100,6 +101,8 @@ const add = async function () { |
|
|
|
// 在这里可以处理错误逻辑,比如显示错误提示等 |
|
|
|
} |
|
|
|
} |
|
|
|
//提交禁止重复点击 |
|
|
|
const addDisabled = ref(false) |
|
|
|
|
|
|
|
// 提交退款信息前的表单验证 |
|
|
|
const addBefore = () => { |
|
|
@ -499,7 +502,7 @@ onMounted(async function () { |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-button type="success" @click="cancel()" style="margin-left: 200px">重置</el-button> |
|
|
|
<el-button type="primary" @click="addBefore"> 提交</el-button> |
|
|
|
<el-button type="primary" :disabled="addDisabled" @click="addBefore"> 提交</el-button> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<!-- 客户信息栏 --> |
|
|
|