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

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

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

Loading…
Cancel
Save