浏览代码

미납금관리 개발중

marseyes 2 年之前
父节点
当前提交
9e247b8011

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

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

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

@@ -118,8 +118,6 @@
118
 												<div class="col-xs-10 itp_in fnSttlReqAmt"></div>
118
 												<div class="col-xs-10 itp_in fnSttlReqAmt"></div>
119
 											</div>											
119
 											</div>											
120
 										</div>
120
 										</div>
121
-										
122
-										
123
 										<div class="form-group">
121
 										<div class="form-group">
124
 											<label class="col-xs-2 itp_lb">정산일자</label>
122
 											<label class="col-xs-2 itp_lb">정산일자</label>
125
 											<div class="col-xs-4 itp_ip">
123
 											<div class="col-xs-4 itp_ip">
@@ -130,6 +128,16 @@
130
 												<div class="col-xs-10 itp_in fnSttlAmt"></div>
128
 												<div class="col-xs-10 itp_in fnSttlAmt"></div>
131
 											</div>
129
 											</div>
132
 										</div>
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
 										<div class="form-group">
141
 										<div class="form-group">
134
 											<label class="col-xs-2 itp_lb">등록일</label>
142
 											<label class="col-xs-2 itp_lb">등록일</label>
135
 											<div class="col-xs-4 itp_ip">
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
 /*화면 Grid ColModel*/
44
 /*화면 Grid ColModel*/
45
 const gridColModel = {
45
 const gridColModel = {
46
 	list: [
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
 			index: 'BRAND_ID', name: 'brandId',
48
 			index: 'BRAND_ID', name: 'brandId',
55
 			label: "브랜드ID", 
49
 			label: "브랜드ID", 
@@ -80,6 +74,12 @@ const gridColModel = {
80
 			width: '10', fixed: false, align: 'center',
74
 			width: '10', fixed: false, align: 'center',
81
 			sortable: false, hidden: false
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
 			index: 'STTL_ST_NM', name: 'sttlStNm',
84
 			index: 'STTL_ST_NM', name: 'sttlStNm',
85
 			label: "상태", 
85
 			label: "상태", 
@@ -101,20 +101,13 @@ const gridColModel = {
101
 		},
101
 		},
102
 		{
102
 		{
103
 			index: 'STTL_DT', name: 'sttlDt',
103
 			index: 'STTL_DT', name: 'sttlDt',
104
-			label: "정산일", 
104
+			label: "정산확인일", 
105
 			width: '10', fixed: false, align: 'center',
105
 			width: '10', fixed: false, align: 'center',
106
 			sortable: false, hidden: false
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
 			width: '10', fixed: false, align: 'center',
111
 			width: '10', fixed: false, align: 'center',
119
 			sortable: false, hidden: false, 
112
 			sortable: false, hidden: false, 
120
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
113
 			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
@@ -426,7 +419,7 @@ let listObj = {
426
 				onCellSelect: function(rowId, cellIdx, cellValue) {
419
 				onCellSelect: function(rowId, cellIdx, cellValue) {
427
 					var cm = $(this).jqGrid('getGridParam', 'colModel');
420
 					var cm = $(this).jqGrid('getGridParam', 'colModel');
428
 					var colNm = cm[cellIdx].name;
421
 					var colNm = cm[cellIdx].name;
429
-					if (colNm == 'sttlReqDt') {
422
+					if (colNm == 'sttlMgntUnqNo') {
430
 						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
423
 						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
431
 						
424
 						
432
 						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
425
 						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
@@ -439,7 +432,7 @@ let listObj = {
439
 					itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
432
 					itp_fn_grid_load_complete(data, LOANMNG03010_GRID_ID, true, 'number', 'LOANMNG03010', listObj.itp_LOANMNG03010_search, listObj.empty, true, data.gridRecords, true);
440
 					var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
433
 					var ids = $(LOANMNG03010_GRID_ID).getDataIDs();
441
 					$.each(ids, function(idx, rowId) {
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
 				onPaging: function(action) {
438
 				onPaging: function(action) {
@@ -487,15 +480,23 @@ let viewObj = {
487
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val(result.brandId);
480
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_BRAND_ID').val(result.brandId);
488
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STORE_ID').val(result.storeId);
481
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STORE_ID').val(result.storeId);
489
 		$('#ITP_FORM_LOANMNG03010_VIEW #ITP_FORM_LOANMNG03010_VIEW_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
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
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnBrandNm').text(result.brandNm);
485
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnBrandNm').text(result.brandNm);
492
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnStoreNm').text(result.storeNm);
486
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnStoreNm').text(result.storeNm);
493
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqDt').text(result.sttlReqDt);
487
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqDt').text(result.sttlReqDt);
488
+		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);
494
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlStNm').text(result.sttlStNm);
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
 		$('#ITP_FORM_LOANMNG03010_VIEW .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));
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
 		viewObj.grid.init();
502
 		viewObj.grid.init();

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

@@ -519,6 +519,9 @@ let modifyObj = {
519
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);  // 정산요청일자
519
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlDt').text(result.sttlDt == null ? '' : result.sttlDt);  // 정산요청일자
520
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlAmt').text(itp_fn_number_comma(result.sttlAmt));
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
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
525
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
523
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegNm').text(result.sysRegNm);
526
 		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegNm').text(result.sysRegNm);
524
 		
527