|
|
@ -64,15 +64,15 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="prdlstMstCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">제조 번호</label>
|
|
|
|
<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" readonly>
|
|
|
|
<input type="text" class="form-control w-60" id="prdlstMstCd--${pageName}" name="mnfNo" data-map="mnfNo">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="prdlstMstCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">제조 일련 번호</label>
|
|
|
|
<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" readonly>
|
|
|
|
<input type="text" class="form-control w-60" id="prdlstMstCd--${pageName}" name="mnfSeq" data-map="mnfSeq">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="rgsDt--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">유효기간</label>
|
|
|
|
<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" readonly>
|
|
|
|
<input type="text" class="form-control w-60" id="rgsDt--${pageName}" name="prdValidDe" data-map="prdValidDe">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="prdMinDistbQy--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">최소 유통단위 수량</label>
|
|
|
|
<label for="prdMinDistbQy--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">최소 유통단위 수량</label>
|
|
|
@ -318,7 +318,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//$P.control.onSave(resp)
|
|
|
|
//$P.control.onSave(resp)
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
dialog.alert("처리 되었습니다.");
|
|
|
|
dialog.close("dsuseMgtReceiptDialog");
|
|
|
|
dialog.close("dsuseMgtReceiptDialog");
|
|
|
|
//this._load();
|
|
|
|
//this._load();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -440,14 +440,17 @@
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const prdFrm = $P.productFormFields.get();
|
|
|
|
|
|
|
|
const prdInfo = ""+prdFrm.prductCd+prdFrm.prdValidDe+prdFrm.mnfNo+prdFrm.mnfSeq;
|
|
|
|
let isDup = $P.productList
|
|
|
|
let isDup = $P.productList
|
|
|
|
.getDataset()
|
|
|
|
.getDataset()
|
|
|
|
.filter(item => item.prductCd == $P.productFormFields.get().prductCd)
|
|
|
|
.filter(item => prdInfo == ""+item.prductCd+item.prdValidDe+item.mnfNo+item.mnfSeq)
|
|
|
|
.length > 0;
|
|
|
|
.length > 0;
|
|
|
|
|
|
|
|
|
|
|
|
if(isDup){
|
|
|
|
if(isDup){
|
|
|
|
|
|
|
|
const msg = "추가된 제품 입니다<br>[제품코드:" + prdFrm.prductCd +", 유효기간:"+ prdFrm.prdValidDe +", 제조번호:"+ prdFrm.mnfNo +", 제조일련번호:"+ prdFrm.mnfSeq +"]";
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "등록한 상품[" + $P.productFormFields.get().prductCd + "]입니다"
|
|
|
|
content: msg
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|