Browse Source

미납금관리 개발중

marseyes 2 years ago
parent
commit
9e247b8011

+ 6 - 5
src/main/webapp/app/loanmng/LOANMNG03010.html

@@ -60,6 +60,7 @@
60 60
 				                <input type="hidden" id="ITP_FORM_LOANMNG03010_VIEW_BRAND_ID" name="brandId" value="">
61 61
 				                <input type="hidden" id="ITP_FORM_LOANMNG03010_VIEW_STORE_ID" name="storeId" value="">
62 62
 				                <input type="hidden" id="ITP_FORM_LOANMNG03010_VIEW_STTL_MGNT_UNQ_NO" name="sttlMgntUnqNo" value="">
63
+				                <input type="hidden" id="ITP_FORM_LOANMNG03010_VIEW_RCPT_YN" value="">
63 64
 				    
64 65
 				                <section class="itp_form_sec">
65 66
 				                    <h4 class="itp_form_tit">정산 상세정보</h4>
@@ -89,17 +90,17 @@
89 90
 				                            <div class="col-xs-4 itp_ip">
90 91
 				                                <div class="col-xs-8 itp_in fnSttlReqAmt"></div>
91 92
 				                            </div>
92
-				                            <label class="col-xs-2 itp_lb">잔금</label>
93
+				                            <label class="col-xs-2 itp_lb">사용가능한도금액</label>
93 94
 				                            <div class="col-xs-4 itp_ip">
94
-				                                <div class="col-xs-8 itp_in fnAcctBal"></div>
95
+				                                <div class="col-xs-8 itp_in fnUseAmtTotal"></div>
95 96
 				                            </div>
96 97
 				                        </div>
97 98
 				                        <div class="form-group">
98
-				                            <label class="col-xs-2 itp_lb">등록일</label>
99
+				                            <label class="col-xs-2 itp_lb">정산확인일자</label>
99 100
 				                            <div class="col-xs-4 itp_ip">
100
-				                                <div class="col-xs-5 itp_in fnSysRegDttm"></div>
101
+				                                <div class="col-xs-5 itp_in fnSttlDt"></div>
101 102
 				                            </div>
102
-				                            <label class="col-xs-2 itp_lb">등록</label>
103
+				                            <label class="col-xs-2 itp_lb">등록정보</label>
103 104
 				                            <div class="col-xs-4 itp_ip fnSysRegNm"></div>
104 105
 				                        </div>
105 106
 				                    </div>

+ 10 - 2
src/main/webapp/app/settmng/SETTMNG03010.html

@@ -118,8 +118,6 @@
118 118
 												<div class="col-xs-10 itp_in fnSttlReqAmt"></div>
119 119
 											</div>											
120 120
 										</div>
121
-										
122
-										
123 121
 										<div class="form-group">
124 122
 											<label class="col-xs-2 itp_lb">정산일자</label>
125 123
 											<div class="col-xs-4 itp_ip">
@@ -130,6 +128,16 @@
130 128
 												<div class="col-xs-10 itp_in fnSttlAmt"></div>
131 129
 											</div>
132 130
 										</div>
131
+										<div class="form-group">
132
+											<label class="col-xs-2 itp_lb">수납여부(후불)</label>
133
+											<div class="col-xs-4 itp_ip">
134
+												<div class="col-xs-8 itp_in fnRcptYn"></div>
135
+											</div>
136
+											<label class="col-xs-2 itp_lb">수납일자(후불)</label>
137
+											<div class="col-xs-4 itp_ip">
138
+												<div class="col-xs-10 itp_in fnRcptDt"></div>
139
+											</div>
140
+										</div>
133 141
 										<div class="form-group">
134 142
 											<label class="col-xs-2 itp_lb">등록일</label>
135 143
 											<div class="col-xs-4 itp_ip">

+ 22 - 21
src/main/webapp/js/app/loanmng/ITP_LOANMNG03010.js

@@ -44,12 +44,6 @@ let LOGIN_AUTH_TYPE_CD;
44 44
 /*화면 Grid ColModel*/
45 45
 const gridColModel = {
46 46
 	list: [
47
-		{
48
-			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
49
-			label: "정산관리고유번호", 
50
-			width: '0', fixed: false, align: 'center',
51
-			sortable: false, hidden: true
52
-		},
53 47
 		{
54 48
 			index: 'BRAND_ID', name: 'brandId',
55 49
 			label: "브랜드ID", 
@@ -80,6 +74,12 @@ const gridColModel = {
80 74
 			width: '10', fixed: false, align: 'center',
81 75
 			sortable: false, hidden: false
82 76
 		},		
77
+		{
78
+			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
79
+			label: "정산번호", 
80
+			width: '10', fixed: false, align: 'center',
81
+			sortable: false, hidden: false
82
+		},		
83 83
 		{
84 84
 			index: 'STTL_ST_NM', name: 'sttlStNm',
85 85
 			label: "상태", 
@@ -101,20 +101,13 @@ const gridColModel = {
101 101
 		},
102 102
 		{
103 103
 			index: 'STTL_DT', name: 'sttlDt',
104
-			label: "정산일", 
104
+			label: "정산확인일", 
105 105
 			width: '10', fixed: false, align: 'center',
106 106
 			sortable: false, hidden: false
107 107
 		},	
108 108
 		{
109
-			index: 'STTL_AMT', name: 'sttlAmt',
110
-			label: '정산금액', 
111
-			width: '10', fixed: false, align: 'center',
112
-			sortable: false, hidden: false, 
113
-			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
114
-		},
115
-		{
116
-			index: 'ACCT_BAL', name: 'acctBal',
117
-			label: '잔액', 
109
+			index: 'USE_AMT_TOTAL', name: 'useAmtTotal',
110
+			label: '사용가능한도', 
118 111
 			width: '10', fixed: false, align: 'center',
119 112
 			sortable: false, hidden: false, 
120 113
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
@@ -426,7 +419,7 @@ let listObj = {
426 419
 				onCellSelect: function(rowId, cellIdx, cellValue) {
427 420
 					var cm = $(this).jqGrid('getGridParam', 'colModel');
428 421
 					var colNm = cm[cellIdx].name;
429
-					if (colNm == 'sttlReqDt') {
422
+					if (colNm == 'sttlMgntUnqNo') {
430 423
 						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
431 424
 						
432 425
 						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
@@ -439,7 +432,7 @@ let listObj = {
439 432
 					itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
440 433
 					var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
441 434
 					$.each(ids, function(idx, rowId) {
442
-						$(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlReqDt', '', ITP_GRID_COL_STYLE.link);
435
+						$(LOANMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
443 436
 					});
444 437
 				},
445 438
 				onPaging: function(action) {
@@ -487,15 +480,23 @@ let viewObj = {
487 480
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val(result.brandId);
488 481
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STORE_ID').val(result.storeId);
489 482
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
483
+		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_RCPT_YN').val(result.rcptYn);
490 484
 		
491 485
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnBrandNm').text(result.brandNm);
492 486
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnStoreNm').text(result.storeNm);
493 487
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqDt').text(result.sttlReqDt);
488
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);
494 489
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlStNm').text(result.sttlStNm);
495
-		$('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegDttm').text(result.sysRegDttm);
496
-		$('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegNm').text(result.sysRegNm);
490
+		// $('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegDttm').text(result.sysRegDttm);
491
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnSysRegNm').text(result.sysRegNm + ' (' + result.sysRegDttm + ')');
497 492
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));
498
-		$('#ITP_FORM_LOANMNG03010_VIEW .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
493
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnUseAmtTotal').text(itp_fn_number_comma(result.useAmtTotal));
494
+		
495
+		if(result.rcptYn == 'Y') { // 수납여부
496
+			$('#ITP_BTN_LOANMNG03010_PAYMENT').hide();
497
+		} else {
498
+			$('#ITP_BTN_LOANMNG03010_PAYMENT').show();
499
+		}
499 500
 
500 501
 		// 리스트 조회
501 502
 		viewObj.grid.init();

+ 3 - 0
src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js

@@ -519,6 +519,9 @@ let modifyObj = {
519 519
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);  // 정산요청일자
520 520
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlAmt').text(itp_fn_number_comma(result.sttlAmt));
521 521
 		
522
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnRcptYn').text(result.rcptYn == null ? '' : result.rcptYn);
523
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnRcptDt').text(result.rcptDt == null ? '' : result.rcptDt);
524
+		
522 525
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
523 526
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegNm').text(result.sysRegNm);
524 527