Skip to content

Commit

Permalink
fix: 修复批量上报售出表单百分比按钮无响应问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximu-Luya committed Mar 16, 2024
1 parent b63b8c7 commit 2e54873
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/SellReportForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ const { form, onSubmit } = useReportForm({
name: props.product.name,
targetCity: props.target.name
});
const changePricePercent = (type: 'add' | 'reduce') => {
const percent = form.values.percent?.[0] ?? 100;
if (type === 'add') {
form.setFieldValue('percent', [percent + 1]);
} else {
form.setFieldValue('percent', [percent - 1]);
}
}
</script>

<template>
Expand Down

0 comments on commit 2e54873

Please sign in to comment.