물건목록화면 엔터검색 다른필드도 적용

This commit is contained in:
basssy 2024-10-30 10:34:47 +09:00
parent f53a571a0e
commit 9a5ac095ff
2 changed files with 9 additions and 3 deletions

View File

@ -1128,9 +1128,10 @@ export default function StuffDetail() {
// PUT
await promisePut({ url: apiUrl, data: params }).then((res) => {
if (res.status === 201) {
setFloorPlanObjectNo({ floorPlanObjectNo: res.data.objectNo })
alert(getMessage('stuff.detail.save'))
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
router.refresh()
// router.refresh()
router.push(`/management/stuff/detail?objectNo=${res.data.objectNo.toString()}`)
}
})
}
@ -1182,7 +1183,6 @@ export default function StuffDetail() {
// if (height === '0') {
// return alert(getMessage('stuff.detail.save.valierror2'))
// }
await promisePost({ url: '/api/object/save-object', data: params }).then((res) => {
if (res.status === 201) {
alert(getMessage('stuff.detail.tempSave.message1'))

View File

@ -144,6 +144,7 @@ export default function StuffSearchCondition() {
})
const allList = res
const favList = res.filter((row) => row.priority !== 'B')
setSchSelSaleStoreList(allList)
setFavoriteStoreList(favList)
setShowSaleStoreList(favList)
@ -263,6 +264,7 @@ export default function StuffSearchCondition() {
onChange={(e) => {
setSaleStoreName(saleStoreNameRef.current.value)
}}
onKeyUp={handleByOnKeyUp}
/>
</div>
</td>
@ -277,6 +279,7 @@ export default function StuffSearchCondition() {
onChange={(e) => {
setAddress(addressRef.current.value)
}}
onKeyUp={handleByOnKeyUp}
/>
</div>
</td>
@ -293,6 +296,7 @@ export default function StuffSearchCondition() {
onChange={(e) => {
setobjectName(objectNameRef.current.value)
}}
onKeyUp={handleByOnKeyUp}
/>
</div>
</td>
@ -307,6 +311,7 @@ export default function StuffSearchCondition() {
onChange={(e) => {
setDispCompanyName(dispCompanyNameRef.current.value)
}}
onKeyUp={handleByOnKeyUp}
/>
</div>
</td>
@ -363,6 +368,7 @@ export default function StuffSearchCondition() {
onChange={(e) => {
setReceiveUser(receiveUserRef.current.value)
}}
onKeyUp={handleByOnKeyUp}
/>
</div>
</td>