물건목록 수정

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) => { const copyNo = async (value) => {
try { try {
await navigator.clipboard.writeText(value) await navigator.clipboard.writeText(value)
alert(getMessage('stuff.detail.header.message2')) alert(getMessage('stuff.detail.header.successCopy'))
} catch (error) { } 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) => { promiseGet({ url: `/api/object/${objectNo}/detail` }).then((res) => {
if (res.status === 200) { if (res.status === 200) {
if (res.data != null) { if (isObjectNotEmpty(res.data)) {
setManagementState(res.data) setManagementState(res.data)
} else { } else {
setManagementState({}) setManagementState({})
alert(getMessage('stuff.detail.header.notExistObjectNo'))
router.push('/management/stuff')
} }
if (isNotEmptyArray(res.data.planList)) { if (isNotEmptyArray(res.data.planList)) {
setPlanGridProps({ ...planGridProps, planGridData: res.data.planList }) setPlanGridProps({ ...planGridProps, planGridData: res.data.planList })
@ -314,6 +316,9 @@ export default function StuffDetail() {
} else { } else {
setManagementState({}) setManagementState({})
setPlanGridProps({ ...planGridProps, planGridData: [] }) setPlanGridProps({ ...planGridProps, planGridData: [] })
alert(getMessage('stuff.detail.header.notExistObjectNo'))
router.push('/management/stuff')
} }
}) })
} else { } else {

View File

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