|
@@ -33,7 +33,7 @@
|
|
|
<input type="hidden" id="niClsfNm" name="niClsfNm" />
|
|
<input type="hidden" id="niClsfNm" name="niClsfNm" />
|
|
|
<input type="hidden" id="uploadGoodsUrl" name="uploadGoodsUrl" th:value="${@environment.getProperty('upload.goods.view')}"/>
|
|
<input type="hidden" id="uploadGoodsUrl" name="uploadGoodsUrl" th:value="${@environment.getProperty('upload.goods.view')}"/>
|
|
|
<input type="hidden" id="goodsType" name="goodsType" />
|
|
<input type="hidden" id="goodsType" name="goodsType" />
|
|
|
- <input type="hidden" id="GoodsComposeList" name="GoodsComposeList" />
|
|
|
|
|
|
|
+ <input type="hidden" id="goodsComposeList" name="goodsComposeList" />
|
|
|
<table class="frmStyle">
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col width="11%"/>
|
|
<col width="11%"/>
|
|
@@ -106,7 +106,7 @@
|
|
|
<th>상품타이틀</th>
|
|
<th>상품타이틀</th>
|
|
|
<td colspan="5">
|
|
<td colspan="5">
|
|
|
<input type="text" class="w80p" id="goodsTnm" name="goodsTnm" maxlength=""></input>
|
|
<input type="text" class="w80p" id="goodsTnm" name="goodsTnm" maxlength=""></input>
|
|
|
- <span class="byteChk"><em class="cBlue" id="goodsTnmLen">0</em>/200 bytes</span>
|
|
|
|
|
|
|
+ <span class="byteChk"><em class="cBlue" id="goodsTnmLen">0</em>/100 bytes</span>
|
|
|
<input type="hidden" id="goodsTnmOrg" name="goodsTnmOrg"/>
|
|
<input type="hidden" id="goodsTnmOrg" name="goodsTnmOrg"/>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -225,7 +225,9 @@
|
|
|
<th>최초승인일</th>
|
|
<th>최초승인일</th>
|
|
|
<td><span id="frstCfrmDtTxt"></span></td>
|
|
<td><span id="frstCfrmDtTxt"></span></td>
|
|
|
<th>판매수수료율<em class="required" title="필수"></em></th>
|
|
<th>판매수수료율<em class="required" title="필수"></em></th>
|
|
|
- <td><span id="sellFeeRateTxt"></span> %</td>
|
|
|
|
|
|
|
+ <td><input type="text" class="w80p aR" id="sellFeeRate" name="sellFeeRate" maxlength="10" data-valid-type="numeric"/> %
|
|
|
|
|
+ <input type="hidden" id="sellFeeRateOrg" name="sellFeeRateOrg"/>
|
|
|
|
|
+ </td>
|
|
|
<th>자사몰 노출여부<em class="required" title="필수"></em></th>
|
|
<th>자사몰 노출여부<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
<label class="rdoBtn"><input type="radio" name="selfMallYn" id="selfMallYnY" value="Y" checked/>Y</label>
|
|
<label class="rdoBtn"><input type="radio" name="selfMallYn" id="selfMallYnY" value="Y" checked/>Y</label>
|
|
@@ -252,7 +254,7 @@
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>PC포인트<em class="required" title="필수"></em></th>
|
|
<th>PC포인트<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <input type="text" class="w50 aR" id="pntPrate" name="pntPrate" data-valid-type="integer" maxlength="3"/> % /
|
|
|
|
|
|
|
+ <input type="text" class="w50 aR" id="pntPrate" name="pntPrate" data-valid-type="numeric" maxlength="3"/> % /
|
|
|
<input type="hidden" id="pntPrateOrg" name="pntPrateOrg"/>
|
|
<input type="hidden" id="pntPrateOrg" name="pntPrateOrg"/>
|
|
|
<label class="rdoBtn"><input type="radio" name="prePpntUsableYn" id="prePpntUsableYnY" value="Y"/>Y</label>
|
|
<label class="rdoBtn"><input type="radio" name="prePpntUsableYn" id="prePpntUsableYnY" value="Y"/>Y</label>
|
|
|
<label class="rdoBtn"><input type="radio" name="prePpntUsableYn" id="prePpntUsableYnN" value="N"/>N</label>
|
|
<label class="rdoBtn"><input type="radio" name="prePpntUsableYn" id="prePpntUsableYnN" value="N"/>N</label>
|
|
@@ -260,7 +262,7 @@
|
|
|
</td>
|
|
</td>
|
|
|
<th>모바일포인트<em class="required" title="필수"></em></th>
|
|
<th>모바일포인트<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <input type="text" class="w50 aR" id="pntMrate" name="pntMrate" data-valid-type="integer" maxlength="3"/> % /
|
|
|
|
|
|
|
+ <input type="text" class="w50 aR" id="pntMrate" name="pntMrate" data-valid-type="numeric" maxlength="3"/> % /
|
|
|
<input type="hidden" id="pntMrateOrg" name="pntMrateOrg"/>
|
|
<input type="hidden" id="pntMrateOrg" name="pntMrateOrg"/>
|
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnY" value="Y"/>Y</label>
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnY" value="Y"/>Y</label>
|
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnN" value="N"/>N</label>
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnN" value="N"/>N</label>
|
|
@@ -457,7 +459,8 @@
|
|
|
</div> <!-- class=panelContent -->
|
|
</div> <!-- class=panelContent -->
|
|
|
</div> <!-- class=panelStyle -->
|
|
</div> <!-- class=panelStyle -->
|
|
|
</div> <!-- class=modalPopup -->
|
|
</div> <!-- class=modalPopup -->
|
|
|
-<script type="text/javascript" src="/ux/plugins/summernote/summernote.js?v=2020102902"></script>
|
|
|
|
|
|
|
+<script type="text/javascript" src="/ux/plugins/summernote/summernote.js?v=2020103001"></script>
|
|
|
|
|
+<script type="text/javascript" src="/ux/plugins/gaga/gaga.summernote.js?v=2020103001"></script>
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
/*<![CDATA[*/
|
|
|
|
|
|
|
@@ -513,6 +516,7 @@
|
|
|
},
|
|
},
|
|
|
{headerName: "재고연동여부", field: "erpStockLinkYn" , width: 100, cellClass: 'text-center'},
|
|
{headerName: "재고연동여부", field: "erpStockLinkYn" , width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "자사몰노출여부", field: "selfMallYn" , width: 120, cellClass: 'text-center'},
|
|
{headerName: "자사몰노출여부", field: "selfMallYn" , width: 120, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "판매수수료율", field: "sellFeeRate" , width: 120, cellClass: 'text-right'},
|
|
|
{headerName: "사용자검색어", field: "goodsSnm1" , width: 150, cellClass: 'text-left'},
|
|
{headerName: "사용자검색어", field: "goodsSnm1" , width: 150, cellClass: 'text-left'},
|
|
|
{headerName: "검색어", field: "goodsSnm" , width: 450, cellClass: 'text-left', tooltipField: "goodsSnm"}
|
|
{headerName: "검색어", field: "goodsSnm" , width: 450, cellClass: 'text-left', tooltipField: "goodsSnm"}
|
|
|
];
|
|
];
|
|
@@ -548,16 +552,19 @@
|
|
|
{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
|
{headerName: "구성상품코드명", field: "compsGoodsNm" , width: 200, cellClass: 'text-left'},
|
|
{headerName: "구성상품코드명", field: "compsGoodsNm" , width: 200, cellClass: 'text-left'},
|
|
|
//{headerName: "순서", field: "dispOrd" , width: 80, cellClass: 'text-right',editable: true, required: true},
|
|
//{headerName: "순서", field: "dispOrd" , width: 80, cellClass: 'text-right',editable: true, required: true},
|
|
|
- {headerName: "수량", field: "qty" , width: 100, cellClass: 'text-right'
|
|
|
|
|
|
|
+ {headerName: "수량", field: "qty" , width: 80, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
|
},
|
|
},
|
|
|
{headerName: "판매가", field: "currPrice" , width: 100, cellClass: 'text-right'
|
|
{headerName: "판매가", field: "currPrice" , width: 100, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
|
},
|
|
},
|
|
|
- {headerName: "상품판매가", field: "compsCurrPrice" , width: 150, cellClass: 'text-right'
|
|
|
|
|
- ,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
|
|
|
|
|
+ {headerName: "상품판매가", field: "compsCurrPrice" , width: 100, cellClass: 'text-right'
|
|
|
|
|
+ ,valueFormatter: function(params) { return Number(params.value).addComma();}, editable: true, required: true,
|
|
|
|
|
+ cellEditor: 'textCellEditor',
|
|
|
|
|
+ cellEditorParams: { maxlength: 14, validType: 'numeric'}
|
|
|
},
|
|
},
|
|
|
- {headerName: "기준여부(품목-카테고리)", field: "baseYn", width: 180, cellClass: 'text-center'},
|
|
|
|
|
|
|
+ {headerName: "상품판매가ORG", field: "compsCurrPriceOrg" , width: 100, cellClass: 'text-right', hide: true},
|
|
|
|
|
+ {headerName: "기준여부(품목-카테고리)", field: "baseYn", width: 160, cellClass: 'text-center'},
|
|
|
{headerName: "전시여부", field: "useYn", width: 100, cellClass: 'text-center',editable: true,
|
|
{headerName: "전시여부", field: "useYn", width: 100, cellClass: 'text-center',editable: true,
|
|
|
cellEditor: 'agRichSelectCellEditor',
|
|
cellEditor: 'agRichSelectCellEditor',
|
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(useYnList), required: true },
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(useYnList), required: true },
|
|
@@ -570,13 +577,13 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
|
|
|
},
|
|
},
|
|
|
- {headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center' ,
|
|
|
|
|
|
|
+ {headerName: "등록일시", field: "regDt", width: 140, cellClass: 'text-center' ,
|
|
|
cellRenderer: function(params) {
|
|
cellRenderer: function(params) {
|
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
|
|
{headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "수정일시", field: "updDt", width: 150, cellClass: 'text-center' ,
|
|
|
|
|
|
|
+ {headerName: "수정일시", field: "updDt", width: 140, cellClass: 'text-center' ,
|
|
|
cellRenderer: function(params) {
|
|
cellRenderer: function(params) {
|
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
|
}
|
|
}
|
|
@@ -638,6 +645,7 @@
|
|
|
// 드래그
|
|
// 드래그
|
|
|
gridGoodsComposeOptions.suppressRowClickSelection = true;
|
|
gridGoodsComposeOptions.suppressRowClickSelection = true;
|
|
|
gridGoodsComposeOptions.rowDragManaged = true;
|
|
gridGoodsComposeOptions.rowDragManaged = true;
|
|
|
|
|
+ gridGoodsComposeOptions.stopEditingWhenGridLosesFocus = true;
|
|
|
//gridGoodsComposeOptions.rowDeselection = true;
|
|
//gridGoodsComposeOptions.rowDeselection = true;
|
|
|
//gridGoodsComposeOptions.enableMultiRowDragging = true;
|
|
//gridGoodsComposeOptions.enableMultiRowDragging = true;
|
|
|
//gridGoodsComposeOptions.rowSelection = 'multiple';
|
|
//gridGoodsComposeOptions.rowSelection = 'multiple';
|
|
@@ -708,13 +716,13 @@
|
|
|
|
|
|
|
|
$("#goodsDetailForm input[name=goodsNm]").val(result.goodsNm);
|
|
$("#goodsDetailForm input[name=goodsNm]").val(result.goodsNm);
|
|
|
$('#goodsDetailForm input[name=goodsNmOrg]').val(result.goodsNm);
|
|
$('#goodsDetailForm input[name=goodsNmOrg]').val(result.goodsNm);
|
|
|
- fnDataLengthCheck('goodsNm');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsNm',200);
|
|
|
$("#goodsDetailForm input[name=goodsTnm]").val(result.goodsTnm);
|
|
$("#goodsDetailForm input[name=goodsTnm]").val(result.goodsTnm);
|
|
|
$('#goodsDetailForm input[name=goodsTnmOrg]').val(result.goodsTnm);
|
|
$('#goodsDetailForm input[name=goodsTnmOrg]').val(result.goodsTnm);
|
|
|
- fnDataLengthCheck('goodsTnm');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsTnm',100);
|
|
|
$("#goodsDetailForm input[name=goodsSnm1]").val(result.goodsSnm1);
|
|
$("#goodsDetailForm input[name=goodsSnm1]").val(result.goodsSnm1);
|
|
|
$("#goodsDetailForm input[name=goodsSnm1Org]").val(result.goodsSnm1);
|
|
$("#goodsDetailForm input[name=goodsSnm1Org]").val(result.goodsSnm1);
|
|
|
- fnDataLengthCheck('goodsSnm1');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsSnm1',200);
|
|
|
$("#goodsDetailForm textarea[name=goodsSnmTxt]").val(result.goodsSnm);
|
|
$("#goodsDetailForm textarea[name=goodsSnmTxt]").val(result.goodsSnm);
|
|
|
$("#goodsDetailForm input[name=goodsSnm]").val(result.goodsSnm);
|
|
$("#goodsDetailForm input[name=goodsSnm]").val(result.goodsSnm);
|
|
|
$('#goodsDetailForm').find('#listPriceTxt').html(result.listPrice.addComma());
|
|
$('#goodsDetailForm').find('#listPriceTxt').html(result.listPrice.addComma());
|
|
@@ -749,7 +757,9 @@
|
|
|
}else{
|
|
}else{
|
|
|
$("#goodsDetailForm input:radio[name=selfMallYn]:input[value='N']").trigger('click');
|
|
$("#goodsDetailForm input:radio[name=selfMallYn]:input[value='N']").trigger('click');
|
|
|
}
|
|
}
|
|
|
- $('#goodsDetailForm').find('#sellFeeRateTxt').html(result.sellFeeRate);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $('#goodsDetailForm input[name=sellFeeRate]').val(result.sellFeeRate);
|
|
|
|
|
+ $("#goodsDetailForm input[name=sellFeeRateOrg]").val(result.sellFeeRate);
|
|
|
|
|
|
|
|
if (result.prePpntUsableYn == "Y"){
|
|
if (result.prePpntUsableYn == "Y"){
|
|
|
$("#goodsDetailForm input:radio[name=prePpntUsableYn]:input[value='Y']").trigger('click');
|
|
$("#goodsDetailForm input:radio[name=prePpntUsableYn]:input[value='Y']").trigger('click');
|
|
@@ -780,7 +790,7 @@
|
|
|
|
|
|
|
|
//입점상품일 경우
|
|
//입점상품일 경우
|
|
|
if (result.selfGoodsYn == "N"){
|
|
if (result.selfGoodsYn == "N"){
|
|
|
- $('#goodsDetailForm').find('#erplinkarea').hide();
|
|
|
|
|
|
|
+ //$('#goodsDetailForm').find('#erplinkarea').hide();
|
|
|
$("#goodsDetailForm").find("#selfGoodsDpTitle").html('원코드');
|
|
$("#goodsDetailForm").find("#selfGoodsDpTitle").html('원코드');
|
|
|
$("#goodsDetailForm").find("#selfGoodsDpTxt").html('<div id="supplyGoodsCdTxt"></div>');
|
|
$("#goodsDetailForm").find("#selfGoodsDpTxt").html('<div id="supplyGoodsCdTxt"></div>');
|
|
|
$('#goodsDetailForm').find('#supplyGoodsCdTxt').html(result.supplyGoodsCd);
|
|
$('#goodsDetailForm').find('#supplyGoodsCdTxt').html(result.supplyGoodsCd);
|
|
@@ -803,10 +813,11 @@
|
|
|
$("#goodsDetailForm").find("#goodsTypeNm").html(result.goodsTypeNm);
|
|
$("#goodsDetailForm").find("#goodsTypeNm").html(result.goodsTypeNm);
|
|
|
|
|
|
|
|
//상품상세
|
|
//상품상세
|
|
|
- $('#goodsDetailForm textarea[name=goodsPcTopDesc]').summernote('code', result.goodsPcTopDesc);
|
|
|
|
|
- $('#goodsDetailForm textarea[name=goodsMobileTopDesc]').summernote('code', result.goodsMobileTopDesc);
|
|
|
|
|
- $('#goodsDetailForm textarea[name=goodsPcDownDesc]').summernote('code', result.goodsPcDownDesc);
|
|
|
|
|
- $('#goodsDetailForm textarea[name=goodsMobileDownDesc]').summernote('code', result.goodsMobileDownDesc);
|
|
|
|
|
|
|
+ // 공지내용. Summernote에 값 세팅
|
|
|
|
|
+ gagaSn.setContents('#goodsPcTopDesc', result.goodsPcTopDesc);
|
|
|
|
|
+ gagaSn.setContents('#goodsMobileTopDesc', result.goodsMobileTopDesc);
|
|
|
|
|
+ gagaSn.setContents('#goodsPcDownDesc', result.goodsPcDownDesc);
|
|
|
|
|
+ gagaSn.setContents('#goodsMobileDownDesc', result.goodsMobileDownDesc);
|
|
|
|
|
|
|
|
if (!gagajf.isNull(result.niClsfNm)){
|
|
if (!gagajf.isNull(result.niClsfNm)){
|
|
|
$('#goodsDetailForm').find('#itemkindNoti').html('품목기준 고시분류 : ' + result.niClsfNm);
|
|
$('#goodsDetailForm').find('#itemkindNoti').html('품목기준 고시분류 : ' + result.niClsfNm);
|
|
@@ -862,16 +873,18 @@
|
|
|
//상품 구분에 따른 컬럼 사용여부처리 start
|
|
//상품 구분에 따른 컬럼 사용여부처리 start
|
|
|
//세트
|
|
//세트
|
|
|
if ("G056_S" == result.goodsType){
|
|
if ("G056_S" == result.goodsType){
|
|
|
- $('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
|
|
|
|
+ //$('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #GoodsComposeTab').css('display','block');
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #GoodsComposeTab').css('display','block');
|
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
|
$('#goodsDetailForm #goodsColorTab').css('display','none');
|
|
$('#goodsDetailForm #goodsColorTab').css('display','none');
|
|
|
|
|
+ $('#goodsDetailForm input[name=sellFeeRate]').attr('readonly', true);
|
|
|
|
|
+ $('#goodsDetailForm input[name=currPrice]').attr('readonly', true);
|
|
|
}else if ("G056_D" == result.goodsType){
|
|
}else if ("G056_D" == result.goodsType){
|
|
|
- $('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
|
|
- $('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
|
|
|
|
+ //$('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #GoodsComposeTab').css('display','block');
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #GoodsComposeTab').css('display','block');
|
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
|
$('#goodsDetailForm #goodsColorTab').css('display','none');
|
|
$('#goodsDetailForm #goodsColorTab').css('display','none');
|
|
|
|
|
+ $('#goodsDetailForm input[name=sellFeeRate]').attr('readonly', true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//상품 구분에 따른 컬럼 사용여부처리 end
|
|
//상품 구분에 따른 컬럼 사용여부처리 end
|
|
@@ -928,6 +941,7 @@
|
|
|
}else{ //딜
|
|
}else{ //딜
|
|
|
gagaAgGrid.showOrHideColumn(gridGoodsComposeOptions, 'qty', false);
|
|
gagaAgGrid.showOrHideColumn(gridGoodsComposeOptions, 'qty', false);
|
|
|
gagaAgGrid.showOrHideColumn(gridGoodsComposeOptions, 'compsCurrPrice', false);
|
|
gagaAgGrid.showOrHideColumn(gridGoodsComposeOptions, 'compsCurrPrice', false);
|
|
|
|
|
+ gagaAgGrid.showOrHideColumn(gridGoodsComposeOptions, 'compsCurrPriceOrg', false);
|
|
|
}
|
|
}
|
|
|
gagaAgGrid.fetch("/goods/detail/compose/list?goodsCd=" + params.goodsCd , gridGoodsComposeOptions);
|
|
gagaAgGrid.fetch("/goods/detail/compose/list?goodsCd=" + params.goodsCd , gridGoodsComposeOptions);
|
|
|
}
|
|
}
|
|
@@ -972,17 +986,17 @@
|
|
|
|
|
|
|
|
//상품명 길이표시
|
|
//상품명 길이표시
|
|
|
$("#goodsDetailForm input[name=goodsNm]").bind('focus focusout input keyup keydown paste change', function () {
|
|
$("#goodsDetailForm input[name=goodsNm]").bind('focus focusout input keyup keydown paste change', function () {
|
|
|
- fnDataLengthCheck('goodsNm');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsNm',200);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//상품타이틀 길이표시
|
|
//상품타이틀 길이표시
|
|
|
$("#goodsDetailForm input[name=goodsTnm]").bind('focus focusout input keyup keydown paste change', function () {
|
|
$("#goodsDetailForm input[name=goodsTnm]").bind('focus focusout input keyup keydown paste change', function () {
|
|
|
- fnDataLengthCheck('goodsTnm');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsTnm',100);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//사용자검색어 길이표시
|
|
//사용자검색어 길이표시
|
|
|
$("#goodsDetailForm input[name=goodsSnm1]").bind('focus focusout input keyup keydown paste change', function () {
|
|
$("#goodsDetailForm input[name=goodsSnm1]").bind('focus focusout input keyup keydown paste change', function () {
|
|
|
- fnDataLengthCheck('goodsSnm1');
|
|
|
|
|
|
|
+ fnDataLengthCheck('goodsSnm1',200);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//판매가 변경시 할인율 계산
|
|
//판매가 변경시 할인율 계산
|
|
@@ -1050,8 +1064,8 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//데이터 길이 확인
|
|
//데이터 길이 확인
|
|
|
- var fnDataLengthCheck = function(id){
|
|
|
|
|
- var maximumByte = 200;
|
|
|
|
|
|
|
+ var fnDataLengthCheck = function(id , maxByte){
|
|
|
|
|
+ var maximumByte = maxByte;
|
|
|
var strLenEng = $('#goodsDetailForm').find('#'+id).val().length;
|
|
var strLenEng = $('#goodsDetailForm').find('#'+id).val().length;
|
|
|
var cbyteStr = 0;
|
|
var cbyteStr = 0;
|
|
|
var liLenStr = 0;
|
|
var liLenStr = 0;
|
|
@@ -1186,8 +1200,6 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if(optCheck) {
|
|
if(optCheck) {
|
|
@@ -1268,7 +1280,25 @@
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ //판매 수수료율
|
|
|
|
|
+ if ( gagajf.isNull($("#goodsDetailForm input[name=sellFeeRate]").val())) {
|
|
|
|
|
+ mcxDialog.alertC("판매수수료를 입력해 주세요.", {
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $("#goodsDetailForm input[name=sellFeeRate]").focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(Number($("#goodsDetailForm input[name=sellFeeRate]").val()) < 0 || Number($("#goodsDetailForm input[name=sellFeeRate]").val()) > 100) {
|
|
|
|
|
+ mcxDialog.alertC("판매수수료를 올바르게 입력해주세요.", {
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $("#goodsDetailForm input[name=sellFeeRate]").focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
// 포인트
|
|
// 포인트
|
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=pntPrate]").val())) {
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=pntPrate]").val())) {
|
|
|
mcxDialog.alertC("PC 포인트를 입력해 주세요.", {
|
|
mcxDialog.alertC("PC 포인트를 입력해 주세요.", {
|
|
@@ -1279,6 +1309,15 @@
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ if(Number($("#goodsDetailForm input[name=pntPrate]").val()) < 0 || Number($("#goodsDetailForm input[name=pntPrate]").val()) > 100) {
|
|
|
|
|
+ mcxDialog.alertC("PC 포인트를 올바르게 입력해주세요.", {
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $("#goodsDetailForm input[name=pntPrate]").focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=pntMrate]").val())) {
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=pntMrate]").val())) {
|
|
|
mcxDialog.alertC("MOBILE 포인트를 입력해 주세요.", {
|
|
mcxDialog.alertC("MOBILE 포인트를 입력해 주세요.", {
|
|
|
sureBtnText: "확인",
|
|
sureBtnText: "확인",
|
|
@@ -1288,7 +1327,16 @@
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if(Number($("#goodsDetailForm input[name=pntMrate]").val()) < 0 || Number($("#goodsDetailForm input[name=pntMrate]").val()) > 100) {
|
|
|
|
|
+ mcxDialog.alertC("MOBILE 포인트를 올바르게 입력해주세요.", {
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $("#goodsDetailForm input[name=pntMrate]").focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 주문수량
|
|
// 주문수량
|
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=minOrdQty]").val())) {
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=minOrdQty]").val())) {
|
|
|
mcxDialog.alertC("최소주문 수량을 입력해 주세요.", {
|
|
mcxDialog.alertC("최소주문 수량을 입력해 주세요.", {
|
|
@@ -1545,6 +1593,7 @@
|
|
|
}else{
|
|
}else{
|
|
|
$("#goodsDetailForm").find("#dcRateTxt").html(dcRate);
|
|
$("#goodsDetailForm").find("#dcRateTxt").html(dcRate);
|
|
|
$("#goodsDetailForm input[name=dcRate]").val(dcRate);
|
|
$("#goodsDetailForm input[name=dcRate]").val(dcRate);
|
|
|
|
|
+ if (!fnGoodsComposeCheck()) return false;
|
|
|
fnSaveCheck();
|
|
fnSaveCheck();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1594,17 +1643,20 @@
|
|
|
|
|
|
|
|
if (comSelfGoodsYn != item.selfGoodsYn){
|
|
if (comSelfGoodsYn != item.selfGoodsYn){
|
|
|
optCheck = true;
|
|
optCheck = true;
|
|
|
- mcxDialog.alertC("구상상품중 자사/입점상품 구분값이 다릅니다.<br/>확인해 주세요", {
|
|
|
|
|
|
|
+ mcxDialog.alertC("구성상품중 자사/입점상품 구분값이 다릅니다.<br/>확인해 주세요", {
|
|
|
sureBtnText: "확인",
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
sureBtnClick: function() {
|
|
|
gridGoodsComposeOptions.api.setFocusedCell(index, "goodsCd", null);
|
|
gridGoodsComposeOptions.api.setFocusedCell(index, "goodsCd", null);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
|
|
+ /*
|
|
|
}else{
|
|
}else{
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (comSelfGoodsYn == "N" && (comSupplyCompCd != item.supplyCompCd)){
|
|
if (comSelfGoodsYn == "N" && (comSupplyCompCd != item.supplyCompCd)){
|
|
|
optCheck = true;
|
|
optCheck = true;
|
|
|
- mcxDialog.alertC("구상상품중 입점은 같은 업체 상품만 가능합니다.<br/>확인해 주세요", {
|
|
|
|
|
|
|
+ mcxDialog.alertC("구성상품중 입점은 같은 업체 상품만 가능합니다.<br/>확인해 주세요", {
|
|
|
sureBtnText: "확인",
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
sureBtnClick: function() {
|
|
|
gridGoodsComposeOptions.api.setFocusedCell(index, "goodsCd", null);
|
|
gridGoodsComposeOptions.api.setFocusedCell(index, "goodsCd", null);
|
|
@@ -1612,6 +1664,21 @@
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 세트 가격 체크
|
|
|
|
|
+ if ($("#goodsDetailForm input[name=goodsType]").val() == "G056_S"){
|
|
|
|
|
+ if (item.compsCurrPrice <= 0){
|
|
|
|
|
+ optCheck = true;
|
|
|
|
|
+ mcxDialog.alertC("구성상품 판매가를 확인해 주세요", {
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ gridGoodsComposeOptions.api.setFocusedCell(index, "compsCurrPrice", null);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
});
|
|
});
|
|
@@ -1646,7 +1713,7 @@
|
|
|
//구성상품
|
|
//구성상품
|
|
|
var allData = gagaAgGrid.getAllRowData(gridGoodsComposeOptions);
|
|
var allData = gagaAgGrid.getAllRowData(gridGoodsComposeOptions);
|
|
|
var jsonData = JSON.stringify(allData);
|
|
var jsonData = JSON.stringify(allData);
|
|
|
- $('#goodsDetailForm input[name=GoodsComposeList]').val(jsonData);
|
|
|
|
|
|
|
+ $('#goodsDetailForm input[name=goodsComposeList]').val(jsonData);
|
|
|
|
|
|
|
|
$('#goodsDetailForm input[name=goodsNm]').val($('#goodsDetailForm input[name=goodsNm]').val().trim().replace(/\n|\r/g, "<br/>").replace(/\"/gi, """).replace(/\'/gi, "'"));
|
|
$('#goodsDetailForm input[name=goodsNm]').val($('#goodsDetailForm input[name=goodsNm]').val().trim().replace(/\n|\r/g, "<br/>").replace(/\"/gi, """).replace(/\'/gi, "'"));
|
|
|
$('#goodsDetailForm input[name=goodsTnm]').val($('#goodsDetailForm input[name=goodsTnm]').val().trim().replace(/\n|\r/g, "<br/>").replace(/\"/gi, """).replace(/\'/gi, "'"));
|
|
$('#goodsDetailForm input[name=goodsTnm]').val($('#goodsDetailForm input[name=goodsTnm]').val().trim().replace(/\n|\r/g, "<br/>").replace(/\"/gi, """).replace(/\'/gi, "'"));
|
|
@@ -1793,7 +1860,12 @@
|
|
|
if ($("#goodsDetailForm input[name=ageGrpCdOrg]").val() != $("#goodsDetailForm select[name=ageGrpCd]").val()){
|
|
if ($("#goodsDetailForm input[name=ageGrpCdOrg]").val() != $("#goodsDetailForm select[name=ageGrpCd]").val()){
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
+ // 판매수수료율
|
|
|
|
|
+ if ($("#goodsDetailForm input[name=sellFeeRateOrg]").val() != $("#goodsDetailForm input[name=sellFeeRate]").val()){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|