fix : 상품관리 > 상품조회 > 상품 등록/복사재등록/수정 - input 값 trim 공통함수 추가
This commit is contained in:
@@ -1270,7 +1270,7 @@
|
||||
formData.append('files', file); // 서버에서 파일을 받을 때 'files'라는 이름으로 전송
|
||||
});
|
||||
|
||||
|
||||
trimInputValue();
|
||||
if (confirm('상품을 <spring:message code="confirm.common.insert"/>')) {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
@@ -1417,7 +1417,7 @@
|
||||
<td>
|
||||
<div class="optionApply__inputList">
|
||||
<div class="optionApply__inputContainer">
|
||||
<input class="input-text full"
|
||||
<input class="input-text full input-trim"
|
||||
type="text" name="optnNm1_normal" id="optnNm1_normal`+rowCount+`"
|
||||
title="일반옵션명">
|
||||
<!-- <button type="button" class="btn outline xsm optionDel01">삭제</button>-->
|
||||
@@ -1450,11 +1450,11 @@
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 up"><span class="visually-hidden">위로</span></button>
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 down"><span class="visually-hidden">아래로</span></button>
|
||||
</div>
|
||||
<input class="input-text full" type="text" title="일반옵션 값" id="optnVal1" name="optnVal1_normal">
|
||||
<input class="input-text full input-trim" type="text" title="일반옵션 값" id="optnVal1" name="optnVal1_normal">
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><div class="optionApply__priceContainer"><input class="input-text full" type="text" title="일반옵션코드" name="optnCd1_normal"></td></div>
|
||||
<td><div class="optionApply__priceContainer"><input class="input-text full input-trim" type="text" title="일반옵션코드" name="optnCd1_normal"></td></div>
|
||||
`
|
||||
+invntry_policy_qy+
|
||||
`
|
||||
@@ -1557,11 +1557,11 @@
|
||||
`
|
||||
+firstAdd+
|
||||
`
|
||||
<td><input class="input-text full" type="text" title="재고옵션 값1" name="optnVal1_invntry" /></td>
|
||||
<td><input class="input-text full" type="text" title="재고옵션 값2" name="optnVal2_invntry"/></td>
|
||||
<td><input class="input-text full" type="text" title="재고옵션 값3" name="optnVal3_invntry"/></td>
|
||||
<td><input class="input-text full" type="text" title="재고옵션 값4" name="optnVal4_invntry"/></td>
|
||||
<td><input class="input-text full" type="text" title="재고옵션 코드" name="optnCd1_invntry"/></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 값1" name="optnVal1_invntry" /></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 값2" name="optnVal2_invntry"/></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 값3" name="optnVal3_invntry"/></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 값4" name="optnVal4_invntry"/></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 코드" name="optnCd1_invntry"/></td>
|
||||
`
|
||||
+invntry_policy_qy+
|
||||
`
|
||||
@@ -1599,7 +1599,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input class="input-text full" type="text" title="재고옵션 정보" name="optnInfo_invntry"/></td>
|
||||
<td><input class="input-text full input-trim" type="text" title="재고옵션 정보" name="optnInfo_invntry"/></td>
|
||||
<td>
|
||||
<div class="compnbDscntAt_invntry">
|
||||
<label class="b-checkbox checkbox" for="compnbDscntAt02_`+rowCount+`">
|
||||
@@ -2532,14 +2532,14 @@
|
||||
<th>상품명<span class="red-7">*</span></th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="상품명" id="goodsNm" name="goodsNm" maxlength="35" placeholder="상품명을 입력해 주세요.">
|
||||
<input class="input-text full input-trim" type="text" title="상품명" id="goodsNm" name="goodsNm" maxlength="35" placeholder="상품명을 입력해 주세요.">
|
||||
<input type="hidden" id="sopmalCd" name="sopmalCd" value="${resultMap.BOGoodsVO.sopmalCd}"/>
|
||||
</div>
|
||||
</td>
|
||||
<th>상품명(영문)<span class="red-7">*</span></th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="상품명(영문)" id="goodsNmEn" name="goodsNmEn" maxlength="35" placeholder="상품명을 입력해 주세요.">
|
||||
<input class="input-text full input-trim" type="text" title="상품명(영문)" id="goodsNmEn" name="goodsNmEn" maxlength="35" placeholder="상품명을 입력해 주세요.">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -2547,13 +2547,13 @@
|
||||
<th>대표설명</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="대표설명" id="reprsntDc" name="reprsntDc" placeholder="상품 대표설명을 입력해 주세요.">
|
||||
<input class="input-text full input-trim" type="text" title="대표설명" id="reprsntDc" name="reprsntDc" placeholder="상품 대표설명을 입력해 주세요.">
|
||||
</div>
|
||||
</td>
|
||||
<th>간략설명</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="간략설명" id="srtDc" name="srtDc" placeholder="간략한 상품 설명을 입력해 주세요.">
|
||||
<input class="input-text full input-trim" type="text" title="간략설명" id="srtDc" name="srtDc" placeholder="간략한 상품 설명을 입력해 주세요.">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -2561,7 +2561,7 @@
|
||||
<th>검색어</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="검색어" id="kwrd" name="kwrd" placeholder="검색어는 ,(콤마)로 구분됩니다.">
|
||||
<input class="input-text full input-trim" type="text" title="검색어" id="kwrd" name="kwrd" placeholder="검색어는 ,(콤마)로 구분됩니다.">
|
||||
</div>
|
||||
</td>
|
||||
<th>브랜드</th>
|
||||
@@ -2584,7 +2584,7 @@
|
||||
<th>리뷰 연동</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" title="리뷰 연동" id="rvwGroupNb" name="rvwGroupNb" placeholder="상품 번호를 입력해주세요.">
|
||||
<input class="input-text full input-trim" type="text" title="리뷰 연동" id="rvwGroupNb" name="rvwGroupNb" placeholder="상품 번호를 입력해주세요.">
|
||||
</div>
|
||||
</td>
|
||||
<th>리뷰 작성 가능 여부</th>
|
||||
@@ -2724,7 +2724,7 @@
|
||||
<span class="control-label">사용자페이지 판매중지 문구 변경 -> </span>
|
||||
</label>
|
||||
</div>
|
||||
<label for="selStpgeCustomWords"></label><input type="text" class="input-text" id="selStpgeCustomWords" name="selStpgeCustomWords" value="${resultMap.goodsDtl.selStpgeCustomWords}"
|
||||
<label for="selStpgeCustomWords"></label><input type="text" class="input-text input-trim" id="selStpgeCustomWords" name="selStpgeCustomWords" value="${resultMap.goodsDtl.selStpgeCustomWords}"
|
||||
<c:if test="${resultMap.goodsDtl.selStpgeCustomWordsAt ne 'Y'}"> disabled </c:if>
|
||||
/>
|
||||
<span class="parentheses">) </span>
|
||||
@@ -2760,7 +2760,7 @@
|
||||
<th>예약 상품 안내문구</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text xl" type="text"
|
||||
<input class="input-text xl input-trim" type="text"
|
||||
id="resveGoodsGuidanceWordsCn" name="resveGoodsGuidanceWordsCn"
|
||||
title="예약 상품 안내문구">
|
||||
</div>
|
||||
@@ -2814,7 +2814,7 @@
|
||||
<tr>
|
||||
<th>노출 문구</th>
|
||||
<td>
|
||||
<input class="input-text xl" type="text" title="노출 문구" id="expsrSetupFwords" name="expsrSetupFwords" disabled>
|
||||
<input class="input-text xl input-trim" type="text" title="노출 문구" id="expsrSetupFwords" name="expsrSetupFwords" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -2891,7 +2891,7 @@
|
||||
<span class="ml-4">개의 수량을</span>
|
||||
<input type="text" id="rltmQyDdctStdrDt" class="datepicker" title="이벤트가판매 가수량차감기준일시 설정" autocomplete="off" disabled >
|
||||
<span class="ml-4">부터</span>
|
||||
<input type="text" class="input-text sm right" title="이벤트가판매 가수량차감시간 설정" value="0" id="rltmQyDdctTme" disabled>
|
||||
<input type="text" class="input-text sm right number" title="이벤트가판매 가수량차감시간 설정" value="0" id="rltmQyDdctTme" disabled>
|
||||
<span class="ml-4">분마다</span>
|
||||
<input class="input-text sm right number" id="rltmDdctQy" value="0" type="text" title="이벤트가판매 가수량차감수량 설정" disabled>
|
||||
<span class="ml-4">개씩 차감</span>
|
||||
@@ -3080,7 +3080,7 @@
|
||||
<td>
|
||||
<div class="optionApply__inputList">
|
||||
<div class="optionApply__inputContainer">
|
||||
<input class="input-text full" type="text" name="optnNm1_normal" title="옵션명" id="optnNm1_normal0">
|
||||
<input class="input-text full input-trim" type="text" name="optnNm1_normal" title="옵션명" id="optnNm1_normal0">
|
||||
<%-- <button type="button" class="btn outline xsm optionDel01">삭제</button>--%>
|
||||
<button type="button" class="btn outline xsm optionVal98" >옵션값 추가</button>
|
||||
</div>
|
||||
@@ -3111,18 +3111,18 @@
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 up"><span class="visually-hidden">위로</span></button>
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 down"><span class="visually-hidden">아래로</span></button>
|
||||
</div>
|
||||
<input class="input-text full" type="text" id="optnVal1" name="optnVal1_normal" title="옵션값">
|
||||
<input class="input-text full input-trim" type="text" id="optnVal1" name="optnVal1_normal" title="옵션값">
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="optionApply__priceContainer">
|
||||
<input class="input-text full" type="text" title="상품코드" name="optnCd1_normal">
|
||||
<input class="input-text full input-trim" type="text" title="상품코드" name="optnCd1_normal">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="optionApply__priceContainer">
|
||||
<input class="input-text full" type="text" value="220600" title="HS Code" name="hscode_normal" maxlength="10">
|
||||
<input class="input-text full input-trim" type="text" value="220600" title="HS Code" name="hscode_normal" maxlength="10">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
@@ -3280,16 +3280,16 @@
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input class="input-text full" name ="optnNm1_invntry" type="text" title="재고옵션명1" placeholder="옵션명1">
|
||||
<input class="input-text full input-trim" name ="optnNm1_invntry" type="text" title="재고옵션명1" placeholder="옵션명1">
|
||||
</td>
|
||||
<td>
|
||||
<input class="input-text full" name ="optnNm2_invntry" type="text" title="재고옵선명2" placeholder="옵션명2">
|
||||
<input class="input-text full input-trim" name ="optnNm2_invntry" type="text" title="재고옵선명2" placeholder="옵션명2">
|
||||
</td>
|
||||
<td>
|
||||
<input class="input-text full" name="optnNm3_invntry" type="text" title="재고옵션명3" placeholder="옵션명3">
|
||||
<input class="input-text full input-trim" name="optnNm3_invntry" type="text" title="재고옵션명3" placeholder="옵션명3">
|
||||
</td>
|
||||
<td>
|
||||
<input class="input-text full" name="optnNm4_invntry" type="text" title="재고옵션명4" placeholder="옵션명4">
|
||||
<input class="input-text full input-trim" name="optnNm4_invntry" type="text" title="재고옵션명4" placeholder="옵션명4">
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -3804,7 +3804,7 @@
|
||||
<th>배송 안내 문구</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<input class="input-text full" type="text" id="dlvyGuidanceWordsCn" name="dlvyGuidanceWordsCn" title="배송안내문구">
|
||||
<input class="input-text full input-trim" type="text" id="dlvyGuidanceWordsCn" name="dlvyGuidanceWordsCn" title="배송안내문구">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4014,7 +4014,7 @@
|
||||
//옵션명
|
||||
$closestTr.find('td:eq(' + tdCount++ + ') .optionApply__inputList').append(`
|
||||
<div class="optionApply__inputContainer" style="margin: 0">
|
||||
<input class="input-text full `+optnNm.attr('id')+`" type="hidden" value="`+optnNmVal+`" title="일반옵션명" name="optnNm1_normal">
|
||||
<input class="input-text full input-trim `+optnNm.attr('id')+`" type="hidden" value="`+optnNmVal+`" title="일반옵션명" name="optnNm1_normal">
|
||||
</div>
|
||||
`);
|
||||
//노출여부
|
||||
@@ -4038,14 +4038,14 @@
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 up"><span class="visually-hidden">위로</span></button>
|
||||
<button type="button" class="optionApply__moveBtn optionMove01 down"><span class="visually-hidden">아래로</span></button>
|
||||
</div>
|
||||
<input class="input-text full" value="" type="text" title="일반옵션값" name="optnVal1_normal">
|
||||
<input class="input-text full input-trim" value="" type="text" title="일반옵션값" name="optnVal1_normal">
|
||||
</div>
|
||||
`);
|
||||
$closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(`
|
||||
<input class="input-text full" type="text" title="일반옵션코드" name="optnCd1_normal">
|
||||
<input class="input-text full input-trim" type="text" title="일반옵션코드" name="optnCd1_normal">
|
||||
`);
|
||||
$closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(`
|
||||
<input class="input-text full" value="220600" type="text" title="HS Code" name="hscode_normal" maxlength="10">
|
||||
<input class="input-text full input-trim" value="220600" type="text" title="HS Code" name="hscode_normal" maxlength="10">
|
||||
`);
|
||||
$closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(`
|
||||
<input class="input-text full" value="0.0" type="text" title="실무게(KG)" name="realWt_normal">
|
||||
|
||||
Reference in New Issue
Block a user