浏览代码

모바일 바코드 수정

juney 2 年之前
父节点
当前提交
9fe36ef837

+ 1 - 1
src/main/webapp/mobile/app/mstockmng/MSTOCKMNG02010.html

@@ -13,7 +13,7 @@
13 13
 			<div class="line">
14 14
 			  <label>창고선택</label>
15 15
 			  <div class="line_right">
16
-				<select name="swhsId" id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM">
16
+				<select name="swhsId" id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID">
17 17
 					<option value=""></option>
18 18
 				</select>
19 19
 			  </div>

+ 0 - 8
src/main/webapp/mobile/css/style.css

@@ -208,14 +208,6 @@ input .day {margin: 18%; width: 45%; height: 80px; float: right;}
208 208
 #ITP_MENU .menu_bar .menu_header .setting {float: right;}
209 209
 #ITP_MENU .menu_bar .menu_header .setting button {width: 30px; height: 30px; padding: 0; background: #666; border-radius: 5px; margin: 30px 20px 0 0;}
210 210
 #ITP_MENU .menu_bar .menu_header .setting button img {width: 20px; height: 20px;}
211
-#ITP_MENU .menu_bar .menu_select {width: 100%; height: 100%;}
212
-#ITP_MENU .menu_bar .menu_select ul {height: auto;}
213
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_heading {text-align: left; padding: 15px 0 15px 20px; background: #eee; font-weight: 700; border-bottom: 1px solid #000; font-size: 1.1rem;}
214
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_heading .ver {letter-spacing: 3px; margin-left: 10px; font-weight: normal; }
215
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_heading .show {float: right; margin-right: 20px; color: #337ab7; font-size: 0.9rem;}
216
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_body .itp_svg_in {padding: 10px 0 10px 30px; text-align: left; border-bottom: 1px solid #000;}
217
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_body .itp_svg_in i {width: 30px; height: 30px;}
218
-#ITP_MENU .menu_bar .menu_select ul .panel_list .panel_body .itp_svg_in i img{width: 15px; height: 15px;}
219 211
 
220 212
 
221 213
 /* ITP_SIDEBAR */

+ 13 - 11
src/main/webapp/mobile/js/app/mstockmng/ITP_MSTOCKMNG02010.js

@@ -68,7 +68,7 @@ let mobPageObj = {
68 68
 				}
69 69
 			});
70 70
 
71
-			$('select[id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM"]').on('change', function() {
71
+			$('select[id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID"]').on('change', function() {
72 72
 				mobContentObj.list.locationList();
73 73
 			});
74 74
 		}
@@ -126,9 +126,9 @@ let mobContentObj = {
126 126
 			const storeIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_STORE_ID').val();
127 127
 			const param = {sbrandId: brandIdVal, sstoreId: storeIdVal, pagingYn: false};
128 128
 			fn_ajax_call(API_MOBILE_WHS_GRID_LIST, JSON.stringify(param), function(result) {
129
-				fn_make_select_whs(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM');
129
+				fn_make_select_whs(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID');
130 130
 				if(result.gridRecords > 0) {
131
-					$('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM').trigger('change');
131
+					$('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').trigger('change');
132 132
 				}
133 133
 			}, 'POST');
134 134
 		},
@@ -136,7 +136,7 @@ let mobContentObj = {
136 136
 			var _this = this;
137 137
 			const brandIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_BRAND_ID').val();
138 138
 			const storeIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_STORE_ID').val();
139
-			const whsIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM').val();
139
+			const whsIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').val();
140 140
 			const param = {brandId: brandIdVal, storeId: storeIdVal, whsId: whsIdVal, pagingYn: false};
141 141
 			fn_ajax_call(API_MOBILE_LOCATION_LIST, JSON.stringify(param), function(result) {
142 142
 				fn_make_select_location(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_LOCATION');
@@ -214,12 +214,12 @@ let mobContentObj = {
214 214
 	barcode: {
215 215
 		callApp: function() {
216 216
 			location.replace('app:scan');
217
-			return;
218
-			var formId = '#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH';
219
-			itp_fn_form_clear_validate(null, formId);
220
-			if (itp_fn_form_event.isValid(formId)) {
221
-				location.replace('app:scan');
222
-			}
217
+			// return;
218
+			// var formId = '#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH';
219
+			// itp_fn_form_clear_validate(null, formId);
220
+			// if (itp_fn_form_event.isValid(formId)) {
221
+			// 	location.replace('app:scan');
222
+			// }
223 223
 		}
224 224
 	}
225 225
 };
@@ -227,16 +227,18 @@ let mobContentObj = {
227 227
 function appCallFnBarcode(barcode) {
228 228
 	console.log(JSON.stringify(barcode));
229 229
 	var infoFn = function(result) {
230
+		console.log(JSON.stringify(result));
230 231
 		if(result) {
231 232
 			mobContentObj.list.itemAdd([result]);
232 233
 		}
233 234
 	};
234 235
 	const param = {
235
-		'sBrandId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_BRAND_ID').val(),
236
+		'sBrandId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_BRAND_ID').val(),
236 237
 		'sWhsId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').val(),
237 238
 		'sLocation': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_LOCATION').val(),
238 239
 		'sBarcode': barcode
239 240
 	};
241
+	console.log(JSON.stringify(param));
240 242
 	fn_ajax_call(API_MOBILE_BARCODE, param, infoFn, 'GET');
241 243
 }
242 244
 

+ 1 - 1
src/main/webapp/mobile/js/config.js

@@ -157,7 +157,7 @@ var fn_make_user_info = {
157 157
 
158 158
 var fn_make_slide_menu = {
159 159
 	init: function() {
160
-		$('.menu_select .panel-group').empty();
160
+		$('.itp_open_nav .panel-group').empty();
161 161
 		this.make();
162 162
 	},
163 163
 	make: function() {