상세수정
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2026-02-05 12:41:07 +09:00
parent 36355f75f3
commit 790216404c
8 changed files with 1108 additions and 29 deletions

View File

@@ -41,9 +41,9 @@ $usr_level = session('usr_level');
<div class="row">
<div class="col-12">
<form action="">
<form action="" id="frmSave" name="frmSave" onsubmit="return false;">
<input type="hidden" name="work_type" id="work_type" value="<?= $data['work_type'] ?>" />
<input type="hidden" name="atcl_no" id="atcl_no" value="<?= $data['atcl_no'] ?>" />
<input type="hidden" name="atcl_no" value="<?= $data['atcl_no'] ?>" />
<input type="hidden" name="vr_sq" id="vr_sq" value="<?= $data['vr_sq'] ?>" />
<input type="hidden" name="fax_sq" id="fax_sq" value="<?= $data['fax_sq'] ?>" />
<input type="hidden" name="file_type" id="file_type" value="" />
@@ -174,7 +174,7 @@ $usr_level = session('usr_level');
style="max-width: 320px;">
<input type="text" class="form-control"
name="atcl_no" id="atcl_no"
value="<?= $data['atcl_no'] ?>" maxlength="10"
value="<?= $data['fax_sq'] ?>" maxlength="10"
placeholder="매물번호 입력">
<button type="button"
class="btn btn-outline-primary"
@@ -343,7 +343,7 @@ $usr_level = session('usr_level');
<?php else: ?>
<input type="text" class="form-control form-control-sm"
name="address3" id="address3"
value="<?= $article['rcpt_ho'] ?>" disabled>
value="<?= $article['rcpt_ho'] ?? '' ?>" disabled>
<?php endif; ?>
<button type="button"
class="btn btn-sm btn-outline-light">매물확인</button>
@@ -358,7 +358,7 @@ $usr_level = session('usr_level');
<?php else: ?>
<input type="text" class="form-control form-control-sm"
name="address3" id="address3"
value="<?= $article['rcpt_ho'] ?>" disabled>
value="<?= $article['rcpt_ho'] ?? '' ?>" disabled>
<?php endif; ?>
<?php endif; ?>
<button type="button"
@@ -669,26 +669,52 @@ $usr_level = session('usr_level');
return;
}
location.replace("<?= site_url('m708/m708a/detail') ?>/" + atclNo);
/*
var atclNo = $('#atcl_no').val();
if (atclNo == "") {
swal.fire({
title: "매물번호를 입력해 주세요.",
icon: "warning"
});
return;
}
$.getJSON("/m708/m708a/getArticleInfo?&atcl_no=" + atclNo, function (res) {
if (res.code == '0') {
if (res.vr_sq != null) {
location.replace("<?= site_url('m708/m708a/detail') ?>/" + vr_sq);
} else {
swal.fire({
title: "매물 조회에 실패했습니다.",
icon: "warning"
});
}
} else {
swal.fire({
title: "매물 조회에 실패했습니다.",
icon: "warning"
});
}
} else {
swal.fire({
title: "잠시후 다시 시도해 주세요.",
icon: "warning"
});
}
swal.fire({
title: "잠시후 다시 시도해 주세요.",
icon: "warning"
});
}
});
*/
}
// 매물확인
function view201detail(atcl_no) {
var type = <?= $data['work_type'] ?? '' ?>;
if (type == '1') { //현장확인매물
window.open('/article/receipt/detail/' + atcl_no);
} else {
alert('현장확인 매물이 아닙니다.');
return;
}
}
// 현장확인
@@ -1219,7 +1245,7 @@ $usr_level = session('usr_level');
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: '/m703/m703a/saveResult',
url: '/m708/m708a/saveResult',
contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
method: 'POST',
data: $("#frmSave").serialize(),
@@ -1313,11 +1339,15 @@ $usr_level = session('usr_level');
},
success: function (result) {
if (result.code == '0') {
if (parseInt(result.cnt) >= 4) {
Swal.fire({
title: '분양계약서가 업로드 되어 있습니다.',
icon: "warning"
const fax_sq = result.data.fax_sq;
location.replace("<?= site_url('m708/m708a/detail') ?>/" + fax_sq);
})
} else {
upload_bunyang();
}
} else {
Swal.fire({
title: result.msg,
@@ -1330,6 +1360,84 @@ $usr_level = session('usr_level');
});
}
// 분양계약서 업로드
function upload_bunyang() {
var vr_sq = $('#frmSave > #vr_sq').val();
var work_type = $('#frmSave > #work_type').val();
var atcl_no = $('#frmSave > #atcl_no').val();
if (work_type == '' || atcl_no == '' || vr_sq == '') {
swal.fire({
title: "매물정보를 확인하세요.",
icon: "warning"
});
return false;
} else {
swal.fire({
text: "확인결과를 저장하시겠습니까?",
type: "warning",
showCancelButton: true,
confirmButtonText: "예",
cancelButtonText: "아니오",
closeOnConfirm: false,
closeOnCancel: true,
confirmButtonColor: "#3085d6",
cancelButtonColor: "#d33",
}).then((result) => {
if (result.isConfirmed) {
const data = {
'curr_fax_sq': '<?= $data['fax_sq'] ?>'
};
$.ajax({
url: '/m708/m708a/saveResult3',
contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
method: 'POST',
data: data,
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"
})
},
success: function (result) {
if (result.code == '0') {
swal.fire({
title: '정상 처리되었습니다.',
icon: "success"
});
location.reload();
} else {
Swal.fire({
title: result.msg,
icon: "error"
})
}
}
});
}
});
}
}
// 다음매물
function btnSilverNextAssign_onclick() {
swal.fire({