화면 수정
This commit is contained in:
@@ -32,6 +32,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<?= $this->extend('layouts/main') ?>
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<link rel="stylesheet" href="/common/css/custom.css">
|
||||
<style>
|
||||
table th {
|
||||
vertical-align: middle;
|
||||
@@ -62,15 +63,6 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
@@ -114,23 +106,15 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<div class="col-lg-12">
|
||||
<div class="main-card mb-2 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center gap-3 w-100 card-header-tab">
|
||||
<div>
|
||||
<h4 class="mb-0 fw-bold text-dark">확인매물 상세 내용</h4>
|
||||
</div>
|
||||
<div class="d-flex flex-wrap align-items-center gap-3 ms-auto">
|
||||
<div style="white-space: nowrap;">
|
||||
<span class="text-muted me-2">매물ID:</span>
|
||||
<span class="fw-bold text-primary fs-6"><?= $data['atcl_no'] ?></span>
|
||||
</div>
|
||||
<div style="white-space: nowrap;">
|
||||
<span class="text-muted me-2">CP ID:</span>
|
||||
<span class="fw-bold text-primary fs-6"><?= $data['cpid'] ?></span>
|
||||
</div>
|
||||
<div style="white-space: nowrap;">
|
||||
<span class="text-muted me-2">현재 상태:</span>
|
||||
<span class="fw-bold text-danger fs-6"><?= $data['pre_stat'] ?></span>
|
||||
</div>
|
||||
<div class="d-flex flex-wrap align-items-center w-100 justify-content-between card-header-tab">
|
||||
<h4 class="mb-0 fw-bold text-dark">확인매물 상세 내용</h4>
|
||||
<div class="d-flex align-items-center flex-nowrap gap-4 ms-auto" style="white-space:nowrap;">
|
||||
<span class="text-muted me-2">매물ID:</span>
|
||||
<span class="fw-bold text-primary fs-6 me-4"> <?= $data['atcl_no'] ?> </span>
|
||||
<span class="text-muted me-2">CP ID:</span>
|
||||
<span class="fw-bold text-primary fs-6 me-4"> <?= $data['cpid'] ?> </span>
|
||||
<span class="text-muted me-2">현재 상태:</span>
|
||||
<span class="fw-bold text-danger fs-6"> <?= $data['pre_stat'] ?> </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -160,10 +144,10 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-sm tbl_basic2 align-middle mb-0 apt-info-table">
|
||||
<colgroup>
|
||||
<col style="width:120px">
|
||||
<col style="width:320px">
|
||||
<col style="width:120px">
|
||||
<col style="width:320px">
|
||||
<col width="15%" />
|
||||
<col width="35%" />
|
||||
<col width="15%" />
|
||||
<col width="35%" />
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
@@ -296,7 +280,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<th>가격</th>
|
||||
<td>
|
||||
<!-- 기본 가격 -->
|
||||
<div class="align-items-center gap-2 mb-2" id="div_trade_type_price"
|
||||
<div class="align-items-center gap-2 mb-0" id="div_trade_type_price"
|
||||
style="display: none;">
|
||||
<div class="input-group input-group-sm" style="max-width: 220px;">
|
||||
<input type="text" class="form-control text-end" name="atcl_amt1"
|
||||
@@ -315,7 +299,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center gap-1 mb-2"
|
||||
<div class="d-flex align-items-center gap-1 mb-0"
|
||||
id="div_trade_type_price_monthly" style="display: none;">
|
||||
<div class="input-group input-group-sm" style="max-width: 220px;">
|
||||
<input type="text" class="form-control text-end" name="atcl_amt2"
|
||||
@@ -641,24 +625,30 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<?php if (!empty($data['confirm_doc_img_url'])): ?>
|
||||
|
||||
<?php if ($data['confirm_doc_img_url_save_yn'] == 'Y'):
|
||||
$img_path = $record['file_path'] . $record['file_name'];
|
||||
$ext = $record['file_ext'];
|
||||
|
||||
if (!empty($record)) {
|
||||
$img_path = $record['file_path'] . $record['file_name'];
|
||||
$ext = $record['file_ext'];
|
||||
} else {
|
||||
$img_path = '';
|
||||
$ext = '';
|
||||
}
|
||||
if (strtolower($ext) == '.pdf'):
|
||||
?>
|
||||
<iframe src="<?= $server_addr ?><?= $img_path ?>" frameborder="0" loading="lazy"
|
||||
style="padding: 10px 0;width:100%; height:800px;"></iframe><br>
|
||||
<?php elseif (!in_array($ext, ['.zip', '.ZIP', '.pdf', '.PDF'])): ?>
|
||||
<?php foreach ($arrRecord as $row):
|
||||
$arr_img_path = $row['file_path'] . $row['file_name'];
|
||||
<?php if (!empty($arrRecord) && is_array($arrRecord)): ?>
|
||||
<?php foreach ($arrRecord as $row):
|
||||
$arr_img_path = $row['file_path'] . $row['file_name'];
|
||||
?>
|
||||
<a href="<?= $arr_img_path ?>">
|
||||
<?php if (strcmp($img_path, $arr_img_path) == 0): ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<a href="<?= $arr_img_path ?>">
|
||||
<?php if (strcmp($img_path, $arr_img_path) == 0): ?>
|
||||
<img id="photo-display" src="<?= $img_path ?>" alt="Image"
|
||||
style="width:100%;max-width:945px;min-width:100%;border:0;" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else:
|
||||
@@ -698,7 +688,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
<!-- 우측 : 정보 -->
|
||||
<td valign="top" class="pt-2">
|
||||
<table class="table table-sm w-100 tbl_basic2 table-bordered">
|
||||
<table class="table table-sm tbl_basic2 table-bordered">
|
||||
<colgroup>
|
||||
<col width="30%">
|
||||
<col>
|
||||
@@ -730,7 +720,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<tr>
|
||||
<th>홍보확인서<br>미확인여부상세</th>
|
||||
<td>
|
||||
<table class="table w-100 tbl_basic2 table-bordered">
|
||||
<table class="table tbl_basic2 table-bordered">
|
||||
<tr>
|
||||
<?php
|
||||
$checks = explode('|', $data['comment']);
|
||||
@@ -860,7 +850,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer d-flex justify-content-end gap-1">
|
||||
<div class="card-footer d-flex justify-content-end">
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="saveDocu();">
|
||||
저장
|
||||
</button>
|
||||
|
||||
@@ -1,369 +1,249 @@
|
||||
<?= $this->extend('layouts/main') ?>
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<style>
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#resultList tbody tr {
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.blockUI {
|
||||
z-index: 1500 !important;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.swal2-cancel {
|
||||
background-color: #ff0000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* 검색 폼 row 구분 */
|
||||
#frm_srch_info .row.g-3 {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
#frm_srch_info .row.g-3:last-of-type {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#frm_srch_info .row.g-3:first-of-type {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
/* 검색창 공간 최소화 */
|
||||
#frm_srch_info .card-body {
|
||||
padding: 15px !important;
|
||||
}
|
||||
|
||||
#frm_srch_info .row.g-3 {
|
||||
padding: 8px 0;
|
||||
row-gap: 8px !important;
|
||||
}
|
||||
|
||||
#frm_srch_info .form-label {
|
||||
margin-bottom: 4px !important;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: #212529;
|
||||
}
|
||||
|
||||
#frm_srch_info .form-control,
|
||||
#frm_srch_info .form-select {
|
||||
padding: 4px 8px !important;
|
||||
font-size: 0.85rem;
|
||||
border-color: #bbb !important;
|
||||
}
|
||||
|
||||
#frm_srch_info .form-control:focus,
|
||||
#frm_srch_info .form-select:focus {
|
||||
border-color: #888 !important;
|
||||
}
|
||||
|
||||
#frm_srch_info .input-group-text {
|
||||
padding: 4px 8px !important;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
#frm_srch_info .alert {
|
||||
padding: 8px 12px !important;
|
||||
margin-bottom: 12px !important;
|
||||
}
|
||||
|
||||
#frm_srch_info .btn {
|
||||
padding: 4px 12px !important;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* 툴팁 스타일 */
|
||||
.info-tooltip {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
color: #17a2b8;
|
||||
cursor: help;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.info-tooltip:hover {
|
||||
color: #138496;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>확인매물 현황</h1>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<form id="frm_srch_info" method="get" onsubmit="return false;">
|
||||
<input type="hidden" name="m" id="m" value="M801" />
|
||||
<input type="hidden" name="todo" id="todo" value="inq" />
|
||||
<input type="hidden" name="usr_id" value="" />
|
||||
|
||||
<!-- 검색 폼 -->
|
||||
<div class="row g-3">
|
||||
|
||||
<!-- 매물번호 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">
|
||||
매물번호
|
||||
<i class="pe-7s-info info-tooltip" data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="매물번호를 입력하면 다른 조건은 무시됩니다"></i>
|
||||
</label>
|
||||
<input type="text" name="atcl_no" class="form-control form-control-sm" placeholder="매물번호" maxlength="10"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top" title="매물번호를 입력하면 다른 조건은 무시됩니다"
|
||||
onkeypress="atcl_no_enter(event)">
|
||||
</div>
|
||||
|
||||
<!-- 현재상태 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">현재상태</label>
|
||||
<select name="stat_cd" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 중개소 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">중개소</label>
|
||||
<input type="text" name="realtor_nm" class="form-control form-control-sm" placeholder="중개소">
|
||||
</div>
|
||||
|
||||
<!-- 배정여부 (2개 셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">배정여부</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="charger_gbn" id="code_charger_gbn" class="form-select form-select-sm">
|
||||
<option value="1">전화/서류담당자</option>
|
||||
<option value="2">등기부등본담당자</option>
|
||||
</select>
|
||||
<select name="assign_yn" id="assign_yn" class="form-select form-select-sm">
|
||||
<option value="A">-전체-</option>
|
||||
<option value="Y">배정</option>
|
||||
<option value="N">미배정</option>
|
||||
</select>
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center gap-3 card-header-tab">
|
||||
<div>
|
||||
<h4 class="mb-0 fw-bold text-dark">확인매물 현황</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 접수기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">접수기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="date" class="form-control" name="receipt_sdate" id="receipt_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="receipt_edate" id="receipt_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="frm_srch_info" method="get" onsubmit="return false;">
|
||||
<input type="hidden" name="m" id="m" value="M801" />
|
||||
<input type="hidden" name="todo" id="todo" value="inq" />
|
||||
<input type="hidden" name="usr_id" value="" />
|
||||
|
||||
<!-- 완료기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">완료기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" name="complete_sdate" id="complete_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="text" class="form-control" name="complete_edate" id="complete_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 검색 폼 -->
|
||||
<div class="row g-3">
|
||||
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="srcSido" id="srcSido" class="form-select form-select-sm">
|
||||
<option value="">-시/도-</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="srcGugun" id="srcGugun" class="form-select form-select-sm">
|
||||
<option value="">-시/군/구-</option>
|
||||
</select>
|
||||
<select name="srcDong" id="srcDong" class="form-select form-select-sm">
|
||||
<option value="">-읍/면/동-</option>
|
||||
</select>
|
||||
<!-- 매물번호 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">
|
||||
매물번호
|
||||
<i class="pe-7s-info info-tooltip" data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="매물번호를 입력하면 다른 조건은 무시됩니다"></i>
|
||||
</label>
|
||||
<input type="text" name="atcl_no" class="form-control form-control-sm" placeholder="매물번호" maxlength="10"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top" title="매물번호를 입력하면 다른 조건은 무시됩니다"
|
||||
onkeypress="atcl_no_enter(event)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 담당자 (본부/팀/담당 3셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">담당자</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="bonbu" id="bonbu" class="form-select form-select-sm">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="team" id="team" class="form-select form-select-sm">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
<select name="damdang" id="damdang" class="form-select form-select-sm">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 검증방식 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검증방식</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="vrfcreq_way" id="vrfcreq_way" class="form-select form-select-sm">
|
||||
<option value="">-검증방식-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "VRFCREQ_WAY"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="vrfc_type_sub" id="vrfc_type_sub" class="form-select form-select-sm">
|
||||
<!-- 현재상태 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">현재상태</label>
|
||||
<select name="stat_cd" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
</select>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 매체사 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매체사</label>
|
||||
<select name="rcpt_cpid" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CP_ID"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 중개소 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">중개소</label>
|
||||
<input type="text" name="realtor_nm" class="form-control form-control-sm" placeholder="중개소">
|
||||
</div>
|
||||
|
||||
<!-- 매물종류 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물종류</label>
|
||||
<select name="rlet_type_cd" class="form-select form-select-sm">
|
||||
<option value="">-매물종류-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "ARTICLE_TYPE"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 배정여부 (2개 셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">배정여부</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="charger_gbn" id="code_charger_gbn" class="form-select form-select-sm">
|
||||
<option value="1">전화/서류담당자</option>
|
||||
<option value="2">등기부등본담당자</option>
|
||||
</select>
|
||||
<select name="assign_yn" id="assign_yn" class="form-select form-select-sm">
|
||||
<option value="A">-전체-</option>
|
||||
<option value="Y">배정</option>
|
||||
<option value="N">미배정</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 접수기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">접수기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="date" class="form-control" name="receipt_sdate" id="receipt_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="receipt_edate" id="receipt_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 참고용 파일 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">참고용 파일</label>
|
||||
<select name="reference_file_url_yn" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 완료기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">완료기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" name="complete_sdate" id="complete_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="text" class="form-control" name="complete_edate" id="complete_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 법인소유 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">법인소유</label>
|
||||
<select name="corp_own" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="srcSido" id="srcSido" class="form-select form-select-sm">
|
||||
<option value="">-시/도-</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="srcGugun" id="srcGugun" class="form-select form-select-sm">
|
||||
<option value="">-시/군/구-</option>
|
||||
</select>
|
||||
<select name="srcDong" id="srcDong" class="form-select form-select-sm">
|
||||
<option value="">-읍/면/동-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 담당자 (본부/팀/담당 3셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">담당자</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="bonbu" id="bonbu" class="form-select form-select-sm">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="team" id="team" class="form-select form-select-sm">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
<select name="damdang" id="damdang" class="form-select form-select-sm">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 검증방식 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검증방식</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="vrfcreq_way" id="vrfcreq_way" class="form-select form-select-sm">
|
||||
<option value="">-검증방식-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "VRFCREQ_WAY"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="vrfc_type_sub" id="vrfc_type_sub" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 매체사 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매체사</label>
|
||||
<select name="rcpt_cpid" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CP_ID"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 매물종류 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물종류</label>
|
||||
<select name="rlet_type_cd" class="form-select form-select-sm">
|
||||
<option value="">-매물종류-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "ARTICLE_TYPE"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 참고용 파일 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">참고용 파일</label>
|
||||
<select name="reference_file_url_yn" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 법인소유 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">법인소유</label>
|
||||
<select name="corp_own" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-1 d-grid">
|
||||
<label class="form-label mb-1 invisible">검색</label>
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">
|
||||
<i class="pe-7s-search me-1"></i>검색
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-1 d-grid">
|
||||
<label class="form-label mb-1 invisible">검색</label>
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">
|
||||
<i class="pe-7s-search me-1"></i>검색
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>매물번호</th>
|
||||
<th>진행상태</th>
|
||||
<th>접수시간</th>
|
||||
<th>검증방식</th>
|
||||
<th>주소</th>
|
||||
<th>상세주소</th>
|
||||
<th>매체사</th>
|
||||
<th>중개소</th>
|
||||
<th>서류/전화<br />담당자</th>
|
||||
<th>서류/전화<br />확인완료시간</th>
|
||||
<th>등기부등본<br />담당자</th>
|
||||
<th>등기부등본<br />확인시간</th>
|
||||
<th>검증완료<br />일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 여기는 비워둠: AJAX로 채움 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header d-flex align-items-center">
|
||||
<div class="d-flex align-items-center flex-wrap" style="gap: 8px; flex: 1">
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-auto">
|
||||
<button class="btn btn-sm btn-outline-success" id="excel-download">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i>
|
||||
엑셀다운로드
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>매물번호</th>
|
||||
<th>진행상태</th>
|
||||
<th>접수시간</th>
|
||||
<th>검증방식</th>
|
||||
<th>주소</th>
|
||||
<th>상세주소</th>
|
||||
<th>매체사</th>
|
||||
<th>중개소</th>
|
||||
<th>서류/전화<br />담당자</th>
|
||||
<th>서류/전화<br />확인완료시간</th>
|
||||
<th>등기부등본<br />담당자</th>
|
||||
<th>등기부등본<br />확인시간</th>
|
||||
<th>검증완료<br />일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 여기는 비워둠: AJAX로 채움 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css" />
|
||||
<?= $this->section('page_styles') ?>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/2.0.7/css/dataTables.dataTables.min.css" />
|
||||
<link href="https://unpkg.com/dropzone@6.0.0-beta.1/dist/dropzone.css" rel="stylesheet" type="text/css" />
|
||||
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<?= $this->section('page_scripts') ?>
|
||||
<script src="https://cdn.datatables.net/2.0.7/js/dataTables.min.js"></script>
|
||||
<script defer src="/architectui/assets/js/datatable.kor.js"></script>
|
||||
<script type="text/javascript" src="https://oapi.map.naver.com/openapi/v3/maps.js?ncpKeyId=dtounkwjc5"></script>
|
||||
<script type="text/javascript">
|
||||
@@ -375,7 +255,30 @@
|
||||
|
||||
var table;
|
||||
|
||||
$(function () {
|
||||
// 검색 조건 저장
|
||||
function saveSearchForm() {
|
||||
const data = $("#frm_srch_info").serializeArray();
|
||||
localStorage.setItem("m701_search", JSON.stringify(data));
|
||||
}
|
||||
// 검색 조건 복원
|
||||
function restoreSearchForm() {
|
||||
const saved = localStorage.getItem("m701_search");
|
||||
if (!saved) return;
|
||||
const data = JSON.parse(saved);
|
||||
data.forEach(function(item) {
|
||||
$("[name='" + item.name + "']").val(item.value);
|
||||
});
|
||||
// 주요 select에 대해 change 이벤트 트리거
|
||||
$("#srcSido, #srcGugun, #bonbu, #team, #vrfcreq_way").trigger("change");
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
||||
// referrer에 '/m701'가 없으면 검색 조건 초기화
|
||||
if (!document.referrer.includes('/m701')) {
|
||||
localStorage.removeItem("m701_search");
|
||||
}
|
||||
restoreSearchForm();
|
||||
|
||||
// Bootstrap Tooltip 초기화 (빠른 표시)
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
@@ -557,6 +460,24 @@
|
||||
|
||||
initReceiptDate();
|
||||
table = $('#resultList').DataTable({
|
||||
layout: {
|
||||
topStart: 'pageLength', // 좌측 상단(페이지당 개수) 제거 (필요시)
|
||||
topEnd: function () {
|
||||
// 직접 작성하신 버튼 HTML 구조를 생성
|
||||
let btn = document.createElement('button');
|
||||
btn.id = 'excel-download';
|
||||
btn.className = 'btn btn-sm btn-outline-success';
|
||||
btn.innerHTML = '<i class="fa fa-fw fa-file-excel-o" aria-hidden="true"></i> 엑셀다운로드';
|
||||
|
||||
// 클릭 이벤트 연결
|
||||
btn.addEventListener('click', function() {
|
||||
console.log('엑셀 다운로드 실행');
|
||||
// 여기에 다운로드 로직 추가
|
||||
});
|
||||
|
||||
return btn;
|
||||
}
|
||||
},
|
||||
language: lang_kor,
|
||||
serverSide: true,
|
||||
processing: true,
|
||||
@@ -604,18 +525,20 @@
|
||||
{ 'targets': '_all', "defaultContent": "" },
|
||||
],
|
||||
columns: [
|
||||
{ data: 'atcl_no' },
|
||||
{ data: 'pre_stat' },
|
||||
{ data: 'insert_tm' },
|
||||
{ data: 'vrfc_type' },
|
||||
{ data: null, render: fn_region_render },
|
||||
{ data: null, render: fn_addr_render },
|
||||
{ data: 'cpid' },
|
||||
{ data: 'realtor_nm' },
|
||||
{ data: 'usr_nm', width: "80px" },
|
||||
{ data: 'atcl_no' , render: function (data, type, row) {
|
||||
return `<a href='<?php echo site_url('m701/m701a/detail') ?>/${row.vr_sq}' class='text-decoration-none'>${data}</a>`;
|
||||
}, className: 'tw-90' },
|
||||
{ data: 'pre_stat', className: 'tw-120' },
|
||||
{ data: 'insert_tm', className: 'tw-130' },
|
||||
{ data: 'vrfc_type', className: 'tw-100' },
|
||||
{ data: null, render: fn_region_render , className: 'tw-200' },
|
||||
{ data: null, render: fn_addr_render , className: 'tw-180' },
|
||||
{ data: 'cpid', className:'tw-80' },
|
||||
{ data: 'realtor_nm' , className: 'tw-150' },
|
||||
{ data: 'usr_nm', className: 'tw-80' },
|
||||
{ data: null, render: fn_tm_render },
|
||||
{ data: 'reg_charger' },
|
||||
{ data: 'rgbk_check_tm' },
|
||||
{ data: 'rgbk_check_tm' },
|
||||
{ data: 'result_tm' },
|
||||
|
||||
],
|
||||
@@ -623,20 +546,28 @@
|
||||
paging: true,
|
||||
searching: false,
|
||||
ordering: false,
|
||||
autoWidth: false,
|
||||
});
|
||||
|
||||
$('#resultList tbody').on('click', 'tr', function (e) {
|
||||
if ($(e.target).closest('td.dt-no-rowclick').length) return;
|
||||
|
||||
const rowData = table.row(this).data();
|
||||
if (!rowData) return;
|
||||
|
||||
const vr_sq = rowData.vr_sq;
|
||||
window.open("<?= site_url('m701/m701a/detail') ?>/" + vr_sq, '_blank');
|
||||
const url = "<?= site_url('m701/m701a/detail') ?>/" + vr_sq;
|
||||
|
||||
// Ctrl+Click 또는 마우스 중간(휠) 클릭(e.button === 1) 시 새탭
|
||||
if (e.ctrlKey || e.button === 1) {
|
||||
window.open(url, '_blank');
|
||||
return;
|
||||
}
|
||||
// 일반 클릭은 현재 탭
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
$('#btnSearch').on('click', function () {
|
||||
table.ajax.reload()
|
||||
saveSearchForm();
|
||||
table.ajax.reload();
|
||||
});
|
||||
|
||||
// 엑셀 다운로드 click
|
||||
|
||||
@@ -54,6 +54,10 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tbl_basic2 td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.blockUI {
|
||||
z-index: 1500 !important;
|
||||
}
|
||||
@@ -65,18 +69,16 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
/* 정보변경 이력 테이블 깜박임 방지 */
|
||||
.apt-info-table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.swal2-cancel {
|
||||
@@ -104,14 +106,6 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="app-page-title">
|
||||
<div class="page-title-wrapper">
|
||||
<div class="page-title-heading">
|
||||
<div>배정매물 상세 내용</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form name="rcptFrm" id="rcptFrm" method="post" action="" enctype="multipart/form-data" autocomplete="off"
|
||||
onsubmit="return false;">
|
||||
<input type="hidden" name="address_code" id="address_code" value="<?= $data['address_code'] ?>" />
|
||||
@@ -124,31 +118,19 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="col-lg-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header" style="width:100%; max-width:100%; min-width:600px; padding:0; border:0;">
|
||||
<p class="left">
|
||||
</p>
|
||||
<table style="width:100%; min-width:600px; padding:0; border:0;" cellpadding="0" cellspacing="0"
|
||||
border="0" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 50%;padding-left: 20px"><span class="tit">매물ID :</span> <span
|
||||
class="num"><?= $data['atcl_no'] ?></span>
|
||||
</td>
|
||||
<td style="width: 20%;"><span class="tit">CP ID :</span> <span
|
||||
class="num"><?= $data['cpid'] ?></span></td>
|
||||
<td style="width: 30%; text-align: right;padding-right: 20px"><span class="tit">현재 상태
|
||||
:</span> <span class="num"><?= $data['pre_stat'] ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="15"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p></p>
|
||||
|
||||
<div class="main-card mb-2 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center w-100 justify-content-between card-header-tab">
|
||||
<h4 class="mb-0 fw-bold text-dark">배정매물 상세 내용</h4>
|
||||
<div class="d-flex align-items-center flex-nowrap gap-4 ms-auto" style="white-space:nowrap;">
|
||||
<span class="text-muted me-2">매물ID:</span>
|
||||
<span class="fw-bold text-primary fs-6 me-4"> <?= $data['atcl_no'] ?> </span>
|
||||
<span class="text-muted me-2">CP ID:</span>
|
||||
<span class="fw-bold text-primary fs-6 me-4"> <?= $data['cpid'] ?> </span>
|
||||
<span class="text-muted me-2">현재 상태:</span>
|
||||
<span class="fw-bold text-danger fs-6"> <?= $data['pre_stat'] ?> </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">공인 중개사 정보</h5>
|
||||
@@ -170,16 +152,16 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="main-card mb-2 card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">매물 정보</h5>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-sm tbl_basic2 align-middle mb-0 apt-info-table">
|
||||
<colgroup>
|
||||
<col style="width:120px">
|
||||
<col style="width:320px">
|
||||
<col style="width:120px">
|
||||
<col style="width:320px">
|
||||
<col width="15%" />
|
||||
<col width="35%" />
|
||||
<col width="15%" />
|
||||
<col width="35%" />
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
@@ -523,7 +505,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
|
||||
|
||||
<div class="main-card mb-3 card" id="docu_chk" style="display: none;">
|
||||
<div class="main-card mb-2 card" id="docu_chk" style="display: none;">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">서류확인 정보</h5>
|
||||
|
||||
@@ -766,7 +748,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-card mb-3 card" id="call_chk" style="display: none;">
|
||||
<div class="main-card mb-2 card" id="call_chk" style="display: none;">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">전화확인 정보</h5>
|
||||
|
||||
@@ -940,7 +922,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
<tr>
|
||||
<th>메모</th>
|
||||
<td>
|
||||
<div class="d-flex flex-column gap-1" style="">
|
||||
<div class="d-flex flex-column gap-1">
|
||||
<textarea class="form-control" name="memo_tel" id="memo_tel" rows="2"
|
||||
style="resize: none;"><?= $memo['memo'] ?></textarea>
|
||||
|
||||
@@ -976,7 +958,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-card mb-3 card" id="regibox">
|
||||
<div class="main-card mb-2 card" id="regibox">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">등기부등본확인 정보</h5>
|
||||
|
||||
@@ -1188,7 +1170,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="main-card mb-2 card">
|
||||
<div class="card-body ">
|
||||
<h5 class="card-title">정보변경 이력</h5>
|
||||
<div class="table-scroll">
|
||||
@@ -1216,7 +1198,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="main-card mb-2 card">
|
||||
<button type="button" class="btn btn-light btn-sm">
|
||||
목록
|
||||
</button>
|
||||
|
||||
@@ -1,322 +1,241 @@
|
||||
<?= $this->extend('layouts/main') ?>
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<style>
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#resultList tbody tr {
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.blockUI {
|
||||
z-index: 1500 !important;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.swal2-cancel {
|
||||
background-color: #ff0000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>확인매물 현황</h1>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<form id="frm_srch_info" method="get" onsubmit="return false;">
|
||||
<input type="hidden" name="m" id="m" value="M801" />
|
||||
<input type="hidden" name="todo" id="todo" value="inq" />
|
||||
<input type="hidden" name="usr_id" value="" />
|
||||
|
||||
<!-- 안내 -->
|
||||
<div class="alert alert-warning py-2 mb-3">
|
||||
<small class="mb-0">
|
||||
매물번호를 입력하면 <b>다른 조건은 무시</b>됩니다.
|
||||
</small>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center gap-3 card-header-tab">
|
||||
<div>
|
||||
<h4 class="mb-0 fw-bold text-dark">배정매물 현황</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="frm_srch_info" method="get" onsubmit="return false;">
|
||||
<input type="hidden" name="m" id="m" value="M801" />
|
||||
<input type="hidden" name="todo" id="todo" value="inq" />
|
||||
<input type="hidden" name="usr_id" value="" />
|
||||
<!-- 검색 폼 -->
|
||||
<div class="row g-3">
|
||||
|
||||
<!-- 검색 폼 -->
|
||||
<div class="row g-3">
|
||||
|
||||
<!-- 매물번호 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물번호</label>
|
||||
<input type="text" name="atcl_no" class="form-control form-control-sm" placeholder="매물번호" maxlength="10"
|
||||
onkeypress="atcl_no_enter(event)">
|
||||
</div>
|
||||
|
||||
<!-- 현재상태 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">현재상태</label>
|
||||
<select name="stat_cd" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 중개소 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">중개소</label>
|
||||
<input type="text" name="realtor_nm" class="form-control form-control-sm" placeholder="중개소">
|
||||
</div>
|
||||
|
||||
<!-- 배정여부 (2개 셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">배정여부</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="charger_gbn" id="code_charger_gbn" class="form-select form-select-sm">
|
||||
<option value="1">전화/서류담당자</option>
|
||||
<option value="2">등기부등본담당자</option>
|
||||
</select>
|
||||
<select name="assign_yn" id="assign_yn" class="form-select form-select-sm">
|
||||
<option value="A">-전체-</option>
|
||||
<option value="Y">배정</option>
|
||||
<option value="N">미배정</option>
|
||||
</select>
|
||||
<!-- 매물번호 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">
|
||||
매물번호
|
||||
<i class="pe-7s-info info-tooltip" data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="매물번호를 입력하면 다른 조건은 무시됩니다"></i>
|
||||
</label>
|
||||
<input type="text" name="atcl_no" class="form-control form-control-sm" placeholder="매물번호" maxlength="10"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top" title="매물번호를 입력하면 다른 조건은 무시됩니다"
|
||||
onkeypress="atcl_no_enter(event)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 접수기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">접수기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="date" class="form-control" name="receipt_sdate" id="receipt_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="receipt_edate" id="receipt_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 완료기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">완료기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" name="complete_sdate" id="complete_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="text" class="form-control" name="complete_edate" id="complete_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="srcSido" id="srcSido" class="form-select form-select-sm">
|
||||
<option value="">-시/도-</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="srcGugun" id="srcGugun" class="form-select form-select-sm">
|
||||
<option value="">-시/군/구-</option>
|
||||
</select>
|
||||
<select name="srcDong" id="srcDong" class="form-select form-select-sm">
|
||||
<option value="">-읍/면/동-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 담당자 (본부/팀/담당 3셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">담당자</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="bonbu" id="bonbu" class="form-select form-select-sm">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="team" id="team" class="form-select form-select-sm">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
<select name="damdang" id="damdang" class="form-select form-select-sm">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 검증방식 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검증방식</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="vrfcreq_way" id="vrfcreq_way" class="form-select form-select-sm">
|
||||
<option value="">-검증방식-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "VRFCREQ_WAY"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="vrfc_type_sub" id="vrfc_type_sub" class="form-select form-select-sm">
|
||||
<!-- 현재상태 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">현재상태</label>
|
||||
<select name="stat_cd" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
</select>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "STEP_VERIFICATION"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 매체사 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매체사</label>
|
||||
<select name="rcpt_cpid" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CP_ID"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 중개소 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">중개소</label>
|
||||
<input type="text" name="realtor_nm" class="form-control form-control-sm" placeholder="중개소">
|
||||
</div>
|
||||
|
||||
<!-- 매물종류 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물종류</label>
|
||||
<select name="rlet_type_cd" class="form-select form-select-sm">
|
||||
<option value="">-매물종류-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "ARTICLE_TYPE"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 배정여부 (2개 셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">배정여부</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="charger_gbn" id="code_charger_gbn" class="form-select form-select-sm">
|
||||
<option value="1">전화/서류담당자</option>
|
||||
<option value="2">등기부등본담당자</option>
|
||||
</select>
|
||||
<select name="assign_yn" id="assign_yn" class="form-select form-select-sm">
|
||||
<option value="A">-전체-</option>
|
||||
<option value="Y">배정</option>
|
||||
<option value="N">미배정</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 접수기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">접수기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="date" class="form-control" name="receipt_sdate" id="receipt_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="receipt_edate" id="receipt_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 법인소유 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">법인소유</label>
|
||||
<select name="corp_own" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 완료기간 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">완료기간</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<input type="text" class="form-control" name="complete_sdate" id="complete_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="text" class="form-control" name="complete_edate" id="complete_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="srcSido" id="srcSido" class="form-select form-select-sm">
|
||||
<option value="">-시/도-</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="srcGugun" id="srcGugun" class="form-select form-select-sm">
|
||||
<option value="">-시/군/구-</option>
|
||||
</select>
|
||||
<select name="srcDong" id="srcDong" class="form-select form-select-sm">
|
||||
<option value="">-읍/면/동-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3">
|
||||
<!-- 담당자 (본부/팀/담당 3셀렉트) -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">담당자</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="bonbu" id="bonbu" class="form-select form-select-sm">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="team" id="team" class="form-select form-select-sm">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
<select name="damdang" id="damdang" class="form-select form-select-sm">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 검증방식 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검증방식</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select name="vrfcreq_way" id="vrfcreq_way" class="form-select form-select-sm">
|
||||
<option value="">-검증방식-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "VRFCREQ_WAY"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<select name="vrfc_type_sub" id="vrfc_type_sub" class="form-select form-select-sm">
|
||||
<option value="">-선택-</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 매체사 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매체사</label>
|
||||
<select name="rcpt_cpid" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "CP_ID"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 매물종류 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물종류</label>
|
||||
<select name="rlet_type_cd" class="form-select form-select-sm">
|
||||
<option value="">-매물종류-</option>
|
||||
<?php foreach ($codes as $c): ?>
|
||||
<?php if ($c['category'] === "ARTICLE_TYPE"): ?>
|
||||
<option value="<?= $c['cd'] ?>"><?= $c['cd_nm'] ?></option>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 법인소유 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">법인소유</label>
|
||||
<select name="corp_own" class="form-select form-select-sm">
|
||||
<option value="">-전체-</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-1 d-grid">
|
||||
<label class="form-label mb-1 invisible">검색</label>
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">
|
||||
<i class="pe-7s-search me-1"></i>검색
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-1 d-grid">
|
||||
<label class="form-label mb-1 invisible">검색</label>
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">
|
||||
<i class="pe-7s-search me-1"></i>검색
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header d-flex align-items-center">
|
||||
<div class="d-flex align-items-center flex-wrap" style="gap:8px; flex:1;">
|
||||
|
||||
<select class="form-control form-control-sm" id="damdangT" style="width:150px;">
|
||||
<option value="1">전화/서류 담당자</option>
|
||||
<option value="2">등기부등본 담당자</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control form-control-sm" id="bonbu2" style="width:140px;">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
<select class="form-control form-control-sm" id="team2" style="width:160px;">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control form-control-sm" id="damdang2" style="width:160px;">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-outline-light" id="btn_part_change">
|
||||
배정변경
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-outline-light" id="btn_part_omit">
|
||||
서류누락
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="ml-auto">
|
||||
<button class="btn btn-sm btn-outline-light" id="excel-download">
|
||||
등기부등본 전송
|
||||
</button>
|
||||
|
||||
<button class="btn btn-sm btn-outline-success" id="excel-download">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i>
|
||||
엑셀다운로드
|
||||
</button>
|
||||
</div>
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<input type="checkbox" class="form-check-input" name="chkAll" id="chkAll" />
|
||||
</th>
|
||||
<th>매물번호</th>
|
||||
<th>진행상태</th>
|
||||
<th>접수시간</th>
|
||||
<th>검증방식</th>
|
||||
<th>주소</th>
|
||||
<th>상세주소</th>
|
||||
<th>매체사</th>
|
||||
<th>중개소</th>
|
||||
<th>서류/전화<br />담당자</th>
|
||||
<th>서류/전화<br />확인완료시간</th>
|
||||
<th>등기부등본<br />담당자</th>
|
||||
<th>검증완료<br />일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 여기는 비워둠: AJAX로 채움 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<input type="checkbox" class="form-check-input" name="chkAll" id="chkAll" />
|
||||
</th>
|
||||
<th>매물번호</th>
|
||||
<th>진행상태</th>
|
||||
<th>접수시간</th>
|
||||
<th>검증방식</th>
|
||||
<th>주소</th>
|
||||
<th>상세주소</th>
|
||||
<th>매체사</th>
|
||||
<th>중개소</th>
|
||||
<th>서류/전화<br />담당자</th>
|
||||
<th>서류/전화<br />확인완료시간</th>
|
||||
<th>등기부등본<br />담당자</th>
|
||||
<th>검증완료<br />일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 여기는 비워둠: AJAX로 채움 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css" />
|
||||
<?= $this->section('page_styles') ?>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/2.0.7/css/dataTables.dataTables.min.css" />
|
||||
<link href="https://unpkg.com/dropzone@6.0.0-beta.1/dist/dropzone.css" rel="stylesheet" type="text/css" />
|
||||
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<?= $this->section('page_scripts') ?>
|
||||
<script src="https://cdn.datatables.net/2.0.7/js/dataTables.min.js"></script>
|
||||
<script defer src="/architectui/assets/js/datatable.kor.js"></script>
|
||||
<script type="text/javascript" src="https://oapi.map.naver.com/openapi/v3/maps.js?ncpKeyId=dtounkwjc5"></script>
|
||||
<script type="text/javascript">
|
||||
@@ -328,7 +247,30 @@
|
||||
|
||||
var table;
|
||||
|
||||
// 검색 조건 저장
|
||||
function saveSearchForm() {
|
||||
const data = $("#frm_srch_info").serializeArray();
|
||||
localStorage.setItem("m702_search", JSON.stringify(data));
|
||||
}
|
||||
|
||||
// 검색 조건 복원
|
||||
function restoreSearchForm() {
|
||||
const saved = localStorage.getItem("m702_search");
|
||||
if (!saved) return;
|
||||
const data = JSON.parse(saved);
|
||||
data.forEach(function(item) {
|
||||
$("[name='" + item.name + "']").val(item.value);
|
||||
});
|
||||
// 주요 select에 대해 change 이벤트 트리거
|
||||
$("#srcSido, #srcGugun, #bonbu, #team, #vrfcreq_way").trigger("change");
|
||||
}
|
||||
|
||||
$(function () {
|
||||
// referrer에 '/m702'가 없으면 검색 조건 초기화
|
||||
if (!document.referrer.includes('/m702')) {
|
||||
localStorage.removeItem("m702_search");
|
||||
}
|
||||
restoreSearchForm();
|
||||
|
||||
$("#bonbu").on("change", function (e) {
|
||||
|
||||
@@ -419,7 +361,7 @@
|
||||
});
|
||||
|
||||
|
||||
$("#bonbu, #team, #bonbu2, #team2").on("change", function (e) {
|
||||
$(document).on("change", "#bonbu, #team, #bonbu2, #team2", function (e) {
|
||||
const targetId = this.id;
|
||||
|
||||
|
||||
@@ -505,6 +447,88 @@
|
||||
|
||||
initReceiptDate();
|
||||
table = $('#resultList').DataTable({
|
||||
layout: {
|
||||
topStart: function() {
|
||||
const container = document.createElement('div');
|
||||
container.className = 'd-flex align-items-center flex-wrap';
|
||||
container.style.cssText = 'gap:8px; flex:1;';
|
||||
|
||||
// 담당자 유형
|
||||
const damdangT = document.createElement('select');
|
||||
damdangT.id = 'damdangT';
|
||||
damdangT.className = 'form-control form-control-sm';
|
||||
damdangT.style.width = '150px';
|
||||
damdangT.innerHTML = `
|
||||
<option value="1">전화/서류 담당자</option>
|
||||
<option value="2">등기부등본 담당자</option>
|
||||
`;
|
||||
|
||||
// 본부
|
||||
const bonbu2 = document.createElement('select');
|
||||
bonbu2.id = 'bonbu2';
|
||||
bonbu2.className = 'form-control form-control-sm';
|
||||
bonbu2.style.width = '140px';
|
||||
bonbu2.innerHTML = '<option value="">-본부-</option>';
|
||||
// bonbuArr 배열을 사용하여 옵션 추가
|
||||
bonbuArr.forEach(function(d) {
|
||||
const opt = document.createElement('option');
|
||||
opt.value = d.dept_sq;
|
||||
opt.textContent = d.dept_nm;
|
||||
bonbu2.appendChild(opt);
|
||||
});
|
||||
|
||||
// 팀
|
||||
const team2 = document.createElement('select');
|
||||
team2.id = 'team2';
|
||||
team2.className = 'form-control form-control-sm';
|
||||
team2.style.width = '160px';
|
||||
team2.innerHTML = '<option value="">-팀-</option>';
|
||||
|
||||
// 담당자
|
||||
const damdang2 = document.createElement('select');
|
||||
damdang2.id = 'damdang2';
|
||||
damdang2.className = 'form-control form-control-sm';
|
||||
damdang2.style.width = '160px';
|
||||
damdang2.innerHTML = '<option value="">-담당자-</option>';
|
||||
|
||||
// 배정변경 버튼
|
||||
const btnChange = document.createElement('button');
|
||||
btnChange.type = 'button';
|
||||
btnChange.id = 'btn_part_change';
|
||||
btnChange.className = 'btn btn-sm btn-outline-light';
|
||||
btnChange.textContent = '배정변경';
|
||||
|
||||
// 서류누락 버튼
|
||||
const btnOmit = document.createElement('button');
|
||||
btnOmit.type = 'button';
|
||||
btnOmit.id = 'btn_part_omit';
|
||||
btnOmit.className = 'btn btn-sm btn-outline-light';
|
||||
btnOmit.textContent = '서류누락';
|
||||
|
||||
container.append(damdangT, bonbu2, team2, damdang2, btnChange, btnOmit);
|
||||
return container;
|
||||
},
|
||||
topEnd: function () {
|
||||
const container = document.createElement('div');
|
||||
container.className = 'd-flex';
|
||||
container.style.gap = '8px';
|
||||
container.style.justifyContent = 'flex-end';
|
||||
|
||||
// 등기부등본 전송 버튼
|
||||
const btnSend = document.createElement('button');
|
||||
btnSend.className = 'btn btn-sm btn-outline-light';
|
||||
btnSend.textContent = '등기부등본 전송';
|
||||
|
||||
// 엑셀 다운로드 버튼
|
||||
const btnExcel = document.createElement('button');
|
||||
btnExcel.id = 'excel-download';
|
||||
btnExcel.className = 'btn btn-sm btn-outline-success';
|
||||
btnExcel.innerHTML = '<i class="fa fa-fw fa-file-excel-o" aria-hidden="true"></i> 엑셀다운로드';
|
||||
|
||||
container.append(btnSend, btnExcel);
|
||||
return container;
|
||||
}
|
||||
},
|
||||
language: lang_kor,
|
||||
serverSide: true,
|
||||
processing: true,
|
||||
@@ -550,13 +574,15 @@
|
||||
{ 'targets': '_all', "defaultContent": "" },
|
||||
],
|
||||
columns: [
|
||||
{ data: null, render: fn_chk_render, width: "50px", className: "dt-no-rowclick" },
|
||||
{ data: 'atcl_no' },
|
||||
{ data: null, render: fn_chk_render, className: "dt-no-rowclick tw-50" },
|
||||
{ data: 'atcl_no' , function(data, type, row) {
|
||||
return `<a href='<?php echo site_url('m702/m702a/detail') ?>/${row.vr_sq}' class='text-decoration-none'>${data}</a>`;
|
||||
}, className:'tw-90' },
|
||||
{ data: 'pre_stat' },
|
||||
{ data: 'insert_tm' },
|
||||
{ data: 'vrfc_type' },
|
||||
{ data: null, render: fn_region_render },
|
||||
{ data: null, render: fn_addr_render },
|
||||
{ data: null, render: fn_region_render , className: 'tw-200' },
|
||||
{ data: null, render: fn_addr_render , className: 'tw-180' },
|
||||
{ data: 'cpid' },
|
||||
{ data: 'realtor_nm' },
|
||||
{ data: 'usr_nm', width: "80px" },
|
||||
@@ -582,6 +608,7 @@
|
||||
});
|
||||
|
||||
$('#btnSearch').on('click', function () {
|
||||
saveSearchForm();
|
||||
table.ajax.reload()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user