|
|
@@ -73,61 +73,59 @@
|
|
|
}
|
|
|
|
|
|
var fnCustDeliveryAddListCallback = function (result) {
|
|
|
- $('#custDeliveryList').html('');
|
|
|
+ let html = '';
|
|
|
if (result.length < 1) {
|
|
|
$('#nodata').show();
|
|
|
- return;
|
|
|
+ } else {
|
|
|
+ $('#nodata').hide();
|
|
|
+ $.each(result, function (idx, custDeliveryAddr){
|
|
|
+ if (custDeliveryAddr.defaultYn === 'Y') {
|
|
|
+ html += '<tr class="addrs_default">\n';
|
|
|
+ } else {
|
|
|
+ html += '<tr>\n';
|
|
|
+ }
|
|
|
+ html += ' <td>\n';
|
|
|
+ html += ' <div class="block_line">\n';
|
|
|
+ html += ' <ul>\n';
|
|
|
+ html += ' <li>\n';
|
|
|
+ html += ' <span>'+custDeliveryAddr.recipNm +'</span>\n';
|
|
|
+ if (custDeliveryAddr.defaultYn === 'Y') {
|
|
|
+ html += ' <span class="tag">기본 배송지</span>\n';
|
|
|
+ }
|
|
|
+ if (custDeliveryAddr.shotDelvUseYn === 'Y') {
|
|
|
+ html += ' <span class="tag primary_line">총알배송</span>\n';
|
|
|
+ }
|
|
|
+ html += ' </li>\n';
|
|
|
+ html += ' <li>\n';
|
|
|
+ html += ' <span class="phone_number">'+custDeliveryAddr.recipPhnno+'</span>\n';
|
|
|
+ html += ' </li>\n';
|
|
|
+ html += ' <li>\n';
|
|
|
+ html += ' <span>'+custDeliveryAddr.recipBaseAddr + custDeliveryAddr.recipDtlAddr +'</span>\n';
|
|
|
+ html += ' </li>\n';
|
|
|
+ html += ' <li>\n';
|
|
|
+ html += ' 배송요청 사항 : <span>'+ custDeliveryAddr.delvMemo +'</span>\n';
|
|
|
+ html += ' </li>\n';
|
|
|
+ html += ' </ul>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </td>\n';
|
|
|
+ html += ' <td>\n';
|
|
|
+ html += ' <div class="button_box">\n';
|
|
|
+ html += ' <p>';
|
|
|
+ html += ' <button type="button" class="btn btn_default btn_sm" onclick="fnModiFyCustDelvAddr(\''+custDeliveryAddr.custDelvAddrSq+'\')">';
|
|
|
+ html += ' <span>수정</span>';
|
|
|
+ html += ' </button>';
|
|
|
+ html += ' </p>';
|
|
|
+ html += ' <p>';
|
|
|
+ html += ' <button type="button" class="btn btn_dark btn_sm" onclick="fnDeleteCustDelvAddr(\''+custDeliveryAddr.custDelvAddrSq+'\')">';
|
|
|
+ html += ' <span>삭제</span>';
|
|
|
+ html += ' </button>';
|
|
|
+ html += ' </p>';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </td>\n';
|
|
|
+ html += '</tr>\n';
|
|
|
+ });
|
|
|
}
|
|
|
- $('#nodata').hide();
|
|
|
- let html = '';
|
|
|
- $.each(result, function (idx, custDeliveryAddr){
|
|
|
- if (custDeliveryAddr.defaultYn === 'Y') {
|
|
|
- html += '<tr class="addrs_default">\n';
|
|
|
- } else {
|
|
|
- html += '<tr>\n';
|
|
|
- }
|
|
|
- html += ' <td>\n';
|
|
|
- html += ' <div class="block_line">\n';
|
|
|
- html += ' <ul>\n';
|
|
|
- html += ' <li>\n';
|
|
|
- html += ' <span>'+custDeliveryAddr.recipNm +'</span>\n';
|
|
|
- if (custDeliveryAddr.defaultYn === 'Y') {
|
|
|
- html += ' <span class="tag">기본 배송지</span>\n';
|
|
|
- }
|
|
|
- if (custDeliveryAddr.shotDelvUseYn === 'Y') {
|
|
|
- html += ' <span class="tag primary_line">총알배송</span>\n';
|
|
|
- }
|
|
|
- html += ' </li>\n';
|
|
|
- html += ' <li>\n';
|
|
|
- html += ' <span class="phone_number">'+custDeliveryAddr.recipPhnno+'</span>\n';
|
|
|
- html += ' </li>\n';
|
|
|
- html += ' <li>\n';
|
|
|
- html += ' <span>'+custDeliveryAddr.recipBaseAddr + custDeliveryAddr.recipDtlAddr +'</span>\n';
|
|
|
- html += ' </li>\n';
|
|
|
- html += ' <li>\n';
|
|
|
- html += ' 배송요청 사항 : <span>'+ custDeliveryAddr.delvMemo +'</span>\n';
|
|
|
- html += ' </li>\n';
|
|
|
- html += ' </ul>\n';
|
|
|
- html += ' </div>\n';
|
|
|
- html += ' </td>\n';
|
|
|
- html += ' <td>\n';
|
|
|
- html += ' <div class="button_box">\n';
|
|
|
- html += ' <p>';
|
|
|
- html += ' <button type="button" class="btn btn_default btn_sm" onclick="fnModiFyCustDelvAddr(\''+custDeliveryAddr.custDelvAddrSq+'\')">';
|
|
|
- html += ' <span>수정</span>';
|
|
|
- html += ' </button>';
|
|
|
- html += ' </p>';
|
|
|
- html += ' <p>';
|
|
|
- html += ' <button type="button" class="btn btn_dark btn_sm" onclick="fnDeleteCustDelvAddr(\''+custDeliveryAddr.custDelvAddrSq+'\')">';
|
|
|
- html += ' <span>삭제</span>';
|
|
|
- html += ' </button>';
|
|
|
- html += ' </p>';
|
|
|
- html += ' </div>\n';
|
|
|
- html += ' </td>\n';
|
|
|
- html += '</tr>\n';
|
|
|
- });
|
|
|
$('#custDeliveryList').html(html);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 배송지 추가
|