물건상세 설계의뢰팝업 & 팝업선택데이터 셋팅 수정3

This commit is contained in:
basssy 2024-11-13 10:27:49 +09:00
parent 302ce0f10c
commit c866714cb9
2 changed files with 4 additions and 3 deletions

View File

@ -857,6 +857,7 @@ export default function StuffDetail() {
const setPlanReqInfo = (info) => { const setPlanReqInfo = (info) => {
form.setValue('planReqNo', info.planReqNo) form.setValue('planReqNo', info.planReqNo)
form.setValue('objectStatusId', info.building) form.setValue('objectStatusId', info.building)
setSelectObjectStatusId(info.building)
form.setValue('objectName', info.planReqName) form.setValue('objectName', info.planReqName)
form.setValue('zipNo', info.zipNo) form.setValue('zipNo', info.zipNo)
form.setValue('address', info.address2) form.setValue('address', info.address2)

View File

@ -98,8 +98,8 @@ export default function PlanRequestPop(props) {
schPlanReqName: schPlanReqName, schPlanReqName: schPlanReqName,
schPlanStatCd: schPlanStatCd, schPlanStatCd: schPlanStatCd,
schDateGbn: schDateGbn, schDateGbn: schDateGbn,
schStartDt: dayjs(startDate).format('YYYY-MM-DD'), schStartDt: startDate ? dayjs(startDate).format('YYYY-MM-DD') : '',
schEndDt: dayjs(endDate).format('YYYY-MM-DD'), schEndDt: endDate ? dayjs(endDate).format('YYYY-MM-DD') : '',
startRow: type === 'S' ? (1 - 1) * pageSize + 1 : (page - 1) * pageSize + 1, startRow: type === 'S' ? (1 - 1) * pageSize + 1 : (page - 1) * pageSize + 1,
endRow: type === 'S' ? 1 * pageSize : page * pageSize, endRow: type === 'S' ? 1 * pageSize : page * pageSize,
} }
@ -226,7 +226,7 @@ export default function PlanRequestPop(props) {
], ],
}) })
// //
const getSelectedRowdata = (data) => { const getSelectedRowdata = (data) => {
if (isNotEmptyArray(data)) { if (isNotEmptyArray(data)) {
setPlanReqObject(data[0]) setPlanReqObject(data[0])