|
|
@ -14,7 +14,14 @@
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
|
|
|
|
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
|
|
|
|
<input type="hidden" name="prgrsSttsCd" data-map="prgrsSttsCd" />
|
|
|
|
<input type="hidden" name="prgrsSttsCd" data-map="prgrsSttsCd" />
|
|
|
|
<input type="hidden" name="bsshCd" data-map="bsshCd"/>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="indutyNm" data-map="indutyNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hdntCd" data-map="hdntCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hdntNm" data-map="hdntNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="chrgNm" data-map="chrgNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="hptlNo" data-map="hptlNo"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="joinYn" data-map="joinYn"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="bsshSttusNm" data-map="bsshSttusNm"/>
|
|
|
|
<label for="bssh--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>취급 업체 정보</strong></label>
|
|
|
|
<label for="bssh--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>취급 업체 정보</strong></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">
|
|
|
@ -55,6 +62,13 @@
|
|
|
|
<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>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<form id="product--${pageName}" name="product">
|
|
|
|
<form id="product--${pageName}" name="product">
|
|
|
|
|
|
|
|
<input type="hidden" name="prdlstMstCd" data-map="prdlstMstCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="nrcdSeNm" data-map="nrcdSeNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="prtmSeNm" data-map="prtmSeNm"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="bsshCd" data-map="bsshCd"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="rgsDt" data-map="rgsDt"/>
|
|
|
|
|
|
|
|
<input type="hidden" name="updDt" data-map="updDt"/>
|
|
|
|
|
|
|
|
|
|
|
|
<label for="product--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>폐기 제품 정보</strong></label>
|
|
|
|
<label for="product--${pageName}" style="margin-top: 10px; padding-left: 20px;"><strong>폐기 제품 정보</strong></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-6">
|
|
|
|
<div class="col-md-6">
|
|
|
@ -201,6 +215,12 @@
|
|
|
|
mnfNo: prdInfo.mnfSeqInfos[0].mnfNo,
|
|
|
|
mnfNo: prdInfo.mnfSeqInfos[0].mnfNo,
|
|
|
|
mnfSeq: prdInfo.mnfSeqInfos[0].mnfSeq,
|
|
|
|
mnfSeq: prdInfo.mnfSeqInfos[0].mnfSeq,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prdlstMstCd: prdInfo.prdlstMstCd,
|
|
|
|
|
|
|
|
nrcdSeNm: prdInfo.nrcdSeNm,
|
|
|
|
|
|
|
|
prtmSeNm: prdInfo.prtmSeNm,
|
|
|
|
|
|
|
|
bsshCd: prdInfo.bsshCd,
|
|
|
|
|
|
|
|
rgsDt: prdInfo.rgsDt,
|
|
|
|
|
|
|
|
updDt: prdInfo.updDt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
@ -334,7 +354,7 @@
|
|
|
|
$P.productControl.getProductInfo = () => {
|
|
|
|
$P.productControl.getProductInfo = () => {
|
|
|
|
let dialogTitle = "마약류 제품 조회";
|
|
|
|
let dialogTitle = "마약류 제품 조회";
|
|
|
|
let rowData = $P.bsshFormFields.get();
|
|
|
|
let rowData = $P.bsshFormFields.get();
|
|
|
|
if(rowData.bsshCd == null || rowData.bsshCd == "") {
|
|
|
|
if(rowData.bsshCd == null || rowData.bsshCd === "") {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "업체를 먼저 선택해주세요."
|
|
|
|
content: "업체를 먼저 선택해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -467,7 +487,7 @@
|
|
|
|
let bsshData = $P.bsshFormFields.get();
|
|
|
|
let bsshData = $P.bsshFormFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(bsshData.bsshCd == ""){
|
|
|
|
if(bsshData.bsshCd === ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "마약류 취급업체 정보를 입력해주세요."
|
|
|
|
content: "마약류 취급업체 정보를 입력해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -479,7 +499,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let dsProd = $P.productList.getDataset();
|
|
|
|
let dsProd = $P.productList.getDataset();
|
|
|
|
if(dsProd.length == 0){
|
|
|
|
if(dsProd.length === 0){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "폐기 제품 정보를 입력해주세요."
|
|
|
|
content: "폐기 제품 정보를 입력해주세요."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -495,7 +515,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if(dsProd.length != fileCount){
|
|
|
|
if(dsProd.length !== fileCount){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "입력되지 않은 폐기 제품 이미지가 있습니다."
|
|
|
|
content: "입력되지 않은 폐기 제품 이미지가 있습니다."
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -557,7 +577,7 @@
|
|
|
|
const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe.replaceAll('-','')+prdFrm.mnfNo+prdFrm.mnfSeq;
|
|
|
|
const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe.replaceAll('-','')+prdFrm.mnfNo+prdFrm.mnfSeq;
|
|
|
|
let isDup = $P.productList
|
|
|
|
let isDup = $P.productList
|
|
|
|
.getDataset()
|
|
|
|
.getDataset()
|
|
|
|
.filter(item => prdInfo == ""+item.prductCd+item.prdValidDe.replaceAll('-','')+item.mnfNo+item.mnfSeq)
|
|
|
|
.filter(item => prdInfo === ""+item.prductCd+item.prdValidDe.replaceAll('-','')+item.mnfNo+item.mnfSeq)
|
|
|
|
.length > 0;
|
|
|
|
.length > 0;
|
|
|
|
if(isDup){
|
|
|
|
if(isDup){
|
|
|
|
const msg = "이미 추가된 제품 입니다<br>제품코드: " + prdFrm.prductCd +"<br>유효기간: "+ prdFrm.prdValidDe +"<br>제조번호: "+ prdFrm.mnfNo +"<br>제조일련번호: "+ prdFrm.mnfSeq;
|
|
|
|
const msg = "이미 추가된 제품 입니다<br>제품코드: " + prdFrm.prductCd +"<br>유효기간: "+ prdFrm.prdValidDe +"<br>제조번호: "+ prdFrm.mnfNo +"<br>제조일련번호: "+ prdFrm.mnfSeq;
|
|
|
@ -566,7 +586,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
debugger
|
|
|
|
const data = {...$P.productFormFields.get(), keyCnt : ""+prdRowKey++};
|
|
|
|
const data = {...$P.productFormFields.get(), keyCnt : ""+prdRowKey++};
|
|
|
|
data.prdValidDe = data.prdValidDe.replaceAll('-','');
|
|
|
|
data.prdValidDe = data.prdValidDe.replaceAll('-','');
|
|
|
|
$P.productList.append([data]);
|
|
|
|
$P.productList.append([data]);
|
|
|
@ -589,7 +609,7 @@
|
|
|
|
$P.fnChangeDsusePrvCd = () => {
|
|
|
|
$P.fnChangeDsusePrvCd = () => {
|
|
|
|
// validate 확인
|
|
|
|
// validate 확인
|
|
|
|
let checkData = $("#dsusePrvCd--${pageName} option:selected").val();
|
|
|
|
let checkData = $("#dsusePrvCd--${pageName} option:selected").val();
|
|
|
|
if (checkData =="01" || checkData =="02") {
|
|
|
|
if (checkData ==="01" || checkData ==="02") {
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', true);
|
|
|
|
$("#dsuseAcdtDe--${pageName}").prop('disabled', true);
|
|
|
@ -646,7 +666,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
// 초기 화면 설정
|
|
|
|
$P.initForm = () => {
|
|
|
|
$P.initForm = () => {
|
|
|
|
if($("input[name='prgrsSttsCd']").val() == '99' || ${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
|
|
|
|
if($("input[name='prgrsSttsCd']").val() === '99' || ${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
AppSupport.initDatepicker("bssh--${pageName}");
|
|
|
|
AppSupport.initDatepicker("bssh--${pageName}");
|
|
|
@ -672,7 +692,7 @@
|
|
|
|
for(let p of productInfo){
|
|
|
|
for(let p of productInfo){
|
|
|
|
p.keyCnt = (""+prdRowKey++);
|
|
|
|
p.keyCnt = (""+prdRowKey++);
|
|
|
|
for(let f of fileInfo){
|
|
|
|
for(let f of fileInfo){
|
|
|
|
if(p.dscdmngSn == f.SUB_TYPE){
|
|
|
|
if(p.dscdmngSn === f.SUB_TYPE){
|
|
|
|
p.fileInfo = f;
|
|
|
|
p.fileInfo = f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|