Qcast 물건상세 surface 코드 value 값 GlobalDataProvider에 추가

This commit is contained in:
basssy 2025-01-02 14:46:18 +09:00
parent 5a69e0f955
commit f57c255968
2 changed files with 8 additions and 2 deletions

View File

@ -319,7 +319,13 @@ export default function StuffDetail() {
promiseGet({ url: `/api/object/${objectNo}/detail` }).then((res) => {
if (res.status === 200) {
if (isObjectNotEmpty(res.data)) {
setManagementState(res.data)
let surfaceTypeValue
if (res.data.surfaceType === 'Ⅲ・Ⅳ') {
surfaceTypeValue = '3'
} else if (res.data.surfaceType === 'Ⅱ') {
surfaceTypeValue = '2'
}
setManagementState({ ...res.data, surfaceTypeValue: surfaceTypeValue })
} else {
setManagementState({})
alert(getMessage('stuff.detail.header.notExistObjectNo'))

View File

@ -87,7 +87,7 @@ export default function PlanRequestPop(props) {
const onSubmit = (page, type) => {
//2 201X112
const params = {
// saleStoreId: 'T100',
// saleStoreId: 'X112',
// saleStoreLevel: '1',
saleStoreId: props?.otherSaleStoreId ? props.otherSaleStoreId : props.saleStoreId,
saleStoreLevel: props?.otherSaleStoreLevel ? props.otherSaleStoreLevel : props.saleStoreLevel,