fix(mall): 校验售后申请类型必填

- 后端售后申请接口启用请求体参数校验
- 前端申请售后提交前校验售后类型
- 修正售后类型 radio 选中态绑定字段
master
YunaiV 2026-06-07 23:15:32 +08:00
parent 41211d17b3
commit 8338321786
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@
:key="index"
>
<radio
:checked="formData.type === item.value"
:checked="formData.way === item.value"
color="var(--ui-BG-Main)"
style="transform: scale(0.8)"
:value="item.value"
@ -159,6 +159,10 @@
//
async function submit() {
if (!formData.way) {
sheep.$helper.toast('请选择售后类型');
return;
}
let data = {
orderItemId: state.itemId,
refundPrice: state.item.payPrice,