Merge pull request '[1423] 2차 user 판매점 select 항상 enable + 設計依頼 매핑 실패 시 본인 초기화' (#858) from dev into dev-deploy
Reviewed-on: #858
This commit is contained in:
commit
cbcf70d034
@ -1036,6 +1036,18 @@ export default function StuffDetail() {
|
|||||||
form.setValue('saleStoreName', info.saleStoreName)
|
form.setValue('saleStoreName', info.saleStoreName)
|
||||||
form.setValue('saleStoreLevel', info.saleStoreLevel)
|
form.setValue('saleStoreLevel', info.saleStoreLevel)
|
||||||
} else {
|
} 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)
|
setOtherSelOptions(info.saleStoreId)
|
||||||
form.setValue('otherSaleStoreId', info.saleStoreId)
|
form.setValue('otherSaleStoreId', info.saleStoreId)
|
||||||
form.setValue('otherSaleStoreName', info.saleStoreName)
|
form.setValue('otherSaleStoreName', info.saleStoreName)
|
||||||
@ -2034,13 +2046,12 @@ export default function StuffDetail() {
|
|||||||
getOptionLabel={(x) => x.saleStoreName}
|
getOptionLabel={(x) => x.saleStoreName}
|
||||||
getOptionValue={(x) => x.saleStoreId}
|
getOptionValue={(x) => x.saleStoreId}
|
||||||
isDisabled={
|
isDisabled={
|
||||||
|
// [PLANREQ-MATCH 2026-05-15] 2차 user 는 하위 store 선택이 가능해야 하므로 항상 enable
|
||||||
session?.storeLvl === '1'
|
session?.storeLvl === '1'
|
||||||
? otherSaleStoreList.length > 0
|
? otherSaleStoreList.length > 0
|
||||||
? false
|
? false
|
||||||
: true
|
: true
|
||||||
: otherSaleStoreList.length === 1
|
: false
|
||||||
? true
|
|
||||||
: false
|
|
||||||
}
|
}
|
||||||
isClearable={true}
|
isClearable={true}
|
||||||
value={otherSaleStoreList.filter(function (option) {
|
value={otherSaleStoreList.filter(function (option) {
|
||||||
@ -2633,15 +2644,14 @@ export default function StuffDetail() {
|
|||||||
getOptionLabel={(x) => x.saleStoreName}
|
getOptionLabel={(x) => x.saleStoreName}
|
||||||
getOptionValue={(x) => x.saleStoreId}
|
getOptionValue={(x) => x.saleStoreId}
|
||||||
isDisabled={
|
isDisabled={
|
||||||
|
// [PLANREQ-MATCH 2026-05-15] 2차 user 는 하위 store 선택이 가능해야 하므로 항상 enable (tempFlg='0' 잠금만 유지)
|
||||||
managementState?.tempFlg === '0'
|
managementState?.tempFlg === '0'
|
||||||
? true
|
? true
|
||||||
: session?.storeLvl === '1'
|
: session?.storeLvl === '1'
|
||||||
? otherSaleStoreList.length > 0
|
? otherSaleStoreList.length > 0
|
||||||
? false
|
? false
|
||||||
: true
|
: true
|
||||||
: otherSaleStoreList.length === 1
|
: false
|
||||||
? true
|
|
||||||
: false
|
|
||||||
}
|
}
|
||||||
isClearable={managementState?.tempFlg === '0' ? false : true}
|
isClearable={managementState?.tempFlg === '0' ? false : true}
|
||||||
value={otherSaleStoreList.filter(function (option) {
|
value={otherSaleStoreList.filter(function (option) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user