fix: 폐기결과처리 상세

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

@ -15,14 +15,15 @@
<!-- hidden -->
<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">
<input type="hidden" id="dscdmngId--${pageName}" name="dscdmngId" data-map="dscdmngId">
<div class="col-md-4">
<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>
</div>
<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>
</div>
<div class="col-md-4">
@ -39,7 +40,7 @@
</div>
</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="col-md-4">
<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) => {
let saveData = {
...info,
prgrsSttsCd: "06",
userId: "${currentUser.account}"
}
let create = (info.mngId == "");
let create = (info.dscdmngId == "");
upload({
url: '<c:url value="${apiHost}/api/biz/nims/v1/saveDsuseMgtRslt" />'

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

Loading…
Cancel
Save