|
|
@@ -13,7 +13,7 @@
|
|
|
* 1.0 2020.12.12 jsh77b 최초 작성
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
-<div class="modalPopup" data-width="1400" data-height="400">
|
|
|
+<div class="modalPopup" data-width="1400" data-height="350">
|
|
|
<div class="panelStyle">
|
|
|
<div class="panelTitle">
|
|
|
<h2>취소요청정보</h2>
|
|
|
@@ -59,18 +59,6 @@ var columnDefsOrderChangeList = [
|
|
|
, field : "ordChgSq"
|
|
|
, width : 100
|
|
|
, cellClass : 'text-center'
|
|
|
- , cellRenderer : function(params) {
|
|
|
- var rtnStr = "";
|
|
|
-
|
|
|
- // 취소요청, 교환요청, 반품요청 일때는 요청 정보 확인 팝업 정보
|
|
|
- if (params.data.chgStat == 'G685_20' || params.data.chgStat == 'G685_30' || params.data.chgStat == 'G685_40') {
|
|
|
- rtnStr = '<a href="javascript:void(0);" onclick="fnChgReqInfo(\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
- } else {
|
|
|
- rtnStr = params.value;
|
|
|
- }
|
|
|
-
|
|
|
- return rtnStr;
|
|
|
- }
|
|
|
},
|
|
|
{headerName: "요청구분" , field: "chgGbNm" , width: 100 , cellClass: 'text-center'},
|
|
|
{headerName: "상품코드" , field: "goodsCd" , width: 100 , cellClass: 'text-center'},
|
|
|
@@ -90,35 +78,69 @@ var columnDefsOrderChangeList = [
|
|
|
{headerName: "변경사유" , field: "chgReasonNm" , width: 100 , cellClass: 'text-center'},
|
|
|
{headerName: "요청메모" , field: "chgMemo" , width: 150 , cellClass: 'text-center'},
|
|
|
{headerName: "변경자명" , field: "chgerNm" , width: 100 , cellClass: 'text-center'},
|
|
|
- {headerName: "변경자핸드폰" , field: "chgerPhnno" , width: 120 , cellClass: 'text-center'},
|
|
|
- {
|
|
|
- headerName : "우편번호"
|
|
|
- , field : "chgerZipcode"
|
|
|
- , width : 220
|
|
|
- , cellClass : 'text-center'
|
|
|
- },
|
|
|
- {headerName: "주소(기본)" , field: "chgerBaseAddr" , width: 220, cellClass: 'text-left'},
|
|
|
- {headerName: "주소(상세)" , field: "chgerDtlAddr" , width: 150 , cellClass: 'text-center'},
|
|
|
- {
|
|
|
- headerName : "택배사전송"
|
|
|
- , field : "wdInvoiceSendYn"
|
|
|
- , width : 120
|
|
|
- , cellClass : 'text-center'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return (params.value == 'N') ? '미전송' : '전송';
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "회수지시전송"
|
|
|
- , field : "wdInvoiceSendYn"
|
|
|
- , width : 120
|
|
|
- , cellClass : 'text-center'
|
|
|
- },
|
|
|
- {headerName: "회수송장번호", field: "wdInvoiceNo", width: 90, cellClass: 'text-center'}
|
|
|
+ {headerName: "변경자핸드폰" , field: "chgerPhnno" , width: 120 , cellClass: 'text-center'}
|
|
|
];
|
|
|
var gridOptionsOrderChangeList = gagaAgGrid.getGridOptions(columnDefsOrderChangeList);
|
|
|
</script>
|
|
|
|
|
|
+<!-- function -->
|
|
|
+<script>
|
|
|
+// 취소승인
|
|
|
+var fnCnclReq = function (cnclGbn) {
|
|
|
+ var confirmStr = "";
|
|
|
+ var cnclLinkStr = "";
|
|
|
+
|
|
|
+ if (cnclGbn == "cancel") {
|
|
|
+ confirmStr = "요청번호 [" + ordChgSq + "] 에 대한 요청철회 처리를 하시겠습니까?";
|
|
|
+ cnclLinkStr = "/orderChange/cnclReqCancel";
|
|
|
+ } else {
|
|
|
+ confirmStr = "요청번호 [" + ordChgSq + "] 에 대한 취소승인 처리를 하시겠습니까?";
|
|
|
+ cnclLinkStr = "/orderChange/cnclReqComplete";
|
|
|
+ }
|
|
|
+
|
|
|
+ mcxDialog.confirm(confirmStr, {
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
+ sureBtnClick : function () {
|
|
|
+ var data = new Object();
|
|
|
+ data.ordNo = ordNo; //전역변수
|
|
|
+ data.ordChgSq = ordChgSq;
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ '/orderChange/cancel/confirm'
|
|
|
+ , jsonData
|
|
|
+ , function (result) {
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
+ fnReOpenOrderDetailPopup();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+// 취소요청철회
|
|
|
+var fnCancelConfirmRequestCancel = function (ordChgSq) {
|
|
|
+ mcxDialog.confirm("요청번호 [" + ordChgSq + "] 에 대한 요청철회 처리를 하시겠습니까?", {
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
+ sureBtnClick : function () {
|
|
|
+ var data = new Object();
|
|
|
+ data.ordChgSq = ordChgSq;
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ '/orderChange/cancel/wait/cancel'
|
|
|
+ , jsonData
|
|
|
+ , function (result) {
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
+ fnReOpenOrderDetailPopup();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
<script>
|
|
|
$(document).ready(function() {
|
|
|
// 1. 그리드생성
|