feat: 폐기결과처리시 폐기장소 set 및 조회시 값 set

main
Jonguk. Lim 4 weeks ago
parent b2f1087cb4
commit f03fa678a6

@ -11,6 +11,7 @@
, tcc.CODE_VAL AS DSUSE_MTH_NM , tcc.CODE_VAL AS DSUSE_MTH_NM
, tdm.DSUSE_DE , tdm.DSUSE_DE
, tdm.DSUSE_LOC , tdm.DSUSE_LOC
, tdm.DSUSE_SE_CD
, IF(#{dscdmngId} = tdm.DSCDMNG_ID, 'Y', 'N') AS SELF_YN , IF(#{dscdmngId} = tdm.DSCDMNG_ID, 'Y', 'N') AS SELF_YN
, (SELECT GROUP_CONCAT(dscdmng_id SEPARATOR ',') , (SELECT GROUP_CONCAT(dscdmng_id SEPARATOR ',')
FROM tb_dsuse_mgt FROM tb_dsuse_mgt

@ -157,6 +157,9 @@
document.getElementById("rsltImgList").innerHTML = ""; document.getElementById("rsltImgList").innerHTML = "";
$('#btnImgAdd--${pageName}').prop('disabled', false); $('#btnImgAdd--${pageName}').prop('disabled', false);
$('#btnImgDel--${pageName}').prop('disabled', false); $('#btnImgDel--${pageName}').prop('disabled', false);
$('#dsuseLoc--${pageName}')
.val('')
.prop('disabled', false);
let param = { let param = {
dscdmngId: $("#dscdmngId--${pageName}").val(), dscdmngId: $("#dscdmngId--${pageName}").val(),
@ -195,6 +198,7 @@
if(dscnmngIds.length > 1){ if(dscnmngIds.length > 1){
$('#dsuseDe--${pageName}').prop('disabled', true); $('#dsuseDe--${pageName}').prop('disabled', true);
$('#dsuseMthCd--${pageName}').prop('disabled', true); $('#dsuseMthCd--${pageName}').prop('disabled', true);
$('#dsuseLoc--${pageName}').prop('disabled', false);
$('#spnDsuseDe').show(); $('#spnDsuseDe').show();
$('#spnDsuseMthCd').show(); $('#spnDsuseMthCd').show();
@ -206,11 +210,13 @@
isImgSaved = false; isImgSaved = false;
$('#btnImgAdd--${pageName}').prop('disabled', true); $('#btnImgAdd--${pageName}').prop('disabled', true);
$('#btnImgDel--${pageName}').prop('disabled', true); $('#btnImgDel--${pageName}').prop('disabled', true);
$('#dsuseLoc--${pageName}').val(list[0].DSUSE_LOC);
$('#dsuseLoc--${pageName}').prop('disabled', true);
let tagsTextArr = []; let tagsTextArr = [];
for(let idx = 0; idx < list.length; idx++){ for(let idx = 0; idx < list.length; idx++){
let item = list[idx]; let item = list[idx];
tagsTextArr.push('폐기관리번호 : [ ' + item.DSCDMNG_ID + ' ]의 폐기사진 공유(총 ' + dscnmngIds.length + '건)<br>폐기일자 : [ ' + item.DSUSE_DE + ' ], 폐기방법 : [ ' + item.DSUSE_MTH_NM + ' ]'); tagsTextArr.push('폐기관리번호 : [ ' + item.DSCDMNG_ID + ' ]의 폐기사진 공유(총 ' + dscnmngIds.length + '건)<br>폐기일자 : [ ' + item.DSUSE_DE + ' ], 폐기방법 : [ ' + item.DSUSE_MTH_NM + ' ], 폐기장소 : [ ' + item.DSUSE_LOC + ' ]');
} }
document.getElementById("rsltImgList").innerHTML = tagsTextArr.join(""); document.getElementById("rsltImgList").innerHTML = tagsTextArr.join("");
if(isOnloadExistRsltImg && list.length > 0) isRsltImgRemove = true; if(isOnloadExistRsltImg && list.length > 0) isRsltImgRemove = true;

@ -295,6 +295,7 @@
if(isDtl && row.PRGRS_STTS_CD != "01") dialogTitle = "폐기 결과[통보] 상세"; if(isDtl && row.PRGRS_STTS_CD != "01") dialogTitle = "폐기 결과[통보] 상세";
if (typeof row == "undefined" || row == null || row == "") return; if (typeof row == "undefined" || row == null || row == "") return;
let params = { let params = {
dscdmngId: row.DSCDMNG_ID, dscdmngId: row.DSCDMNG_ID,
bsshNm: row.BSSH_NM, bsshNm: row.BSSH_NM,

Loading…
Cancel
Save