|
|
@@ -14,7 +14,7 @@
|
|
|
* 1.0 2020.10.23 eskim 최초 작성
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
- <div class="modalPopup" data-width="1500" > <!-- data-width="1500" data-height="870" -->
|
|
|
+ <div class="modalPopup" data-width="1700" data-height="870"> <!-- data-width="1500" data-height="870" -->
|
|
|
<div class="panelStyle">
|
|
|
<div class="panelTitle">
|
|
|
<h2>상품상세</h2>
|
|
|
@@ -42,9 +42,9 @@
|
|
|
<col/>
|
|
|
<col width="11%"/>
|
|
|
<col width="14%"/>
|
|
|
- <col width="11%"/>
|
|
|
+ <col width="10%"/>
|
|
|
<col width="14%"/>
|
|
|
- <col width="11%"/>
|
|
|
+ <col width="10%"/>
|
|
|
<col width="14%"/>
|
|
|
</colgroup>
|
|
|
<tr>
|
|
|
@@ -90,18 +90,18 @@
|
|
|
<div class="panelStyle">
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
- <col width="10%"/>
|
|
|
- <col width="15%"/>
|
|
|
- <col width="15%"/>
|
|
|
- <col width="15%"/>
|
|
|
- <col width="15%"/>
|
|
|
- <col width="15%"/>
|
|
|
<col/>
|
|
|
+ <col width="12%"/>
|
|
|
+ <col width="17%"/>
|
|
|
+ <col width="12%"/>
|
|
|
+ <col width="17%"/>
|
|
|
+ <col width="12%"/>
|
|
|
+ <col width="17%"/>
|
|
|
</colgroup>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td rowspan="4" style="text-align:center">
|
|
|
- <img id="goodsImgUrl" src="" width="100px"/>
|
|
|
+ <img id="goodsImgUrl" src="" width="130px"/>
|
|
|
<input type="hidden" name="sysImgNm" id="sysImgNm" />
|
|
|
</td>
|
|
|
<th>상품타이틀</th>
|
|
|
@@ -362,11 +362,29 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>안전인증번호</th>
|
|
|
- <td colspan="5">
|
|
|
+ <td>
|
|
|
<input type="text" class="w150" id="certNum" name="certNum" maxlength="20"/>
|
|
|
<input type="hidden" id="certNumOrg" name="certNumOrg"/>
|
|
|
<button type="button" class="btn btn-success btn-lg" id="btnGoodsSafetyCertNum">안전인증</button>
|
|
|
</td>
|
|
|
+ <th>판매기간<em class="required" title="필수"></em></th>
|
|
|
+ <td colspan="3">
|
|
|
+ <input name="sellStYMD" id="sellStYMD" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="판매시작일" />
|
|
|
+ <select name="sellStHH" id="sellStHH" required="required" data-valid-name="판매 시작시간">
|
|
|
+ <th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" >시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <input name="sellStdt" id="sellStdt" type="hidden" />
|
|
|
+ ~
|
|
|
+ <input name="sellEdYMD" id="sellEdYMD" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="판매 종료일" />
|
|
|
+ <select name="sellEdHH" id="sellEdHH" required="required" data-valid-name="판매 종료시간">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="${#numbers.formatInteger(num,2)}==23 ? 'true'">시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <input name="sellEddt" id="sellEddt" type="hidden" />
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
@@ -971,9 +989,14 @@
|
|
|
$('#goodsDetailForm input[name=maxOrdQtyOrg]').val(result.maxOrdQty);
|
|
|
$('#goodsDetailForm input[name=dayMaxOrdQty]').val(result.dayMaxOrdQty);
|
|
|
$('#goodsDetailForm input[name=dayMaxOrdQtyOrg]').val(result.dayMaxOrdQty);
|
|
|
-
|
|
|
$('#goodsDetailForm input[name=goodsType]').val(result.goodsType);
|
|
|
$("#goodsDetailForm").find("#goodsTypeNm").html(result.goodsTypeNm);
|
|
|
+ $('#goodsDetailForm input[name=sellStdt]').val(result.sellStdt);
|
|
|
+ $('#goodsDetailForm input[name=sellStYMD]').val(result.sellStdt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD") );
|
|
|
+ $('#goodsDetailForm input[name=sellStHH]').val(result.sellStdt.toDate("YYYYMMDDHHmmss").format("HH") );
|
|
|
+ $('#goodsDetailForm input[name=sellEddt]').val(result.sellEddt);
|
|
|
+ $('#goodsDetailForm input[name=sellEdYMD]').val(result.sellEddt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD") );
|
|
|
+ $('#goodsDetailForm input[name=sellEdHH]').val(result.sellEddt.toDate("YYYYMMDDHHmmss").format("HH") );
|
|
|
|
|
|
cfnCreateCombo('/renderer/delvFee/list/' + result.supplyCompCd, $('#goodsDetailForm select[name=delvFeeCd]'), "[선택]", result.delvFeeCd);
|
|
|
$('#goodsDetailForm input[name=delvFeeCdOrg]').val(result.delvFeeCd);
|
|
|
@@ -1608,6 +1631,26 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ if(isNaN(Date.parse($("#goodsDetailForm input[name=sellStYMD]").val()))){
|
|
|
+ mcxDialog.alertC('날짜형식이 아닙니다.', {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDealForm input[name=sellStYMD]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(isNaN(Date.parse($("#goodsDetailForm input[name=sellEdYMD]").val()))){
|
|
|
+ mcxDialog.alertC('날짜형식이 아닙니다.', {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDealForm input[name=sellEdYMD]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
idx = 0;
|
|
|
|
|
|
@@ -1729,8 +1772,6 @@
|
|
|
if (addPrice != hidAddPrice){
|
|
|
$("#goodsDetailForm input[name=chStockDataYn]").val('Y');
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
idx++;
|
|
|
});
|
|
|
@@ -2073,27 +2114,37 @@
|
|
|
return true;
|
|
|
}
|
|
|
// 교환가능여부
|
|
|
- if ($("#goodsDetailForm input[name=changeableYnOrg]").val() != $("input[name=changeableYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=changeableYnOrg]").val() != $("#goodsDetailForm input[name=changeableYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
// 신규가입구매가능여부
|
|
|
- if ($("#goodsDetailForm input[name=newCustOrdYnOrg]").val() != $("input[name=newCustOrdYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=newCustOrdYnOrg]").val() != $("#goodsDetailForm input[name=newCustOrdYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
// 성인용품여부
|
|
|
- if ($("#goodsDetailForm input[name=adultYnOrg]").val() != $("input[name=adultYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=adultYnOrg]").val() != $("#goodsDetailForm input[name=adultYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
// 해외구매대행여부
|
|
|
- if ($("#goodsDetailForm input[name=foreignBuyYnOrg]").val() != $("input[name=foreignBuyYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=foreignBuyYnOrg]").val() != $("#goodsDetailForm input[name=foreignBuyYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
// 병행수입여부
|
|
|
- if ($("#goodsDetailForm input[name=parallelImportYnOrg]").val() != $("input[name=parallelImportYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=parallelImportYnOrg]").val() != $("#goodsDetailForm input[name=parallelImportYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
// 주문제작여부
|
|
|
- if ($("#goodsDetailForm input[name=orderMadeYnOrg]").val() != $("input[name=orderMadeYn]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=orderMadeYnOrg]").val() != $("#goodsDetailForm input[name=orderMadeYn]:checked").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 판매기간 시작일
|
|
|
+ if ($("#goodsDetailForm input[name=sellStdt]").val().toDate("YYYYMMDDHHmmss").format("YYYYMMDDHH") !=
|
|
|
+ ($("#goodsDetailForm input[name=sellStYMD]").val().replaceAll('-', '')+ $("#goodsDetailForm select[name=sellStHH]").val())){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 판매기간 종료일
|
|
|
+ if ($("#goodsDetailForm input[name=sellEddt]").val().toDate("YYYYMMDDHHmmss").format("YYYYMMDDHH") !=
|
|
|
+ ($("#goodsDetailForm input[name=sellEdYMD]").val().replaceAll('-', '')+ $("#goodsDetailForm select[name=sellEdHH]").val())){
|
|
|
return true;
|
|
|
}
|
|
|
|