Browse Source

브랜드 오류 수정

whakdo963 2 years ago
parent
commit
d5348e9d3c

+ 5 - 6
bin/src/main/webapp/app/oper/OPER06010.html

@@ -113,8 +113,7 @@
113
 											</div>
113
 											</div>
114
 										</div>
114
 										</div>
115
 									</div>
115
 									</div>
116
-									<div class="itp_form_info">
117
-										<div class="itp_form_in">
116
+									<!-- <div class="itp_form_in">
118
 											<div class="form-group">
117
 											<div class="form-group">
119
 												<label class="col-xs-2 itp_lb">대표자명</label>
118
 												<label class="col-xs-2 itp_lb">대표자명</label>
120
 												<div class="col-xs-10 itp_ip">
119
 												<div class="col-xs-10 itp_ip">
@@ -126,7 +125,7 @@
126
 												</div>
125
 												</div>
127
 											</div>
126
 											</div>
128
 										</div>
127
 										</div>
129
-									</div>
128
+									</div> -->
130
 									<!--<div class="itp_form_info">
129
 									<!--<div class="itp_form_info">
131
 										<div class="itp_form_in">
130
 										<div class="itp_form_in">
132
 											<div class="form-group">
131
 											<div class="form-group">
@@ -203,7 +202,7 @@
203
 											<label class="col-xs-2 itp_lb">PG사</label>
202
 											<label class="col-xs-2 itp_lb">PG사</label>
204
 											<div class="col-xs-4 itp_ip">
203
 											<div class="col-xs-4 itp_ip">
205
 												<div class="col-xs-8 itp_in">
204
 												<div class="col-xs-8 itp_in">
206
-													<select id="ITP_FORM_OPER06010_DETAIL_PG_ID" data-select-code="PG_ID" data-check-required="empty" class="form-control itp_input" name="pgId">
205
+													<select id="ITP_FORM_OPER06010_DETAIL_PG_ID" data-select-code="PG_ID" class="form-control itp_input" name="pgId">
207
 													</select>
206
 													</select>
208
 												</div>
207
 												</div>
209
 											</div>
208
 											</div>
@@ -215,7 +214,7 @@
215
 												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
214
 												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
216
 												<div class="col-xs-4 itp_ip">
215
 												<div class="col-xs-4 itp_ip">
217
 													<div class="col-xs-7 itp_in">
216
 													<div class="col-xs-7 itp_in">
218
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" data-check-required="empty" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
217
+														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
219
 													</div>
218
 													</div>
220
 												</div>
219
 												</div>
221
 												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
220
 												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
@@ -225,7 +224,7 @@
225
 													</div>
224
 													</div>
226
 												</div>
225
 												</div>
227
 											</div>
226
 											</div>
228
-										</div>
227
+										</div>		
229
 									</div>
228
 									</div>
230
 									<div class="itp_form_in">
229
 									<div class="itp_form_in">
231
 										<div class="form-group border">
230
 										<div class="form-group border">

+ 32 - 0
bin/src/main/webapp/app/popup/biz/BIZPOP_STTL_REJECT_REASON.html

@@ -0,0 +1,32 @@
1
+<div id="ITP_BIZPOP_STTL_REJECT_REASON" class="modal itp_modal">
2
+	<div class="modal-dialog">
3
+		<div class="modal-content">
4
+			<div class="modal-header">
5
+				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
6
+				<h5 class="modal-title">정산반려</h5>
7
+			</div>
8
+			<div class="modal-body">
9
+				<div class="itp_form itp_type1 fix">
10
+					<div class="col-xs-12">
11
+						<div class="form-horizontal">
12
+							<form id="ITP_FORM_STTL_REJECT_REASON_POPUP">
13
+								<div class="form-group">
14
+									<label class="col-xs-2 itp_lb">반려사유</label>
15
+									<div class="col-xs-10 itp_ip">
16
+									<input type="text" id="ITP_FORM_STTL_REJECT_REASON_POPUP_STTL_RJCT_RSN" class="form-control itp_input" name="sttlRjctRsn" />
17
+									</div>									
18
+								</div>								
19
+							</form>
20
+						</div>
21
+					</div>
22
+				</div>
23
+			</div>
24
+			<div class="modal-footer">
25
+				<button type="button" id="ITP_BTN_STTL_REJECT_REASON_CLOSE_POP" class="btn btn-danger btn-sm CLB">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
26
+				<button type="button" id="ITP_BTN_STTL_REJECT_REASON_CONFIRM_POP" class="btn btn-primary btn-sm SAB" style="display: inline-block;">&nbsp;&nbsp;확인&nbsp;&nbsp;</button>
27
+			</div>
28
+		</div>
29
+	</div>
30
+
31
+	<div id="ITP_POPUP_JS"></div>
32
+</div>

+ 10 - 13
bin/src/main/webapp/js/app/oper/ITP_OPER06010.js

@@ -218,13 +218,11 @@ let pageObj = {
218
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').show();
218
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').show();
219
 
219
 
220
             $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
220
             $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
221
+            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
221
 
222
 
222
             $('.fnBrandId').text('(자동부여)');
223
             $('.fnBrandId').text('(자동부여)');
223
             
224
             
224
-//            $("#ITP_FORM_OPER06010_DETAIL_PG_ID option:eq(0)").prop("selected", true) {
225
-//                $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
226
-//            };
227
-            
225
+            //pg사아이디 선택시 보이게함
228
             $('#ITP_FORM_OPER06010_DETAIL_PG_ID').on('change', function() {
226
             $('#ITP_FORM_OPER06010_DETAIL_PG_ID').on('change', function() {
229
             	if($(this).val() === '') {
227
             	if($(this).val() === '') {
230
                 	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
228
                 	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
@@ -232,16 +230,10 @@ let pageObj = {
232
                     $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
230
                     $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
233
             	}
231
             	}
234
             });
232
             });
235
-//            $pgid = $("ITP_FORM_OPER06010_DETAIL_PG_ID")
236
-//            if($pgid.first(select).selected == true) {
237
-//                $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
238
-//            }else {
239
-//            	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
240
-//            };
241
 			
233
 			
242
         } else if(mode == 'MODIFY') { // 수정
234
         } else if(mode == 'MODIFY') { // 수정
243
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
235
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
244
-            fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE', '#ITP_BTN_OPER06010_RESET_PW']);
236
+            fn_show_btn_auth_array(['#ITP_BTN_OPER06010_CANCELLIST', '#ITP_BTN_OPER06010_SAVE']);
245
 
237
 
246
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_ID').attr('readonly', true);
238
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_ID').attr('readonly', true);
247
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_NM').attr('readonly', true);
239
             $('#ITP_FORM_OPER06010_DETAIL_BRAND_NM').attr('readonly', true);
@@ -253,8 +245,8 @@ let pageObj = {
253
             $('#ITP_FORM_OPER06010_DETAIL_DELETE_AFFL_SHOP').hide();
245
             $('#ITP_FORM_OPER06010_DETAIL_DELETE_AFFL_SHOP').hide();
254
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_info').show();
246
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_info').show();
255
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').hide();
247
 			$('#ITP_FORM_OPER06010_DETAIL .itp_form_change').hide();
256
-			
257
-			$('#ITP_BTN_OPER06010_RESET_PW').show();
248
+
249
+            $('#ITP_FORM_OPER06010_DETAIL #ITP_FORM_OPER06010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
258
         } else if(mode == 'VIEW') { // 보기
250
         } else if(mode == 'VIEW') { // 보기
259
             $('#ITP_AJAX_OPER06010_VIEW_CONTAINER').show();
251
             $('#ITP_AJAX_OPER06010_VIEW_CONTAINER').show();
260
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_MODIFY', '#ITP_BTN_OPER06010_CANCELLIST']);
252
             fn_show_btn_auth_array(['#ITP_BTN_OPER06010_MODIFY', '#ITP_BTN_OPER06010_CANCELLIST']);
@@ -280,6 +272,10 @@ let listObj = {
280
             $(OPER06010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
272
             $(OPER06010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
281
         },
273
         },
282
         create: function() {
274
         create: function() {
275
+            if($('#ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val() === '') {
276
+                itp_fn_modal_alert('가맹점 정보가 존재하지 않습니다.');
277
+                return;
278
+            }
283
             pageObj.switchScreen('ADD');
279
             pageObj.switchScreen('ADD');
284
             itp_fn_form_clear_validate(null, '#ITP_FORM_OPER06010_DETAIL');
280
             itp_fn_form_clear_validate(null, '#ITP_FORM_OPER06010_DETAIL');
285
             // 권한정보 리스트 조회
281
             // 권한정보 리스트 조회
@@ -551,6 +547,7 @@ let afflShopObj = {
551
             var _this = this;
547
             var _this = this;
552
             this.afflShopId 	= fn_make_user_info.get('afflShopId');
548
             this.afflShopId 	= fn_make_user_info.get('afflShopId');
553
             this.afflShopNm 	= fn_make_user_info.get('afflShopNm');
549
             this.afflShopNm 	= fn_make_user_info.get('afflShopNm');
550
+            $('#ITP_FORM_OPER06010_DETAIL_AFFL_SHOP_ID').val(_this.afflShopId);
554
             $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID').val(_this.afflShopId);
551
             $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_ID').val(_this.afflShopId);
555
             $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM').val(_this.afflShopNm);
552
             $('#ITP_FORM_OPER06010_SEARCH_AFFL_SHOP_NM').val(_this.afflShopNm);
556
             $('#ITP_BTN_OPER06010_SEARCH_AFFL_SHOP').attr('disabled', true);
553
             $('#ITP_BTN_OPER06010_SEARCH_AFFL_SHOP').attr('disabled', true);

+ 53 - 0
bin/src/main/webapp/js/app/popup/biz/ITP_BIZPOP_STTL_REJECT_REASON.js

@@ -0,0 +1,53 @@
1
+require(['config'], function() {
2
+	require([
3
+		'jquery'
4
+	], function($) {
5
+
6
+	});
7
+});
8
+
9
+var popPageObj = {
10
+	init: function () {
11
+		this.button();
12
+		this.change();
13
+	},
14
+	parentPopFn: null,
15
+	args: null,
16
+	returnType: null,
17
+	button: function() {
18
+		$('#ITP_BTN_STTL_REJECT_REASON_CLOSE_POP').on('click', function () {
19
+			$('#ITP_BIZPOP_STTL_REJECT_REASON').modal('hide'); // 팝업닫기
20
+		});
21
+		$('#ITP_BTN_STTL_REJECT_REASON_CONFIRM_POP').on('click', function () {
22
+			popPageObj.fnRjctRsnConfirm();
23
+		});
24
+	}, 
25
+	change: function() {
26
+	}, 	
27
+	fnRjctRsnConfirm: function() {
28
+		const formId = '#ITP_FORM_STTL_REJECT_REASON_POPUP';
29
+		itp_fn_form_clear_validate(null, formId);
30
+		
31
+		var vali_sttlRjctRsn = itp_fn_form_validate(formId, formId + '_STTL_RJCT_RSN', ['empty'], undefined);
32
+		
33
+		if (vali_sttlRjctRsn) {		
34
+			var sttlRjctRsn = $('#ITP_FORM_STTL_REJECT_REASON_POPUP_STTL_RJCT_RSN').val();	
35
+			
36
+			popPageObj.parentPopFn(sttlRjctRsn);
37
+			$('#ITP_BIZPOP_STTL_REJECT_REASON').modal('hide'); // 팝업닫기
38
+		}
39
+	} 
40
+};
41
+
42
+function itp_fn_BIZPOP_STTL_REJECT_REASON(parentPopFn, args, returnType) {
43
+	$('#ITP_BIZPOP_STTL_REJECT_REASON').one('shown.bs.modal', function(e) {
44
+		itp_fn_fire_window_resize();
45
+	}).one('hidden.bs.modal', function(e) {
46
+		$('#ITP_BIZPOP_STTL_REJECT_REASON').remove();
47
+	}).modal('show');
48
+
49
+	popPageObj.parentPopFn = parentPopFn;
50
+	popPageObj.args = args;
51
+	popPageObj.returnType = returnType;
52
+	popPageObj.init();
53
+}

+ 4 - 10
src/main/webapp/app/oper/OPER06010.html

@@ -113,8 +113,7 @@
113
 											</div>
113
 											</div>
114
 										</div>
114
 										</div>
115
 									</div>
115
 									</div>
116
-									<div>
117
-										<div class="itp_form_in">
116
+									<!-- <div class="itp_form_in">
118
 											<div class="form-group">
117
 											<div class="form-group">
119
 												<label class="col-xs-2 itp_lb">대표자명</label>
118
 												<label class="col-xs-2 itp_lb">대표자명</label>
120
 												<div class="col-xs-10 itp_ip">
119
 												<div class="col-xs-10 itp_ip">
@@ -126,7 +125,7 @@
126
 												</div>
125
 												</div>
127
 											</div>
126
 											</div>
128
 										</div>
127
 										</div>
129
-									</div>
128
+									</div> -->
130
 									<!--<div class="itp_form_info">
129
 									<!--<div class="itp_form_info">
131
 										<div class="itp_form_in">
130
 										<div class="itp_form_in">
132
 											<div class="form-group">
131
 											<div class="form-group">
@@ -215,13 +214,8 @@
215
 												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
214
 												<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
216
 												<div class="col-xs-4 itp_ip">
215
 												<div class="col-xs-4 itp_ip">
217
 													<div class="col-xs-7 itp_in">
216
 													<div class="col-xs-7 itp_in">
218
-														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" data-check-required="empty" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
217
+														<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
219
 													</div>
218
 													</div>
220
-										<div class="form-group">
221
-											<label class="col-xs-2 itp_lb">PG 가맹점 아이디 </label>
222
-											<div class="col-xs-4 itp_ip">
223
-												<div class="col-xs-7 itp_in">
224
-													<input type="text" id="ITP_FORM_OPER06010_DETAIL_PG_AFFL_ID" class="form-control itp_input" name="pgAfflId" value="" placeholder="PG 가맹점 id">
225
 												</div>
219
 												</div>
226
 												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
220
 												<label class="col-xs-2 itp_lb">PG 가맹점 Key</label>
227
 												<div class="col-xs-4 itp_ip">
221
 												<div class="col-xs-4 itp_ip">
@@ -230,7 +224,7 @@
230
 													</div>
224
 													</div>
231
 												</div>
225
 												</div>
232
 											</div>
226
 											</div>
233
-										</div>
227
+										</div>		
234
 									</div>
228
 									</div>
235
 									<div class="itp_form_in">
229
 									<div class="itp_form_in">
236
 										<div class="form-group border">
230
 										<div class="form-group border">

+ 1 - 10
src/main/webapp/js/app/oper/ITP_OPER06010.js

@@ -222,10 +222,7 @@ let pageObj = {
222
 
222
 
223
             $('.fnBrandId').text('(자동부여)');
223
             $('.fnBrandId').text('(자동부여)');
224
             
224
             
225
-//            $("#ITP_FORM_OPER06010_DETAIL_PG_ID option:eq(0)").prop("selected", true) {
226
-//                $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
227
-//            };
228
-            
225
+            //pg사아이디 선택시 보이게함
229
             $('#ITP_FORM_OPER06010_DETAIL_PG_ID').on('change', function() {
226
             $('#ITP_FORM_OPER06010_DETAIL_PG_ID').on('change', function() {
230
             	if($(this).val() === '') {
227
             	if($(this).val() === '') {
231
                 	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
228
                 	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
@@ -233,12 +230,6 @@ let pageObj = {
233
                     $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
230
                     $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
234
             	}
231
             	}
235
             });
232
             });
236
-//            $pgid = $("ITP_FORM_OPER06010_DETAIL_PG_ID")
237
-//            if($pgid.first(select).selected == true) {
238
-//                $('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').hide();
239
-//            }else {
240
-//            	$('#ITP_FORM_OPER06010_DETAIL .itp_form_pg').show();
241
-//            };
242
 			
233
 			
243
         } else if(mode == 'MODIFY') { // 수정
234
         } else if(mode == 'MODIFY') { // 수정
244
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();
235
             $('#ITP_AJAX_OPER06010_DETAIL_CONTAINER').show();