+
diff --git a/src/components/floor-plan/modal/wallLineOffset/type/Offset.jsx b/src/components/floor-plan/modal/wallLineOffset/type/Offset.jsx
index 79ae0898..8c4685ee 100644
--- a/src/components/floor-plan/modal/wallLineOffset/type/Offset.jsx
+++ b/src/components/floor-plan/modal/wallLineOffset/type/Offset.jsx
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react'
import { useEvent } from '@/hooks/useEvent'
import { CalculatorInput } from '@/components/common/input/CalcInput'
-export default function Offset({ length1Ref, arrow1Ref, currentWallLineRef }) {
+export default function Offset({ length1Ref, arrow1Ref, currentWallLineRef, disableKeypad }) {
const { getMessage } = useMessage()
const { addDocumentEventListener, initEvent } = useEvent()
// const { addDocumentEventListener, initEvent } = useContext(EventContext)
@@ -84,6 +84,7 @@ export default function Offset({ length1Ref, arrow1Ref, currentWallLineRef }) {
value={length1Ref.current?.value ?? 0}
ref={length1Ref}
onChange={() => {}}
+ disableKeypad={disableKeypad}
options={{
allowNegative: false,
allowDecimal: false
diff --git a/src/components/floor-plan/modal/wallLineOffset/type/WallLine.jsx b/src/components/floor-plan/modal/wallLineOffset/type/WallLine.jsx
index d78a202f..610780e6 100644
--- a/src/components/floor-plan/modal/wallLineOffset/type/WallLine.jsx
+++ b/src/components/floor-plan/modal/wallLineOffset/type/WallLine.jsx
@@ -3,7 +3,7 @@ import { forwardRef, useEffect, useImperativeHandle, useState } from 'react'
import { useEvent } from '@/hooks/useEvent'
import { CalculatorInput } from '@/components/common/input/CalcInput'
-export default forwardRef(function WallLine({ length1Ref, length2Ref, arrow1Ref, arrow2Ref, radioTypeRef, currentWallLineRef }, ref) {
+export default forwardRef(function WallLine({ length1Ref, length2Ref, arrow1Ref, arrow2Ref, radioTypeRef, currentWallLineRef, disableKeypad }, ref) {
const { getMessage } = useMessage()
const { addDocumentEventListener, initEvent } = useEvent()
// const { addDocumentEventListener, initEvent } = useContext(EventContext)
@@ -57,6 +57,7 @@ export default forwardRef(function WallLine({ length1Ref, length2Ref, arrow1Ref,
ref={length1Ref}
onChange={() => {}}
readOnly={type !== 1}
+ disableKeypad={disableKeypad}
options={{
allowNegative: false,
allowDecimal: false
@@ -105,6 +106,7 @@ export default forwardRef(function WallLine({ length1Ref, length2Ref, arrow1Ref,
ref={length2Ref}
onChange={() => {}}
readOnly={type !== 2}
+ disableKeypad={disableKeypad}
options={{
allowNegative: false,
allowDecimal: false
diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx
index a3a0a607..12eef9ff 100644
--- a/src/components/management/StuffDetail.jsx
+++ b/src/components/management/StuffDetail.jsx
@@ -1046,6 +1046,33 @@ export default function StuffDetail() {
form.setValue('otherSaleStoreId', info.saleStoreId)
form.setValue('otherSaleStoreName', info.saleStoreName)
form.setValue('otherSaleStoreLevel', info.saleStoreLevel)
+ get({ url: `/api/object/saleStore/${info.saleStoreId}/firstAgent` }).then((res) => {
+ if (res?.firstAgentId) {
+ const firstAgent = { saleStoreId: res.firstAgentId, saleStoreName: res.firstAgentName }
+ setSaleStoreList((prev) => {
+ const exists = prev.some((s) => s.saleStoreId === res.firstAgentId)
+ return exists ? prev : [...prev, firstAgent]
+ })
+ setShowSaleStoreList((prev) => {
+ const exists = prev.some((s) => s.saleStoreId === res.firstAgentId)
+ return exists ? prev : [...prev, firstAgent]
+ })
+ setSelOptions(res.firstAgentId)
+ form.setValue('saleStoreId', res.firstAgentId)
+ form.setValue('saleStoreName', res.firstAgentName)
+ form.setValue('saleStoreLevel', '1')
+ } else {
+ setSelOptions('')
+ form.setValue('saleStoreId', '')
+ form.setValue('saleStoreName', '')
+ form.setValue('saleStoreLevel', '')
+ }
+ }).catch(() => {
+ setSelOptions('')
+ form.setValue('saleStoreId', '')
+ form.setValue('saleStoreName', '')
+ form.setValue('saleStoreLevel', '')
+ })
}
}
diff --git a/src/components/management/StuffSearchCondition.jsx b/src/components/management/StuffSearchCondition.jsx
index 3774fbfe..85563672 100644
--- a/src/components/management/StuffSearchCondition.jsx
+++ b/src/components/management/StuffSearchCondition.jsx
@@ -1166,7 +1166,7 @@ export default function StuffSearchCondition() {
{getMessage('stuff.search.schSelSaleStoreId')} |
-
+
{session?.storeId === 'T01' && (
)}
- {session?.storeId !== 'T01' && session?.storeLvl !== '1' && (
+ {false && session?.storeId !== 'T01' && session?.storeLvl !== '1' && (
)}
-
+
|