물건목록 수정
This commit is contained in:
parent
7ffe95b73e
commit
5ba9c19f3e
@ -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'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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 {
|
||||||
// 화면에선 지우는데 조회누르기 전이면 리코일은 남김
|
// 화면에선 지우는데 조회누르기 전이면 리코일은 남김
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user