fix: 폐기결과처리 상세

dev
Jonguk. Lim 5 months ago
parent 61da10400b
commit 634f7c004e

@ -15,14 +15,15 @@
<!-- hidden --> <!-- hidden -->
<input type="hidden" name="dscdmngId" data-map="dscdmngId" /> <input type="hidden" name="dscdmngId" data-map="dscdmngId" />
<label for="bssh--${pageName}">업체 정보</label> <%-- <label for="bssh--${pageName}">업체 정보</label>--%>
<div class="row my-1 mx-4 g-1 border-card rounded-3"> <div class="row my-1 mx-4 g-1 border-card rounded-3">
<input type="hidden" id="dscdmngId--${pageName}" name="dscdmngId" data-map="dscdmngId">
<div class="col-md-4"> <div class="col-md-4">
<label for="bsshNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업체명</label> <label for="bsshNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업체명</label>
<input type="text" class="form-control w-60" id="bsshNm--${pageName}" name="bsshNm" data-map="bsshNm" readonly> <input type="text" class="form-control w-60" id="bsshNm--${pageName}" name="bsshNm" data-map="bsshNm" readonly>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="bsshCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">식별번호</label> <label for="bsshCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">사용자보고 식별번호</label>
<input type="text" class="form-control w-60" id="bsshCd--${pageName}" name="bsshCd" data-map="bsshCd" readonly> <input type="text" class="form-control w-60" id="bsshCd--${pageName}" name="bsshCd" data-map="bsshCd" readonly>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
@ -39,7 +40,7 @@
</div> </div>
</div> </div>
<div class="row my-1 mx-1 g-1 border-card rounded"></div> <div class="row my-1 mx-1 g-1 border-card rounded"></div>
<label for="bssh--${pageName}">폐기 정보</label> <%-- <label for="bssh--${pageName}">폐기 정보</label>--%>
<div class="row my-1 mx-4 g-1 border-card rounded-3"> <div class="row my-1 mx-4 g-1 border-card rounded-3">
<div class="col-md-4"> <div class="col-md-4">
<label for="hdrDe--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">취급일자</label> <label for="hdrDe--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">취급일자</label>
@ -227,9 +228,10 @@
$P.control.save = (info, fileArr) => { $P.control.save = (info, fileArr) => {
let saveData = { let saveData = {
...info, ...info,
prgrsSttsCd: "06",
userId: "${currentUser.account}" userId: "${currentUser.account}"
} }
let create = (info.mngId == ""); let create = (info.dscdmngId == "");
upload({ upload({
url: '<c:url value="${apiHost}/api/biz/nims/v1/saveDsuseMgtRslt" />' url: '<c:url value="${apiHost}/api/biz/nims/v1/saveDsuseMgtRslt" />'

@ -98,7 +98,7 @@
<tbody id="tbody--${pageName}"> <tbody id="tbody--${pageName}">
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{USR_RPT_ID_NO}"> <tr data-key="{DSCDMNG_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td>
@ -203,7 +203,7 @@
} }
, prefix: "dsuseMgtRslt" , prefix: "dsuseMgtRslt"
, prefixName: "결과(통보)처리" , prefixName: "결과(통보)처리"
, keymapper: info => info ? info.USR_RPT_ID_NO : "" , keymapper: info => info ? info.DSCDMNG_ID : ""
, dataGetter: obj => obj.${infoPrefix}List , dataGetter: obj => obj.${infoPrefix}List
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
@ -263,7 +263,7 @@
$P.control.onCurrentChange = (item) => { $P.control.onCurrentChange = (item) => {
if (!item) return; if (!item) return;
let key = item.data.USR_RPT_ID_NO; let key = item.data.DSCDMNG_ID;
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
var dscdmngId = item.data.DSCDMNG_ID; var dscdmngId = item.data.DSCDMNG_ID;
@ -283,6 +283,7 @@
// 신청서 정보 dialog // 신청서 정보 dialog
$P.control.getInfo = () => { $P.control.getInfo = () => {
debugger
let dialogTitle = "폐기 결과[통보] 등록"; let dialogTitle = "폐기 결과[통보] 등록";
let row = $P.control.dataset.getCurrent(); let row = $P.control.dataset.getCurrent();
if (typeof row == "undefined" || row == null || row == "") return; if (typeof row == "undefined" || row == null || row == "") return;
@ -331,8 +332,8 @@
// //
let replacer = (str, dataItem) => str let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("USR_RPT_ID_NO") + "');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("DSCDMNG_ID") + "');")
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("CRDN_ID") + "');"); .replace(/{ondblclick}=""/gi, 'ondblclick="control.getInfo()"')
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML] let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer); : ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);

Loading…
Cancel
Save