|
@@ -3,7 +3,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
*******************************************************************************
|
|
*******************************************************************************
|
|
|
* @source : OrderListForm.html
|
|
* @source : OrderListForm.html
|
|
|
- * @desc : 주문목록 Page
|
|
|
|
|
|
|
+ * @desc : 주문상세화면
|
|
|
*============================================================================
|
|
*============================================================================
|
|
|
* SISUN
|
|
* SISUN
|
|
|
* Copyright(C) 2020 TSIT, All rights reserved.
|
|
* Copyright(C) 2020 TSIT, All rights reserved.
|
|
@@ -107,6 +107,8 @@
|
|
|
<!-- data -->
|
|
<!-- data -->
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
var ordNo = [[${ordNo}]]; // 주문번호
|
|
var ordNo = [[${ordNo}]]; // 주문번호
|
|
|
|
|
+var userNo = [[${userNo}]] // 관리자번호
|
|
|
|
|
+
|
|
|
var orderInfo = [[${orderInfo}]]; // 기본정보
|
|
var orderInfo = [[${orderInfo}]]; // 기본정보
|
|
|
var orderGoodsInfo = [[${orderGoodsInfo}]]; // 주문상세정보
|
|
var orderGoodsInfo = [[${orderGoodsInfo}]]; // 주문상세정보
|
|
|
var orderFreeGiftInfo = [[${orderFreeGiftInfo}]]; // 주문사은품정보
|
|
var orderFreeGiftInfo = [[${orderFreeGiftInfo}]]; // 주문사은품정보
|
|
@@ -461,7 +463,7 @@ var columnDefsOrderFreeGiftInfo = [
|
|
|
{headerName: "주문사은품번호" , field: "ordFreeFigtSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
{headerName: "주문사은품번호" , field: "ordFreeFigtSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "주문번호" , field: "ordNo" , width: 100, cellClass: 'text-center'},
|
|
{headerName: "주문번호" , field: "ordNo" , width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "사은품프로모션" , field: "freeGiftSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
{headerName: "사은품프로모션" , field: "freeGiftSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
|
- {headerName: "사은품프로모션명" , field: "freeGiftName" , width: 100, cellClass: 'text-center'},
|
|
|
|
|
|
|
+ {headerName: "사은품프로모션명" , field: "freeGiftName" , width: 200, cellClass: 'text-center'},
|
|
|
{headerName: "사은품혜택번호" , field: "freeGiftValSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
{headerName: "사은품혜택번호" , field: "freeGiftValSq" , width: 100, cellClass: 'text-center', hide: true},
|
|
|
{
|
|
{
|
|
|
headerName : "사용포인트"
|
|
headerName : "사용포인트"
|
|
@@ -767,13 +769,13 @@ var columnDefsOrderMemoInfo = [
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
headerName : "삭제"
|
|
headerName : "삭제"
|
|
|
- , field : "orderMemoSeq"
|
|
|
|
|
|
|
+ , field : "orderMemoSq"
|
|
|
, width : 80
|
|
, width : 80
|
|
|
, cellClass : 'text-center'
|
|
, cellClass : 'text-center'
|
|
|
, cellRenderer : function (params) {
|
|
, cellRenderer : function (params) {
|
|
|
var retStr = '';
|
|
var retStr = '';
|
|
|
|
|
|
|
|
- if (params.data.updId == userId) {
|
|
|
|
|
|
|
+ if (params.data.updNo == userNo) {
|
|
|
retStr = '<button type="button" class="btn btn-danger" onclick="fnDeleteOrderMemo(\'' + params.data.ordNo + '\',\'' + params.value + '\');"> - </button>';
|
|
retStr = '<button type="button" class="btn btn-danger" onclick="fnDeleteOrderMemo(\'' + params.data.ordNo + '\',\'' + params.value + '\');"> - </button>';
|
|
|
}
|
|
}
|
|
|
return retStr;
|
|
return retStr;
|
|
@@ -892,7 +894,7 @@ $(document).ready(function () {
|
|
|
});
|
|
});
|
|
|
// 메모등록
|
|
// 메모등록
|
|
|
$('#btnCreateOrderMemo').on('click', function () {
|
|
$('#btnCreateOrderMemo').on('click', function () {
|
|
|
- fnCreateOrderMemo(ordNo, '', 'N');
|
|
|
|
|
|
|
+ fnCreateOrderMemo(ordNo, 0, 'N');
|
|
|
});
|
|
});
|
|
|
// 배송 정보 수정
|
|
// 배송 정보 수정
|
|
|
$('#btnUpdateOrderAddr').on('click', function () {
|
|
$('#btnUpdateOrderAddr').on('click', function () {
|
|
@@ -962,7 +964,7 @@ $(document).ready(function () {
|
|
|
'/order/cancel/confirm'
|
|
'/order/cancel/confirm'
|
|
|
, jsonData
|
|
, jsonData
|
|
|
, function (result) {
|
|
, function (result) {
|
|
|
- uifnPopClose('popupOrderDetail');
|
|
|
|
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
fnReOpenOrderDetailPopup();
|
|
fnReOpenOrderDetailPopup();
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
@@ -984,7 +986,7 @@ $(document).ready(function () {
|
|
|
'/order/cancel/wait/cancel'
|
|
'/order/cancel/wait/cancel'
|
|
|
, jsonData
|
|
, jsonData
|
|
|
, function (result) {
|
|
, function (result) {
|
|
|
- uifnPopClose('popupOrderDetail');
|
|
|
|
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
fnReOpenOrderDetailPopup();
|
|
fnReOpenOrderDetailPopup();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -1028,8 +1030,8 @@ $(document).ready(function () {
|
|
|
sureBtnText : "확인",
|
|
sureBtnText : "확인",
|
|
|
sureBtnClick : function () {
|
|
sureBtnClick : function () {
|
|
|
var data = new Object();
|
|
var data = new Object();
|
|
|
- data.ordNo = ordNo;
|
|
|
|
|
- data.orderMemoSq = orderMemoSq;
|
|
|
|
|
|
|
+ data.ordNo = ordNo;
|
|
|
|
|
+ data.seq = orderMemoSq;
|
|
|
|
|
|
|
|
var jsonData = JSON.stringify(data);
|
|
var jsonData = JSON.stringify(data);
|
|
|
gagajf.ajaxJsonSubmit(
|
|
gagajf.ajaxJsonSubmit(
|
|
@@ -1182,7 +1184,7 @@ $(document).ready(function () {
|
|
|
gagajf.ajaxJsonSubmit(
|
|
gagajf.ajaxJsonSubmit(
|
|
|
'/order/exchange/request/cancel'
|
|
'/order/exchange/request/cancel'
|
|
|
, jsonData, function () {
|
|
, jsonData, function () {
|
|
|
- uifnPopClose('popupOrderDetail');
|
|
|
|
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
fnReOpenOrderDetailPopup();
|
|
fnReOpenOrderDetailPopup();
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
@@ -1250,7 +1252,7 @@ $(document).ready(function () {
|
|
|
'/order/wdinvoice/send/save'
|
|
'/order/wdinvoice/send/save'
|
|
|
, jsonData
|
|
, jsonData
|
|
|
, function (result) {
|
|
, function (result) {
|
|
|
- uifnPopClose('popupOrderDetail');
|
|
|
|
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
fnReOpenOrderDetailPopup();
|
|
fnReOpenOrderDetailPopup();
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
@@ -1292,7 +1294,7 @@ $(document).ready(function () {
|
|
|
'/order/complete/delivery/changed'
|
|
'/order/complete/delivery/changed'
|
|
|
, jsonData
|
|
, jsonData
|
|
|
, function (result) {
|
|
, function (result) {
|
|
|
- uifnPopClose('popupOrderDetail');
|
|
|
|
|
|
|
+ uifnPopupClose('popupOrderDetail');
|
|
|
fnReOpenOrderDetailPopup();
|
|
fnReOpenOrderDetailPopup();
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|