Merge branch 'dev' into dev-yj

This commit is contained in:
yjnoh 2024-10-24 13:47:06 +09:00
commit dd963d3055
4 changed files with 12 additions and 14 deletions

View File

@ -228,6 +228,7 @@ export default function Stuff() {
// sessionState
if (stuffSearchParams?.code === 'S') {
const params = {
saleStoreId: sessionState?.storeId,
schObjectNo: stuffSearchParams?.schObjectNo,
schAddress: stuffSearchParams?.schAddress,
schObjectName: stuffSearchParams?.schObjectName,
@ -244,8 +245,7 @@ export default function Stuff() {
}
async function fetchData() {
const apiUrl = `/api/object/list?saleStoreId=${sessionState?.storeId}&${queryStringFormatter(params)}`
// const apiUrl = `/api/object/list?saleStoreId=T01&${queryStringFormatter(params)}`
const apiUrl = `/api/object/list?${queryStringFormatter(params)}`
await get({
url: apiUrl,
}).then((res) => {
@ -259,6 +259,7 @@ export default function Stuff() {
} else {
//
const params = {
saleStoreId: sessionState?.storeId,
schObjectNo: stuffSearchParams.schObjectNo,
schAddress: '',
schObjectName: '',
@ -275,8 +276,7 @@ export default function Stuff() {
}
async function fetchData() {
const apiUrl = `/api/object/list?saleStoreId=${sessionState?.storeId}&${queryStringFormatter(params)}`
const apiUrl = `/api/object/list?${queryStringFormatter(params)}`
await get({
url: apiUrl,
}).then((res) => {
@ -298,9 +298,8 @@ export default function Stuff() {
stuffSearchParams.schSortType = defaultSortType
setPageNo(1)
//
async function fetchData() {
// const apiUrl = `/api/object/list?saleStoreId=T01&${queryStringFormatter(stuffSearchParams)}`
const apiUrl = `/api/object/list?saleStoreId=${sessionState?.storeId}&${queryStringFormatter(stuffSearchParams)}`
await get({ url: apiUrl }).then((res) => {
if (!isEmptyArray(res)) {
@ -330,7 +329,6 @@ export default function Stuff() {
})
setPageNo(1)
// const apiUrl = `/api/object/list?saleStoreId=T01&${queryStringFormatter(stuffSearchParams)}`
const apiUrl = `/api/object/list?saleStoreId=${sessionState?.storeId}&${queryStringFormatter(stuffSearchParams)}`
get({ url: apiUrl }).then((res) => {
if (!isEmptyArray(res)) {
@ -361,7 +359,6 @@ export default function Stuff() {
setPageNo(1)
// const apiUrl = `/api/object/list?saleStoreId=T01&${queryStringFormatter(stuffSearchParams)}`
const apiUrl = `/api/object/list?saleStoreId=${sessionState?.storeId}&${queryStringFormatter(stuffSearchParams)}`
get({ url: apiUrl }).then((res) => {
if (!isEmptyArray(res)) {

View File

@ -893,10 +893,10 @@ export default function StuffDetail() {
let height = params.installHeight
if (snow === '0') {
alert(getMessage('stuff.detail.save.valierror1'))
return alert(getMessage('stuff.detail.save.valierror1'))
}
if (height === '0') {
alert(getMessage('stuff.detail.save.valierror2'))
return alert(getMessage('stuff.detail.save.valierror2'))
}
alert('작업중')
@ -958,10 +958,10 @@ export default function StuffDetail() {
let height = params.installHeight
if (snow === '0') {
alert(getMessage('stuff.detail.save.valierror1'))
return alert(getMessage('stuff.detail.save.valierror1'))
}
if (height === '0') {
alert(getMessage('stuff.detail.save.valierror2'))
return alert(getMessage('stuff.detail.save.valierror2'))
}
alert('작업중')
@ -1129,6 +1129,7 @@ export default function StuffDetail() {
getOptionLabel={(x) => x.saleStoreName}
getOptionValue={(x) => x.saleStoreId}
isClearable={sessionState?.storeLvl === '1' ? true : false}
isDisabled={sessionState?.storeLel !== '1' ? true : false}
value={saleStoreList.filter(function (option) {
return option.saleStoreId === selOptions
})}
@ -1537,6 +1538,7 @@ export default function StuffDetail() {
getOptionLabel={(x) => x.saleStoreName}
getOptionValue={(x) => x.saleStoreId}
isClearable={sessionState?.storeLvl === '1' ? true : false}
isDisabled={sessionState?.storeLel !== '1' ? true : false}
value={saleStoreList.filter(function (option) {
return option.saleStoreId === selOptions
})}

View File

@ -128,7 +128,6 @@ export default function StuffSearchCondition() {
useEffect(() => {
if (isObjectNotEmpty(sessionState)) {
// storeId T01 1
// get({ url: `/api/object/saleStore/TEMP02/list` }).then((res) => {
get({ url: `/api/object/saleStore/${sessionState?.storeId}/list` }).then((res) => {
if (!isEmptyArray(res)) {
res.map((row) => {

View File

@ -522,7 +522,7 @@
"stuff.detail.btn.save": "저장",
"stuff.detail.btn.tempSave": "임시저장",
"stuff.detail.save.valierror1": "수직적설량은 0보다 큰 값을 입력하세요",
"stuff.detail.save.valierror2": "설치높이 0보다 큰 값을 입력하세요",
"stuff.detail.save.valierror2": "설치높이 0보다 큰 값을 입력하세요",
"stuff.planReqPopup.popTitle": "설계 요청 검색",
"stuff.planReqPopup.btn1": "검색",
"stuff.planReqPopup.btn2": "초기화",