물건 surfaceTypeValue

This commit is contained in:
basssy 2025-02-07 11:26:21 +09:00
parent 037517763e
commit 5d742c6565

View File

@ -1414,7 +1414,13 @@ export default function StuffDetail() {
text: getMessage('stuff.detail.save'),
type: 'alert',
confirmFn: () => {
setManagementState(res?.data)
let surfaceTypeValue
if (res.data.surfaceType === 'Ⅲ・Ⅳ') {
surfaceTypeValue = '3'
} else if (res.data.surfaceType === 'Ⅱ') {
surfaceTypeValue = '2'
}
setManagementState({ ...res.data, surfaceTypeValue: surfaceTypeValue })
router.push(`/management/stuff/detail?objectNo=${res.data.objectNo.toString()}`, { scroll: false })
},
})