Merge branch 'dev' into dev-yj

This commit is contained in:
yjnoh 2024-11-13 18:05:49 +09:00
commit 08cced00e8
2 changed files with 5 additions and 34 deletions

View File

@ -151,6 +151,7 @@ export default function StuffSearchCondition() {
setEndDate(dayjs(new Date()).format('YYYY-MM-DD'))
if (session?.storeId === 'T01') {
setSchSelSaleStoreId('')
setOtherSaleStoreId('')
handleClear1() //
resetStuffRecoil()
setStuffSearch({
@ -204,10 +205,8 @@ export default function StuffSearchCondition() {
setSchSelSaleStoreList(allList)
setFavoriteStoreList(favList)
setShowSaleStoreList(favList)
// if (stuffSearch.code === 'FINISH') {
if (stuffSearch.schSelSaleStoreId != '') {
setSchSelSaleStoreId(stuffSearch.schSelSaleStoreId)
// if (stuffSearch.schOtherSelSaleStoreId != '') {
url = `/api/object/saleStore/${stuffSearch.schSelSaleStoreId}/list?firstFlg=1&userId=${session?.userId}`
get({ url: url }).then((res) => {
if (!isEmptyArray(res)) {
@ -223,30 +222,10 @@ export default function StuffSearchCondition() {
setOtherSaleStoreList([])
}
})
// }
}
// }
setStuffSearch({
...stuffSearch,
code: 'S',
})
//T01 2 1 storeId
//
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=0&userId=${session?.userId}`
// get({ url: url }).then((res) => {
// if (!isEmptyArray(res)) {
// res.map((row) => {
// row.value = row.saleStoreId
// row.label = row.saleStoreName
// })
// otherList = res
// setOtherSaleStoreList(otherList)
// } else {
// setOtherSaleStoreList([])
// }
// setStuffSearch({
// ...stuffSearch,
// code: 'S',
// })
} else {
if (session?.storeLvl === '1') {
@ -261,11 +240,6 @@ export default function StuffSearchCondition() {
setOtherSaleStoreList(otherList)
setStuffSearch({
...stuffSearch,
code: 'S',
})
if (stuffSearch.schOtherSelSaleStoreId != '') {
setOtherSaleStoreId(stuffSearch.schOtherSelSaleStoreId)
}
@ -369,10 +343,6 @@ export default function StuffSearchCondition() {
} else {
//
setOtherSaleStoreId('')
setStuffSearch({
...stuffSearch,
// schOtherSelSaleStoreId: '',
})
}
} else {
setOtherSaleStoreId('')

View File

@ -92,6 +92,7 @@ export const useEstimateController = (planNo) => {
unit: '', //단위
salePrice: '0', //단가
saleTotPrice: '0', //금액(부가세별도)
itemChangeFlg: '1', //추가시 체인지플래그 1로
},
],
})