Compare commits

..

No commits in common. "cbcf70d034d462c58d0f4ef64d9e9a7cd9d75ab2" and "b8a3821149824d99dcd7e0aca39131ed20c3ebee" have entirely different histories.

View File

@ -1036,18 +1036,6 @@ export default function StuffDetail() {
form.setValue('saleStoreName', info.saleStoreName)
form.setValue('saleStoreLevel', info.saleStoreLevel)
} else {
// [PLANREQ-MATCH 2026-05-15] 2 user: planReqNo + store 2 select disable
if (session?.storeLvl === '2') {
const matched = otherSaleStoreList.some((o) => o.saleStoreId === info.saleStoreId)
if (!matched) {
form.setValue('planReqNo', '')
setOtherSelOptions(session?.storeId)
form.setValue('otherSaleStoreId', session?.storeId)
form.setValue('otherSaleStoreName', '')
form.setValue('otherSaleStoreLevel', session?.storeLvl)
return
}
}
setOtherSelOptions(info.saleStoreId)
form.setValue('otherSaleStoreId', info.saleStoreId)
form.setValue('otherSaleStoreName', info.saleStoreName)
@ -2046,12 +2034,13 @@ export default function StuffDetail() {
getOptionLabel={(x) => x.saleStoreName}
getOptionValue={(x) => x.saleStoreId}
isDisabled={
// [PLANREQ-MATCH 2026-05-15] 2 user store enable
session?.storeLvl === '1'
? otherSaleStoreList.length > 0
? false
: true
: false
: otherSaleStoreList.length === 1
? true
: false
}
isClearable={true}
value={otherSaleStoreList.filter(function (option) {
@ -2644,14 +2633,15 @@ export default function StuffDetail() {
getOptionLabel={(x) => x.saleStoreName}
getOptionValue={(x) => x.saleStoreId}
isDisabled={
// [PLANREQ-MATCH 2026-05-15] 2 user store enable (tempFlg='0' )
managementState?.tempFlg === '0'
? true
: session?.storeLvl === '1'
? otherSaleStoreList.length > 0
? false
: true
: false
: otherSaleStoreList.length === 1
? true
: false
}
isClearable={managementState?.tempFlg === '0' ? false : true}
value={otherSaleStoreList.filter(function (option) {