|
|
@@ -90,8 +90,8 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th>주문상세상태</th>
|
|
|
- <td colspan="5">
|
|
|
+ <th>주문상태</th>
|
|
|
+ <td>
|
|
|
<div class="multiCheckBox" style="width:270px">
|
|
|
<button type="button" class="sltBtn" style="overflow-x: hidden; padding-right:5px;">[전체]</button>
|
|
|
<ul style="display: none; box-shadow: 3px 3px 3px; overflow-y: scroll; height: 112px;">
|
|
|
@@ -112,6 +112,22 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</td>
|
|
|
+ <th>결제타입</th>
|
|
|
+ <td>
|
|
|
+ <select name="pgGb">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${pgGbList}" th:each="oneData, status : ${pgGbList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>결제수단</th>
|
|
|
+ <td>
|
|
|
+ <select name="payMeans">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${payMeansList}" th:each="oneData, status : ${payMeansList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
<th rowspan="5">키워드<i class="star"></i></th>
|
|
|
<td rowspan="5">
|
|
|
<select name="search" id="search">
|
|
|
@@ -135,7 +151,7 @@
|
|
|
</select>
|
|
|
</td>
|
|
|
<th>변경요청처리상태</th>
|
|
|
- <td>
|
|
|
+ <td colspan="3">
|
|
|
<select name="chgStat">
|
|
|
<option value="">[전체]</option>
|
|
|
<option value="9999">[품절취소]</option>
|
|
|
@@ -143,14 +159,6 @@
|
|
|
th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
- <th>결제수단</th>
|
|
|
- <td>
|
|
|
- <select name="payMeans">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${payMeansList}" th:each="oneData, status : ${payMeansList}" th:value="${oneData.cd}"
|
|
|
- th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>주문자명</th>
|
|
|
@@ -228,7 +236,7 @@
|
|
|
<ul class="panelBar">
|
|
|
<li>
|
|
|
<button type="button" class="btn btn-info btn-lg" onclick="fnOrderExcelList();">엑셀다운로드</button>
|
|
|
- <!-- <button type="button" class="btn btn-info btn-lg" th:if="${userNo == 8 or userNo == 14 or userNo == 11}" onclick="fnCreateSampleOrder();">주문생성</button> -->
|
|
|
+ <button type="button" class="btn btn-info btn-lg" th:if="${userNo == 8 or userNo == 14 or userNo == 11}" onclick="fnCreateSampleOrder();">주문생성</button>
|
|
|
</li>
|
|
|
<li class="aR">
|
|
|
검색결과 : <strong><span id="rowCntOrderList">0</span> 건</strong>
|
|
|
@@ -279,273 +287,260 @@ var uploadGoodsUrl = [[${@environment.getProperty('upload.goods.view')}]];
|
|
|
// 1. 주문기본정보
|
|
|
var columnDefsOrderList = [
|
|
|
{
|
|
|
- headerName : "주문기본정보"
|
|
|
- , cellClass : 'text-center'
|
|
|
- , children : [
|
|
|
- {
|
|
|
- headerName : "주문번호"
|
|
|
- , field : 'ordNo'
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- , cellRenderer : function (params) {
|
|
|
- var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
- if (!roleCd.startsWith("C")) {
|
|
|
- return "<a href=\"javascript:void(0);\" onclick=\"fnOpenOrderDetailPopup('" + params.value + "');\">" + params.value + "</a>";
|
|
|
- } else {
|
|
|
- return params.value;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "주문자"
|
|
|
- , field : "ordNm"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-left'
|
|
|
- , sortable : true
|
|
|
- , cellRenderer : function (params) {
|
|
|
- var custNo = '';
|
|
|
- if (!gagajf.isNull(params.data.custNo)) {
|
|
|
- custNo = params.data.custNo;
|
|
|
- }
|
|
|
-
|
|
|
- var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
- if (!roleCd.startsWith("C") && !gagajf.isNull(params.data.custNo) && params.data.mallGb === '10' ) {
|
|
|
- return '<a href="javascript:void(0);" onclick=\"cfnOpenCustDetailPopup(' + params.data.custNo + ');\">' + params.value + '(' + custNo + ')' + '</a>';
|
|
|
- } else {
|
|
|
- return params.value + '(' + custNo + ')';
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "고객고유번호" , field: "custNo" , width: 120, cellClass: 'text-center', hide: true},
|
|
|
- {headerName: "외부몰" , field: "extmallNm" , width: 100, cellClass: 'text-center', sortable: true},
|
|
|
- {headerName: "휴대폰번호" , field: "orderPhnno" , width: 120, cellClass: 'text-center', hide: true},
|
|
|
- {
|
|
|
- headerName : "사이트"
|
|
|
- , field : "siteCd"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(siteCdList, params.data.siteCd);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "프론트"
|
|
|
- , field : "frontGb"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(frontGbList, params.data.frontGb);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "몰구분"
|
|
|
- , field : "mallGb"
|
|
|
- , width : 60
|
|
|
- , cellClass : 'text-center'
|
|
|
- , hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(mallGbList, params.data.mallGb);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "주문일시"
|
|
|
- , field : "ordDt"
|
|
|
- , width : 140
|
|
|
- , cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.ordDt);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "결제수단"
|
|
|
- , field : "payMeans"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-center'
|
|
|
- , hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(payMeansList, params.data.payMeans);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "신규/교환"
|
|
|
- , field : "ordExchGb"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-center',
|
|
|
- valueGetter : function (params) {
|
|
|
- return params.data.ordExchGb === 'O' ? '신규' : '교환';
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "주문상태"
|
|
|
- , field : "ordDtlStatNm"
|
|
|
- , width : 120
|
|
|
- , cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- },
|
|
|
- {headerName: "출고처", field: "delvLocNm", width: 110, cellClass: 'text-center', sortable: true, hide:true},
|
|
|
- ]
|
|
|
+ headerName : "주문번호"
|
|
|
+ , field : 'ordNo'
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
+ if (!roleCd.startsWith("C")) {
|
|
|
+ return "<a href=\"javascript:void(0);\" onclick=\"fnOpenOrderDetailPopup('" + params.value + "');\">" + params.value + "</a>";
|
|
|
+ } else {
|
|
|
+ return params.value;
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- headerName : "상품정보"
|
|
|
- , cellClass : 'text-center'
|
|
|
- , children : [
|
|
|
- {headerName: "상품코드" , field: "goodsCd" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
- {headerName: "브랜드" , field: "brandEnm" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
- {headerName: "구성유형" , field: "goodsTypeNm" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
- {headerName: "상품명" , field: "goodsNm" , width: 200 , cellClass: 'text-center' , sortable: true},
|
|
|
- {
|
|
|
- headerName : "이미지"
|
|
|
- , field : "sysImgNm"
|
|
|
- , width : 100
|
|
|
- , height : 60
|
|
|
- , cellClass : 'text-center'
|
|
|
- ,cellRenderer : function(params) {
|
|
|
- return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "옵션1" , field: "colorNm" , width: 120 , cellClass: 'text-center' , sortable: true},
|
|
|
- {headerName: "옵션2" , field: "optCd2" , width: 120 , cellClass: 'text-center' , sortable: true},
|
|
|
- {
|
|
|
- headerName : "외부몰벤더"
|
|
|
- , field : "vendorId"
|
|
|
- , width : 110
|
|
|
- , cellClass : 'text-center'
|
|
|
- , hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(vendorList, params.data.vendorId);
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "외부몰주문번호" , field: "extmallOrderId" , width: 150, cellClass: 'textFormat', sortable: true},
|
|
|
- {headerName: "외부몰부주문번호" , field: "agentOrderId" , width: 120, cellClass: 'textFormat', sortable: true},
|
|
|
- {
|
|
|
- headerName : "주문수량"
|
|
|
- , field : "ordQty"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter: function (params) {
|
|
|
- return params.data.ordQty.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "취소수량"
|
|
|
- , field : "cnclRtnQty"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.cnclRtnQty.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "주문금액"
|
|
|
- , field : "ordAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.ordAmt.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "취소반품금액"
|
|
|
- , field : "cnclRtnAmt"
|
|
|
- , width : 120
|
|
|
- , cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.cnclRtnAmt.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "총할인금액"
|
|
|
- , field : "totDcAmt"
|
|
|
- , width : 120
|
|
|
- , cellClass : 'text-right'
|
|
|
- , valueGetter: function (params) {
|
|
|
- return params.data.totDcAmt.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "실판매금액"
|
|
|
- , field : "realOrdAmt"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.realOrdAmt.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "원코드" , field: "supplyGoodsCd" , width: 130, cellClass: 'text-center', sortable: true},
|
|
|
- {
|
|
|
- headerName : "정상/이월"
|
|
|
- , field : "formalGb"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(formalGbList, params.data.formalGb);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "출고처지정일시"
|
|
|
- , field : "delvAssignDt"
|
|
|
- , width : 150
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.delvAssignDt);
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "송장출력일시"
|
|
|
- , field : "invoiceDt"
|
|
|
- , width : 150
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.invoiceDt);
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "출고택배사" , field: "shipCompNm" , width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "출고송장" , field: "invoiceNo" , width: 150, cellClass: 'text-center'},
|
|
|
- {
|
|
|
- headerName : "출고일시"
|
|
|
- , field : "delvResDt"
|
|
|
- , width : 150
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter: function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.delvResDt);
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "품절여부" , field: "soldoutYn" , width: 90 , cellClass: 'text-center', sortable: true},
|
|
|
- {headerName: "품절메모" , field: "soldoutMemo" , width: 120 , cellClass: 'text-left'},
|
|
|
- {
|
|
|
- headerName : "품절일시"
|
|
|
- , field : "soldoutRegDt"
|
|
|
- , width : 150
|
|
|
- , cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.soldoutRegDt);
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "품절처리자", field: "soldoutRegId", width: 120, cellClass: 'text-center'},
|
|
|
- {headerName: "수취인명" , field: "recipNm" , width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "수취인연락처" , field: "recipPhnno" , width: 120, cellClass: 'text-center'},
|
|
|
- {headerName: "수취인주소" , field: "recipAddr" , width: 500, cellClass: 'text-left'},
|
|
|
- {
|
|
|
- headerName : "배송메모"
|
|
|
- , field : "delvMemo"
|
|
|
- , width : 200
|
|
|
- , cellClass : 'left'
|
|
|
- , valueGetter: function (params) {
|
|
|
- var delvMemo = '';
|
|
|
- if (!gagajf.isNull(params.data.delvMemo)) {
|
|
|
- delvMemo = fnRemoveEmojis(params.data.delvMemo);
|
|
|
- }
|
|
|
- return delvMemo;
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "출고메모", field: "dstrbtNote", width: 200, cellClass: 'left'}
|
|
|
- ]
|
|
|
- }
|
|
|
+ headerName : "주문자"
|
|
|
+ , field : "ordNm"
|
|
|
+ , width : 140
|
|
|
+ , cellClass : 'text-left'
|
|
|
+ , sortable : true
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ var custNo = '';
|
|
|
+ if (!gagajf.isNull(params.data.custNo)) {
|
|
|
+ custNo = params.data.custNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
+ if (!roleCd.startsWith("C") && !gagajf.isNull(params.data.custNo) && params.data.mallGb === '10' ) {
|
|
|
+ return '<a href="javascript:void(0);" onclick=\"cfnOpenCustDetailPopup(' + params.data.custNo + ');\">' + params.value + ' (' + params.data.custId + ')' + '</a>';
|
|
|
+ } else {
|
|
|
+ return params.value + ' (' + params.data.custId + ')';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "고객고유번호" , field: "custNo" , width: 120, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "외부몰" , field: "extmallNm" , width: 100, cellClass: 'text-center', sortable: true},
|
|
|
+ {headerName: "휴대폰번호" , field: "orderPhnno" , width: 120, cellClass: 'text-center', hide: true},
|
|
|
+ {
|
|
|
+ headerName : "사이트"
|
|
|
+ , field : "siteCd"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , hide : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(siteCdList, params.data.siteCd);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "프론트"
|
|
|
+ , field : "frontGb"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(frontGbList, params.data.frontGb);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "몰구분"
|
|
|
+ , field : "mallGb"
|
|
|
+ , width : 60
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , hide : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(mallGbList, params.data.mallGb);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "주문일시"
|
|
|
+ , field : "ordDt"
|
|
|
+ , width : 140
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.ordDt);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "결제수단"
|
|
|
+ , field : "payMeans"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , hide : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(payMeansList, params.data.payMeans);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "신규/교환"
|
|
|
+ , field : "ordExchGb"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-center',
|
|
|
+ valueGetter : function (params) {
|
|
|
+ return params.data.ordExchGb === 'O' ? '신규' : '교환';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "주문상태"
|
|
|
+ , field : "ordDtlStatNm"
|
|
|
+ , width : 120
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ },
|
|
|
+ {headerName: "출고처", field: "delvLocNm", width: 110, cellClass: 'text-center', sortable: true, hide:true},
|
|
|
+ {headerName: "상품코드" , field: "goodsCd" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {headerName: "브랜드" , field: "brandEnm" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {headerName: "구성유형" , field: "goodsTypeNm" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {headerName: "상품명" , field: "goodsNm" , width: 200 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {
|
|
|
+ headerName : "이미지"
|
|
|
+ , field : "sysImgNm"
|
|
|
+ , width : 100
|
|
|
+ , height : 60
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ ,cellRenderer : function(params) {
|
|
|
+ return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "옵션1" , field: "colorNm" , width: 120 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {headerName: "옵션2" , field: "optCd2" , width: 120 , cellClass: 'text-center' , sortable: true},
|
|
|
+ {
|
|
|
+ headerName : "외부몰벤더"
|
|
|
+ , field : "vendorId"
|
|
|
+ , width : 110
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , hide : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(vendorList, params.data.vendorId);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "외부몰주문번호" , field: "extmallOrderId" , width: 120, cellClass: 'textFormat', sortable: true},
|
|
|
+ {headerName: "에이전트주문번호" , field: "agentOrderId" , width: 120, cellClass: 'textFormat', sortable: true},
|
|
|
+ {
|
|
|
+ headerName : "주문수량"
|
|
|
+ , field : "ordQty"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ return params.data.ordQty.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "취소수량"
|
|
|
+ , field : "cnclRtnQty"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.cnclRtnQty.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "주문금액"
|
|
|
+ , field : "ordAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.ordAmt.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "취소/반품금액"
|
|
|
+ , field : "cnclRtnAmt"
|
|
|
+ , width : 120
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.cnclRtnAmt.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "총할인금액"
|
|
|
+ , field : "totDcAmt"
|
|
|
+ , width : 120
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ return params.data.totDcAmt.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "실판매금액"
|
|
|
+ , field : "realOrdAmt"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.realOrdAmt.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "정상/이월"
|
|
|
+ , field : "formalGb"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(formalGbList, params.data.formalGb);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "출고처지정일시"
|
|
|
+ , field : "delvAssignDt"
|
|
|
+ , width : 150
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.delvAssignDt);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "송장출력일시"
|
|
|
+ , field : "invoiceDt"
|
|
|
+ , width : 150
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.invoiceDt);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "출고택배사" , field: "shipCompNm" , width: 150, cellClass: 'text-center'},
|
|
|
+ {headerName: "출고송장" , field: "invoiceNo" , width: 150, cellClass: 'text-center'},
|
|
|
+ {
|
|
|
+ headerName : "출고일시"
|
|
|
+ , field : "delvResDt"
|
|
|
+ , width : 150
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.delvResDt);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "품절여부" , field: "soldoutYn" , width: 90 , cellClass: 'text-center', sortable: true},
|
|
|
+ {headerName: "품절메모" , field: "soldoutMemo" , width: 120 , cellClass: 'text-left'},
|
|
|
+ {
|
|
|
+ headerName : "품절일시"
|
|
|
+ , field : "soldoutRegDt"
|
|
|
+ , width : 150
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.soldoutRegDt);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "품절처리자", field: "soldoutRegId", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "수취인명" , field: "recipNm" , width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "수취인연락처" , field: "recipPhnno" , width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "수취인주소" , field: "recipAddr" , width: 400, cellClass: 'text-left'},
|
|
|
+ {
|
|
|
+ headerName : "배송메모"
|
|
|
+ , field : "delvMemo"
|
|
|
+ , width : 200
|
|
|
+ , cellClass : 'left'
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ var delvMemo = '';
|
|
|
+ if (!gagajf.isNull(params.data.delvMemo)) {
|
|
|
+ delvMemo = fnRemoveEmojis(params.data.delvMemo);
|
|
|
+ }
|
|
|
+ return delvMemo;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "출고메모", field: "dstrbtNote", width: 200, cellClass: 'left'}
|
|
|
];
|
|
|
|
|
|
var gridOptionsOrderList = gagaAgGrid.getGridOptions(columnDefsOrderList);
|
|
|
@@ -557,6 +552,7 @@ var currOrdNo = '';
|
|
|
|
|
|
// 조회
|
|
|
$('#btnOrderSearch').on('click', function () {
|
|
|
+ $("#searchForm input[name=pageNo]").val('1');
|
|
|
fnSearchList();
|
|
|
});
|
|
|
|
|
|
@@ -664,7 +660,7 @@ $('#searchForm select[name=supplyCompCd]').on('change', function() {
|
|
|
// 페이징
|
|
|
$('#searchForm select[name=pageSize]').on('change', function() {
|
|
|
$("#searchForm input[name=pageNo]").val('1');
|
|
|
- fnGoodsListSearch($("#searchForm input[name=searchGb]").val());
|
|
|
+ fnSearchList($("#searchForm input[name=searchGb]").val());
|
|
|
});
|
|
|
|
|
|
// 초기설정
|
|
|
@@ -685,6 +681,19 @@ var fnRemoveEmojis = function (str) {
|
|
|
var regex = /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;
|
|
|
return str.replace(regex, '');
|
|
|
};
|
|
|
+
|
|
|
+// 엔터키 조회
|
|
|
+$('#searchForm input[name=orderPhnno], #searchForm input[name=condition]').on('keypress' ,function (event) {
|
|
|
+ if (event.which === 13) {
|
|
|
+ $("#searchForm input[name=pageNo]").val('1');
|
|
|
+ fnSearchList();
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+// 휴대폰 자동 하이픈
|
|
|
+$('#searchForm input[name=orderPhnno]').on('input keyup keydown paste change', function () {
|
|
|
+ cfnCellPhonnHypen(this);
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
</html>
|