공통화 작업 및 워커 해더
This commit is contained in:
@@ -875,7 +875,18 @@ function editPriceInfo() {
|
||||
}
|
||||
|
||||
// 가격수정 저장
|
||||
function modifyPriceInfo() {
|
||||
function modifyPriceInfo(btn) {
|
||||
// 거래구분 값 검증
|
||||
var tradeType = $("#trade_type").val();
|
||||
if (!tradeType || tradeType.trim() === "") {
|
||||
Swal.fire({
|
||||
text: "거래구분을 선택해주세요.",
|
||||
icon: "warning",
|
||||
confirmButtonText: "확인"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Swal.fire({
|
||||
text: "저장 하시겠습니까?",
|
||||
icon: "warning",
|
||||
@@ -888,10 +899,21 @@ function modifyPriceInfo() {
|
||||
if (result.isConfirmed) {
|
||||
var params = {
|
||||
'rcpt_sq': window.rcpt_sq,
|
||||
'rcpt_key': $("#rcpt_key").val(),
|
||||
'rcpt_no': $("#rcpt_atclno").val(),
|
||||
'trade_type': tradeType,
|
||||
'rcpt_product_info2': $("#rcpt_product_info2").val(),
|
||||
'rcpt_product_info3': $("#rcpt_product_info3").val(),
|
||||
'rcpt_product_info4': $("#rcpt_product_info4").val(),
|
||||
'rcpt_product_info5': $("#rcpt_product_info5").val(),
|
||||
'rcpt_ptp_no': $("#rcpt_ptp_no").val(),
|
||||
'agent_tel': $("#agent_tel").val(),
|
||||
'rcpt_hscp_no': $(btn).data('hscp_no'),
|
||||
'rcpt_ptp_no': $(btn).data('ptp_no'),
|
||||
};
|
||||
|
||||
callAjax("/article/receipt/modifyPriceInfo", params, fn_result);
|
||||
console.log( params );
|
||||
// callAjax("/article/receipt/modifyPriceInfo", params, fn_result);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1524,8 +1546,11 @@ function initDropzone(imgType) {
|
||||
}
|
||||
|
||||
// 파일 타입별 최대 개수 설정
|
||||
const isV2 = document.getElementById('myDropzone')?.getAttribute('data-is-v2') === 'true';
|
||||
console.log('[Dropzone] isV2:', isV2);
|
||||
|
||||
const maxFilesConfig = {
|
||||
'I4': 15, // 매물사진
|
||||
'I4': isV2 ? 1 : 15, // 매물사진 (V2는 1장, 일반은 15장)
|
||||
'I8': 5, // 평면도
|
||||
'I9': 5, // 녹취파일
|
||||
'V1': 5 // 동영상
|
||||
|
||||
Reference in New Issue
Block a user