[1423] 2차 user 판매점 select 항상 enable + 設計依頼 매핑 실패 시 본인 초기화 #858

Merged
ysCha merged 1 commits from dev into dev-deploy 2026-05-15 11:10:13 +09:00
Showing only changes of commit bfd9d446a3 - Show all commits

View File

@ -1051,6 +1051,18 @@ 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)
@ -2051,13 +2063,12 @@ 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
: otherSaleStoreList.length === 1
? true
: false
: false
}
isClearable={true}
value={otherSaleStoreList.filter(function (option) {
@ -2650,15 +2661,14 @@ 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
: otherSaleStoreList.length === 1
? true
: false
: false
}
isClearable={managementState?.tempFlg === '0' ? false : true}
value={otherSaleStoreList.filter(function (option) {