|
|
@@ -0,0 +1,435 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko"
|
|
|
+ xmlns:th="http://www.thymeleaf.org" >
|
|
|
+<!--
|
|
|
+ *******************************************************************************
|
|
|
+ * @source : GoodsMassRegisterForm.html
|
|
|
+ * @desc : 대량상품등록
|
|
|
+ *============================================================================
|
|
|
+ * SISUN
|
|
|
+ * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
+ *============================================================================
|
|
|
+ * VER DATE AUTHOR DESCRIPTION
|
|
|
+ * === =========== ========== =============================================
|
|
|
+ * 1.0 2020.11.18 eskim 최초 작성
|
|
|
+ *******************************************************************************
|
|
|
+ -->
|
|
|
+ <div id="main">
|
|
|
+ <!-- 메인타이틀 영역 -->
|
|
|
+ <div class="main-title">
|
|
|
+ </div>
|
|
|
+ <!-- //메인타이틀 영역 -->
|
|
|
+ <!-- 메뉴 설명 -->
|
|
|
+ <div class="infoBox menu-desc">
|
|
|
+ </div>
|
|
|
+ <!-- 검색조건 영역 -->
|
|
|
+ <form id="massForm" name="massForm" >
|
|
|
+ <div class="panelStyle">
|
|
|
+ <ul class="notice">
|
|
|
+ <li>상품을 대량으로 등록하는 페이지입니다.</li>
|
|
|
+ <li>상품을 등록 할 경우 [승인대기] 상태이며, STYLE 관리자의 [승인완료] 상태 변경 후 FRONT애 노출이 가능합니다.</li>
|
|
|
+ <li><th:block th:if="${erpSyncYn == 'N'}"><em><b>ERP연동여부가 [N]입니다. 관리자에게 문의하세요.</b></em></th:block></li>
|
|
|
+ </ul>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="center">
|
|
|
+ <th:block th:if="${sessionInfo.roleCd == 'G001_0000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A001'
|
|
|
+ or sessionInfo.roleCd == 'G001_A100'
|
|
|
+ or sessionInfo.roleCd == 'G001_A101'
|
|
|
+ or (sessionInfo.roleCd == 'G001_E000' and ( #strings.isEmpty(supplyCompCd) or supplyCompCd =='P' or supplyCompCd =='T') )
|
|
|
+ }">
|
|
|
+ <button type="button" class="btn btn-default btn-lg" id="btnInit" onclick="cfnDownloadSampleFile('SF001');">자사상품 등록양식 다운로드</button>
|
|
|
+ <button th:if="${erpSyncYn == 'Y'}" type="button" class="btn btn-primary btn-lg" id="btnGoodsSelfCreate" >자사상품 등록</button>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${sessionInfo.roleCd == 'G001_0000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A001'
|
|
|
+ or sessionInfo.roleCd == 'G001_A100'
|
|
|
+ or sessionInfo.roleCd == 'G001_B000'
|
|
|
+ or (sessionInfo.roleCd == 'G001_E000' and (#strings.isEmpty(supplyCompCd) or (supplyCompCd != 'P' and supplyCompCd != 'T')) )
|
|
|
+ }">
|
|
|
+ <button type="button" class="btn btn-default btn-lg" id="btnInit" onclick="cfnDownloadSampleFile('SF005');">입점상품 등록양식 다운로드</button>
|
|
|
+ <button th:if="${erpSyncYn == 'Y'}" type="button" class="btn btn-primary btn-lg" id="btnGoodsCreate" >입점상품 등록</button>
|
|
|
+ </th:block>
|
|
|
+ <label class="off"><a href="javascript:void(0);" id="excelList" style="display: none;">엑셀다운로드</a></label>
|
|
|
+ <!-- 추후 대량 수정 권한-->
|
|
|
+ <span th:if="${sessionInfo.roleCd == 'G001_0000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A000'
|
|
|
+ or sessionInfo.roleCd == 'G001_A001'
|
|
|
+ or sessionInfo.roleCd == 'G001_A100'
|
|
|
+ or sessionInfo.roleCd == 'G001_A101'
|
|
|
+ or sessionInfo.roleCd == 'G001_B000'
|
|
|
+ }"
|
|
|
+ th:style="'padding-left:80px;'">
|
|
|
+ <button type="button" class="btn btn-default btn-lg" id="btnInit" onclick="cfnDownloadSampleFile('SF014');">상품대량수정 등록양식 다운로드</button>
|
|
|
+ <button th:if="${erpSyncYn == 'Y'}" type="button" class="btn btn-primary btn-lg" id="btnGoodsUpdate" >입점상품 등록</button>
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="panelStyle" >
|
|
|
+ <!-- 검색조건 영역 -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h3><i class="fa fa-info-circle"></i>아래 검색조건 중 하나를 꼭 입력해 주세요.</h3>
|
|
|
+ </div>
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="40%"/>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>상품코드<i class="star"></i></th>
|
|
|
+ <td><input type="text" class="w130" name="condition" id="condition" maxlength="50"/></td>
|
|
|
+ <th>등록여부</th>
|
|
|
+ <td>
|
|
|
+ <select name="regSuccYn" id="regSuccYn">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>등록일<i class="star"></i></th>
|
|
|
+ <td colspan="3" id="sellTerms"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li>
|
|
|
+ <button type="button" class="btn btn-gray btn-lg" id="btnInit" >초기화</button>
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnSearch" >조회</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <!-- //검색조건 영역 -->
|
|
|
+ </div>
|
|
|
+ <div class="panelStyle">
|
|
|
+ <!-- 검색결과 영역 -->
|
|
|
+ <!-- 상단버튼 영역 -->
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="left">
|
|
|
+ <!-- 아이콘 툴팁 -->
|
|
|
+ <div class="iconTooltip">
|
|
|
+ <i class="fa fa-info" aria-hidden="true"></i>
|
|
|
+ <span class="left aL" style="width:580px;">
|
|
|
+ <!-- class="left" 또는 class="right" -->
|
|
|
+ <em>상품미등록</em><br/>
|
|
|
+ - 상품코드 오류 : 빈값, 길이 11이 아닐경우, '_'가 미존재<br/>
|
|
|
+ - 업체 오류 : 빈값, 'W'나 'F' 가 아닌경우<br/>
|
|
|
+ - 상품명 오류 : 빈값<br/>
|
|
|
+ - 제조국 오류 : 빈값<br/>
|
|
|
+ - 제조년월일 오류 : 빈값, 날짜형식이 맞는지<br/>
|
|
|
+ - ERP 미존재 상품코드 : ERP에 상품코드가 존재하는지<br/>
|
|
|
+ - 스타일 연도 오류 : 온라인에서 관리되지 않는 스타일 연도<br/>
|
|
|
+ - 성별 오류 : 온라인에서 관리되지 않는 성별<br/>
|
|
|
+ - 컬러 오류 : 온라인에서 관리되지 않는 컬러<br/>
|
|
|
+ - 상품코드 중복등록요청 : 등록된 상품코드 등록요청<br/>
|
|
|
+ - 품목 오류 : 온라인에서 관리되지 않는 품목<br/>
|
|
|
+ - ERP 브랜드 오류 : 온라인에서 관리되지 않는 ERP 브랜드<br/>
|
|
|
+ - 이미지 유형 오류 : 온라인에서 관리되지 않는 이미지유형<br/>
|
|
|
+ - 상품이미지 필수 오류 : IMG_PATH1
|
|
|
+ - 품목의 고시정보 없음 : 품목의 고시분류 매핑이 안되어 있는 경우<br/>
|
|
|
+ - 고시분류 오류 : 등록요청 고시분류 와 온라인에서 품목과 매핑된 고시분류가 다른 경우<br/>
|
|
|
+ <em>상품등록</em><br/>
|
|
|
+ - ERP 상품 사이즈 정보 없음 : ERP에 상품코드의 사이즈가 없을 경우<br/>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //아이콘 툴팁 -->
|
|
|
+ </li>
|
|
|
+ <li class="right">
|
|
|
+ <button type="button" class="btn btn-default btn-lg" id="btnGoodsRegExcelDownLoad">엑셀다운로드</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <!-- //상단버튼 영역 -->
|
|
|
+ <div id="gridList" style="width: 100%; height: 500px;" class="ag-theme-balham"></div>
|
|
|
+ <!-- 검색결과 영역 -->
|
|
|
+ </div>
|
|
|
+ <!-- //검색조건 영역 -->
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+<script th:inline="javascript">
|
|
|
+/*<![CDATA[*/
|
|
|
+ var niClsfCdList = gagajf.convertToArray([[${niClsfCdList}]]);
|
|
|
+ var columnDefs = [
|
|
|
+ {headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
|
+ {headerName: "작업일시", field: "regDt", width: 150, cellClass: 'text-center'},
|
|
|
+ {headerName: "상품등록여부", field: "regSuccYn", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "등록결과메세지", field: "regFailRsn", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "등록브랜드코드", field: "brandCd", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "업체코드", field: "supplyCompCd", width: 130, cellClass: 'text-center'},
|
|
|
+ {headerName: "상품코드", field: "goodsCd", width: 130, cellClass: 'text-center'},
|
|
|
+ {headerName: "상품명", field: "goodsNm", width: 150, cellClass: 'text-left'},
|
|
|
+ {headerName: "상품타이틀", field: "goodsTnm", width: 150, cellClass: 'text-left'},
|
|
|
+ {headerName: "검색어", field: "goodsSnm1", width: 150, cellClass: 'text-left'},
|
|
|
+ {headerName: "제조국", field: "makeNm", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "제조일", field: "makeYmd", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "이지미타입", field: "imgType", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "이미지경로1", field: "imgPath1", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로2", field: "imgPath2", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로3", field: "imgPath3", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로4", field: "imgPath4", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로5", field: "imgPath5", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로6", field: "imgPath6", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로7", field: "imgPath7", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로8", field: "imgPath8", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로9", field: "imgPath9", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로10", field: "imgPath10", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로11", field: "imgPath11", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로12", field: "imgPath12", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로13", field: "imgPath13", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로14", field: "imgPath14", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로15", field: "imgPath15", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로16", field: "imgPath16", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로17", field: "imgPath17", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로18", field: "imgPath18", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로19", field: "imgPath19", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "이미지경로20", field: "imgPath20", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시분류코드", field: "niClsfCd", width: 200, cellClass: 'text-center',
|
|
|
+ cellEditorParams: { values: gagaAgGrid.extractValues(niClsfCdList) },
|
|
|
+ valueFormatter: function (params) { return gagaAgGrid.lookupValue(niClsfCdList, params.value); },
|
|
|
+ valueParser: function (params) { return gagaAgGrid.lookupKey(niClsfCdList, params.newValue); }
|
|
|
+ },
|
|
|
+ {headerName: "고시내용1", field: "niContent1", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용2", field: "niContent2", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용3", field: "niContent3", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용4", field: "niContent4", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용5", field: "niContent5", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용6", field: "niContent6", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용7", field: "niContent7", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용8", field: "niContent8", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용9", field: "niContent9", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용10", field: "niContent10", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용11", field: "niContent11", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용12", field: "niContent12", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용13", field: "niContent13", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용14", field: "niContent14", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용15", field: "niContent15", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용16", field: "niContent16", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용17", field: "niContent17", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용18", field: "niContent18", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용19", field: "niContent19", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용20", field: "niContent20", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용21", field: "niContent21", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용22", field: "niContent22", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용23", field: "niContent23", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용24", field: "niContent24", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용25", field: "niContent25", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용26", field: "niContent26", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용27", field: "niContent27", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "고시내용28", field: "niContent28", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "브랜드", field: "brandCd", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "품목", field: "itemkindCd", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "스타일연도", field: "styleYear", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "시즌", field: "seasonCd", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "성별", field: "sexGb", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "품번", field: "goodsNum", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "형태", field: "shapeCd", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "색상", field: "colorCd", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "TAG가", field: "tagPrice", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "정상가", field: "listPrice", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "판매가", field: "currPrice", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "공급업체상품코드", field: "supplyGoodsCd", width: 130, cellClass: 'text-center'},
|
|
|
+ {headerName: "정상이월", field: "formalGb", width: 100, cellClass: 'text-center'},
|
|
|
+ /* {headerName: "옵션문자열", field: "optStr", width: 200, cellClass: 'text-center'},
|
|
|
+ {headerName: "안전재고문자열", field: "baseStockStr", width: 200, cellClass: 'text-center'},
|
|
|
+ {headerName: "현재고문자열", field: "currStockStr", width: 200, cellClass: 'text-center'}, */
|
|
|
+ {headerName: "매입유형", field: "buyingType", width: 80, cellClass: 'text-center'}
|
|
|
+ ];
|
|
|
+
|
|
|
+ // Get GridOptions
|
|
|
+ var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+
|
|
|
+ cfnCreateCalendar('#sellTerms', 'stDate', 'edDate', true, '등록일', 'X');
|
|
|
+ gagaAgGrid.createGrid('gridList', gridOptions);
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ //자사상품대량등록 클릭시
|
|
|
+ $('#btnGoodsSelfCreate').on('click', function() {
|
|
|
+ cfnExcelUploadPopup('createSelfGoods', 'createSelfGoods');
|
|
|
+ });
|
|
|
+
|
|
|
+ var createSelfGoods = function(result){
|
|
|
+ var data = {procJob : result.procJob
|
|
|
+ ,excelFileNm : result.excelFileNm
|
|
|
+ };
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit('/goods/mass/excelupload/create', jsonData, fnGoodsSelfCreateCallBack);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnGoodsSelfCreateCallBack = function(result){
|
|
|
+
|
|
|
+ var date = new Date();
|
|
|
+ $("#massForm input[name=stDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ $("#massForm input[name=edDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ fnGoodsListSearch();
|
|
|
+ }
|
|
|
+
|
|
|
+ //입점상품대량등록 클릭시
|
|
|
+ $('#btnGoodsCreate').on('click', function() {
|
|
|
+ cfnExcelUploadPopup('createGoods', 'createGoods');
|
|
|
+ });
|
|
|
+
|
|
|
+ var createGoods = function(result){
|
|
|
+ var data = {procJob : result.procJob
|
|
|
+ ,excelFileNm : result.excelFileNm
|
|
|
+ };
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit('/goods/mass/excelupload/create', jsonData, fnGoodsCreateCallBack);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnGoodsCreateCallBack = function(result){
|
|
|
+
|
|
|
+ var date = new Date();
|
|
|
+ $("#massForm input[name=stDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ $("#massForm input[name=edDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ fnGoodsListSearch();
|
|
|
+ }
|
|
|
+
|
|
|
+ //상품대량수정 클릭시
|
|
|
+ $('#btnGoodsUpdate').on('click', function() {
|
|
|
+ cfnExcelUploadPopup('updateGoods', 'updateGoods');
|
|
|
+ });
|
|
|
+
|
|
|
+ var updateGoods = function(result){
|
|
|
+ var data = {procJob : result.procJob
|
|
|
+ ,excelFileNm : result.excelFileNm
|
|
|
+ };
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit('/goods/mass/excelupload/update', jsonData, fnGoodsUpdateCallBack);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnGoodsUpdateCallBack = function(result){
|
|
|
+
|
|
|
+ var date = new Date();
|
|
|
+ $("#massForm input[name=stDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ $("#massForm input[name=edDate]").val(date.format("YYYY-MM-DD"));
|
|
|
+ fnGoodsListSearch();
|
|
|
+ }
|
|
|
+
|
|
|
+ $('#btnGoodsRegExcelDownLoad').on('click', function() {
|
|
|
+
|
|
|
+ var date = new Date().format("YYYYMMDDHHmmss");
|
|
|
+ var params = {
|
|
|
+
|
|
|
+ fileName : "상품대량등록결과_"+ date,
|
|
|
+ sheetName: "DATA"
|
|
|
+ }
|
|
|
+ gridOptions.excelStyles = [
|
|
|
+ {
|
|
|
+ id: 'text-center',
|
|
|
+ dataType: 'string',
|
|
|
+ font: {size : 10, bold: false}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 'text-left',
|
|
|
+ dataType: 'string',
|
|
|
+ font: {size : 10, bold: false}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+
|
|
|
+ gridOptions.api.exportDataAsExcel(params);
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ // 초기화 클릭시
|
|
|
+ $('#btnInit').on('click', function() {
|
|
|
+ $('#massForm')[0].reset();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 조회클릭시
|
|
|
+ $('#btnSearch').on('click', function() {
|
|
|
+
|
|
|
+ if( gagajf.isNull($("#massForm input[name=condition]").val())
|
|
|
+ && gagajf.isNull($("#massForm input[name=stDate]").val())
|
|
|
+ && gagajf.isNull($("#massForm input[name=edDate]").val())){
|
|
|
+
|
|
|
+ mcxDialog.alertC("검색조건을 입력하세요.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $('#massForm input[name=condition]').focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ var fromDate = $('#massForm input[name=stDate]').val();
|
|
|
+ var toDate = $('#massForm input[name=edDate]').val();
|
|
|
+
|
|
|
+ if (!gagajf.isNull(fromDate) || !gagajf.isNull(toDate)) {
|
|
|
+
|
|
|
+ if (gagajf.isNull(fromDate) || gagajf.isNull(toDate)) {
|
|
|
+ mcxDialog.alertC("등록일 조회시 시작일자와 종료일자를 입력하세요.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $('#massForm input[name=stDate]').focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (fromDate > toDate) {
|
|
|
+ mcxDialog.alertC("노출기간 시작일자는 종료일자 보다 클 수 없습니다.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $('#massForm input[name=stDate]').focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fnGoodsListSearch();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 조회
|
|
|
+ var fnGoodsListSearch = function(gbn) {
|
|
|
+ gagaAgGrid.fetch('/goods/reg/log/list', gridOptions, '#massForm');
|
|
|
+ }
|
|
|
+
|
|
|
+ //안내팝업
|
|
|
+ var fnGoodsOpenCommentPopup = function(id) {
|
|
|
+ var str = '<div class="popupWrap" id="'+id+'" style="z-index:30">';
|
|
|
+ str = str + '<div class="popup modeless ui-widget-content ui-draggable ui-draggable-handle" style="display: block; position: relative;">';
|
|
|
+ str = str + '<button type="button" class="close" onclick="uifnPopClose(\''+id+'\')"><i class="fa fa-times"></i></button>';
|
|
|
+ str = str + '<div class="mdPopContent">';
|
|
|
+ str = str + '<ul class="notice ">';
|
|
|
+ str = str + '- <em>상품미등록</em>';
|
|
|
+ str = str + '<li>상품코드 오류 : 빈값, 길이 11, \'_\'가 존재하는지</li>';
|
|
|
+ str = str + '<li>업체 오류 : 빈값, \'W\'나 \'F\' 가 아닌경우</li>';
|
|
|
+ str = str + '<li>상품명 오류 : 빈값</li>';
|
|
|
+ str = str + '<li>제조국 오류 : 빈값</li>';
|
|
|
+ str = str + '<li>제조년월일 오류 : 빈값, 날짜형식이 맞는지</li>';
|
|
|
+ str = str + '<li>ERP 미존재 상품코드 : ERP에 상품코드가 존재하는지</li>';
|
|
|
+ str = str + '<li>스타일 연도 오류 : 온라인에서 관리되지 않는 스타일 연도</li>';
|
|
|
+ str = str + '<li>성별 오류 : 온라인에서 관리되지 않는 성별</li>';
|
|
|
+ str = str + '<li>컬러 오류 : 온라인에서 관리되지 않는 컬러</li>';
|
|
|
+ str = str + '<li>상품코드 중복등록요청 : 등록된 상품코드 등록요청</li>';
|
|
|
+ str = str + '<li>품목 오류 : 온라인에서 관리되지 않는 품목</li>';
|
|
|
+ str = str + '<li>ERP 브랜드 오류 : 온라인에서 관리되지 않는 ERP 브랜드</li>';
|
|
|
+ str = str + '<li>이미지 유형 오류 : 온라인에서 관리되지 않는 이미지유형</li>';
|
|
|
+ str = str + '<li>상품이미지 필수 오류 : A타입 : IMG_PATH1: 정사각형이미지(앞면),IMG_PATH3: 작사각형이미지(정면),<br/></li>';
|
|
|
+ str = str + '<span style="padding-left:185px;"></span>';
|
|
|
+ str = str + 'IMG_PATH4: 직사각형이미지(뒷면), IMG_PATH5: 상품상세컷(통자)';
|
|
|
+ str = str + '<li>상품이미지 필수 오류 : B타입 : IMG_PATH1, IMG_PATH2</li>';
|
|
|
+ str = str + '<li>품목의 고시정보 없음 : 품목의 고시분류 매핑이 안되어 있는 경우</li>';
|
|
|
+ str = str + '<li>고시분류 오류 : 등록요청 고시분류 와 온라인에서 품목과 매핑된 고시분류가 다른 경우</li>';
|
|
|
+ str = str + '- <em>상품등록</em>';
|
|
|
+ str = str + '<li>ERP 상품 사이즈 정보 없음 : ERP에 상품코드의 사이즈가 없을 경우</li>';
|
|
|
+ str = str + '</ul>';
|
|
|
+ str = str + '</div></div></div>';
|
|
|
+
|
|
|
+ if ($('#'+ id).length == 0) {
|
|
|
+ $('body').append(str);
|
|
|
+ }
|
|
|
+ $("#"+id).css({display:"block"});
|
|
|
+ }
|
|
|
+
|
|
|
+/*]]>*/
|
|
|
+</script>
|
|
|
+</html>
|