Browse Source

반품관리-반품요청 버튼수정 테스트

yhl88 2 years ago
parent
commit
5fd6f6221c

+ 1 - 1
src/main/webapp/app/rtnmng/RTNMNG01010.html

@@ -45,7 +45,7 @@
45
 													<input type="text" id="ITP_FORM_RTNMNG01010_DETAIL_RTN_LOCATION_NM" data-check-required="empty" class="form-control itp_input" name="rtnLocationNm" value="" readonly="readonly" />
45
 													<input type="text" id="ITP_FORM_RTNMNG01010_DETAIL_RTN_LOCATION_NM" data-check-required="empty" class="form-control itp_input" name="rtnLocationNm" value="" readonly="readonly" />
46
 													<input type="hidden" id="ITP_FORM_RTNMNG01010_DETAIL_RTN_LOCATION" class="form-control itp_input" name="rtnLocation" value="" />
46
 													<input type="hidden" id="ITP_FORM_RTNMNG01010_DETAIL_RTN_LOCATION" class="form-control itp_input" name="rtnLocation" value="" />
47
 														<span class="input-group-btn">
47
 														<span class="input-group-btn">
48
-															<button id="ITP_FORM_RTNMNG01010_DELETE_WHS_NM" class="btn btn-default btn-sm UPB" type="button" style="padding:3.8px 10px;"><i class="glyphicon glyphicon-remove"></i></button>
48
+															<button type="button" id="ITP_FORM_RTNMNG01010_DELETE_WHS_NM" class="btn btn-default btn-sm UPB" style="padding:3.8px 10px;"><i class="glyphicon glyphicon-remove"></i></button>
49
 														</span>
49
 														</span>
50
 													</div>
50
 													</div>
51
 												</div>
51
 												</div>

+ 1 - 0
src/main/webapp/js/app/oper/ITP_OPER01010.js

@@ -229,6 +229,7 @@ let pageObj = {
229
 		},
229
 		},
230
 		form: function() {
230
 		form: function() {
231
 			itp_fn_form_event.onKeyup('#ITP_FORM_OPER01010_DETAIL');
231
 			itp_fn_form_event.onKeyup('#ITP_FORM_OPER01010_DETAIL');
232
+			itp_fn_form_event.onKeyup('#ITP_FORM_OPER01010_NEW');
232
 		},
233
 		},
233
 		afflInfo: {
234
 		afflInfo: {
234
 			init: function() {
235
 			init: function() {

+ 9 - 7
src/main/webapp/js/app/rtnmng/ITP_RTNMNG01010.js

@@ -217,12 +217,7 @@ let pageObj = {
217
 			//납품장소 필드 readonly
217
 			//납품장소 필드 readonly
218
 			$('#ITP_FORM_RTNMNG01010_DETAIL_WHS_NM').attr('readonly', true);
218
 			$('#ITP_FORM_RTNMNG01010_DETAIL_WHS_NM').attr('readonly', true);
219
 			$('#ITP_FORM_RTNMNG01010_DETAIL_LOCATION_NM').attr('readonly', true);
219
 			$('#ITP_FORM_RTNMNG01010_DETAIL_LOCATION_NM').attr('readonly', true);
220
-			
221
-			// 매장에서 로그인하는 경우
222
-			if(fn_make_user_info.get('storeId') != '') {
223
-				$('#ITP_FORM_RTNMNG01010_SEARCH_WHS_NM').hide();
224
-				$('#ITP_FORM_RTNMNG01010_DELETE_WHS_NM').hide();
225
-			}			
220
+					
226
 		},
221
 		},
227
 		grid: function() {
222
 		grid: function() {
228
 			itp_fn_jqgrid_resize(RTNMNG01010_DETAIL_GRID_ID, RTNMNG01010_DETAIL_GRID_LIST, 'lg');
223
 			itp_fn_jqgrid_resize(RTNMNG01010_DETAIL_GRID_ID, RTNMNG01010_DETAIL_GRID_LIST, 'lg');
@@ -358,7 +353,14 @@ let createObj = {
358
 	init: function() {
353
 	init: function() {
359
 		$('#ITP_FORM_RTNMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
354
 		$('#ITP_FORM_RTNMNG01010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
360
 		$('#ITP_FORM_RTNMNG01010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
355
 		$('#ITP_FORM_RTNMNG01010_DETAIL_STORE_ID').val(fn_make_user_info.get('storeId'));
361
-		$('#ITP_FORM_RTNMNG01010_DELETE_WHS_NM').show();
356
+		// 매장에서 로그인하는 경우
357
+		if(fn_make_user_info.get('storeId') != '') {
358
+			$('#ITP_FORM_RTNMNG01010_SEARCH_WHS_NM').hide();
359
+			$('#ITP_FORM_RTNMNG01010_DELETE_WHS_NM').hide();
360
+		} else {
361
+			$('#ITP_FORM_RTNMNG01010_SEARCH_WHS_NM').show();
362
+			$('#ITP_FORM_RTNMNG01010_DELETE_WHS_NM').show();
363
+		}
362
 		//let param = 'brandId=' + LOGIN_USER_INFO.brandId + "&spplyId=" + LOGIN_USER_INFO.spplyId;
364
 		//let param = 'brandId=' + LOGIN_USER_INFO.brandId + "&spplyId=" + LOGIN_USER_INFO.spplyId;
363
 		this.load();
365
 		this.load();
364
 	},
366
 	},