This commit is contained in:
@@ -2309,7 +2309,7 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
success: function (result) {
|
||||
|
||||
if (result.code == '0') {
|
||||
location.replace('/board/notice/lists')
|
||||
location.reload();
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: result.msg,
|
||||
|
||||
@@ -1853,7 +1853,125 @@ if (!empty($data['cert_register']) && $data['cert_register_save_yn'] != 'Y') { /
|
||||
|
||||
// 서류확인정보 저장
|
||||
function saveDocu() {
|
||||
var frm = document.rcptFrm;
|
||||
|
||||
if (frm.fax_conf_res_d11.value == "") {
|
||||
Swal.fire("확인여부를 선택해주세요");
|
||||
frm.fax_conf_res_d11.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var chValue = "";
|
||||
var i = 1;
|
||||
for (i = 1; i <= 14; i++) {
|
||||
if ($('#ch' + i).is(':checked') == true) {
|
||||
chValue = chValue + "|Y";
|
||||
} else {
|
||||
chValue = chValue + "|N";
|
||||
}
|
||||
}
|
||||
//alert(chValue);
|
||||
chValue = chValue.substr(1);
|
||||
$('#chTotal').val(chValue);
|
||||
|
||||
if (frm.fax_conf_yn_2.value == "") {
|
||||
Swal.fire("매물주소 정보확인 결과를 선택해주세요");
|
||||
frm.fax_conf_yn_2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frm.fax_conf_yn_3.value == "") {
|
||||
Swal.fire("가격 거래구분 정보확인 결과를 선택해주세요");
|
||||
frm.fax_conf_yn_3.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frm.fax_conf_yn_4.value == "") {
|
||||
Swal.fire("의뢰인 정보확인 결과를 선택해주세요");
|
||||
frm.fax_conf_yn_4.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frm.fax_conf_yn_2.value == "20000") {
|
||||
if (frm.fax_conf_yn_info_2.value == "") {
|
||||
Swal.fire("매물주소 불일치에 대한 상세내용을 작성해주세요");
|
||||
frm.fax_conf_yn_info_2.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (frm.fax_conf_yn_3.value == "20000") {
|
||||
if (frm.fax_conf_yn_info_3.value == "") {
|
||||
Swal.fire("가격 거래구분 불일치에 대한 상세내용을 작성해주세요");
|
||||
frm.fax_conf_yn_info_3.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (frm.fax_conf_yn_4.value == "20000") {
|
||||
if (frm.fax_conf_yn_info_4.value == "") {
|
||||
Swal.fire("의뢰인정보 불일치에 대한 상세내용을 작성해주세요");
|
||||
frm.fax_conf_yn_info_4.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
swal.fire({
|
||||
text: "저장 하시겠습니까?",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonText: "예",
|
||||
cancelButtonText: "아니오",
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: true,
|
||||
confirmButtonColor: "#3085d6",
|
||||
cancelButtonColor: "#d33",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
url: '/m702/m702a/saveDocu',
|
||||
method: 'POST',
|
||||
data: new FormData($("#rcptFrm")[0]),
|
||||
processData: false,
|
||||
contentType: false,
|
||||
beforeSend: function () {
|
||||
blockUI.blockPage({
|
||||
message: tpl
|
||||
})
|
||||
},
|
||||
complete: function () {
|
||||
blockUI.unblockPage()
|
||||
},
|
||||
error: function (xhr, error, thrown) {
|
||||
blockUI.unblockPage()
|
||||
var msg = "";
|
||||
if (xhr.responseText != null) {
|
||||
msg = xhr.responseText
|
||||
} else {
|
||||
msg = "잠시후 다시 시도해 주세요."
|
||||
}
|
||||
|
||||
Swal.fire({
|
||||
title: msg,
|
||||
icon: "error",
|
||||
draggable: true
|
||||
})
|
||||
},
|
||||
success: function (result) {
|
||||
|
||||
if (result.code == '0') {
|
||||
location.reload();
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: result.msg,
|
||||
icon: "error",
|
||||
draggable: true
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -274,11 +274,16 @@ if (!empty($regist2)) {
|
||||
<th>단지명</th>
|
||||
<td>
|
||||
<input type="hidden" name="atcl_hscp_nm" id="atcl_hscp_nm"
|
||||
value="<?= $data['hscp_nm'] ?>" />
|
||||
<select class="form-select" name="atcl_hscp_no" id="atcl_hscp_no"
|
||||
disabled="disabled">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
value="<?= $data['hscp_nm'] ?>" />
|
||||
<select class="form-select" name="atcl_hscp_no" id="atcl_hscp_no" disabled>
|
||||
<option value="">-단지선택-</option>
|
||||
<?php
|
||||
foreach ($complexList['result'] as $complex): ?>
|
||||
<option value="<?= $complex['rletNo'] ?>"
|
||||
<?= ($complex['rletNo'] === $data['hscp_no']) ? 'selected' : '' ?>>
|
||||
<?= $complex['rletNm'] ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
<th>가격</th>
|
||||
<td>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user