fix: 폐기신청 마스터 정보 변경 추가

dev
Jonguk. Lim 5 months ago
parent 194e767cb7
commit c4abe0945b

@ -12,6 +12,7 @@
<!-- 입력 영역 -->
<form id="bssh--${pageName}" name="bssh">
<!-- hidden -->
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
<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="col-md-4">
@ -43,7 +44,6 @@
</select>
</div>
</div>
<div class="row my-1 mx-1 g-1 border-card rounded"></div>
</form>
<div>
</div>
@ -79,12 +79,19 @@
**************************************************************************/
$P.control = new DatasetControl({
prefix: "dsuseMgtReceiptBssh"
, prefixName: "마약류 취급업체 조회"
, prefixName: "폐기 신청서 접수 정보"
, keymapper: info => info ? info.bsshCd : ""
, dataGetter: obj => obj.${infoPrefix}Info
, infoSize: "xl"
});
$P.control.onCurrentChange = item => {
if (!item) return;
// Dataset 셋팅
$P.bsshFormFields.set($P.control, item);
}
// 저장 callback
$P.control.onSave = (resp) => {
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html();
@ -109,14 +116,10 @@
userId: "${currentUser.account}"
}
upload({
url: '<c:url value="${apiHost}/api/biz/nims/v1/saveDsuseMgtReceipt" />'
, data: {
dsuseMgtJsonStr: JSON.stringify(saveBsshData),
dsuseMgtDtlsJsonStr: JSON.stringify(datasetListPrd),
// 폐기상품이미지목록
dsusePrdImgFiles: fileArr
}
ajax.post({
url: '<c:url value="${apiHost}/api/biz/nims/v1/modifyDsuseMgtReceiptMstInfo" />'
, data: JSON.stringify(saveBsshData)
, contentType: "application/json"
, success: resp => {
if(!resp.success){
dialog.alert({
@ -126,7 +129,7 @@
}
//$P.control.onSave(resp)
dialog.alert("저장됐습니다.");
dialog.alert("정상 처리 하였습니다.");
dialog.close("dsuseMgtReceiptDialog");
//this._load();
}

Loading…
Cancel
Save