Compare commits
No commits in common. "c4bbd860afee239f0c06ea5a86812f825ebcbd75" and "86626ff39c1c44ea81b7a8450f5c3993dbb5507a" have entirely different histories.
c4bbd860af
...
86626ff39c
@ -1031,33 +1031,6 @@ export default function StuffDetail() {
|
|||||||
form.setValue('otherSaleStoreId', info.saleStoreId)
|
form.setValue('otherSaleStoreId', info.saleStoreId)
|
||||||
form.setValue('otherSaleStoreName', info.saleStoreName)
|
form.setValue('otherSaleStoreName', info.saleStoreName)
|
||||||
form.setValue('otherSaleStoreLevel', info.saleStoreLevel)
|
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', '')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import { isObjectNotEmpty, queryStringFormatter } from '@/util/common-utils'
|
|||||||
import QPagination from '@/components/common/pagination/QPagination'
|
import QPagination from '@/components/common/pagination/QPagination'
|
||||||
import { useSwal } from '@/hooks/useSwal'
|
import { useSwal } from '@/hooks/useSwal'
|
||||||
import { QcastContext } from '@/app/QcastProvider'
|
import { QcastContext } from '@/app/QcastProvider'
|
||||||
import { sanitizeDecimalInputEvent, sanitizeIntegerInputEvent } from '@/util/input-utils'
|
import { sanitizeDecimalInputEvent } from '@/util/input-utils'
|
||||||
|
|
||||||
export default function PlanRequestPop(props) {
|
export default function PlanRequestPop(props) {
|
||||||
const [pageNo, setPageNo] = useState(1) //현재 페이지 번호
|
const [pageNo, setPageNo] = useState(1) //현재 페이지 번호
|
||||||
@ -212,7 +212,6 @@ export default function PlanRequestPop(props) {
|
|||||||
//설계의뢰 그리드에서 선택한 설계의뢰 정보
|
//설계의뢰 그리드에서 선택한 설계의뢰 정보
|
||||||
const getSelectedRowdata = (data) => {
|
const getSelectedRowdata = (data) => {
|
||||||
if (isNotEmptyArray(data)) {
|
if (isNotEmptyArray(data)) {
|
||||||
console.log('planReqObject fields:', data[0])
|
|
||||||
setPlanReqObject(data[0])
|
setPlanReqObject(data[0])
|
||||||
} else {
|
} else {
|
||||||
setPlanReqObject({})
|
setPlanReqObject({})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user