feat: 개별총정보 > 민원내역 등록 및 표시 반영

main
Jonguk. Lim 2 years ago
parent 1a6c73eb4a
commit 727f537343

@ -189,6 +189,20 @@ public class FimsConst {
private final String code; private final String code;
private final String desc; private final String desc;
} }
/**
* : tb_ec_ctzn_sttemnt_cmplt
*/
@Getter
@AllArgsConstructor
public enum MinwonGubunCode {
COMPLAIN("0", "민원"),
VHCLE_NO_CMPL("1", "차량번호"),
;
private final String code;
private final String desc;
}
} }

@ -174,6 +174,10 @@ public class FimsCrackdownDTO {
* *
*/ */
private String gubun; private String gubun;
/**
*
*/
private String insttCode;
/** /**
* *
*/ */

@ -9,6 +9,7 @@ import org.apache.ibatis.session.RowBounds;
import egovframework.rte.psl.dataaccess.mapper.Mapper; import egovframework.rte.psl.dataaccess.mapper.Mapper;
import kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO; import kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO;
import kr.xit.fims.biz.ec.dto.CtznStmtDTO; import kr.xit.fims.biz.ec.dto.CtznStmtDTO;
import kr.xit.fims.biz.rt.dto.RtDTO;
import kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO; import kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO;
@Mapper @Mapper
@ -29,12 +30,12 @@ public interface IFimsCrackdownMgtMapper {
CtznStmtDTO.Ans selectEcCtznSttemntAnswer(final String interfaceSeqN); CtznStmtDTO.Ans selectEcCtznSttemntAnswer(final String interfaceSeqN);
CmmAnsTmplDTO.Dtl selectCtznAnswerTmplInfo(final FimsCrackdownDTO.AnsRequest dto); CmmAnsTmplDTO.Dtl selectCtznAnswerTmplInfo(final FimsCrackdownDTO.AnsRequest dto);
List<FimsTotalPopupVO> selectProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto); List<RtDTO.SttusChangeHist> selectProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto);
List<FimsTotalPopupVO> selectPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto); List<RtDTO.PayerHist> selectPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto);
List<CmmAnsTmplDTO.Dtl> selectElctrnNticSndng(final FimsCrackdownDTO.AnsRequest dto); List<CmmAnsTmplDTO.Dtl> selectElctrnNticSndng(final FimsCrackdownDTO.AnsRequest dto);
List<FimsCrackdownDTO.CtznSttemntCmplt> selectCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto); List<FimsCrackdownDTO.CtznSttemntCmplt> selectCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto);
void saveCtznSttemntCmplt(FimsCrackdownDTO.CtznSttemntCmplt dto); void insertCtznSttemntCmplt(FimsCrackdownDTO.CtznSttemntCmplt dto);
int selectCrackdownVhcleNoCnt(final String vhcleNo); int selectCrackdownVhcleNoCnt(final String vhcleNo);
} }

@ -278,11 +278,11 @@ public class FimsCrackdownMgtService implements IFimsCrackdownMgtService {
return ecCtznSttemntMapper.selectEcCtznSttemntAnswer(dto); return ecCtznSttemntMapper.selectEcCtznSttemntAnswer(dto);
} }
@Override @Override
public List<FimsTotalPopupVO> findProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto){ public List<RtDTO.SttusChangeHist> findProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto){
return mapper.selectProcessSttusChangeHist(dto); return mapper.selectProcessSttusChangeHist(dto);
} }
@Override @Override
public List<FimsTotalPopupVO> findPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto){ public List<RtDTO.PayerHist> findPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto){
return mapper.selectPayerAdresHist(dto); return mapper.selectPayerAdresHist(dto);
} }
@Override @Override
@ -296,8 +296,9 @@ public class FimsCrackdownMgtService implements IFimsCrackdownMgtService {
@Override @Override
public void addCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto) { public void addCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto) {
dto.setInsttCode(getUserInfo().getPstinstCode());
dto.setRegister(getUserInfo().getUniqId()); dto.setRegister(getUserInfo().getUniqId());
mapper.saveCtznSttemntCmplt(dto); mapper.insertCtznSttemntCmplt(dto);
} }
@Override @Override

@ -8,6 +8,7 @@ import org.apache.ibatis.session.RowBounds;
import kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO; import kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO;
import kr.xit.fims.biz.ec.dto.CtznStmtDTO; import kr.xit.fims.biz.ec.dto.CtznStmtDTO;
import kr.xit.fims.biz.rt.dto.RtDTO;
import kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO; import kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO;
import kr.xit.framework.biz.cmm.dto.XitLoginVO; import kr.xit.framework.biz.cmm.dto.XitLoginVO;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
@ -27,8 +28,8 @@ public interface IFimsCrackdownMgtService {
CmmAnsTmplDTO.Dtl findCtznAnswerTmplInfo(final FimsCrackdownDTO.AnsRequest dto); CmmAnsTmplDTO.Dtl findCtznAnswerTmplInfo(final FimsCrackdownDTO.AnsRequest dto);
CtznStmtDTO.Ans findCtznStmtAnswer(final FimsCrackdownDTO.AnsRequest dto); CtznStmtDTO.Ans findCtznStmtAnswer(final FimsCrackdownDTO.AnsRequest dto);
List<FimsTotalPopupVO> findProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto); List<RtDTO.SttusChangeHist> findProcessSttusChangeHist(final FimsCrackdownDTO.AnsRequest dto);
List<FimsTotalPopupVO> findPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto); List<RtDTO.PayerHist> findPayerAdresHist(final FimsCrackdownDTO.AnsRequest dto);
List<CmmAnsTmplDTO.Dtl> findElctrnNticSndng(final FimsCrackdownDTO.AnsRequest dto); List<CmmAnsTmplDTO.Dtl> findElctrnNticSndng(final FimsCrackdownDTO.AnsRequest dto);
List<FimsCrackdownDTO.CtznSttemntCmplt> findCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto); List<FimsCrackdownDTO.CtznSttemntCmplt> findCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto);
void addCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto); void addCtznSttemntCmplt(final FimsCrackdownDTO.CtznSttemntCmplt dto);

@ -472,6 +472,140 @@ public class RtDTO {
} }
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public static class PayerHist implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private String payerId;
/**
*
*/
private String payerHistSn;
/**
*
*/
private String insttCode;
/**
*
*/
private String sysCode;
/**
*
*/
private String payerSeCode;
/**
*
*/
private String payerNo;
/**
*
*/
private String payerNm;
/**
*
*/
private String payerCttpc;
/**
*
*/
private String payerCttpcSeCode;
/**
*
*/
private String payerEmailAdres;
/**
*
*/
private String payerSttusCode;
/**
*
*/
private String lnmRoadAdresSeCode;
/**
*
*/
private String zip;
/**
*
*/
private String rnCode;
/**
*
*/
private String undgrndAt;
/**
*
*/
private String buldMnnm;
/**
*
*/
private String buldSlno;
/**
*
*/
private String legaldongCode;
/**
*
*/
private String adstrdCode;
/**
*
*/
private String mntnSeCode;
/**
*
*/
private String lnbr;
/**
*
*/
private String ho;
/**
*
*/
private String spclDong;
/**
*
*/
private String spclHo;
/**
*
*/
private String spclAdres;
/**
*
*/
private String adres;
/**
*
*/
private String detailAdres;
/**
*
*/
private String allAdres;
/**
*
*/
private String payerRegistSeCode;
/**
*
*/
private String registDt;
/**
*
*/
private String register;
}
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor

@ -6,6 +6,11 @@ import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig; import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
/**
* context-properties.xml
* check
*/
@Deprecated
//@Configuration //@Configuration
public class JasyptConfig { public class JasyptConfig {

@ -300,7 +300,8 @@
, cvpl_process_compt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , cvpl_process_compt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
</insert> </insert>
<insert id="saveCtznSttemntCmplt"> <insert id="insertCtznSttemntCmplt">
/*cmm-fims-crackdown-mysql-mapper|insertCtznSttemntCmplt-민원등록|cjm */
<selectKey resultType="string" keyProperty="cmpltId" order="BEFORE"> <selectKey resultType="string" keyProperty="cmpltId" order="BEFORE">
SELECT LPAD(NEXTVAL(seq_ec_ctzn_sttemnt_cmplt), 12, '0') SELECT LPAD(NEXTVAL(seq_ec_ctzn_sttemnt_cmplt), 12, '0')
</selectKey> </selectKey>
@ -315,14 +316,14 @@
, regist_dt , regist_dt
, register , register
) VALUES ( ) VALUES (
#{cmpltId} #{cmpltId}
, #{regltId} , #{regltId}
, #{insttCode} , #{insttCode}
, #{content} , #{content}
, #{gubun} , #{gubun}
, #{vhcleNo} , #{vhcleNo}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, #{register} , #{register}
) )
</insert> </insert>
@ -351,7 +352,8 @@
WHERE tecsa.interface_seq_n = #{interfaceSeqN} WHERE tecsa.interface_seq_n = #{interfaceSeqN}
</select> </select>
<select id="selectProcessSttusChangeHist" resultType="kr.xit.fims.biz.cmm.fimsTotalPopup.dto.FimsTotalPopupVO"> <select id="selectProcessSttusChangeHist" resultType="kr.xit.fims.biz.rt.dto.RtDTO$SttusChangeHist">
/*cmm-fims-crackdown-mysql-mapper|selectProcessSttusChangeHist-단속자료 변경 이력 조회|cjm */
SELECT hist_sn SELECT hist_sn
, reglt_process_sttus_code , reglt_process_sttus_code
, regist_dt , regist_dt
@ -360,7 +362,8 @@
WHERE reglt_id = #{regltId} WHERE reglt_id = #{regltId}
</select> </select>
<select id="selectPayerAdresHist" resultType="kr.xit.fims.biz.cmm.fimsTotalPopup.dto.FimsTotalPopupVO"> <select id="selectPayerAdresHist" resultType="kr.xit.fims.biz.rt.dto.RtDTO$PayerHist">
/*cmm-fims-crackdown-mysql-mapper|selectPayerAdresHist-소유자 주소 변경 이력 조회|cjm */
SELECT regist_dt SELECT regist_dt
, all_adres , all_adres
FROM tb_rt_payer_hist FROM tb_rt_payer_hist
@ -368,6 +371,7 @@
</select> </select>
<select id="selectElctrnNticSndng" resultType="kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO$Dtl"> <select id="selectElctrnNticSndng" resultType="kr.xit.framework.biz.cmm.dto.CmmAnsTmplDTO$Dtl">
/*cmm-fims-crackdown-mysql-mapper|selectElctrnNticSndng-전자고지 발송 이력 조회|cjm */
SELECT tens.elctrn_ntic_sndng_id SELECT tens.elctrn_ntic_sndng_id
, tens.signgu_code , tens.signgu_code
, tens.nht_tmplat_id , tens.nht_tmplat_id
@ -401,6 +405,7 @@
</select> </select>
<select id="selectCtznSttemntCmplt" resultType="kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO$CtznSttemntCmplt"> <select id="selectCtznSttemntCmplt" resultType="kr.xit.fims.biz.cmm.dto.FimsCrackdownDTO$CtznSttemntCmplt">
/*cmm-fims-crackdown-mysql-mapper|selectCtznSttemntCmplt-민원등록 이력 조회|cjm */
SELECT tecsc.cmplt_id SELECT tecsc.cmplt_id
, tecsc.reglt_id , tecsc.reglt_id
, tecsc.instt_code , tecsc.instt_code
@ -412,15 +417,18 @@
, tecsc.updt_dt , tecsc.updt_dt
, tecsc.updusr , tecsc.updusr
FROM tb_ec_ctzn_sttemnt_cmplt tecsc FROM tb_ec_ctzn_sttemnt_cmplt tecsc
<if test='gubun eq "0"'> WHERE gubun = #{gubun}
JOIN tb_rt_reglt trr <if test='gubun eq "0"'>
ON (tecsc.reglt_id = trr.reglt_id AND (trr.payer_id = #{payerId} OR trr.reglt_id = #{regltId})) AND EXISTS (SELECT 1
</if> FROM tb_rt_reglt
<where> WHERE tecsc.reglt_id = reglt_id
<if test='gubun eq "1"'> AND (payer_id = #{payerId} OR reglt_id = #{regltId})
AND tecsc.vhcle_no = #{vhcleNo} )
</if> </if>
</where> <if test='gubun eq "1"'>
AND tecsc.vhcle_no = #{vhcleNo}
</if>
ORDER BY tecsc.regist_dt DESC
</select> </select>
<select id="selectCrackdownVhcleNoCnt" resultType="int"> <select id="selectCrackdownVhcleNoCnt" resultType="int">

@ -13,6 +13,8 @@ Date Author Description
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp"%> <%@ include file="/WEB-INF/jsp/framework/taglibs.jsp"%>
<c:set var="citizen" value="<%= FimsConst.RegltSeCode.CITIZEN.getCode() %>"/> <c:set var="citizen" value="<%= FimsConst.RegltSeCode.CITIZEN.getCode() %>"/>
<c:set var="ctznCmpl" value="<%= FimsConst.MinwonGubunCode.COMPLAIN.getCode() %>"/>
<c:set var="vhcleNoCmpl" value="<%= FimsConst.MinwonGubunCode.VHCLE_NO_CMPL.getCode() %>"/>
<style> <style>
#regltProcessSttusCode { #regltProcessSttusCode {
@ -34,10 +36,43 @@ Date Author Description
<%--2022.10.05 박소영 웹폰트 링크 추가--%> <%--2022.10.05 박소영 웹폰트 링크 추가--%>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap" rel="stylesheet">
<div class="conttitle"> <div style="display: flex" class="conttitle">
<img src="${ctx }/resources/biz/content/images/common/main/titleLogo_01.png"/> <img src="${ctx }/resources/biz/content/images/common/main/titleLogo_01.png"/>
<p class="title">개별총정보</p> <p class="title">개별총정보</p>
<%-- <%@include file="/WEB-INF/jsp/framework/biz-popup-tab-btn.jsp" %>--%> <%-- <%@include file="/WEB-INF/jsp/framework/biz-popup-tab-btn.jsp" %>--%>
<div class="popup_btn">
<div class="flr p_flr">
<!--
<a href="#" class="btn blue" id="prev">prev</a>
<span id="totCnt" style="padding: 0 10px;"></span>
<a href="#" class="btn blue" id="next">next</a>
-->
<button type="button" id="double_prev" name="double_prev">
<img src="/resources/images/btn/double_prev.png"/>
</button>
<button type="button" id="prev" name="prev">
<img src="/resources/images/btn/btn_prev.png"/>
</button>
<span id="totCnt" style="padding: 0 10px;"></span>
<button type="button" id="next" name="next">
<img src="/resources/images/btn/btn_next.png"/>
</button>
<button type="button" id="double_next" name="double_next">
<img src="/resources/images/btn/double_next.png"/>
</button>
</div>
<c:choose>
<c:when test="${isUpdate}">
<a href="#" class="btn blue" id="btnModify">변경</a>
<a href="#" class="btn red" id="btnRemove">삭제</a>
</c:when>
<c:otherwise>
<a href="#" class="btn blue" id="btnRegist">등록</a>
</c:otherwise>
</c:choose>
<a href="#" id='btnClose' class="btn lightgray">닫기</a>
</div>
</div> </div>
<div class="row"> <div class="row">
@ -579,8 +614,7 @@ Date Author Description
<div class="box mT_02"> <div class="box mT_02">
<div class="w_fix04 gridGroup"> <div class="w_fix04 gridGroup">
<p class="title deco_01">민원 내용</p> <p class="title deco_01">민원 내용</p>
<input type="hidden" id="content" name="content"> <textarea id="content0" name="content0" cols="0" rows="15" style="overflow-y: scroll; width:100%;"></textarea>
<textarea id="content1" name="content1" cols="0" rows="15" style="overflow-y: scroll; width:100%;"></textarea>
<div class="popup_btn_02"> <div class="popup_btn_02">
<span> <span>
<a href="#" class="btn blue" id="btnMinWonRegist" style="display: none;">등록</a> <a href="#" class="btn blue" id="btnMinWonRegist" style="display: none;">등록</a>
@ -593,7 +627,7 @@ Date Author Description
<div class="box mT_02"> <div class="box mT_02">
<div class="w_fix04 gridGroup"> <div class="w_fix04 gridGroup">
<p class="title deco_01">차량번호 민원 내용</p> <p class="title deco_01">차량번호 민원 내용</p>
<textarea id="content2" name="content2" cols="0" rows="15" style="overflow-y: scroll; width:100%;"></textarea> <textarea id="content1" name="content1" cols="0" rows="15" style="overflow-y: scroll; width:100%;"></textarea>
<div class="popup_btn_02"> <div class="popup_btn_02">
<span> <span>
<a href="#" class="btn blue" id="btnCarMinWonRegist" style="display: none;">등록</a> <a href="#" class="btn blue" id="btnCarMinWonRegist" style="display: none;">등록</a>
@ -614,7 +648,7 @@ Date Author Description
<%-- </div>--%> <%-- </div>--%>
</div> </div>
</div><!--popupTabs --> </div><!--popupTabs -->
<%@include file="/WEB-INF/jsp/framework/biz-popup-tab-btn.jsp" %> <%-- <%@include file="/WEB-INF/jsp/framework/biz-popup-tab-btn.jsp" %>--%>
</div><!--row --> </div><!--row -->
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/framework/js/cmm/cmmDownloadImg.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/resources/framework/js/cmm/cmmDownloadImg.js"></script>
@ -626,6 +660,8 @@ Date Author Description
var imageEditorPopup = (flag, params) => fnPopupBiz.pagePopup(flag, params); var imageEditorPopup = (flag, params) => fnPopupBiz.pagePopup(flag, params);
var callbackReloadImage = () => fnPopupBiz.downloadImg(); var callbackReloadImage = () => fnPopupBiz.downloadImg();
let orgData; let orgData;
// 처리상태 변경 이력 / 주소 변동이력 / 전자고지 발송 이력 / 민원 등록 이력 / 차량 번호 민원 등록 이력
const ARR_TAP_GRID = [null,null,null,null,null]; const ARR_TAP_GRID = [null,null,null,null,null];
const ARR_TAP_NAV = [null,null,null,null,null]; const ARR_TAP_NAV = [null,null,null,null,null];
const ARR_TAP_TOTCNT = [0, 0, 0, 0, 0]; const ARR_TAP_TOTCNT = [0, 0, 0, 0, 0];
@ -741,7 +777,48 @@ Date Author Description
} }
} }
,reloadGrid: (idx) => { ,reloadGrid: (idx) => {
ARR_TAP_GRID.forEach(grid => grid.reloadData()) ARR_TAP_GRID.forEach(grid => grid.reloadData());
fnPopupBiz.resetMinwonBtn('${ctznCmpl}', false);
fnPopupBiz.resetMinwonBtn('${vhcleNoCmpl}', false);
}
,addMinwon: (content, gubun) => {
const data = {
gubun,
regltId: schParam.regltId,
content,
vhcleNo: gubun === '${vhcleNoCmpl}'? schParam.vhcleNo : ''
}
if(!confirm('등록하시겠습니까?')) return false;
cmmAjax({
url: fimsApiUrl.ADD_CTZN_STTEMNT_CMPLT
,data: $.param(data)
,success: (res) => {
//ARR_TAP_GRID[3].resetData([]);
//ARR_TAP_GRID[3].refreshLayout();
if(gubun === '${ctznCmpl}') ARR_TAP_GRID[3].reloadData();
else ARR_TAP_GRID[4].reloadData();
}
})
}
,onCplntHisClickGrid: (props) => {
const rowData = props.grid.getRow(props.rowKey);
if(props.grid.el.id === 'grid_cplnt'){
$('#content0').val(rowData.content);
}else{
$('#content1').val(rowData.content);
}
}
,resetMinwonBtn: (gubun, isShow) => {
$('#content'+gubun).val('');
switch(gubun) {
case '0':
isShow === true ? $("#btnMinWonRegist").show(): $("#btnMinWonRegist").hide();
break;
case '1':
isShow === true ? $("#btnCarMinWonRegist").show(): $("#btnCarMinWonRegist").hide();
break;
}
} }
}; };
@ -801,29 +878,21 @@ Date Author Description
}); });
$('#btnMinWonNew').on('click', () => { $('#btnMinWonNew').on('click', () => {
$('#content').val(''); fnPopupBiz.resetMinwonBtn('${ctznCmpl}', true);
$('#content1').val('');
$("#btnMinWonRegist").show();
}); });
$('#btnCarMinWonNew').on('click', () => { $('#btnCarMinWonNew').on('click', () => {
$('#content').val(''); fnPopupBiz.resetMinwonBtn('${vhcleNoCmpl}', true);
$('#content2').val('');
$("#btnCarMinWonRegist").show();
}); });
$('#btnMinWonRegist').on('click', () => { $('#btnMinWonRegist').on('click', () => {
$('#content').val($('#content1').val()); fnPopupBiz.addMinwon($('#content0').val(), '${ctznCmpl}');
const formData = $("#frmCmplt").serialize() + `&regltId=${param.regltId}&gubun=0`; fnPopupBiz.resetMinwonBtn('${ctznCmpl}', false);
cmmBizAjax('저장', {
url: fimsApiUrl.ADD_CTZN_STTEMNT_CMPLT
, data: formData
})
}); });
$('#btnCarMinWonRegist').on('click', () => { $('#btnCarMinWonRegist').on('click', () => {
$('#content').val($('#content2').val()); fnPopupBiz.addMinwon($('#content1').val(), '${vhcleNoCmpl}')
fnPopupBiz.resetMinwonBtn('${vhcleNoCmpl}', false);
}); });
}); });
@ -1038,50 +1107,59 @@ Date Author Description
align: 'center' align: 'center'
} }
]; ];
const vhcleNoCplntHisColumns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) const vhcleNoCplntHisColumns = [
{
header: '등록일시',
name: 'registDt',
width: 90,
//editor: 'text',
sortable: true,
align: 'center'
},
// {
// header: '요일',
// name: 'registDt2',
// width: 90,
// //editor: 'text',
// sortable: true,
// align: 'center'
// },
{ {
header: '등록자', header: '내용',
name: 'register', name: 'content',
width: 90, minWidth: 150,
//editor: 'text', //editor: 'text',
sortable: false, sortable: false,
align: 'center' align: 'center',
renderer: {
type: CustomButtonRenderer,
options: {
formatter: (props)=>{
return {
formatter: props.grid.getRow(props.rowKey).content
,element: "text"
}
}
,eventFunction: fnPopupBiz.onCplntHisClickGrid
,eventType: "click"
}
}
}, },
{ {
header: '차량번호', header: '차량번호',
name: 'vhcleNo', name: 'vhcleNo',
width: 90, minWidth: 90,
//editor: 'text', //editor: 'text',
sortable: false, sortable: false,
align: 'center' align: 'center'
}, },
{ {
header: '내용', header: '등록일시',
name: 'content', name: 'registDt',
width: 90, minWidth: 120,
//editor: 'text',
sortable: true,
align: 'center',
formatter({value}) {
return setDateTimeFmt(value);
}
},
{
header: '등록자',
name: 'register',
minWidth: 120,
//editor: 'text', //editor: 'text',
sortable: false, sortable: false,
align: 'center' align: 'center'
} }
]; ];
const cplntHisColumns = vhcleNoCplntHisColumns.filter((_, index) => index !== 3 ); const cplntHisColumns = vhcleNoCplntHisColumns.filter((_, index) => index !== 1 );
// 처리상태 변경 이력 DataSource // 처리상태 변경 이력 DataSource
const changStsHisDatasource = { const changStsHisDatasource = {
@ -1172,20 +1250,34 @@ Date Author Description
bodyHeight: 250, bodyHeight: 250,
}); });
// 처리상태 변동이력
ARR_TAP_GRID[0] = TuiGrid.of({...changStsHisOptions, columns: changeStsHisColumns}, changStsHisDatasource, (res) => { ARR_TAP_GRID[0] = TuiGrid.of({...changStsHisOptions, columns: changeStsHisColumns}, changStsHisDatasource, (res) => {
ARR_TAP_GRID[0].resetData([]); ARR_TAP_GRID[0].resetData([]);
ARR_TAP_GRID[0].refreshLayout(); ARR_TAP_GRID[0].refreshLayout();
}); });
// 주소 변동 이력
ARR_TAP_GRID[1] = TuiGrid.of({...addrHisOptions, el: 'grid_addr_his', columns: addrHisColumns}, addrHisDatasource, (res) => { ARR_TAP_GRID[1] = TuiGrid.of({...addrHisOptions, el: 'grid_addr_his', columns: addrHisColumns}, addrHisDatasource, (res) => {
ARR_TAP_GRID[1].resetData([]);
ARR_TAP_GRID[1].refreshLayout();
}); });
// 전자고지 발송 이력
ARR_TAP_GRID[2] = TuiGrid.of({...addrHisOptions, el: 'grid_etrn_noti_his', columns: etrnNotiHisColumns}, etrnNotiSndHisDatasource, (res) => { ARR_TAP_GRID[2] = TuiGrid.of({...addrHisOptions, el: 'grid_etrn_noti_his', columns: etrnNotiHisColumns}, etrnNotiSndHisDatasource, (res) => {
ARR_TAP_GRID[2].resetData([]);
ARR_TAP_GRID[2].refreshLayout();
}); });
// 민원 등록 내역
ARR_TAP_GRID[3] = TuiGrid.of({...etrnNotiHisOptions, el: 'grid_cplnt', columns: cplntHisColumns}, cplntHisDatasource, (res) => { ARR_TAP_GRID[3] = TuiGrid.of({...etrnNotiHisOptions, el: 'grid_cplnt', columns: cplntHisColumns}, cplntHisDatasource, (res) => {
console.log(res); ARR_TAP_GRID[3].resetData([]);
ARR_TAP_GRID[3].resetData(res.data?.contents); ARR_TAP_GRID[3].refreshLayout();
}); });
// 차량 번호 민원 등록 내역
ARR_TAP_GRID[4] = TuiGrid.of({...etrnNotiHisOptions, el: 'grid_vhcle_no_cplnt', columns: vhcleNoCplntHisColumns}, vhcleNoCplntHisHisDatasource, (res) => { ARR_TAP_GRID[4] = TuiGrid.of({...etrnNotiHisOptions, el: 'grid_vhcle_no_cplnt', columns: vhcleNoCplntHisColumns}, vhcleNoCplntHisHisDatasource, (res) => {
ARR_TAP_GRID[4].resetData([]);
ARR_TAP_GRID[4].refreshLayout();
}); });
const gridResposeSet = (res, idx) => { const gridResposeSet = (res, idx) => {

@ -1086,8 +1086,9 @@ header {
.conttitle img { .conttitle img {
width: 13px; width: 13px;
display: block; display: block;
float: left; align-items: baseline;
padding: 16px 9px 0px 10px; } /*float: left;*/
padding: 4px 4px 0px 10px; }
.shipmentInfo .titleBox_01 { .shipmentInfo .titleBox_01 {
width: 100px; width: 100px;

Loading…
Cancel
Save