|
|
|
@ -61,24 +61,24 @@
|
|
|
|
|
<input type="text" class="form-control w-60" id="prductNm--${pageName}" name="prductNm" data-map="prductNm" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<label for="prductCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">제품코드</label>
|
|
|
|
|
<label for="prductCd--${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="prductCd--${pageName}" name="prductCd" data-map="prductCd" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<button type="button" style="display: none;" class="btn btn-search w-px-120" id="btnProductBarcodeSearch--${pageName}" title="검색">바코드 검색</button>
|
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnProductSearch--${pageName}" title="검색">제품 검색</button>
|
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnProductBarcodeSearch--${pageName}" title="검색">바코드 검색</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<label for="rgsDt--${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="rgsDt--${pageName}" name="prdValidDe" data-map="prdValidDe">
|
|
|
|
|
<label for="prdValidDe--${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="prdValidDe--${pageName}" name="prdValidDe" data-map="prdValidDe">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<label for="prdlstMstCd--${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="prdlstMstCd--${pageName}" name="mnfNo" data-map="mnfNo">
|
|
|
|
|
<label for="mnfNo--${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="mnfNo--${pageName}" name="mnfNo" data-map="mnfNo">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<label for="prdlstMstCd--${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="prdlstMstCd--${pageName}" name="mnfSeq" data-map="mnfSeq">
|
|
|
|
|
<label for="mnfSeq--${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="mnfSeq--${pageName}" name="mnfSeq" data-map="mnfSeq">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<label for="prdMinDistbQy--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">유통단위 수량</label>
|
|
|
|
@ -453,7 +453,6 @@
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
debugger;
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: "현재 폐기 신청서 접수 정보를 저장 하시겠습니까?"
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
@ -564,6 +563,51 @@ debugger;
|
|
|
|
|
|
|
|
|
|
$("#dsusePrvCd--${pageName}").on("change", () => $P.fnChangeDsusePrvCd()); // 추가
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
// barcode 입력 처리
|
|
|
|
|
$("#btnProductBarcodeSearch--${pageName}").on("click", () => {
|
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", false);
|
|
|
|
|
$("#prductCd--${pageName}").val("");
|
|
|
|
|
$("#prductCd--${pageName}").focus();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#prductCd--${pageName}").on("change", () => {
|
|
|
|
|
let barcode = $("#prductCd--${pageName}").val();
|
|
|
|
|
if(barcode.length > 13){
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/adds/nims/getNimsPrdMnfSeqInfoOfBarcode.do")
|
|
|
|
|
, data : {barcodeStr : barcode}
|
|
|
|
|
, success : obj => {
|
|
|
|
|
if (!obj.success){
|
|
|
|
|
dialog.alert(obj.message);
|
|
|
|
|
$("#prductCd--${pageName}").val("");
|
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let prdInfo = obj.data;
|
|
|
|
|
$P.productFormFields.set(
|
|
|
|
|
$P.productControl,
|
|
|
|
|
{
|
|
|
|
|
prductCd: prdInfo.prductCd,
|
|
|
|
|
prductNm: prdInfo.prductNm,
|
|
|
|
|
prdMinDistbQy: prdInfo.prdMinDistbQy,
|
|
|
|
|
stdPackngStleNm: prdInfo.stdPackngStleNm,
|
|
|
|
|
prdTotPceQy: prdInfo.prdTotPceQy,
|
|
|
|
|
pceCoUnitNm: prdInfo.pceCoUnitNm,
|
|
|
|
|
dsuseQy: prdInfo.dsuseQy,
|
|
|
|
|
prdValidDe: prdInfo.mnfSeqInfos[0].prdValidDe,
|
|
|
|
|
mnfNo: prdInfo.mnfSeqInfos[0].mnfNo,
|
|
|
|
|
mnfSeq: prdInfo.mnfSeqInfos[0].mnfSeq,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
$("#prductCd--${pageName}").prop("readonly", true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
|