浏览代码

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

yhl88 2 年之前
父节点
当前提交
b9336cc29d

+ 4 - 4
src/main/webapp/mobile/app/mpomng/MPOMNG06010.html

@@ -130,7 +130,7 @@
130 130
 					<label>공급업체</label>
131 131
 				</div>
132 132
 				<div class="header_right">
133
-					<button type="button" id="ITP_BTN_MPOMNG06010_POP_SPPLY_CLOSE"><img src="../img/close.png"></button>
133
+					<button type="button" id="ITP_BTN_MPOMNG06010_POP_SPPLY_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
134 134
 				</div>
135 135
 			</div>
136 136
 			<div class="search_bar">
@@ -164,10 +164,10 @@
164 164
 		<div class="pop">
165 165
 			<div class="header">
166 166
 				<div class="header_left">
167
-					<label>납품장소</label>
167
+					<label>수거창고</label>
168 168
 				</div>
169 169
 				<div class="header_right">
170
-					<button type="button" id="ITP_BTN_MPOMNG06010_POP_WHS_CLOSE"><img src="../img/close.png"></button>
170
+					<button type="button" id="ITP_BTN_MPOMNG06010_POP_WHS_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
171 171
 				</div>
172 172
 			</div>
173 173
 			<div class="search_bar">
@@ -179,7 +179,7 @@
179 179
 				</form>
180 180
 			</div>
181 181
 			<div class="select_btn">
182
-				<button id="ITP_BTN_MPOMNG06010_POP_WHS_NM" class="btn_red">납품장소 <img src="../img/arrow_down.png"></button>
182
+				<button id="ITP_BTN_MPOMNG06010_POP_WHS_NM" class="btn_red">수거창고 <img src="../img/arrow_down.png"></button>
183 183
 			</div>
184 184
 			<div id="ITP_LIST_MPOMNG06010_POP_WHS_AREA" class="popup_scroll">
185 185
 				<ul id="ITP_LIST_MPOMNG06010_POP_WHS_ROWS" class="mb_0 panel-group itp_nav"></ul>

+ 4 - 4
src/main/webapp/mobile/app/mrtnmng/MRTNMNG02010.html

@@ -104,13 +104,13 @@
104 104
 					<div class="line">
105 105
 						<label>반려일자</label>
106 106
 						<div class="line_right">
107
-							<div class="fnRjctDt"></div>
107
+							<div class="fnRtnRjctDt"></div>
108 108
 						</div>
109 109
 					</div>
110 110
 					<div class="line">
111 111
 						<label>반려담당자</label>
112 112
 						<div class="line_right">
113
-							<div class="fnRjctMgrNm"></div>
113
+							<div class="fnRjctNm"></div>
114 114
 						</div>
115 115
 					</div>
116 116
 					<div class="line">
@@ -139,10 +139,10 @@
139 139
 			            <div class="nomal">
140 140
 			              	<label class="col_3">요청수량</label>
141 141
 			                <span>:</span>
142
-			                <div class="fnPchReqQty"></div>
142
+			                <div class="fnRtnQty"></div>
143 143
 			                <label class="col_3">요청금액</label>
144 144
 			                <span>:</span>
145
-			                <div class="col_10 fnPchReqAmt"></div>
145
+			                <div class="col_10 fnRtnAmt"></div>
146 146
 			              </div>
147 147
 			           </div>   
148 148
 			        </li>

+ 2 - 2
src/main/webapp/mobile/app/mrtnmng/MRTNMNG05010.html

@@ -131,7 +131,7 @@
131 131
 					<label>공급업체</label>
132 132
 				</div>
133 133
 				<div class="header_right">
134
-					<button type="button" id="ITP_BTN_MRTNMNG05010_POP_SPPLY_CLOSE"><img src="../img/close.png"></button>
134
+					<button type="button" id="ITP_BTN_MRTNMNG05010_POP_SPPLY_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
135 135
 				</div>
136 136
 			</div>
137 137
 			<div class="search_bar">
@@ -168,7 +168,7 @@
168 168
 					<label>납품장소</label>
169 169
 				</div>
170 170
 				<div class="header_right">
171
-					<button type="button" id="ITP_BTN_MRTNMNG05010_POP_WHS_CLOSE"><img src="../img/close.png"></button>
171
+					<button type="button" id="ITP_BTN_MRTNMNG05010_POP_WHS_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
172 172
 				</div>
173 173
 			</div>
174 174
 			<div class="search_bar">

+ 1 - 1
src/main/webapp/mobile/js/app/mloanmng/ITP_MLOANMNG02010.js

@@ -194,7 +194,7 @@ let mobContObj = {
194 194
 				// 결제 팝업 결과
195 195
 				var popFn = function(rowDataPop) {
196 196
 					console.log(JSON.stringify(rowDataPop));
197
-					// mobContObj.list.search();
197
+					mobContObj.list.search();
198 198
 				};
199 199
 				// 결제 팝업
200 200
 				// 결제타입코드 : 10(선불(충전)), 20(후불(결제)), 30(후불(선결제)), 30(후불(선결제))

+ 21 - 39
src/main/webapp/mobile/js/app/mrtnmng/ITP_MRTNMNG01010.js

@@ -327,7 +327,7 @@ let mobPopObj = {
327 327
 	},
328 328
 	popWhsNm: {
329 329
 		init: function () {
330
-			$('#ITP_POP_MPOMNG01010_WHS_AREA #ITP_FORM_MPOMNG01010_POP_WHS_KEYWORD').val('');
330
+			$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .mb_0').children().remove();
331 331
 			this.rows.length = 0;
332 332
 			this.search();
333 333
 			this.action();
@@ -335,62 +335,43 @@ let mobPopObj = {
335 335
 		rows: [],
336 336
 		search: function () {
337 337
 			var _this = this;
338
-			$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .panel-group').empty();
338
+			$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .mb_0').empty();
339 339
 			var callbackFn = function(result) {
340 340
 				console.log(result);
341
-				_this.view(result.gridRows);
341
+				$.each(result.gridRows, function (i, item) {
342
+					$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .mb_0').append($('#ITP_LIST_MRTNMNG01010_POP_WHS_ROWCOPY').html());
343
+					var $li = $('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .mb_0 > .row_2:last');
344
+					$li.find('.fnWhsNm').text(item.whsNm);
345
+					$li.find('.fnLocationNm').text(item.locationNm);
346
+					$li.find('.fnWhsId').data('whs-id', item.whsId);
347
+					$li.find('.fnWhsId').data('location', item.location);
348
+					$('#ITP_LIST_MRTNMNG01010_POP_WHS_ROWS li button')[$li.index()].addEventListener('click', function() { _this.choice(this); });
349
+				});
342 350
 			};
343 351
 			const param = $('#ITP_FORM_MRTNMNG01010_POP_WHS').serializeObject();
344 352
 			(fn_make_user_info.get('authTpCd') === '50') ? param.swhsDvsn = 'W02' : param.swhsDvsn = 'W01';
345 353
 			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
346 354
 		},
347
-		view: function(gridRows) {
348
-			this.rows = gridRows;
349
-			$.each(gridRows, function (i, item) {
350
-				$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MRTNMNG01010_POP_WHS_ROWCOPY').html());
351
-				var $li = $('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .panel-group > .row_2:last');
352
-				$li.find('.fnWhsNm').text(item.whsNm);
353
-				$li.find('.fnLocationNm').text(item.locationNm);
354
-				$li.find('.fnWhsId').data('whs-id', item.whsId);
355
-			});
356
-		},
357 355
 		action: function() {
358 356
 			var _this = this;
359
-			$('button[id^="ITP_BTN_MRTNMNG01010_POP_WHS"]').off('click').on('click', function() {
360
-				var id = $(this).attr('id');
361
-				switch (id) {
362
-					case 'ITP_BTN_MRTNMNG01010_POP_WHS_SEARCH'	: _this.search();			break;
363
-					case 'ITP_BTN_MRTNMNG01010_POP_WHS_CHOICE'	: _this.choice($(this)); 	break;
364
-					case 'ITP_BTN_MRTNMNG01010_POP_WHS_CLOSE'	: _this.close(); 			break;
365
-				}
366
-				return false;
357
+			$('#ITP_FORM_MRTNMNG01010_POP_WHS button[id="ITP_BTN_MRTNMNG01010_POP_WHS_SEARCH"]').off('click').on('click', function() {
358
+				_this.search();
367 359
 			});
368 360
 		},
369 361
 		choice: function(elem) {
370
-			var _this = this;
371 362
 			var whsId = $(elem).data('whs-id');
372
-			$.each(this.rows, function (i, item) {
373
-				if(whsId === item.whsId) {
374
-					console.log(item);
375
-					$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_ID').val(item.whsId);
376
-					$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_NM').val(item.whsNm);
377
-					$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_LOCATION').val(item.location);
378
-					mobPopObj.hide(ID_ITP_POP_MRTNMNG01010_WHS_AREA);
379
-					itp_fn_form_clear_validate(null, '#ITP_FORM_MRTNMNG01010_DETAIL');
380
-					return false;
381
-				}
382
-			});
363
+			var whsNm = $(elem).parent().prev().find('.fnWhsNm').text();
364
+			var location = $(elem).data('location');
365
+			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_ID').val(whsId);
366
+			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_NM').val(whsNm);
367
+			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_LOCATION').val(location);
368
+			mobPopObj.hide(ID_ITP_POP_MRTNMNG01010_WHS_AREA);
369
+			itp_fn_form_clear_validate(null, '#ITP_FORM_MRTNMNG01010_DETAIL');
383 370
 		},
384 371
 		delete: function() {
385 372
 			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_ID').val('');
386 373
 			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_WHS_NM').val('');
387 374
 			$('#ITP_FORM_MRTNMNG01010_DETAIL #ITP_FORM_MRTNMNG01010_DETAIL_LOCATION').val('');
388
-		},
389
-		close: function() {
390
-			this.rows.length = 0;
391
-			$('#ITP_LIST_MRTNMNG01010_POP_WHS_AREA .panel-group').empty();
392
-			$('#ITP_POP_MRTNMNG01010_WHS_AREA #ITP_FORM_MRTNMNG01010_POP_WHS_KEYWORD').val('');
393
-			mobPopObj.hide(this.popId);
394 375
 		}
395 376
 	},
396 377
 	popReqConfirm: {
@@ -442,6 +423,7 @@ let mobPopObj = {
442 423
 		var _this = this;
443 424
 		$('button[id$="CLOSE"]').off('click').on('click', function() {
444 425
 			var id = $(this).attr('id');
426
+			console.log('id ===> ' + id);
445 427
 			if($(this).hasClass('btn-pop-close')) {
446 428
 				_this.hide(id);
447 429
 			}

+ 3 - 1
src/main/webapp/mobile/js/app/mrtnmng/ITP_MRTNMNG02010.js

@@ -201,7 +201,9 @@ let mobContObj = {
201 201
 			$(id).find('.fnRtnReqDt').text(result.rtnReqDt);
202 202
 			$(id).find('.fnRtnReqAmt').text(CommonObj.currency.add(result.rtnReqAmt));
203 203
 			$(id).find('.fnRtnWhsNm').text(result.rtnWhsNm);
204
-			$(id).find('.fnRtnApprNm').text('(' + result.pchApprNm + ')' + CommonObj.currency.add(result.pchApprAmt));
204
+			$(id).find('.fnRtnRjctDt').text(result.rtnRjctDt);
205
+			$(id).find('.fnRjctNm').text(result.rtnRjctNm);
206
+			$(id).find('.fnRjctRsn').text(result.rtnRjctRsn);
205 207
 			$.each(result.rtnReqDtlList, function (i, item) {
206 208
 				$('#ITP_LIST_MRTNMNG02010_DETAIL_AREA .panel-group').append($('#ITP_LIST_MRTNMNG02010_DETAIL_ROWCOPY').html());
207 209
 				var $li = $('#ITP_LIST_MRTNMNG02010_DETAIL_AREA .panel-group > .item-row:last');

+ 3 - 5
src/main/webapp/mobile/js/app/mrtnmng/ITP_MRTNMNG04010.js

@@ -72,14 +72,12 @@ let mobPageObj = {
72 72
 				return false;
73 73
 			});
74 74
 
75
+			$(document).off('click', '#ITP_LIST_MRTNMNG04010_LIST_ITEM_ROWS li');
75 76
 			$(document).on('click', '#ITP_LIST_MRTNMNG04010_LIST_ITEM_ROWS li', function() {
76 77
 				var item = mobContObj.list.rows[$(this).index()];
77 78
 				mobContObj.view.init(item);
78 79
 			});
79 80
 
80
-			$(document).on('click', '#ITP_LIST_MRTNMNG04010_POP_WHS_ROWS li button', function() {
81
-				mobPopObj.popWhsNm.choice($(this));
82
-			});
83 81
 		}
84 82
 	},
85 83
 	switchScreen: function(mode) {
@@ -166,7 +164,7 @@ let mobContObj = {
166 164
 		view: function(result) {
167 165
 			var _this = this;
168 166
 			var id = '#ITP_AJAX_MRTNMNG04010_VIEW_CONTAINER';
169
-			$('#ITP_BTN_MRTNMNG04010_VIEW_RTN_PO_CANCEL').prop('disabled', (result.rtnReqDvsn !== 'RR00'));
167
+			$('#ITP_BTN_MRTNMNG04010_VIEW_RTN_PO_CANCEL').prop('disabled', result.rtnReqDvsn !== 'RR02');
170 168
 			$(id).find('.fnRtnOdrRegDt').text(result.rtnOdrRegDt);
171 169
 			$(id).find('.fnRtnDodrTotalAmt').text(CommonObj.currency.add(result.rtnDodrTotalAmt));
172 170
 			$(id).find('.fnRtnWhsNm').text(result.rtnWhsNm);
@@ -191,7 +189,7 @@ let mobContObj = {
191 189
 					var searhFn = function () {
192 190
 						mobContObj.list.init();
193 191
 					};
194
-					fn_ajax_call(API_RTNMNG_RTN_CANCEL_RTNPO, JSON.stringify(param), searhFn, 'POST');
192
+					fn_ajax_call(API_MOBILE_CANCEL, JSON.stringify(param), searhFn, 'POST');
195 193
 				}
196 194
 			};
197 195
 			itp_fn_modal_confirm('반품발주를 취소 하시겠습니까?', modalFn);

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

@@ -64,7 +64,12 @@ require([
64 64
 
65 65
 	// 로그아웃 버튼
66 66
 	$('#ITP_MOBILE_BTN_LOGOUT').click(function() {
67
-		CommonObj.isApp ? location.replace('app:logout') : fnLogout();
67
+		var logoutFn = {
68
+			callBack: function(args) {
69
+				CommonObj.isApp ? location.replace('app:logout') : fnLogout();
70
+			}
71
+		};
72
+		itp_fn_modal_confirm('로그아웃하시겠습니까?', logoutFn, null);
68 73
 	});
69 74
 
70 75
 	if(VIEW_PAGE !== 'LOGIN' && VIEW_PAGE !== 'PAY') {