물건목록 2차 판매점 관련

This commit is contained in:
basssy 2025-02-05 12:19:35 +09:00
parent cdac61a478
commit ae54f4d6a4
2 changed files with 7 additions and 17 deletions

View File

@ -411,11 +411,6 @@ export default function StuffDetail() {
if (session?.storeId === 'T01') {
url = `/api/object/saleStore/${session?.storeId}/firstList?userId=${session?.userId}`
} else {
// if (session.storeLvl === '1') {
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// } else {
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// }
url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
}
@ -524,11 +519,6 @@ export default function StuffDetail() {
if (session?.storeId === 'T01') {
url = `/api/object/saleStore/${session?.storeId}/firstList?userId=${session?.userId}`
} else {
// if (session.storeLvl === '1') {
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// } else {
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// }
url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
}
get({ url: url }).then((res) => {
@ -1671,6 +1661,9 @@ export default function StuffDetail() {
)
}
console.log('물건등로고하면::', otherSaleStoreList)
console.log('물건등로고하면::', otherSaleStoreList.length)
//"201X584"
return (
<>
{(editMode === 'NEW' && (

View File

@ -474,12 +474,6 @@ export default function StuffSearchCondition() {
//T01
url = `/api/object/saleStore/${session?.storeId}/firstList?userId=${session?.userId}`
} else {
// if (session.storeLvl === '1') {
// //T01 1
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// } else {
// url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
// }
url = `/api/object/saleStore/${session?.storeId}/list?firstFlg=1&userId=${session?.userId}`
}
@ -1302,7 +1296,10 @@ export default function StuffSearchCondition() {
onChange={onSelectionChange2}
getOptionLabel={(x) => x.saleStoreName}
getOptionValue={(x) => x.saleStoreId}
isDisabled={otherSaleStoreList != null && otherSaleStoreList.length === 1 ? true : false}
// isDisabled={otherSaleStoreList != null && otherSaleStoreList.length === 1 ? true : false}
isDisabled={
session?.storeLvl === '1' ? (otherSaleStoreList.length > 0 ? false : true) : otherSaleStoreList.length === 1 ? true : false
}
isClearable={true}
value={otherSaleStoreList.filter(function (option) {
return option.saleStoreId === otherSaleStoreId