瀏覽代碼

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

yhl88 2 年之前
父節點
當前提交
9cf321cfab

+ 5 - 5
src/main/webapp/app/stinfo/STINFO04010.html

@@ -249,7 +249,7 @@
249 249
 											<label class="col-xs-2 itp_lb">중량</label>
250 250
 											<div class="col-xs-4 itp_ip">
251 251
 												<div class="col-xs-3 itp_in">
252
-													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_WEIGHT" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="form-control itp_input" name="weight" value="">
252
+													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_WEIGHT" onkeypress="return checkNumberPoint(event)" class="form-control itp_input" name="weight" value="">
253 253
 												</div>
254 254
 												<div class="col-xs-4 itp_in">
255 255
 	              									<select id="ITP_FORM_STINFO04010_DETAIL_WEIGHT_UNIT" data-select-code="WEIGHT_UNIT" class="form-control itp_input detail_item_unit" name="weightUnit"></select>
@@ -258,7 +258,7 @@
258 258
 											<label class="col-xs-2 itp_lb">부피</label>
259 259
 											<div class="col-xs-4 itp_ip">
260 260
 												<div class="col-xs-3 itp_in">
261
-													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_VOLUME" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="form-control itp_input" name="volume" value="">
261
+													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_VOLUME" onkeypress="return checkNumberPoint(event)" class="form-control itp_input" name="volume" value="">
262 262
 												</div>
263 263
 												<div class="col-xs-4 itp_in">
264 264
 	              									<select id="ITP_FORM_STINFO04010_DETAIL_VOLUME_UNIT" data-select-code="VOLUME_UNIT" class="form-control itp_input detail_item_unit" name="volumeUnit"></select>
@@ -271,7 +271,7 @@
271 271
 											<label class="col-xs-2 itp_lb">가로</label>
272 272
 											<div class="col-xs-4 itp_ip">
273 273
 												<div class="col-xs-3 itp_in">
274
-													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_WIDTH" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="form-control itp_input" name="width" value="">
274
+													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_WIDTH" onkeypress="return checkNumberPoint(event)" class="form-control itp_input" name="width" value="">
275 275
 												</div>
276 276
 												<div class="col-xs-4 itp_in">
277 277
 	              									<select id="ITP_FORM_STINFO04010_DETAIL_WIDTH_UNIT" data-select-code="WIDTH_UNIT" class="form-control itp_input detail_item_unit" name="widthUnit"></select>
@@ -280,7 +280,7 @@
280 280
 											<label class="col-xs-2 itp_lb">세로</label>
281 281
 											<div class="col-xs-4 itp_ip">
282 282
 												<div class="col-xs-3 itp_in">
283
-													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_HEIGHT" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="form-control itp_input" name="height" value="">
283
+													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_HEIGHT" onkeypress="return checkNumberPoint(event)" class="form-control itp_input" name="height" value="">
284 284
 												</div>
285 285
 												<div class="col-xs-4 itp_in">
286 286
 	              									<select id="ITP_FORM_STINFO04010_DETAIL_HEIGHT_UNIT" data-select-code="HEIGHT_UNIT" class="form-control itp_input detail_item_unit" name="heightUnit"></select>
@@ -293,7 +293,7 @@
293 293
 											<label class="col-xs-2 itp_lb">높이</label>
294 294
 											<div class="col-xs-4 itp_ip">
295 295
 												<div class="col-xs-3 itp_in">
296
-													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_HIGH" onKeyup="this.value=this.value.replace(/[^0-9]/g,'');" class="form-control itp_input" name="high" value="">
296
+													<input type="text" id="ITP_FORM_STINFO04010_DETAIL_HIGH" onkeypress="return checkNumberPoint(event)" class="form-control itp_input" name="high" value="">
297 297
 												</div>
298 298
 												<div class="col-xs-4 itp_in">
299 299
 	              									<select id="ITP_FORM_STINFO04010_DETAIL_HIGH_UNIT" data-select-code="HIGH_UNIT" class="form-control itp_input detail_item_unit" name="highUnit"></select>

+ 1 - 1
src/main/webapp/js/app/oper/ITP_OPER03010.js

@@ -241,7 +241,7 @@ let pageObj = {
241 241
 			'showYn': $('#ITP_' + id + '_DETAIL_UPLOAD').attr('data-show-yn'),
242 242
 			'fileId': '#ITP_FORM_' + id + '_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
243 243
 		};
244
-		itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'affl', true, false, id, fileArgs, removeFn);
244
+		itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'affl', false, false, id, fileArgs, removeFn);
245 245
 	},
246 246
 	switchScreen: function(mode) {
247 247
 		$('.itp_det_head').find('button[id^="ITP_BTN_OPER03010_"]').each(function(i) {

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

@@ -215,7 +215,7 @@ let pageObj = {
215 215
             'showYn': $('#ITP_' + id + '_DETAIL_UPLOAD').attr('data-show-yn'),
216 216
             'fileId': '#ITP_FORM_' + id + '_DETAIL_FILE_NO' //파일번호를 서버에서 받아서 넣을 파일번호 인풋박스 아이디
217 217
         };
218
-        itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'brand', true, false, id, fileArgs, removeFn);
218
+        itp_fn_set_file_upload('ITP_' + id + '_DETAIL_UPLOAD', 'brand', false, false, id, fileArgs, removeFn);
219 219
     },
220 220
     switchScreen: function(mode) {
221 221
         $('.itp_det_head').find('button[id^="ITP_BTN_OPER06010_"]').each(function(i) {

+ 9 - 0
src/main/webapp/js/app/stinfo/ITP_STINFO04010.js

@@ -55,6 +55,15 @@ let API_GET_KEY			 	= '/api/session/get-key';
55 55
 
56 56
 let SCREEN_MODE;
57 57
 
58
+function checkNumberPoint(event) {
59
+    if(event.key === '.' 
60
+       || event.key === '-'
61
+       || event.key >= 0 && event.key <= 9) {
62
+      return true;
63
+    }
64
+    return false;
65
+  }
66
+
58 67
 /*화면 Grid ColModel*/
59 68
 const gridColModel = {
60 69
     list: [

+ 12 - 11
src/main/webapp/mobile/app/main.html

@@ -31,7 +31,7 @@
31 31
 		}
32 32
 		.itp_notify_row {
33 33
 			display: flex;
34
-			margin-top: 16px;
34
+			margin-top: 10px;
35 35
 		}
36 36
 		.noti_label  {
37 37
 			width: 65px;
@@ -46,14 +46,15 @@
46 46
 			margin-left: 10px;
47 47
 		}
48 48
 		.noti_content  {
49
-			width: calc(100vw - 70px);
49
+			width: 98%;
50 50
 			overflow: auto;
51
-			height: 100px; 
51
+			padding:5px;
52
+			height: 170px; 
52 53
 			text-align: left;
53
-			margin-left: 10px;
54
+			word-break:break-all;
55
+			margin:0 1%;
56
+			border:1px solid #aaa;
54 57
 		}
55
-		
56
-
57 58
 	</style>
58 59
 </head>
59 60
 <body>
@@ -347,7 +348,7 @@
347 348
 	<aside id="ITP_ASIDE"></aside>
348 349
 	<section>
349 350
 		<div id="ITP_POP_NOTICE" class="popup2 mobile-pop-close" style="display: none;">
350
-			<div class="pop" style="height:330px;">
351
+			<div class="pop" style="height:400px;">
351 352
 				<div class="header">
352 353
 					<div class="header_left">
353 354
 						<label>공지내용</label>
@@ -356,7 +357,6 @@
356 357
 						<button type="button" class="btn-pop-close"><img src="../img/close.png"></button>
357 358
 					</div>
358 359
 				</div>
359
-		
360 360
 				<div id="ITP_POP_NOTICE_AREA" class="popup_scroll">
361 361
 					<div class="itp_notify_row">
362 362
 						<span class="noti_label">공지제목</span>
@@ -364,8 +364,6 @@
364 364
 						<div class="fnNoteNm noti_text"></div>
365 365
 					</div> 
366 366
 					<div class="itp_notify_row">
367
-						<span class="noti_label">공지내용</span>
368
-						<span>:</span>
369 367
 						<div class="fnNote noti_content"></div>
370 368
 					</div>
371 369
 					<div class="itp_notify_row">
@@ -373,10 +371,13 @@
373 371
 						<span>:</span>
374 372
 						<div class="fnNoteFromTo noti_text"></div>
375 373
 					</div>
374
+					<div class="itp_notify_row">
375
+						<span class="noti_label">첨부파일</span>
376
+						<table></table>
377
+					</div>
376 378
 				</div>
377 379
 			</div>
378 380
 		</div>
379 381
 	</section>
380
-	
381 382
 </body>
382 383
 </html>

+ 1 - 1
src/main/webapp/mobile/app/mcollmng/MCOLLMNG01010.html

@@ -12,7 +12,7 @@
12 12
 				<div class="line">
13 13
 				  <label>수거장소</label>
14 14
 				  <div class="float_left">
15
-					<input id="ITP_FORM_MCOLLMNG01010_LIST_SEARCH_COL_PLACE" name="sDlvPlace" type="text" placeholder="수거장소">
15
+					<input id="ITP_FORM_MCOLLMNG01010_LIST_SEARCH_COL_PLACE" name="sDlvPlace" type="text" placeholder="">
16 16
 					<input type="hidden" id="ITP_FORM_MCOLLMNG01010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="swhsId"/>
17 17
 					<div class="itp_input_btn">
18 18
 						<button id="ITP_BTN_MCOLLMNG01010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>

+ 1 - 1
src/main/webapp/mobile/app/mcollmng/MCOLLMNG02010.html

@@ -12,7 +12,7 @@
12 12
 			   <div class="line">
13 13
 				  <label>수거장소</label>
14 14
 				   <div class="float_left">
15
-					   <input id="ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="수거장소">
15
+					   <input id="ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="">
16 16
 					   <input type="hidden" id="ITP_FORM_MCOLLMNG02010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="srtnWhsId"/>
17 17
 					   <div class="itp_input_btn">
18 18
 					   		<button type="button" id="ITP_BTN_MCOLLMNG02010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>

+ 1 - 1
src/main/webapp/mobile/app/mcollmng/MCOLLMNG03010.html

@@ -13,7 +13,7 @@
13 13
 				<div class="line">
14 14
 				  <label>수거장소</label>
15 15
 					<div class="float_left">
16
-						<input id="ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="수거장소">
16
+						<input id="ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="">
17 17
 						<input type="hidden" id="ITP_FORM_MCOLLMNG03010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="swhsId"/>
18 18
 						<div class="itp_input_btn">
19 19
 							<button type="button" id="ITP_BTN_MCOLLMNG03010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>

+ 1 - 1
src/main/webapp/mobile/app/mordmng/MORDMNG01010.html

@@ -14,7 +14,7 @@
14 14
 				<div class="line">
15 15
 				  <label>납품장소</label>
16 16
 				  <div class="float_left">
17
-					  <input id="ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="납품장소">
17
+					  <input id="ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="">
18 18
 					  <input type="hidden" id="ITP_FORM_MORDMNG01010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="swhsId"/>
19 19
    					  <div class="itp_input_btn">
20 20
 						  <button type="button" id="ITP_BTN_MORDMNG01010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>

+ 2 - 2
src/main/webapp/mobile/app/mordmng/MORDMNG02010.html

@@ -13,7 +13,7 @@
13 13
 			   <div class="line">
14 14
 				  <label>납품장소</label>
15 15
 				   <div class="float_left">
16
-					   <input id="ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="납품장소">
16
+					   <input id="ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="">
17 17
 					   <input type="hidden" id="ITP_FORM_MORDMNG02010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="swhsId"/>
18 18
 	       			   <div class="itp_input_btn">
19 19
 		   			  		<button type="button" id="ITP_BTN_MORDMNG02010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>
@@ -96,7 +96,7 @@
96 96
 					  <div class="nomal">
97 97
 						<label class="col_4">발주금액</label>
98 98
 						<span>:</span>
99
-					    <div class="col_9 fnPodrAmt"></div>
99
+					    <div class="full fnPodrAmt"></div>
100 100
 					  </div>
101 101
 					</div>
102 102
 				</li>

+ 1 - 1
src/main/webapp/mobile/app/mordmng/MORDMNG03010.html

@@ -12,7 +12,7 @@
12 12
 					<div class="line">
13 13
 						<label>납품장소</label>
14 14
 						<div class="float_left">
15
-							<input id="ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="납품장소">
15
+							<input id="ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_NM" name="swhsNm" type="text" placeholder="">
16 16
 							<input type="hidden" id="ITP_FORM_MORDMNG03010_LIST_SEARCH_WHS_ID" class="form-control itp_input" name="swhsId"/>
17 17
 							<div class="itp_input_btn">
18 18
 								<button type="button" id="ITP_BTN_MORDMNG03010_LIST_SEARCH_WHS_NM"><img src="../img/search.png" alt=""></button>

+ 2 - 1
src/main/webapp/mobile/css/style.css

@@ -355,7 +355,8 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
355 355
 .content .line .float_left.name {width:62%;}
356 356
 .content .line .float_left button {float:right; left:-2px; top:-2px; position:relative; background:transparent; border:none; width:34px; height:34px; padding:0;} 
357 357
 .content .line .float_left button img {width:18px;}
358
-.content .line .float_left input {width:100%; font-size:14pt; text-overflow:ellipsis; padding-right:22px;}
358
+.content .line .float_left input {width:100%; font-size:12pt; text-overflow:ellipsis; padding-right:22px;}
359
+.content .line .float_left input::placeholder {color:#bbb; font-size:10pt;}
359 360
 .content .line .float_left.note {width: 100%; padding: 10px;}
360 361
 .content .line .float_left.note textarea {width: 100%; height: 100px; border: 1px solid #aaa; text-align: left; font-size:14px;}
361 362
 .content .line .float_left div {font-size: 14pt; margin-top: 4px; margin-right:8px; text-align:right; font-weight:100;}

+ 13 - 1
src/main/webapp/mobile/js/app/main.js

@@ -4,7 +4,7 @@ require(['config'], function() {
4 4
 	], function($) {
5 5
 
6 6
 		setTimeout(function() {
7
-			mobMainObj.init();
7
+			// mobMainObj.init();
8 8
 		}, 100);
9 9
 
10 10
 	});
@@ -299,3 +299,15 @@ let mobPopObj = {
299 299
 		$('#' + popId).closest('.mobile-pop-close').hide();
300 300
 	}
301 301
 };
302
+
303
+function appCallFnConnKey(connKey) {
304
+	if(connKey) {
305
+		sessionStorage.setItem('itp_login_info', JSON.stringify({
306
+			timestamp: new Date(),
307
+			connKey: connKey
308
+		}));
309
+		itp_fn_session_data(connKey);
310
+	} else {
311
+		location.replace('app:logout');
312
+	}
313
+}

+ 35 - 18
src/main/webapp/mobile/js/config.js

@@ -64,30 +64,46 @@ require([
64 64
 
65 65
 	// 로그아웃 버튼
66 66
 	$('#ITP_MOBILE_BTN_LOGOUT').click(function() {
67
-		fnLogout();
67
+		CommonObj.isApp ? location.replace('app:logout') : fnLogout();
68 68
 	});
69 69
 
70 70
 	if(VIEW_PAGE !== 'LOGIN' && VIEW_PAGE !== 'PAY') {
71 71
 		var data = JSON.parse(sessionStorage.getItem('itp_login_info'));
72
-		CONN_KEY = data.connKey; //로그인 했을때 넣었던 키를 가져옴
72
+		if(CommonObj.isApp) {
73
+			if(data && data.connKey) {
74
+				console.log("data 1 : ");
75
+				itp_fn_session_data(data.connKey);
76
+			} else {
77
+				console.log("data 2 : ");
78
+				location.replace('app:connKey');
79
+			}
80
+		} else {
81
+			itp_fn_session_data(data.connKey);
82
+		}
83
+	}
73 84
 
74
-		var callbackFn = function(result) {
75
-			console.log(result);
76
-			CODE_LIST = result.codeList;
77
-			AUTH_MENU_LIST = result.authMenuList;
78
-			ACT_LIST = result.actList;
79
-			LOGIN_USER_INFO = result.userInfo;
85
+});
80 86
 
81
-			// 사용자 정보 만들기
82
-			fn_make_user_info.init();
87
+var itp_fn_session_data = function(connKey) {
88
+	CONN_KEY = connKey; //로그인 했을때 넣었던 키를 가져옴
83 89
 
84
-			// 왼쪽 메뉴 만들기
85
-			fn_make_slide_menu.init();
86
-		};
87
-		fn_ajax_call('/api/session/data-app', null, callbackFn, 'GET');
88
-	}
90
+	var callbackFn = function(result) {
91
+		console.log(result);
92
+		CODE_LIST = result.codeList;
93
+		AUTH_MENU_LIST = result.authMenuList;
94
+		ACT_LIST = result.actList;
95
+		LOGIN_USER_INFO = result.userInfo;
89 96
 
90
-});
97
+		// 사용자 정보 만들기
98
+		fn_make_user_info.init();
99
+
100
+		// 왼쪽 메뉴 만들기
101
+		fn_make_slide_menu.init();
102
+
103
+		mobMainObj.init();
104
+	};
105
+	fn_ajax_call('/api/session/data-app', null, callbackFn, 'GET');
106
+};
91 107
 
92 108
 var itp_fn_logined_check = function(user_nm_update, fn) {
93 109
 	var now, expiration, data = false;
@@ -353,7 +369,7 @@ function fnLogout() { //로그아웃
353 369
 	var callbackFn = function(result) {
354 370
 		sessionStorage.removeItem('itp_login_info'); //Jwt 키 제거
355 371
 		sessionStorage.removeItem('itp_manage_user_info'); //로그인 사용자 정보 제거
356
-		$(location).attr('href', MOBILE_CONTEXTPATH + '/app/login.html');
372
+		$(location).attr('href', CommonObj.isApp ? 'app:logout' : MOBILE_CONTEXTPATH + '/app/login.html');
357 373
 	};
358 374
 	fn_ajax_call('/api/member/sign-out', null, callbackFn, 'PATCH');
359 375
 }
@@ -361,7 +377,8 @@ function fnLogout() { //로그아웃
361 377
 function fnSessionOut() { //1시간 동안 아무것도 안할때 또는 강제 만료시킬때 사용
362 378
 	var callbackFn = function(result) {
363 379
 		sessionStorage.removeItem('itp_login_info'); //Jwt 키 제거
364
-		$(location).attr('href', MOBILE_CONTEXTPATH + '/app/login.html');
380
+		sessionStorage.removeItem('itp_manage_user_info'); //로그인 사용자 정보 제거
381
+		$(location).attr('href', CommonObj.isApp ? 'app:logout' : MOBILE_CONTEXTPATH + '/app/login.html');
365 382
 	};
366 383
 	fn_ajax_call('/api/session/expire', null, callbackFn, 'PATCH');
367 384
 }