물건목록 수정

This commit is contained in:
basssy 2024-11-18 09:21:08 +09:00
parent 7ffe95b73e
commit 5ba9c19f3e
3 changed files with 10 additions and 6 deletions

View File

@ -39,9 +39,9 @@ export default function Stuff() {
const copyNo = async (value) => {
try {
await navigator.clipboard.writeText(value)
alert(getMessage('stuff.detail.header.message2'))
alert(getMessage('stuff.detail.header.successCopy'))
} catch (error) {
alert(getMessage('stuff.detail.header.message3'))
alert(getMessage('stuff.detail.header.failCopy'))
}
}

View File

@ -301,10 +301,12 @@ export default function StuffDetail() {
}
promiseGet({ url: `/api/object/${objectNo}/detail` }).then((res) => {
if (res.status === 200) {
if (res.data != null) {
if (isObjectNotEmpty(res.data)) {
setManagementState(res.data)
} else {
setManagementState({})
alert(getMessage('stuff.detail.header.notExistObjectNo'))
router.push('/management/stuff')
}
if (isNotEmptyArray(res.data.planList)) {
setPlanGridProps({ ...planGridProps, planGridData: res.data.planList })
@ -314,6 +316,9 @@ export default function StuffDetail() {
} else {
setManagementState({})
setPlanGridProps({ ...planGridProps, planGridData: [] })
alert(getMessage('stuff.detail.header.notExistObjectNo'))
router.push('/management/stuff')
}
})
} else {

View File

@ -312,8 +312,8 @@ export default function StuffSearchCondition() {
} else {
//X
//
setSchSelSaleStoreId('')
// stuffSearch.schSelSaleStoreId = ''
// setSchSelSaleStoreId('') // ..
setSchSelSaleStoreId(null)
//2
setOtherSaleStoreList([])
@ -333,7 +333,6 @@ export default function StuffSearchCondition() {
if (session.storeLvl === '1') {
if (stuffSearch.schOtherSelSaleStoreId === '') {
//
// stuffSearch.schSelSaleStoreId = ''
setSchSelSaleStoreId(session.storeId)
} else {
//