수정 본
This commit is contained in:
@@ -7,434 +7,370 @@ $usr_nm = session('usr_nm');
|
||||
<?= $this->extend('layouts/main') ?>
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
|
||||
<style>
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
}
|
||||
/* 테이블 헤더 좌우 여백 조정 */
|
||||
#resultList thead th {
|
||||
padding-left: 4px !important;
|
||||
padding-right: 4px !important;
|
||||
}
|
||||
|
||||
#resultList tbody tr {
|
||||
cursor: pointer;
|
||||
}
|
||||
td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.blockUI {
|
||||
z-index: 1500 !important;
|
||||
}
|
||||
#resultList tbody tr {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
}
|
||||
.blockUI {
|
||||
z-index: 1500 !important;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
.ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
.card-header {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.card-header-tab {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.swal2-cancel {
|
||||
background-color: #ff0000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.table-scroll {
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#resultList.dataTable {
|
||||
width: max-content !important;
|
||||
}
|
||||
.swal2-cancel {
|
||||
background-color: #ff0000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
table.dataTable td,
|
||||
table.dataTable th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
#resultList.dataTable {
|
||||
width: max-content !important;
|
||||
}
|
||||
|
||||
/* 테이블이 내용만큼 커지고, wrapper가 스크롤 담당 */
|
||||
.table-responsive {
|
||||
overflow-x: auto !important;
|
||||
}
|
||||
table.dataTable td,
|
||||
table.dataTable th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 테이블 폭: 내용 기준으로 커지되, 최소는 100% */
|
||||
.table-responsive #resultList {
|
||||
width: max-content !important;
|
||||
min-width: 100% !important;
|
||||
table-layout: auto !important;
|
||||
}
|
||||
/* 테이블이 내용만큼 커지고, wrapper가 스크롤 담당 */
|
||||
.table-responsive {
|
||||
overflow-x: auto !important;
|
||||
}
|
||||
|
||||
/* 줄바꿈 금지 */
|
||||
#resultList th,
|
||||
#resultList td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
/* 테이블 폭: 내용에 따라 자동 조정, 스크롤 필요시 표시 */
|
||||
.table-responsive #resultList {
|
||||
width: 100% !important;
|
||||
table-layout: auto !important;
|
||||
}
|
||||
|
||||
/* PC에서 가로 스크롤이 잘리는 대표 구간들 강제 해제 */
|
||||
.main-card,
|
||||
.card,
|
||||
.card-body {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
/* 줄바꿈 허용 - 공백 기준으로 줄바꿈 */
|
||||
#resultList th,
|
||||
#resultList td {
|
||||
white-space: normal !important;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* 만약 레이아웃 wrapper가 숨기고 있으면 이것도 */
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.app-main {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
/* tw-* 클래스가 DataTable의 inline 스타일보다 우선순위 높이기 */
|
||||
#resultList th.tw-30,
|
||||
#resultList td.tw-30 { width: 30px !important; max-width: 30px !important; min-width: 30px !important; }
|
||||
#resultList th.tw-50,
|
||||
#resultList td.tw-50 { width: 50px !important; max-width: 50px !important; min-width: 50px !important; }
|
||||
#resultList th.tw-70,
|
||||
#resultList td.tw-70 { width: 70px !important; max-width: 70px !important; min-width: 70px !important; }
|
||||
#resultList th.tw-80,
|
||||
#resultList td.tw-80 { width: 80px !important; max-width: 80px !important; min-width: 80px !important; }
|
||||
#resultList th.tw-90,
|
||||
#resultList td.tw-90 { width: 90px !important; max-width: 90px !important; min-width: 90px !important; }
|
||||
#resultList th.tw-100,
|
||||
#resultList td.tw-100 { width: 100px !important; max-width: 100px !important; min-width: 100px !important; }
|
||||
#resultList th.tw-120,
|
||||
#resultList td.tw-120 { width: 120px !important; max-width: 120px !important; min-width: 120px !important; }
|
||||
#resultList th.tw-130,
|
||||
#resultList td.tw-130 { width: 130px !important; max-width: 130px !important; min-width: 130px !important; }
|
||||
#resultList th.tw-140,
|
||||
#resultList td.tw-140 { width: 140px !important; max-width: 140px !important; min-width: 140px !important; }
|
||||
#resultList th.tw-150,
|
||||
#resultList td.tw-150 { width: 150px !important; max-width: 150px !important; min-width: 150px !important; }
|
||||
#resultList th.tw-180,
|
||||
#resultList td.tw-180 { width: 180px !important; max-width: 180px !important; min-width: 180px !important; }
|
||||
#resultList th.tw-200,
|
||||
#resultList td.tw-200 { width: 200px !important; max-width: 200px !important; min-width: 200px !important; }
|
||||
#resultList th.tw-250,
|
||||
#resultList td.tw-250 { width: 250px !important; max-width: 250px !important; min-width: 250px !important; }
|
||||
|
||||
/* flex 환경에서 필수 */
|
||||
.app-main,
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.card,
|
||||
.card-body {
|
||||
min-width: 0;
|
||||
}
|
||||
/* PC에서 가로 스크롤이 잘리는 대표 구간들 강제 해제 */
|
||||
.main-card,
|
||||
.card,
|
||||
.card-body {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
|
||||
/* 만약 레이아웃 wrapper가 숨기고 있으면 이것도 */
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.app-main {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
|
||||
/* flex 환경에서 필수 */
|
||||
.app-main,
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.card,
|
||||
.card-body {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 검색 영역 행마다 구분선 추가 */
|
||||
#frm_srch_info .row.g-3 {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
#frm_srch_info .row.g-3:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>조직별 배정 현황</h1>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item"><a data-bs-toggle="tab" href="#tab-eg10-0" class="active nav-link">검색</a></li>
|
||||
<li class="nav-item"><a data-bs-toggle="tab" href="#tab-eg10-1" class="nav-link">조직별 통계</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab-eg10-0" role="tabpanel">
|
||||
<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="card mb-3">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row g-3 align-items-end">
|
||||
|
||||
<!-- 매물ID -->
|
||||
<div class="col-12 col-md-2 col-lg-1">
|
||||
<label class="form-label mb-1">매물ID</label>
|
||||
<input type="text" class="form-control" name="rcpt_atclno" id="rcpt_atclno"
|
||||
onkeypress="hscp_no_enter(event)">
|
||||
</div>
|
||||
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-12 col-md-6 col-lg-3">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="srcSido" id="srcSido">
|
||||
<option value="">시/도</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="srcGugun" id="srcGugun">
|
||||
<option value="">시/군/구</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="srcDong" id="srcDong">
|
||||
<option value="">읍/면/동</option>
|
||||
</select>
|
||||
</div>
|
||||
<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;">
|
||||
<!-- 검색 폼 -->
|
||||
<div class="row g-3">
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">매물ID</label>
|
||||
<input type="text" class="form-control form-control-sm" name="rcpt_atclno" id="rcpt_atclno"
|
||||
onkeypress="hscp_no_enter(event)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 접수일자 -->
|
||||
<div class="col-12 col-md-6 col-lg-3">
|
||||
<label class="form-label mb-1">접수일자</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="sdate" id="sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="date" id="edate" placeholder="종료일">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">예약일자</label>
|
||||
<div class="input-group input-group-sm">
|
||||
<select class="form-select form-select-sm" name="rsrv_tm_ap">
|
||||
<option value="">오전/오후</option>
|
||||
<option value="AM">오전</option>
|
||||
<option value="PM">오후</option>
|
||||
</select>
|
||||
<input type="date" class="form-control form-control-sm" name="rsrv_sdate" id="rsrv_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control form-control-sm" name="rsrv_edate" id="rsrv_edate" placeholder="종료일">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 예약일자 -->
|
||||
<div class="col-12 col-md-6 col-lg-4">
|
||||
<label class="form-label mb-1">예약일자</label>
|
||||
<div class="input-group">
|
||||
<select class="form-select" name="rsrv_tm_ap">
|
||||
<option value="">오전/오후</option>
|
||||
<option value="AM">오전</option>
|
||||
<option value="PM">오후</option>
|
||||
</select>
|
||||
<input type="date" class="form-control" name="rsrv_sdate" id="rsrv_sdate" placeholder="시작일">
|
||||
<span class="input-group-text">~</span>
|
||||
<input type="date" class="form-control" name="rsrv_edate" id="rsrv_edate" placeholder="종료일">
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">관할조직</label>
|
||||
<div class="d-flex gap-1">
|
||||
<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>
|
||||
|
||||
<!-- 방문담당 -->
|
||||
<div class="col-12 col-lg-4">
|
||||
<label class="form-label mb-1">관할조직</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="bonbu" id="bonbu">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="team" id="team">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-select" name="damdang" id="damdang">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">지역별조회</label>
|
||||
<div class="d-flex gap-1">
|
||||
<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="col-12 col-md-2 col-lg-1">
|
||||
<label class="form-label mb-1">평면도 유무</label>
|
||||
<select class="form-select" name="ground_plan_yn">
|
||||
<option value="">선택</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">평면도유무</label>
|
||||
<select class="form-select form-select-sm" name="ground_plan_yn">
|
||||
<option value="">전체</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">평면도요청</label>
|
||||
<select class="form-select form-select-sm" name="ground_plan">
|
||||
<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 class="form-select form-select-sm" name="direct_trad_yn">
|
||||
<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 class="form-select form-select-sm" name="srchType">
|
||||
<option value="">선택</option>
|
||||
<option value="1">중개사명</option>
|
||||
<option value="2">중개사연락처</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 검색어 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검색어</label>
|
||||
<input type="text" class="form-control form-control-sm" name="srchTxt" placeholder="검색어 입력">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label mb-1">진행상태</label>
|
||||
<div class="d-flex flex-wrap gap-2">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="rcpt_stat_all" value="Y"
|
||||
id="rcpt_stat_all" onclick="progressStatAll(this, this.checked);">
|
||||
<label class="form-check-label" for="rcpt_stat_all">전체</label>
|
||||
</div>
|
||||
|
||||
<?php foreach ($codes as $code): ?>
|
||||
<?php if ($code['category'] === "RECEIPT_STATUS1"): ?>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="stat[]" id="stat_<?= $code['cd'] ?>"
|
||||
value="<?= $code['cd'] ?>">
|
||||
<label class="form-check-label" for="stat_<?= $code['cd'] ?>"><?= $code['cd_nm'] ?></label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</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-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center w-100 justify-content-between card-header-tab">
|
||||
<h5 class="mb-0 fw-bold text-dark">검색 결과</h5>
|
||||
<div class="d-flex align-items-center gap-2 ms-auto">
|
||||
<!-- 배정변경 조직 선택 -->
|
||||
<select class="form-select form-select-sm" id="bonbu2" style="width:120px;">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>">
|
||||
<?= $d['dept_nm'] ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 col-lg-1">
|
||||
<label class="form-label mb-1">평면도 요청</label>
|
||||
<select class="form-select" name="ground_plan">
|
||||
<option value="">선택</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
<select class="form-select form-select-sm" id="team2" style="width:140px;">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 col-lg-1">
|
||||
<label class="form-label mb-1">직거래</label>
|
||||
<select class="form-select" name="direct_trad_yn">
|
||||
<option value="">선택</option>
|
||||
<option value="Y">Y</option>
|
||||
<option value="N">N</option>
|
||||
<select class="form-select form-select-sm" id="damdang2" style="width:140px;">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 검색유형 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">검색유형</label>
|
||||
<select class="form-select" name="srchType">
|
||||
<option value="">선택</option>
|
||||
<option value="1">중개사명</option>
|
||||
<option value="2">중개사연락처</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 검색어 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검색어</label>
|
||||
<input type="text" class="form-control" name="srchTxt" placeholder="검색어 입력">
|
||||
</div>
|
||||
|
||||
<!-- 진행상태 + 검색버튼 -->
|
||||
<div class="col-12 col-lg-10">
|
||||
<label class="form-label mb-1">진행상태</label>
|
||||
<div class="d-flex flex-wrap gap-2 align-items-center border rounded p-2">
|
||||
<div class="form-check me-2">
|
||||
<input class="form-check-input" type="checkbox" name="rcpt_stat_all" value="Y"
|
||||
id="rcpt_stat_all" onclick="progressStatAll(this, this.checked);">
|
||||
<label class="form-check-label" for="rcpt_stat_all">전체</label>
|
||||
</div>
|
||||
|
||||
<?php foreach ($codes as $code): ?>
|
||||
<?php if ($code['category'] === "RECEIPT_STATUS1"): ?>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="stat[]" id="stat_<?= $code['cd'] ?>"
|
||||
value="<?= $code['cd'] ?>">
|
||||
<label class="form-check-label" for="stat_<?= $code['cd'] ?>"><?= $code['cd_nm'] ?></label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-1 d-grid">
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">
|
||||
<i class="pe-7s-search me-1"></i>검색
|
||||
<button type="button" class="btn btn-sm btn-outline-primary" id="btn_part_change" onclick="updateAssign()">
|
||||
배정변경
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div><!-- /row -->
|
||||
</div><!-- /card-body -->
|
||||
</div><!-- /card -->
|
||||
</form>
|
||||
<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>
|
||||
|
||||
<button class="btn btn-sm btn-outline-secondary" id="excel-download2">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i>
|
||||
배정내역출력
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab-eg10-1" role="tabpanel">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="card mb-3" style="max-width: 380px;">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-scroll">
|
||||
<table class="table table-sm table-hover table-striped mb-0 align-middle text-center">
|
||||
<thead class="table-light">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:42px;">
|
||||
<input class="form-check-input" type="checkbox" id="depChkAll">
|
||||
</th>
|
||||
<th>관할본부</th>
|
||||
<th>방문담당</th>
|
||||
<th style="width:90px;">배정건수</th>
|
||||
<th>
|
||||
<input type="checkbox" class="form-check-input" name="chkAll" id="chkAll" />
|
||||
</th>
|
||||
<th>진행상태</th>
|
||||
<th>매물ID</th>
|
||||
<th>접수(등록)일시</th>
|
||||
<th>중개사</th>
|
||||
<th>주소</th>
|
||||
<th>연락처</th>
|
||||
<th>예약일자</th>
|
||||
<th>매물종류</th>
|
||||
<th>관할조직</th>
|
||||
<th>방문담당</th>
|
||||
<th>평면도유무</th>
|
||||
<th>평면도요청</th>
|
||||
<th>면적확인</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="deptArea"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer d-flex justify-content-end gap-1">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="printMap()">
|
||||
<i class="pe-7s-print"></i> 인쇄하기
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="deptMap()">
|
||||
<i class="pe-7s-map-2"></i> 지도로 보기
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- 여기는 비워둠: AJAX로 채움 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="card mb-3" style="max-width: 380px;">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-scroll">
|
||||
<table class="table table-sm table-hover table-striped mb-0 align-middle text-center">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>지역구분</th>
|
||||
<th style="width:90px;">요청건수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="statsArea"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</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-select form-select-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-select form-select-sm" id="team2" style="width:160px;">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
|
||||
<select class="form-select form-select-sm" id="damdang2" style="width:160px;">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-outline-primary" id="btn_part_change">
|
||||
배정변경
|
||||
</button>
|
||||
</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>
|
||||
|
||||
<button class="btn btn-sm btn-outline-secondary" id="excel-download2">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i> 배정내역출력
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="resultList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<th class="text-center">
|
||||
<input type="checkbox" class="form-check-input" name="chkAll" id="chkAll" />
|
||||
</th>
|
||||
<th>진행상태</th>
|
||||
<th>매물ID</th>
|
||||
<th>접수(등록)일시</th>
|
||||
<th>중개사</th>
|
||||
<th>주소</th>
|
||||
<th>연락처</th>
|
||||
<th>예약일자</th>
|
||||
<th>매물종류</th>
|
||||
<th>관할조직</th>
|
||||
<th>방문담당</th>
|
||||
<th>평면도유무</th>
|
||||
<th>평면도요청</th>
|
||||
<th>면적확인</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer justify-content-start gap-1">
|
||||
<button type="button" class="btn btn-light">
|
||||
예약 확인
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-outline-light">
|
||||
검수지연
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-outline-light">
|
||||
검수지연 삭제
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?= $this->section('modals') ?>
|
||||
<div class="modal fade" id="deptMapModal" tabindex="-1">
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">지도보기</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body p-0">
|
||||
<div id="dialog-deptmap-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css" />
|
||||
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
|
||||
<script defer src="/architectui/assets/js/datatable.kor.js"></script>
|
||||
@@ -622,61 +558,6 @@ $usr_nm = session('usr_nm');
|
||||
|
||||
d.start = d.start || 0
|
||||
d.length = d.length || 10
|
||||
},
|
||||
dataSrc: function (d) {
|
||||
const deptList = d.widgets?.deptList;
|
||||
const areaStats = d.widgets?.areaStats ?? [];
|
||||
|
||||
if (deptList.length > 0) {
|
||||
var str = "";
|
||||
|
||||
for (var i = 0; i < deptList.length; i++) {
|
||||
str += `
|
||||
<tr>
|
||||
<td><input class="form-check-input depChk" type="checkbox" name="depChk[]" value="${deptList[i].dept_sq}"></td>
|
||||
<td>${deptList[i].bonbu_nm}</td>
|
||||
<td>${deptList[i].team_nm}</td>
|
||||
<td><span class="badge bg-primary">${deptList[i].cnt} 건</span></td>
|
||||
</tr>
|
||||
`;
|
||||
}
|
||||
|
||||
$("#deptArea").html(str);
|
||||
} else {
|
||||
str = `
|
||||
<tr>
|
||||
<td colspan="4">조회 가능한 데이터가 없습니다.</td>
|
||||
</tr>
|
||||
`;
|
||||
|
||||
$("#deptArea").html(str);
|
||||
}
|
||||
|
||||
|
||||
if (areaStats.length > 0) {
|
||||
var str = "";
|
||||
|
||||
for (var i = 0; i < areaStats.length; i++) {
|
||||
str += `
|
||||
<tr>
|
||||
<td>${areaStats[i].rcpt_dong}</td>
|
||||
<td><span class="badge bg-warning">${areaStats[i].cnt} 건</span></td>
|
||||
</tr>
|
||||
`;
|
||||
}
|
||||
|
||||
$("#statsArea").html(str);
|
||||
} else {
|
||||
str = `
|
||||
<tr>
|
||||
<td colspan="2">조회 가능한 데이터가 없습니다.</td>
|
||||
</tr>
|
||||
`;
|
||||
|
||||
$("#statsArea").html(str);
|
||||
}
|
||||
|
||||
return d.data;
|
||||
}
|
||||
},
|
||||
columnDefs: [
|
||||
@@ -700,7 +581,7 @@ $usr_nm = session('usr_nm');
|
||||
{ data: 'exp_spc_yn' },
|
||||
],
|
||||
// 옵션들 예시
|
||||
pdestroy: true,
|
||||
destroy: true,
|
||||
deferRender: true,
|
||||
scrollX: false,
|
||||
autoWidth: false,
|
||||
@@ -737,18 +618,6 @@ $usr_nm = session('usr_nm');
|
||||
$('#chkAll').prop('checked', total > 0 && total === checkedCnt);
|
||||
});
|
||||
|
||||
// 전체 선택
|
||||
$(document).on('change', '#depChkAll', function () {
|
||||
$('.depChk').prop('checked', this.checked);
|
||||
});
|
||||
|
||||
// 개별 체크 시 전체 체크 동기화
|
||||
$(document).on('change', '.depChk', function () {
|
||||
const total = $('.depChk').length;
|
||||
const checked = $('.depChk:checked').length;
|
||||
$('#depChkAll').prop('checked', total === checked);
|
||||
});
|
||||
|
||||
table.on('draw', function () {
|
||||
$('#chkAll').prop('checked', false);
|
||||
});
|
||||
@@ -815,6 +684,15 @@ $usr_nm = session('usr_nm');
|
||||
|
||||
}
|
||||
|
||||
function hscp_no_enter(event) {
|
||||
if (event.keyCode == 13) {
|
||||
table.ajax.reload()
|
||||
}
|
||||
}
|
||||
|
||||
function progressStatAll(el, checked) {
|
||||
$('input[name="stat[]"]').prop('checked', checked);
|
||||
}
|
||||
|
||||
/** datatable render */
|
||||
function fn_chk_render(data, type, row, meta) {
|
||||
@@ -890,56 +768,9 @@ $usr_nm = session('usr_nm');
|
||||
|
||||
/** datatable render */
|
||||
|
||||
// 인쇄하기
|
||||
function printMap() {
|
||||
|
||||
var data = $('input[name="depChk[]"]').serialize();
|
||||
var usr_id = $('input[name="usr_id"]').serialize();
|
||||
|
||||
if (data == '') {
|
||||
alert('팀을 선택해주세요');
|
||||
return;
|
||||
}
|
||||
|
||||
var url = '/article/dept/print?' + data;
|
||||
window.open(url, '', '');
|
||||
}
|
||||
|
||||
function deptMap() {
|
||||
const data = $('input[name="depChk[]"]:checked').serialize();
|
||||
|
||||
if (!data) {
|
||||
alert('팀을 선택해주세요');
|
||||
return;
|
||||
}
|
||||
|
||||
const url = '/article/dept/print?' + data;
|
||||
|
||||
$('#dialog-deptmap-content').html(
|
||||
`<iframe style="border:0;width:100%;height:650px;" src="${url}"></iframe>`
|
||||
);
|
||||
|
||||
const modal = new bootstrap.Modal(document.getElementById('deptMapModal'));
|
||||
modal.show();
|
||||
}
|
||||
|
||||
// 엑셀 다운로드
|
||||
function downloadExcel(data) {
|
||||
const ws = XLSX.utils.json_to_sheet(data);
|
||||
// ws['!cols'] = [
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 150 },
|
||||
// { wpx: 120 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// { wpx: 100 },
|
||||
// ];
|
||||
|
||||
const wb = XLSX.utils.book_new();
|
||||
XLSX.utils.book_append_sheet(wb, ws, "Sheet1");
|
||||
@@ -1047,7 +878,7 @@ $usr_nm = session('usr_nm');
|
||||
var arr = new Array();
|
||||
const bonbu = $("#bonbu2").val();
|
||||
const team = $("#team2").val();
|
||||
const user = $("#user2").val();
|
||||
const user = $("#damdang2").val();
|
||||
|
||||
$('#resultList tbody .row-chk:checked').each(function () {
|
||||
const rowData = table.row($(this).closest('tr')).data();
|
||||
@@ -1088,14 +919,12 @@ $usr_nm = session('usr_nm');
|
||||
return;
|
||||
}
|
||||
|
||||
swal.fire({
|
||||
Swal.fire({
|
||||
text: "배정을 변경하시겠습니까?",
|
||||
type: "warning",
|
||||
icon: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonText: "예",
|
||||
cancelButtonText: "아니오",
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: true,
|
||||
confirmButtonColor: "#3085d6",
|
||||
cancelButtonColor: "#d33",
|
||||
}).then((result) => {
|
||||
@@ -1155,4 +984,4 @@ $usr_nm = session('usr_nm');
|
||||
|
||||
}
|
||||
</script>
|
||||
<?= $this->endSection() ?>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
Reference in New Issue
Block a user