Browse Source

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

dwkim 2 years ago
parent
commit
89cf7d5a06

+ 10 - 8
src/main/webapp/app/oper/OPER01010.html

@@ -4,12 +4,12 @@
4 4
 			<div class="itp_det_head fix">
5 5
 				<h2 class="pull-left itp_det_tit"><i class="glyphicon glyphicon-chevron-right"></i><i class="glyphicon glyphicon-chevron-right"></i> <strong>사용자관리</strong></h2>
6 6
 				<div class="pull-right itp_cicon">
7
-					<button type="button" id="ITP_BTN_OPER01010_SRH" class="btn btn-success btn-md SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i>조회</button>
8
-					<button type="button" id="ITP_BTN_OPER01010_MODIFY" class="btn btn-success btn-md UPB" style="display: inline-block;"><i class="glyphicon "></i>수정</button>
9
-					<button type="button" id="ITP_BTN_OPER01010_NEWREG" class="btn btn-primary btn-md NEB" style="display: inline-block;"><i class="glyphicon "></i>신규등록</button>
10
-					<button type="button" id="ITP_BTN_OPER01010_DELETE" class="btn btn-danger btn-md DEB"><i class="glyphicon "></i>삭제</button>
11
-					<button type="button" id="ITP_BTN_OPER01010_SAVE" class="btn btn-success btn-md SAB"><i class="glyphicon "></i>저장</button>
12
-					<button type="button" id="ITP_BTN_OPER01010_CANCELLIST" class="btn btn-warning btn-md PRB"><i class="glyphicon "></i>취소/목록</button>
7
+					<button type="button" id="ITP_BTN_OPER01010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i>조회</button>
8
+					<button type="button" id="ITP_BTN_OPER01010_MODIFY" class="btn btn-success btn-sm UPB" style="display: inline-block;"><i class="glyphicon "></i>수정</button>
9
+					<button type="button" id="ITP_BTN_OPER01010_NEWREG" class="btn btn-primary btn-sm NEB" style="display: inline-block;"><i class="glyphicon "></i>신규등록</button>
10
+					<button type="button" id="ITP_BTN_OPER01010_DELETE" class="btn btn-danger btn-sm DEB"><i class="glyphicon "></i>삭제</button>
11
+					<button type="button" id="ITP_BTN_OPER01010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon "></i>저장</button>
12
+					<button type="button" id="ITP_BTN_OPER01010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon "></i>취소/목록</button>
13 13
 				</div>
14 14
 			</div>
15 15
 			<div class="itp_det_in">
@@ -29,7 +29,9 @@
29 29
 											<button type="button" id="ITP_FORM_OPER01010_DELETE_AFFL_SHOP" class="btn btn-warning btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
30 30
 						                </div>
31 31
 										<div class="col-xs-2 itp_ip itp_noMar">
32
-											<select id="ITP_FORM_OPER01010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId"></select>
32
+											<select id="ITP_FORM_OPER01010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId">
33
+												<option value="">브랜드명</option>											
34
+											</select>
33 35
 										</div>									
34 36
 									</div>
35 37
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
@@ -116,7 +118,7 @@
116 118
 										<div class="form-group">
117 119
 											<label class="col-xs-2 itp_lb">사용자ID *</label>
118 120
 											<div class="col-xs-4 itp_ip">
119
-												<div class="col-xs-2 itp_in fnUserId" style="margin-top:5px;"></div>
121
+												<div class="col-xs-a itp_in fnUserId" style="margin-top:5px;"></div>
120 122
 												<div class="col-xs-7 itp_in">
121 123
 													<div class="input-group">
122 124
 														<input type="text" id="ITP_FORM_OPER01010_DETAIL_USER_ID" data-check-required="empty" class="form-control itp_input" name="userId" value="" maxlength="20">

+ 3 - 1
src/main/webapp/app/oper/OPER02010.html

@@ -28,7 +28,9 @@
28 28
 											<button type="button" id="ITP_FORM_OPER02010_DELETE_AFFL_SHOP_BTN" class="btn btn-warning btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
29 29
 										</div>
30 30
 										<div class="col-xs-2 itp_ip itp_noMar">
31
-											<select id="ITP_FORM_OPER02010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId"></select>
31
+											<select id="ITP_FORM_OPER02010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId">
32
+												<option value="">브랜드명</option>
33
+											</select>
32 34
 										</div>
33 35
 									</div>
34 36
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">

+ 3 - 1
src/main/webapp/app/oper/OPER06010.html

@@ -27,7 +27,9 @@
27 27
 											<button type="button" id="ITP_BTN_OPER06010_DELETE_AFFL_SHOP" class="btn btn-warning btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
28 28
 										</div>
29 29
 										<div class="col-xs-2 itp_ip itp_noMar">
30
-											<select id="ITP_FORM_OPER06010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId"></select>
30
+											<select id="ITP_FORM_OPER06010_SEARCH_BRAND_ID" class="form-control itp_input" name="sbrandId">
31
+												<option value="">브랜드명</option>
32
+											</select>
31 33
 										</div>
32 34
 									</div>
33 35
 									<div class="form-group">

+ 6 - 4
src/main/webapp/app/ordmng/ORDMNG02010.html

@@ -70,7 +70,9 @@
70 70
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
71 71
 											<div class="col-xs-4 itp_ip fnBrandNm"></div>
72 72
 											<label class="col-xs-2 itp_lb">발주번호</label>
73
-											<div class="col-xs-4 itp_ip fnPchPodrUnqNo"></div>
73
+											<div class="col-xs-4 itp_ip fnPchPodrUnqNo">
74
+												<input type="hidden" id="ITP_FORM_ORDMNG02010_DETAIL_PCH_PODR_UNQ_NO" name="pchPodrUnqNo" value=""/>
75
+											</div>
74 76
 										</div>
75 77
 									</div>
76 78
 									<div class="itp_form_in">	
@@ -95,7 +97,7 @@
95 97
 											<div class="input-daterange input-group date">
96 98
 												<div class="col-xs-4 itp_ip">
97 99
 													<div class="col-xs-7 itp_in">
98
-														<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_SCH_DT" class="form-control itp_input" name="dlvSchDt" value="">
100
+														<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_SCH_DT" data-check-required="empty" class="form-control itp_input" name="dlvSchDt" value="">
99 101
 													</div>
100 102
 												</div>
101 103
 											</div>											
@@ -108,13 +110,13 @@
108 110
 											<label class="col-xs-2 itp_lb">납품담당자 *</label>
109 111
 											<div class="col-xs-4 itp_ip">
110 112
 												<div class="col-xs-7 itp_in">
111
-													<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_NM" class="form-control itp_input" name="dlvMgrNm" />
113
+													<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_NM" data-check-required="empty" class="form-control itp_input" name="dlvMgrNm" />
112 114
 												</div>
113 115
 											</div>
114 116
 											<label class="col-xs-2 itp_lb">납품담당자연락처 *</label>
115 117
 											<div class="col-xs-4 itp_ip">
116 118
 												<div class="col-xs-7 itp_in">
117
-													<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_TEL_NO" data-key-up="tel" class="form-control itp_input" name="dlvMgrTelNo" value=""/>
119
+													<input type="text" id="ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_TEL_NO" data-check-required="empty" data-key-up="tel" class="form-control itp_input" name="dlvMgrTelNo" value=""/>
118 120
 												</div>
119 121
 											</div>
120 122
 										</div>

+ 4 - 4
src/main/webapp/css/style.css

@@ -181,7 +181,7 @@ a, button {outline:none !important; text-decoration:none !important;}
181 181
 #ITP_SIDEBAR .itp_nav .itp_svgs li a .itp_tt {float:left;}
182 182
 
183 183
 /* ITP_CONTAINER */
184
-#ITP_CONTAINER {height:calc(100vh - 100px); padding:8px; transition:all .25s ease; float:left; width:calc(100% - 240px);background:#fff;}
184
+#ITP_CONTAINER {height:calc(100vh - 100px); padding:5px 8px; transition:all .25s ease; float:left; width:calc(100% - 240px);background:#fff;}
185 185
 #ITP_CONTAINER.itp_open_conts {padding-left:8px; width:99.9%;}
186 186
 #ITP_CONTAINER .itp_contents {background:#fff; height:100%;}
187 187
 #ITP_CONTAINER .itp_contents .itp_sec {height:100%;}
@@ -300,8 +300,8 @@ html:lang(en) #ITP_CONTAINER .itp_detail .itp_form .itp_thumb_inline .itp_thumb_
300 300
 #ITP_CONTAINER .itp_detail .itp_form .itp_chk_list .itp_chk:first-child {margin-top:5px;}
301 301
 #ITP_CONTAINER .itp_detail .itp_form .itp_sch_btn {padding: 3px 6px;} /* 조회 버튼 */
302 302
 
303
-#ITP_CONTAINER .itp_detail .itp_lg_form {padding-top:10px;}
304
-#ITP_CONTAINER .itp_detail .itp_lg_form.itp_type1 {padding-left:15px; padding-right:15px; padding-bottom:15px; }
303
+#ITP_CONTAINER .itp_detail .itp_lg_form {padding-top:5px;}
304
+#ITP_CONTAINER .itp_detail .itp_lg_form.itp_type1 {padding-left:15px; padding-right:15px; padding-bottom:10px; }
305 305
 #ITP_CONTAINER .itp_detail .itp_lg_form.itp_type1 .itp_srh_border {border:1px solid #ddd; background:#fff; padding:15px 15px 5px 15px; border-radius:4px;box-shadow: 0px 0px 6px #ddd;}
306 306
 #ITP_CONTAINER .itp_detail .itp_lg_form .form-group {margin-bottom:10px;}
307 307
 #ITP_CONTAINER .itp_detail .itp_lg_form .form-control {font-size:13px; color:#333;}
@@ -356,7 +356,7 @@ html:lang(en) #ITP_CONTAINER .itp_detail .itp_form .itp_thumb_inline .itp_thumb_
356 356
 #ITP_CONTAINER .itp_tb_list .itp_no_data u {color:#337ab7; cursor:pointer;}
357 357
 
358 358
 #ITP_CONTAINER .itp_tb_list .itp_views {font-size:12px; margin-bottom:8px; display:none;}
359
-#ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv {float:left; width:50%;}
359
+#ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv {float:left; width:50%; padding-left:5px;}
360 360
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv span {float:left;}
361 361
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv em {font-style:normal;}
362 362
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv .shrv_txt {margin-right:4px;}

+ 3 - 3
src/main/webapp/css/ui.jqgrid-bootstrap.css

@@ -192,7 +192,7 @@ div.tablediv > .table-bordered {
192 192
 }
193 193
 .ui-jqgrid tr.jqgrow {
194 194
 	outline-style: none;
195
-	height:32px;
195
+	height:25.5px;
196 196
 }
197 197
 .ui-jqgrid tr.jqgroup {
198 198
 	outline-style: none;
@@ -212,7 +212,7 @@ div.tablediv > .table-bordered {
212 212
 .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
213 213
 	overflow: hidden;
214 214
 	white-space: pre;
215
-	/* padding-right: 2px; */
215
+	padding:0 5px;
216 216
 }
217 217
 .itp_tb_list.itp_gOver .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
218 218
 	overflow: visible;
@@ -232,7 +232,7 @@ div.tablediv > .table-bordered {
232 232
 .ui-jqgrid tr.jqfoot td {
233 233
 	white-space: nowrap;
234 234
 }
235
-.ui-jqgrid tr.ui-row-ltr td {font-size:13px;color:#333;}
235
+.ui-jqgrid tr.ui-row-ltr td {font-size:13px;color:#333; font-weight:bold;}
236 236
 .ui-jqgrid tr.ui-row-rtl td {font-size:13px;color:#333;}
237 237
 .ui-jqgrid .ui-jqgrid-resize-mark {
238 238
 	width:2px;

+ 4 - 5
src/main/webapp/js/app/oper/ITP_OPER01010.js

@@ -275,7 +275,6 @@ let pageObj = {
275 275
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_SRH', '#ITP_BTN_OPER01010_NEWREG']);
276 276
 		} else if(mode == 'ADD') { // 등록
277 277
 			$('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
278
-			$('.fnUserId').hide(); //사용자 아이디 신규등록에서 보이지 않게하기
279 278
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_CANCELLIST', '#ITP_BTN_OPER01010_SAVE']);
280 279
 
281 280
 			$('#ITP_FORM_OPER01010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
@@ -325,7 +324,7 @@ let pageObj = {
325 324
 						}
326 325
 					});
327 326
 					$((pageObj.pageMode === 'MODIFY') ? OPER01010_NEW_GRID_EMPTY : OPER01010_DETAIL_GRID_EMPTY).hide();
328
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //행 추가할때 2번째 마다 색변경
327
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //행 추가할때 2번째 마다 색변경
329 328
 				};
330 329
 				fn_call_popup('comm', 'AUTH_SCH_POPUP', '#ITP_ASIDE', popFn, null, 'S');
331 330
 			},
@@ -349,7 +348,7 @@ let pageObj = {
349 348
 				url: DOMAIN + API_USERAUTH_GRID_LIST,
350 349
 				multiselect: (this.mode !== 'VIEW'),
351 350
 				loadComplete: function(data) {
352
-					$("tr.jqgrow:odd").css("background", "#CEDFED"); //2번째 마다 색변경
351
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
353 352
 
354 353
 					console.log(data);
355 354
 					itp_fn_grid_load_complete(data, gridId, true, undefined, 'OPER01010_' + this.mode);
@@ -435,7 +434,7 @@ let listObj = {
435 434
 					}
436 435
 				},
437 436
 				loadComplete: function(data) {
438
-					$("tr.jqgrow:odd").css("background", "#F2F8FF"); //2번째 마다 색변경
437
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
439 438
 					console.log(data);
440 439
 					itp_fn_grid_load_complete(data, OPER01010_GRID_ID, true, 'number', 'OPER01010', listObj.itp_OPER01010_search, _this.itp_fn_OPER01010_empty, true, data.gridRecords, true);
441 440
 					var ids = $(OPER01010_GRID_ID).getDataIDs();
@@ -678,7 +677,7 @@ let createObj = {
678 677
 				data: gridData,
679 678
 				multiselect: true,
680 679
 				loadComplete: function(data) {
681
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
680
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
682 681
 					_this.clearData();
683 682
 				}
684 683
 			};

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

@@ -444,7 +444,7 @@ let listObj = {
444 444
 					}
445 445
 				},
446 446
 				loadComplete: function(data) {
447
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
447
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
448 448
 					console.log(data);
449 449
 					itp_fn_grid_load_complete(data, OPER02010_GRID_ID, true, 'number', 'OPER02010', listObj.grid.itp_OPER02010_search, _this.itp_fn_OPER02010_empty, true, data.gridRecords, true);
450 450
 					var ids = $(OPER02010_GRID_ID).getDataIDs();

+ 17 - 3
src/main/webapp/js/app/oper/ITP_OPER03010.js

@@ -316,7 +316,7 @@ let pageObj = {
316 316
 						}
317 317
 					});
318 318
 					$(OPER03010_DETAIL_GRID_EMPTY).hide();
319
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
319
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
320 320
 				};
321 321
 				fn_call_popup('biz', 'BIZPOP_APPL_SALES_USER_SCH', '#ITP_ASIDE', popFn, null, 'S');
322 322
 			},
@@ -332,7 +332,7 @@ let pageObj = {
332 332
 				data: gridData,
333 333
 				multiselect: (this.mode !== 'VIEW'),
334 334
 				loadComplete: function(data) {
335
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
335
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
336 336
 					$(_this.mode === 'VIEW' ? OPER03010_VIEW_GRID_LIST : OPER03010_DETAIL_GRID_LIST).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
337 337
 					data.records === 0 ? _this.clearData() : $(this.mode === 'VIEW' ? OPER03010_VIEW_GRID_EMPTY : OPER03010_DETAIL_GRID_EMPTY).hide();
338 338
 				}
@@ -374,7 +374,13 @@ let listObj = {
374 374
 	},
375 375
 	empty: {
376 376
 		init: function() {
377
+			var _this = this;
377 378
 			this.push();
379
+			$(OPER03010_GRID_EMPTY).on('click', function() {
380
+				_this.back();
381
+				_this.itp_OPER03010_param.gridSize = $.jgrid.defaults.rowNum;
382
+				$(OPER03010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_OPER03010_param)}).trigger('reloadGrid');
383
+			});
378 384
 		},
379 385
 		itp_OPER03010_param: {},
380 386
 		push: function() {
@@ -394,6 +400,7 @@ let listObj = {
394 400
 			listObj.empty.push();
395 401
 			itp_fn_jqgrid_resize(OPER03010_GRID_ID, OPER03010_GRID_LIST, 'lg');
396 402
 			itp_fn_fire_window_resize();
403
+			this.reload();
397 404
 			this.search();
398 405
 		},
399 406
 		colModel: gridColModel.list,
@@ -423,7 +430,7 @@ let listObj = {
423 430
 					}
424 431
 				},
425 432
 				loadComplete: function(data) {
426
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
433
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
427 434
 					console.log(data);
428 435
 					itp_fn_grid_load_complete(data, OPER03010_GRID_ID, true, 'number', 'OPER03010', pageObj.itp_OPER03010_search, listObj.empty, true, data.gridRecords, true);
429 436
 					var ids = $(OPER03010_GRID_ID).getDataIDs();
@@ -434,6 +441,13 @@ let listObj = {
434 441
 			};
435 442
 			itp_fn_grid_make_remote(option);
436 443
 		},
444
+		reload : function() {
445
+			var _this = this;
446
+			$(OPER03010_GRID_EMPTY).off('click').on('click', function() {
447
+				pageObj.itp_OPER03010_param.gridSize = $.jgrid.defaults.rowNum;
448
+				$(OPER03010_GRID_ID).setGridParam({'postData': JSON.stringify(pageObj.itp_OPER03010_param)}).trigger('reloadGrid');
449
+			});
450
+		},
437 451
 		clearData : function() {
438 452
 			$(OPER03010_GRID_ID).jqGrid('clearGridData', true);
439 453
 			$(OPER03010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');

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

@@ -248,7 +248,7 @@ let listObj = {
248 248
                     }
249 249
                 },
250 250
                 loadComplete: function(data) {
251
-                	$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
251
+                	$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
252 252
                     // console.log(data);
253 253
                     itp_fn_grid_load_complete(data, OPER04010_GRID_ID, true, 'number', 'OPER04010', listObj.itp_OPER04010_search, listObj.empty, true, data.gridRecords, true);
254 254
                     var ids = $(OPER04010_GRID_ID).getDataIDs();

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

@@ -337,7 +337,7 @@ let listObj = {
337 337
                     }
338 338
                 },
339 339
                 loadComplete: function(data) {
340
-                	$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경ㄴ
340
+                	$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경ㄴ
341 341
                     console.log(data);
342 342
                     itp_fn_grid_load_complete(data, OPER06010_GRID_ID, true, 'number', 'OPER06010', listObj.itp_OPER06010_search, listObj.empty, true, data.gridRecords, true);
343 343
                     var ids = $(OPER06010_GRID_ID).getDataIDs();

+ 28 - 72
src/main/webapp/js/app/ordmng/ITP_ORDMNG02010.js

@@ -191,23 +191,7 @@ let pageObj = {
191 191
             $('#ITP_FORM_ORDMNG02010_SEARCH #ITP_FORM_ORDMNG02010_SEARCH_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
192 192
             $('#ITP_BTN_ORDMNG02010_SEARCH_WHS_ID').show();
193 193
             $('#ITP_BTN_ORDMNG02010_DELETE_WHS_ID').show();
194
-		}/* else if(mode == 'ADD') { // 등록
195
-			$('#ITP_AJAX_ORDMNG02010_DETAIL_CONTAINER').show();
196
-			fn_show_btn_auth_array(['#ITP_BTN_ORDMNG02010_CANCELLIST', '#ITP_BTN_ORDMNG02010_SAVE']);
197
-
198
-			$('#ITP_FORM_ORDMNG02010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
199
-				$(this).attr('id') === 'ITP_FORM_ORDMNG02010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
200
-				if(elem.type === 'select') {
201
-					$(this).val('').prop('selected', true);
202
-				}
203
-			});
204
-
205
-			$('#ITP_FORM_ORDMNG02010_DETAIL_USER_ID').removeAttr('readonly');
206
-			$('#ITP_FORM_ORDMNG02010_DETAIL_DUP').removeAttr('disabled');
207
-			$('#ITP_FORM_ORDMNG02010_DETAIL_SEARCH_BRAND_ID option').remove();
208
-			$('#ITP_FORM_ORDMNG02010_DETAIL_SEARCH_AFFL_SHOP').show();
209
-			$('#ITP_FORM_ORDMNG02010_DETAIL_DELETE_AFFL_SHOP').show();
210
-		}*/ else if(mode === 'MODIFY') { // 수정
194
+		} else if(mode === 'MODIFY') { // 수정
211 195
 			$('#ITP_AJAX_ORDMNG02010_DETAIL_CONTAINER').show();
212 196
 			fn_show_btn_auth_array(['#ITP_BTN_ORDMNG02010_CANCELLIST', '#ITP_BTN_ORDMNG02010_SAVE', '#ITP_BTN_ORDMNG02010_RESET_PW']);
213 197
 			$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
@@ -220,10 +204,7 @@ let pageObj = {
220 204
 			$('#ITP_FORM_ORDMNG02010_DETAIL_DELETE_AFFL_SHOP').hide();
221 205
 			$('#ITP_BTN_ORDMNG02010_CANCELLIST').show();
222 206
             $('#ITP_BTN_ORDMNG02010_SAVE').show();
223
-		} /*else if(mode === 'VIEW') { // 보기
224
-			$('#ITP_AJAX_ORDMNG02010_VIEW_CONTAINER').show();
225
-			fn_show_btn_auth_array(['#ITP_BTN_ORDMNG02010_MODIFY', '#ITP_BTN_ORDMNG02010_CANCELLIST']);
226
-		}*/
207
+		}
227 208
 	}
228 209
 };
229 210
 
@@ -242,7 +223,6 @@ let listObj = {
242 223
 			let param = $('#ITP_FORM_ORDMNG02010_SEARCH').serializeObject();
243 224
 			param.gridSize = $.jgrid.defaults.rowNum;
244 225
             param.gridPage = $.jgrid.defaults.page;
245
-            console.log(1234);
246 226
             console.log(JSON.stringify(param));
247 227
             $(ORDMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
248 228
         },
@@ -307,18 +287,7 @@ let listObj = {
307 287
             	pager: ORDMNG02010_GRID_PAGER,
308 288
             	multiselect: true,
309 289
 				multiboxonly : false,
310
-				rownumbers: false,/*
311
-            	onCellSelect: function(rowId, cellIdx, cellValue) {
312
-                    var cm = $(this).jqGrid('getGridParam', 'colModel');
313
-                    var colNm = cm[cellIdx].name;
314
-                    if (colNm === 'pchPodrUnqNo') {
315
-                        const pchPodrUnqNoVal = $(this).jqGrid('getCell', rowId, 'pchPodrUnqNo');
316
-                        const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
317
-                        const key = {pchPodrUnqNo: pchPodrUnqNoVal, brandId: brandIdVal};
318
-                        var param = $.param(key);
319
-                        modifyObj.init(param);
320
-                    }
321
-				},*/
290
+				rownumbers: false,
322 291
 				loadComplete: function(data) {
323 292
 					console.log(data);
324 293
                     itp_fn_grid_load_complete(data, ORDMNG02010_GRID_ID, true, 'number', 'ORDMNG02010', listObj.itp_ORDMNG02010_search, listObj.empty, true, data.gridRecords, true);
@@ -370,7 +339,6 @@ let listObj = {
370 339
 /*수정화면 Object*/
371 340
 let modifyObj = {
372 341
 	init: function(param) {
373
-		console.log(param);
374 342
 		this.load(param);
375 343
 	},
376 344
 	itp_ORDMNG02010_param: {},
@@ -380,38 +348,29 @@ let modifyObj = {
380 348
 			listObj.grid.search();
381 349
 		},
382 350
 		save: function() {
383
-			console.log(111111);
384 351
 			const formId = '#ITP_FORM_ORDMNG02010_DETAIL';
385 352
 			itp_fn_form_clear_validate(null, formId);
386
-			console.log(22222);
387 353
 			itp_fn_grid_save_rows(ORDMNG02010_DETAIL_GRID_ID);
388 354
 			let gridInsertData = [];
389 355
 			for(var i=0; i<$(ORDMNG02010_DETAIL_GRID_ID).getGridParam('reccount'); i++) {
390 356
 				$(ORDMNG02010_DETAIL_GRID_ID).jqGrid('saveCell', i+1, 2)
391 357
 			}
358
+			let param = $(formId).serializeObject();
392 359
 			const rowData = $(ORDMNG02010_DETAIL_GRID_ID).getRowData();
393
-			console.log(rowData);
394
-			const keyValue = $(formId + '_BRAND_ID').val();
395
-			$.each(rowData, function(key, value) {
396
-				if (value.viewCd != 'R') {
397
-						value.userId = keyValue;
398
-					if (value.viewCd == 'C') {
399
-						gridInsertData.push(value);
400
-					}
401
-				}
402
-			});
360
+			for (var i = 0; i < rowData.length; i++) {
361
+				rowData[i].podrQty = Number(rowData[i].podrQty);
362
+				rowData[i].shmtQty = Number(rowData[i].shmtQty);
363
+			}
364
+			
403 365
 			var modalFn = {
404 366
 				callBack: (args) => {
405
-					console.log(444444444);
406
-					let param = $(formId).serializeObject();
407
-					param.gridInsertData = gridInsertData;
408
-					console.log(5555);
367
+					param.gridInsertData = rowData;
409 368
 					console.log(param);
410 369
 					var searhFn = function () {
411 370
 						ITP_FORM_OPER03010_DETAIL_IS_WRITING = false;
412 371
 						listObj.grid.search();
413 372
 					}
414
-					//fn_ajax_call(API_POMNG_INOUTMNG_SAVE_SPPLY_INV, JSON.stringify(param), searhFn, 'POST');
373
+					fn_ajax_call(API_POMNG_INOUTMNG_SAVE_SPPLY_INV, JSON.stringify(param), searhFn, 'POST');
415 374
 				}
416 375
 			};
417 376
 			itp_fn_modal_confirm('저장 하시겠습니까?', modalFn);
@@ -444,13 +403,13 @@ let modifyObj = {
444 403
 		console.log(result);
445 404
 		pageObj.switchScreen('MODIFY');
446 405
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnBrandNm').text(result.brandNm);										// 브랜드
447
-		$('#ITP_FORM_ORDMNG02010_DETAIL .fnPchPodrUnqNo').text(result.invPoInfoList[0].pchPodrUnqNo);			// 발주번호
448
-		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDlvRegDt').text(result.dlvRegDt);									// 납품서생성일자
406
+		$('#ITP_FORM_ORDMNG02010_DETAIL .fnPchPodrUnqNo').text(result.invPoInfoList[0].pchPodrUnqNo);			// 발주번호		
407
+		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDlvRegDt').text(result.dlvReqDt);									// 납품서생성일자
449 408
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnPodrTotalAmt').text(result.podrTotalAmt);							// 발주총금액
450 409
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnWhsNm').text(result.whsNm);											// 발주총금액
451 410
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDeliTelNo').text(result.deliTelNo);									// 납품장소연락처
452 411
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_SCH_DT').val(result.dlvSchDt);			// 납품예정일
453
-		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDlvRegDt').text(result.dlvRegDt);									// 납품요청일
412
+		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDlvRegDt').text(result.dlvReqDt);									// 납품요청일
454 413
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_NM').val(result.dlvMgrNm);			// 납품담당자
455 414
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_TEL_NO').val(result.dlvMgrTelNo);	// 납품담당자연락처
456 415
 
@@ -462,11 +421,11 @@ let modifyObj = {
462 421
     			selRowData = $(ORDMNG02010_DETAIL_GRID_ID).jqGrid('getRowData', selectedIds[i]);		//cell 선택
463 422
     		}
464 423
     		let podrQty = selRowData.podrQty;
465
-    		if(value > podrQty) {
466
-    			console.log(podrQty);
424
+    		if(Number(value) > Number(podrQty)) {
467 425
 				return [false, '발주수량 이하 값 입력'];
426
+			} else if (Number(value) < 0) {
427
+				return [false, '음수 입력 불가'];
468 428
 			} else {
469
-				console.log(podrQty);
470 429
 				return [true, ''];
471 430
 			}
472 431
 		};		
@@ -479,13 +438,11 @@ let modifyObj = {
479 438
     		}
480 439
     		let expryYn = selRowData.expryYn;
481 440
     		if (expryYn !== 'Y' && value.length > 0) {
482
-				console.log(expryYn);
483 441
 				return [false, '유통기한여부 N'];
484 442
 			} else {
485
-				console.log(expryYn);0
486 443
 				return [true, ''];
487 444
 			}
488
-		}		
445
+		};
489 446
 		modifyObj.grid.init('MODIFY', result.invPoInfoList);		
490 447
 	},
491 448
 	grid: {
@@ -504,6 +461,12 @@ let modifyObj = {
504 461
 			var option = {
505 462
 				gridId: _this.gridId,
506 463
 				colModel: [
464
+					{
465
+						index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
466
+						label: ITP_MSG_LOCALE.label.pchPodrUnqNo,
467
+						width: '10', fixed: false, align: 'center',
468
+						sortable: false, hidden: true
469
+					},
507 470
 					{
508 471
 						index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
509 472
 						label: ITP_MSG_LOCALE.label.pchPodrDtlNo,  		//발주항번
@@ -557,14 +520,14 @@ let modifyObj = {
557 520
 						index: 'EXPRY_DATE', name: 'expryDate',
558 521
 						label: ITP_MSG_LOCALE.label.expryDate,  		//유통기한일자
559 522
 						width: '20', fixed: false, align: 'center',
560
-						sortable: false, hidden: false, /*edittype: 'text',*/
523
+						sortable: false, hidden: false, 
561 524
 						editable: true, sorttype: 'date',
562 525
 				        editoptions: {dataInit: function(e) {$(e).datepicker(ITP_DATE_LANGUAGE);}},
563 526
 				        editrules: {custom: true, custom_func: isExpryDate}
564 527
 					},
565 528
 					{
566
-						index: 'REMARK', name: 'remark',
567
-						label: ITP_MSG_LOCALE.label.remark,  			//비고
529
+						index: 'REMARK', name: 'deliDesc',				//API 비고 키
530
+						label: ITP_MSG_LOCALE.label.remark,  			//locale-ko 비고
568 531
 						width: '20', fixed: false, align: 'center',
569 532
 						sortable: false, hidden: false, edittype: 'text',
570 533
 						editable: true
@@ -586,12 +549,5 @@ let modifyObj = {
586 549
 		unload: function() {
587 550
 			$.jgrid.gridUnload(this.gridId);
588 551
 		}
589
-	}/*,
590
-	changeRows: function(gridRows) {
591
-		var modifyRows = [];
592
-		var chkColums = ['podrQty', 'expryDate', 'remark'];
593
-		$.each(this.rows, function(index, item) {
594
-			var row = gridRows[index];
595
-		});
596
-	}*/
552
+	}
597 553
 };

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

@@ -90,7 +90,7 @@
90 90
 						</div>
91 91
 						<label class="col_0">수거수량&nbsp;:</label>
92 92
 						<div>
93
-						  <div class="fnRtnDodrItemQty">3개</div>
93
+						  <div class="fnRtnDodrItemQty"></div>
94 94
 						</div>
95 95
 					  </div>
96 96
 					</div>
@@ -98,11 +98,11 @@
98 98
 					  <div class="nomal">
99 99
 						<label class="col_0">단가금액 &nbsp;:</label>
100 100
 						<div class="col_5">
101
-						  <div class="fnUnitAmt col_5">1,000원</div>
101
+						  <div class="fnUnitAmt col_5"></div>
102 102
 						</div>
103 103
 						<label class="col_0">수거금액&nbsp;:</label>
104 104
 						<div>
105
-						  <div class="fnRtnDodrTotalAmt space0">20,000원</div>
105
+						  <div class="fnRtnDodrTotalAmt space0"></div>
106 106
 						</div>
107 107
 						<div class="scroll_btn">
108 108
 						  <button id="ITP_BTN_MCOLLMNG02010_LIST_CHOICE">선택</button>
@@ -199,9 +199,9 @@
199 199
 						<div class="space2">
200 200
 						  <div class="fnItemNm"></div>
201 201
 						</div>
202
-						<label>가격단위&nbsp;:</label>
202
+						<label>수거주문수량&nbsp;:</label>
203 203
 						<div class="space2">
204
-						  <div class="fnUnit"></div>
204
+						  <div class="fnRtnOdrQty"></div>
205 205
 						</div>
206 206
 					  </div>
207 207
 					</div>
@@ -235,7 +235,7 @@
235 235
 					  <div class="nomal">
236 236
 						<label>비고 &nbsp;:</label>
237 237
 						<div>
238
-							<input id="ITP_FORM_MCOLLMNG02010_VIEW_NOTE" type="text" name="rtnRsn">
238
+							<input id="ITP_FORM_MCOLLMNG02010_VIEW_RTN_RSN" type="text" name="rtnRsn">
239 239
 		              	</div>
240 240
 						<label></label>
241 241
 						<div class="space2">

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

@@ -51,11 +51,11 @@
51 51
 					  <div class="nomal">
52 52
 						<label class="col_0">브랜드명 &nbsp;:</label>
53 53
 						<div>
54
-						  <div class="fnBrandNm space1">브랜드명</div>
54
+						  <div class="fnBrandNm space1"></div>
55 55
 						</div>
56 56
 						<label>수거서번호&nbsp;:</label>
57 57
 						<div>
58
-						  <div class="fnColNo">PO1234123</div>
58
+						  <div class="fnColPickUnqNo"></div>
59 59
 						</div>
60 60
 					  </div>
61 61
 					</div>
@@ -63,11 +63,11 @@
63 63
 					  <div class="nomal">
64 64
 						<label class="col_6">수거서상태 &nbsp;:</label>
65 65
 						<div>
66
-						  <div class="fnColStCd">수거전</div>
66
+						  <div class="fnPickStNm"></div>
67 67
 						</div>
68 68
 						<label class="col_0">수거일자&nbsp;:</label>
69 69
 						<div>
70
-						  <div class="fnColDt">2022.10.09</div>
70
+						  <div class="fnColRegDt"></div>
71 71
 						</div>
72 72
 					  </div>
73 73
 					</div>
@@ -75,11 +75,11 @@
75 75
 					  <div class="nomal">
76 76
 						<label>수거요청일&nbsp;:</label>
77 77
 						<div>
78
-						  <div class="fnColReqDt">2022.10.09</div>
78
+						  <div class="fnColReqDt"></div>
79 79
 						</div>
80 80
 						<label>수거예정일&nbsp;:</label>
81 81
 						<div>
82
-						  <div class="fnColSchDt">2022.10.10</div>
82
+						  <div class="fnColSchDt"></div>
83 83
 						</div>
84 84
 					  </div>
85 85
 					</div>
@@ -87,11 +87,11 @@
87 87
 					  <div class="nomal">
88 88
 						<label class="col_0">품목수량 &nbsp;:</label>
89 89
 						<div>
90
-						  <div class="fnItemQty space1">2</div>
90
+						  <div class="fnColReqQty space1"></div>
91 91
 						</div>
92 92
 						<label>수거총금액&nbsp;:</label>
93 93
 						<div>
94
-						  <div class="fnColAmt">600,000</div>
94
+						  <div class="fnColReqAmt"></div>
95 95
 						</div>
96 96
 					  </div>
97 97
 					</div>
@@ -99,11 +99,11 @@
99 99
 					  <div class="nomal">
100 100
 						<label class="col_0">수거장소 &nbsp;:</label>
101 101
 						<div>
102
-						  <div class="fnColPlace space1">A창고</div>
102
+						  <div class="fnWhsAddr space1"></div>
103 103
 						</div>
104 104
 						<label>수거담당자&nbsp;:</label>
105 105
 						<div>
106
-						  <div class="fnColMgrNm space0">홍길동</div>
106
+						  <div class="fnPickMgrNm space0"></div>
107 107
 						</div>
108 108
 					  </div>
109 109
 					</div>
@@ -133,32 +133,32 @@
133 133
 			  <div class="detail_col">
134 134
 				<label>발행일</label>
135 135
 				<i>:</i>
136
-				<div class="fnDt">2022.10.09</div>
136
+				<div class="fnColRegDt"></div>
137 137
 			  </div>
138 138
 			  <div class="detail_col">
139 139
 				<label>수거확인번호</label>
140 140
 				<i>:</i>
141
-				<div class="fnColCnfmNo">DL123445</div>
141
+				<div class="fnColPickUnqNo"></div>
142 142
 			  </div>
143 143
 			  <div class="detail_col">
144 144
 				<label>수거일</label>
145 145
 				<i>:</i>
146
-				<div class="fnColDt">2022.10.10</div>
146
+				<div class="fnColSchDt"></div>
147 147
 			  </div>
148 148
 			  <div class="detail_col">
149 149
 				<label>수거담당자</label>
150 150
 				<i>:</i>
151
-				<div class="fnCOLMgrNm">홍길동(010-1234-1548)</div>
151
+				<div class="fnColMgrNm">홍길동(010-1234-1548)</div>
152 152
 			  </div>
153 153
 			  <div class="detail_col">
154 154
 				<label>수거장소</label>
155 155
 				<i>:</i>
156
-				<div class="fnColPlace">(123450 서울 송파구 문정동 100 A창고)</div>
156
+				<div class="fnWhsAddr"></div>
157 157
 			  </div>
158 158
 			  <div class="detail_col">
159 159
 				<label>전화번호</label>
160 160
 				<i>:</i>
161
-				<div class="fnTel">02-123-4567</div>
161
+				<div class="fnPndrTelNo"></div>
162 162
 			  </div>
163 163
 			</div>
164 164
 			<div class="detail_company_info">
@@ -168,19 +168,19 @@
168 168
 				</div>
169 169
 				<div class="company_info">
170 170
 				  <label>등록번호&nbsp;:&nbsp;</label>
171
-				  <div class="fnBsnsRegNo">215-12-23454</div>
171
+				  <div class="fnRtnBsnsRegno"></div>
172 172
 				</div>
173 173
 				<div class="company_info">
174 174
 				  <label>상호&nbsp;:&nbsp;</label>
175
-				  <div class="fnSag">공급업체명</div>
175
+				  <div class="fnRtnNm"></div>
176 176
 				</div>
177 177
 				<div class="company_info">
178 178
 				  <label>성명&nbsp;:&nbsp;</label>
179
-				  <div class="fnNm">공급자</div>
179
+				  <div class="fnRtnOwnerNm"></div>
180 180
 				</div>
181 181
 				<div class="company_info">
182 182
 				  <label>주소&nbsp;:&nbsp;</label>
183
-				  <div class="fnAddr">서울 송파구 문정동</div>
183
+				  <div class="fnRtnAddr"></div>
184 184
 				</div>
185 185
 			  </div>
186 186
 			  <div class="info_left">
@@ -189,19 +189,19 @@
189 189
 				</div>
190 190
 				<div class="company_info">
191 191
 				  <label>등록번호&nbsp;:&nbsp;</label>
192
-				  <div class="fnBsnsRegNo">215-12-23454</div>
192
+				  <div class="fnColBsnsRegNo"></div>
193 193
 				</div>
194 194
 				<div class="company_info">
195 195
 				  <label>상호&nbsp;:&nbsp;</label>
196
-				  <div class="fnSag">브랜드 회사명</div>
196
+				  <div class="fnColNm"></div>
197 197
 				</div>
198 198
 				<div class="company_info">
199 199
 				  <label>성명&nbsp;:&nbsp;</label>
200
-				  <div class="fnNm">대표자명</div>
200
+				  <div class="fnColOwnerNm"></div>
201 201
 				</div>
202 202
 				<div class="company_info">
203 203
 				  <label>주소&nbsp;:&nbsp;</label>
204
-				  <div class="fnAddr">경기 성남시 상대원동</div>
204
+				  <div class="fnColAddr"></div>
205 205
 				</div>
206 206
 			  </div>
207 207
 			</div>
@@ -218,11 +218,11 @@
218 218
 					  <div class="nomal">
219 219
 						<label>수거발주번호 &nbsp;:</label>
220 220
 						<div class="col_5">
221
-						  <div class="col_5 fnColPodrNo">P12345</div>
221
+						  <div class="col_5 fnRtnPodrUnqNo"></div>
222 222
 						</div>
223 223
 						<label class="col_0">품목아이디&nbsp;:</label>
224 224
 						<div class="space2">
225
-						  <div class="fnItemId">asdf1234</div>
225
+						  <div class="fnItemId"></div>
226 226
 						</div>
227 227
 					  </div>
228 228
 					</div>
@@ -230,11 +230,11 @@
230 230
 					  <div class="nomal">
231 231
 						<label>품목명 &nbsp;:</label>
232 232
 						<div class="space2">
233
-						  <div class="fnItemNm">커피원두</div>
233
+						  <div class="fnItemNm"></div>
234 234
 						</div>
235 235
 						<label>수거요청수량&nbsp;:</label>
236 236
 						<div class="space2">
237
-						  <div class="fnColReqQty">2023.12.02</div>
237
+						  <div class="fnRodrQty"></div>
238 238
 						</div>
239 239
 					  </div>
240 240
 					</div>
@@ -242,11 +242,11 @@
242 242
 					  <div class="nomal">
243 243
 						<label>수거수량 &nbsp;:</label>
244 244
 						<div class="space2">
245
-						  <div class="fnColQty">10</div>
245
+						  <div class="fnColReqQty"></div>
246 246
 						</div>
247 247
 						<label>수거사유구분&nbsp;:</label>
248 248
 						<div>
249
-						  <div class="fnColRsnDvsn">파손</div>
249
+						  <div class="fnRtnRsnDvsnNm"></div>
250 250
 						</div>
251 251
 					  </div>
252 252
 					</div>

+ 61 - 55
src/main/webapp/mobile/js/app/mcollmng/ITP_MCOLLMNG02010.js

@@ -52,9 +52,10 @@ let mobPageObj = {
52 52
 			$('button[id^="ITP_BTN_MCOLLMNG02010_LIST"]').on('click', function() {
53 53
 				var id = $(this).attr('id');
54 54
 				switch (id) {
55
-					case 'ITP_BTN_MCOLLMNG02010_LIST_SEARCH_WHS_NM'	: mobPopObj.popWhsNm.init(); 	break;
56
-					case 'ITP_BTN_MCOLLMNG02010_LIST_DELETE_WHS_NM'	: mobPopObj.popWhsNm.delete(); 	break;
57
-					case 'ITP_BTN_MCOLLMNG02010_LIST_SEARCH'			: mobContentObj.list.search();	break;
55
+					case 'ITP_BTN_MCOLLMNG02010_LIST_SEARCH_WHS_NM'	: mobPopObj.popWhsNm.init(); 		break;
56
+					case 'ITP_BTN_MCOLLMNG02010_LIST_DELETE_WHS_NM'	: mobPopObj.popWhsNm.delete(); 		break;
57
+					case 'ITP_BTN_MCOLLMNG02010_LIST_SEARCH'		: mobContentObj.list.search();		break;
58
+					case 'ITP_BTN_MCOLLMNG02010_LIST_CREATE'		: mobContentObj.list.colPrint();	break;
58 59
 				}
59 60
 				return false;
60 61
 			});
@@ -119,6 +120,7 @@ let mobContentObj = {
119 120
 		totPage: 0,
120 121
 		isSearch: false,
121 122
 		rows: [],
123
+		iChoice: -1,
122 124
 		init: function() {
123 125
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
124 126
 			this.search();
@@ -127,6 +129,7 @@ let mobContentObj = {
127 129
 			this.listPage = 0;
128 130
 			this.totPage = 0;
129 131
 			this.rows.length = 0;
132
+			this.iChoice = -1;
130 133
 			$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWS').empty();
131 134
 			this.load();
132 135
 		},
@@ -141,16 +144,15 @@ let mobContentObj = {
141 144
 					$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWCOPY').html());
142 145
 					var $li = $('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
143 146
 					$li.find('.fnBrandNm').text(item.brandNm);
144
-					$li.find('.fnPchPodrUnqNo').text(item.pchPodrUnqNo);
145
-					$li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
146
-					$li.find('.fnDlvReqDt').text(item.dlvReqDt);
147
-					$li.find('.fnWhsNm').text(item.whsNm);
148
-					$li.find('.fnPodrDt').text(item.podrDt);
147
+					$li.find('.fnRtnPodrUnqNo').text(item.rtnPodrUnqNo);
148
+					$li.find('.fnRtnPodrNo').text(item.rtnPodrNo);
149
+					$li.find('.fnColReqDt').text(item.colReqDt);
150
+					$li.find('.fnRtnWhsNm').text(item.rtnWhsNm);
149 151
 					$li.find('.fnItemId').text(item.itemId);
150 152
 					$li.find('.fnItemNm').text(item.itemNm);
151
-					$li.find('.fnPodrQty').text(CommonObj.currency.add(item.podrQty, '개'));
153
+					$li.find('.fnRtnDodrItemQty').text(CommonObj.currency.add(item.rtnDodrItemQty, '개'));
152 154
 					$li.find('.fnUnitAmt').text(CommonObj.comma.set(item.unitAmt));
153
-					$li.find('.fnPodrAmt').text(CommonObj.comma.set(item.podrAmt));
155
+					$li.find('.fnRtnDodrTotalAmt').text(CommonObj.comma.set(item.rtnDodrTotalAmt));
154 156
 					_this.rows.push(item);
155 157
 				});
156 158
 			};
@@ -162,6 +164,13 @@ let mobContentObj = {
162 164
 			param.toDt = CommonObj.onlyNumber(param.toDt);
163 165
 			console.log(JSON.stringify(param));
164 166
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
167
+		},
168
+		colPrint: function() {
169
+			if(this.iChoice < 0) {
170
+				alert("수거서를 선택해주세요 (대표 수거서번호)");
171
+				return;
172
+			}
173
+			mobContentObj.view.init(this.rows[this.iChoice]);
165 174
 		}
166 175
 	},
167 176
 	view: {
@@ -187,40 +196,43 @@ let mobContentObj = {
187 196
 			var _this = this;
188 197
 			var id = '#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER';
189 198
 			$(id).find('.fnBrandNm').text(result.brandNm);
190
-			$(id).find('.fnPchPodrUnqNo').text(result.pchPodrUnqNo);
191
-			$(id).find('.fnDlvRegDt').text(result.dlvReqDt);
192
-			$(id).find('.fnPodrTotalAmt').text(CommonObj.currency.add(result.podrTotalAmt));
193
-			$(id).find('.fnWhsNm').text(result.whsNm);
194
-			$(id).find('.fnDeliTelNo').text(result.deliTelNo);
195
-			$.each(result.invPoInfoList, function (i, item) {
199
+			$(id).find('.fnRtnPodrDtlNo').text(result.rtnPodrUnqNo);
200
+			$(id).find('.fnRtnOdrRegDt').text(result.rtnOdrRegDt);
201
+			$(id).find('.fnRtnDodrTotalAmt').text(CommonObj.currency.add(result.rtnDodrTotalAmt));
202
+			$(id).find('.fnRtnWhsNm').text(result.rtnWhsNm);
203
+			$(id).find('.fnPickTelNo').text(result.pickTelNo);
204
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_NM').val(result.rtnMgrNm);
205
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_TEL_NO').val(result.rtnMgrTelNo);
206
+			$.each(result.pickRtnDtlInfo, function (i, item) {
196 207
 				$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_ROWCOPY').html());
197 208
 				var $li = $('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group > .list-row:last');
198
-				$li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
209
+				$li.find('.fnRtnPodrDtlNo').text(item.rtnPodrDtlNo);
199 210
 				$li.find('.fnItemId').text(item.itemId);
200 211
 				$li.find('.fnItemNm').text(item.itemNm);
201
-				$li.find('.fnPodrQty').text(CommonObj.comma.set(item.podrQty));
212
+				$li.find('.fnRtnOdrQty').text(CommonObj.comma.set(item.rtnOdrQty));
202 213
 				$li.find('.fnUnitAmt').text(CommonObj.currency.add(item.unitAmt));
203 214
 				$li.find('.fnUnit').text(item.unit);
204
-				$li.find('.fnPodrAmt').text(CommonObj.currency.add(item.podrAmt));
205
-				$li.find('.fnDlvReqDt').text(item.dlvReqDt);
215
+				$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_QTY').val(result.coltQty);
216
+				$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_RTN_RSN_DVSN').val(result.rtnRsnDvsn);
217
+				$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_RTN_RSN').val(result.rtnRsn);
206 218
 				_this.rows.push(item);
207 219
 			});
208 220
 		},
209 221
 		add: function() {
210 222
 			var _this = this;
211 223
 			var param = {};
212
-			var dlvSchDt = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG02010_VIEW_DLV_SCH_DT').val();
213
-			var dlvMgrNm = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG02010_VIEW_DLV_MGR_NM').val();
214
-			var dlvMgrTelNo = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG02010_VIEW_DLV_MGR_TEL_NO').val();
215
-			if(dlvSchDt.length < 1) {
216
-				alert('납품일자를 입력해 주세요.');
224
+			var colSchDt = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MORDMNG02010_VIEW_COL_SCH_DT').val();
225
+			var pickMgrNm = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_NM').val();
226
+			var colMgrTelNo = $('#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_TEL_NO').val();
227
+			if(colSchDt.length < 1) {
228
+				alert('수거수량을 입력해 주세요.');
217 229
 				return false;
218 230
 			}
219
-			if(dlvMgrNm.length < 1) {
231
+			if(colMgrNm.length < 1) {
220 232
 				alert('발주담당자를 입력해 주세요.');
221 233
 				return false;
222 234
 			}
223
-			if(dlvMgrTelNo.length < 1) {
235
+			if(colMgrTelNo.length < 1) {
224 236
 				alert('발주담당자 연락처를 입력해 주세요.');
225 237
 				return false;
226 238
 			}
@@ -229,22 +241,18 @@ let mobContentObj = {
229 241
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group > .list-row').each(function(index) {
230 242
 				var row = _this.rows[index];
231 243
 				var item = {
232
-					'pchPodrDtlNo': row.pchPodrDtlNo,
233
-					'pchPodrUnqNo': row.pchPodrUnqNo,
234
-					'shmtQty': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_SHMT_QTY').val(),
235
-					'expryDate': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_EXPRY_DATE').val(),
236
-					'deliDesc': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_DELI_DESC').val()
244
+					'rtnPodrDtlNo': row.rtnPodrDtlNo,
245
+					'rtnPodrUnqNo': row.rtnPodrUnqNo,
246
+					'coltQty': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_QTY').val(),
247
+					'rtnRsnDvsn': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_RTN_RSN_DVSN').val(),
248
+					'rtnRsn': $(this).find('#ITP_FORM_MCOLLMNG02010_VIEW_RTN_RSN').val()
237 249
 				};
238
-				if(row.expryYn === 'Y' && item.expryDate.length < 1) {
239
-					alert('유통기한을 입력해 주세요.');
240
-					return false;
241
-				}
242
-				if(item.shmtQty.length < 1) {
243
-					alert('납품수량을 입력해 주세요.');
250
+				if(item.coltQty.length < 1) {
251
+					alert('수거수량을 입력해 주세요.');
244 252
 					return false;
245 253
 				}
246
-				if(row.podrQty < item.shmtQty) {
247
-					alert('납품수량은 발주수량을 초과할 수 없습니다.');
254
+				if(row.rtnOdrQty < item.coltQty) {
255
+					alert('수거수량은 수거요청수량을 초과할 수 없습니다.');
248 256
 					return false;
249 257
 				}
250 258
 				item.expryDate = item.expryDate.replace(/-/g, ".");
@@ -255,9 +263,9 @@ let mobContentObj = {
255 263
 				param['viewCd'] = 'C';
256 264
 				param['brandId'] = fn_make_user_info.get('brandId');
257 265
 				param['spplyId'] = fn_make_user_info.get('userId');
258
-				param['dlvSchDt'] = dlvSchDt.replace(/-/g, ".");
259
-				param['dlvMgrNm'] = dlvMgrNm;
260
-				param['dlvMgrTelNo'] = dlvMgrTelNo;
266
+				param['colSchDt'] = colSchDt.replace(/-/g, ".");
267
+				param['pickMgrNm'] = pickMgrNm;
268
+				param['pickMgrTelNo'] = pickMgrTelNo;
261 269
 				param['gridInsertData'] = gridInsertData;
262 270
 				console.log(JSON.stringify(param));
263 271
 				var callbackFn = function(result) {
@@ -269,18 +277,16 @@ let mobContentObj = {
269 277
 		},
270 278
 		cancel: function () {
271 279
 			var id = '#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER';
272
-			$(id + ' #ITP_FORM_MCOLLMNG02010_VIEW_DLV_SCH_DT').val('');
273
-			$(id + ' #ITP_FORM_MCOLLMNG02010_VIEW_DLV_MGR_NM').val('');
274
-			$(id + ' #ITP_FORM_MCOLLMNG02010_VIEW_DLV_MGR_TEL_NO').val('');
275
-			$(id).find('.fnPchPodrDtlNo').text('');
276
-			$(id).find('.fnItemid').text('');
277
-			$(id).find('.fnItemNm').text('');
278
-			$(id).find('.fnUPodrQty').text('');
279
-			$(id).find('.fnUnitAmt').text('');
280
-			$(id).find('.fnUnit').text('');
281
-			$(id).find('.fnPodrQty').text('');
282
-			$(id).find('.fnPodrAmt').text('');
283
-			$(id).find('.fnDlvReqDt').text('');
280
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_NM').val('');
281
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_TEL_NO').val('');
282
+			$(id).find('.fnBrandNm').text('');
283
+			$(id).find('.fnRtnPodrDtlNo').text('');
284
+			$(id).find('.fnRtnOdrRegDt').text('');
285
+			$(id).find('.fnRtnDodrTotalAmt').text('');
286
+			$(id).find('.fnRtnWhsNm').text('');
287
+			$(id).find('.fnPickTelNo').text('');
288
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_NM').val('');
289
+			$(id).find('#ITP_FORM_MCOLLMNG02010_VIEW_COL_MGR_TEL_NO').val('');
284 290
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').empty();
285 291
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
286 292
 		}

+ 50 - 99
src/main/webapp/mobile/js/app/mcollmng/ITP_MCOLLMNG03010.js

@@ -6,9 +6,9 @@ require(['config'], function() {
6 6
 });
7 7
 
8 8
 /*API URL*/
9
-const API_MOBILE_GRID_LIST 			= '/api/pomng/inoutmng/spply-deli-grid-list';	// 목록
10
-const API_MOBILE_INFO 				= '/api/pomng/inoutmng/info-inv';				// 상세
9
+const API_MOBILE_GRID_LIST 			= '/api/rtnmng/inoutmng/spply-pick-grid-list';	// 목록
11 10
 const API_POP_SEARCH_LIST			= '/api/whs/mng/pop-whs-search';
11
+const API_POP_INV_PICK 				= '/api/pomng/inoutmng/info-inv';
12 12
 
13 13
 const PAGE_MODE_LIST				= "LIST";
14 14
 const PAGE_MODE_VIEW				= "VIEW";
@@ -140,16 +140,15 @@ let mobContentObj = {
140 140
 					$('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_ROWCOPY').html());
141 141
 					var $li = $('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group > .list-row:last');
142 142
 					$li.find('.fnBrandNm').text(item.brandNm);
143
-					$li.find('.fnPchPodrUnqNo').text(item.pchPodrUnqNo);
144
-					$li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
145
-					$li.find('.fnDlvReqDt').text(item.dlvReqDt);
146
-					$li.find('.fnWhsNm').text(item.whsNm);
147
-					$li.find('.fnPodrDt').text(item.podrDt);
148
-					$li.find('.fnItemId').text(item.itemId);
149
-					$li.find('.fnItemNm').text(item.itemNm);
150
-					$li.find('.fnPodrQty').text(CommonObj.currency.add(item.podrQty, '개'));
151
-					$li.find('.fnUnitAmt').text(CommonObj.comma.set(item.unitAmt));
152
-					$li.find('.fnPodrAmt').text(CommonObj.comma.set(item.podrAmt));
143
+					$li.find('.fnColPickUnqNo').text(item.colPickUnqNo);
144
+					$li.find('.fnPickStNm').text(item.pickStNm);
145
+					$li.find('.fnColRegDt').text(item.colRegDt);
146
+					$li.find('.fnColReqDt').text(item.colReqDt);
147
+					$li.find('.fnColSchDt').text(item.colSchDt);
148
+					$li.find('.fnColReqQty').text(CommonObj.currency.add(item.colReqQty, '개'));
149
+					$li.find('.fnColReqAmt').text(CommonObj.currency.add(item.colReqAmt));
150
+					$li.find('.fnWhsAddr').text(item.whsAddr);
151
+					$li.find('.fnPickMgrNm').text(item.pickMgrNm);
153 152
 					_this.rows.push(item);
154 153
 				});
155 154
 			};
@@ -166,6 +165,7 @@ let mobContentObj = {
166 165
 		rows: [],
167 166
 		init: function(item) {
168 167
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
168
+			this.cancel();
169 169
 			this.search(item);
170 170
 		},
171 171
 		search: function(item) {
@@ -179,106 +179,57 @@ let mobContentObj = {
179 179
 				'spplyId': fn_make_user_info.get('userId'),
180 180
 				'pchPodrUnqNo': item.pchPodrUnqNo
181 181
 			};
182
-			fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
182
+			fn_ajax_call(API_POP_INV_PICK, param, callbackFn, 'GET');
183 183
 		},
184 184
 		view: function(result) {
185 185
 			var _this = this;
186 186
 			var id = '#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER';
187
-			$(id).find('.fnBrandNm').text(result.brandNm);
188
-			$(id).find('.fnPchPodrUnqNo').text(result.pchPodrUnqNo);
189
-			$(id).find('.fnDlvRegDt').text(result.dlvReqDt);
190
-			$(id).find('.fnPodrTotalAmt').text(CommonObj.currency.add(result.podrTotalAmt));
191
-			$(id).find('.fnWhsNm').text(result.whsNm);
192
-			$(id).find('.fnDeliTelNo').text(result.deliTelNo);
193
-			$.each(result.invPoInfoList, function (i, item) {
187
+			$(id).find('.fnColRegDt').text(result.colRegDt);
188
+			$(id).find('.fnColPickUnqNo').text(result.colPickUnqNo);
189
+			$(id).find('.fnColSchDt').text(result.colSchDt);
190
+			$(id).find('.fnColMgrNm').text(result.colMgrNm + '('+ result.pndrTelNo + ')');
191
+			$(id).find('.fnWhsAddr').text(result.whsAddr);
192
+			$(id).find('.fnPndrTelNo').text(result.pndrTelNo);
193
+
194
+			$(id).find('.fnRtnBsnsRegno').text(result.rtnBsnsRegno);
195
+			$(id).find('.fnRtnNm').text(result.rtnNm);
196
+			$(id).find('.fnRtnOwnerNm').text(result.rtnOwnerNm);
197
+			$(id).find('.fnRtnAddr').text(result.rtnAddr);
198
+
199
+			$(id).find('.fnColBsnsRegNo').text(result.colBsnsRegNo);
200
+			$(id).find('.fnColNm').text(result.colNm);
201
+			$(id).find('.fnColOwnerNm').text(result.colOwnerNm);
202
+			$(id).find('.fnColAddr').text(result.colAddr);
203
+			$.each(result.pickDtlInfoList, function (i, item) {
194 204
 				$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_ROWCOPY').html());
195 205
 				var $li = $('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group > .list-row:last');
196
-				$li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
206
+				$li.find('.fnRtnPodrUnqNo').text(item.rtnPodrUnqNo);
197 207
 				$li.find('.fnItemId').text(item.itemId);
198 208
 				$li.find('.fnItemNm').text(item.itemNm);
199
-				$li.find('.fnPodrQty').text(CommonObj.comma.set(item.podrQty));
200
-				$li.find('.fnUnitAmt').text(CommonObj.currency.add(item.unitAmt));
201
-				$li.find('.fnUnit').text(item.unit);
202
-				$li.find('.fnPodrAmt').text(CommonObj.currency.add(item.podrAmt));
203
-				$li.find('.fnDlvReqDt').text(item.dlvReqDt);
209
+				$li.find('.fnRodrQty').text(CommonObj.comma.set(item.rodrQty));
210
+				$li.find('.fnColReqQty').text(CommonObj.comma.set(item.colReqQty));
211
+				$li.find('.fnRtnRsnDvsnNm').text(item.rtnRsnDvsnNm);
204 212
 				_this.rows.push(item);
205 213
 			});
206 214
 		},
207
-		add: function() {
208
-			var _this = this;
209
-			var param = {};
210
-			var dlvSchDt = $('#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG03010_VIEW_DLV_SCH_DT').val();
211
-			var dlvMgrNm = $('#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG03010_VIEW_DLV_MGR_NM').val();
212
-			var dlvMgrTelNo = $('#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER #ITP_FORM_MCOLLMNG03010_VIEW_DLV_MGR_TEL_NO').val();
213
-			if(dlvSchDt.length < 1) {
214
-				alert('납품일자를 입력해 주세요.');
215
-				return false;
216
-			}
217
-			if(dlvMgrNm.length < 1) {
218
-				alert('발주담당자를 입력해 주세요.');
219
-				return false;
220
-			}
221
-			if(dlvMgrTelNo.length < 1) {
222
-				alert('발주담당자 연락처를 입력해 주세요.');
223
-				return false;
224
-			}
225
-			var gridInsertData = [];
226
-			var isValid = false;
227
-			$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group > .list-row').each(function(index) {
228
-				var row = _this.rows[index];
229
-				var item = {
230
-					'pchPodrDtlNo': row.pchPodrDtlNo,
231
-					'pchPodrUnqNo': row.pchPodrUnqNo,
232
-					'shmtQty': $(this).find('#ITP_FORM_MCOLLMNG03010_VIEW_SHMT_QTY').val(),
233
-					'expryDate': $(this).find('#ITP_FORM_MCOLLMNG03010_VIEW_EXPRY_DATE').val(),
234
-					'deliDesc': $(this).find('#ITP_FORM_MCOLLMNG03010_VIEW_DELI_DESC').val()
235
-				};
236
-				if(row.expryYn === 'Y' && item.expryDate.length < 1) {
237
-					alert('유통기한을 입력해 주세요.');
238
-					return false;
239
-				}
240
-				if(item.shmtQty.length < 1) {
241
-					alert('납품수량을 입력해 주세요.');
242
-					return false;
243
-				}
244
-				if(row.podrQty < item.shmtQty) {
245
-					alert('납품수량은 발주수량을 초과할 수 없습니다.');
246
-					return false;
247
-				}
248
-				item.expryDate = item.expryDate.replace(/-/g, ".");
249
-				gridInsertData.push(item);
250
-				isValid = true;
251
-			});
252
-			if(isValid) {
253
-				param['viewCd'] = 'C';
254
-				param['brandId'] = fn_make_user_info.get('brandId');
255
-				param['spplyId'] = fn_make_user_info.get('userId');
256
-				param['dlvSchDt'] = dlvSchDt.replace(/-/g, ".");
257
-				param['dlvMgrNm'] = dlvMgrNm;
258
-				param['dlvMgrTelNo'] = dlvMgrTelNo;
259
-				param['gridInsertData'] = gridInsertData;
260
-				console.log(JSON.stringify(param));
261
-				var callbackFn = function(result) {
262
-					console.log(result);
263
-					_this.cancel();
264
-				};
265
-				fn_ajax_call(API_MOBILE_SAVE, JSON.stringify(param), callbackFn, 'POST');
266
-			}
267
-		},
268 215
 		cancel: function () {
269 216
 			var id = '#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER';
270
-			$(id + ' #ITP_FORM_MCOLLMNG03010_VIEW_DLV_SCH_DT').val('');
271
-			$(id + ' #ITP_FORM_MCOLLMNG03010_VIEW_DLV_MGR_NM').val('');
272
-			$(id + ' #ITP_FORM_MCOLLMNG03010_VIEW_DLV_MGR_TEL_NO').val('');
273
-			$(id).find('.fnPchPodrDtlNo').text('');
274
-			$(id).find('.fnItemid').text('');
275
-			$(id).find('.fnItemNm').text('');
276
-			$(id).find('.fnUPodrQty').text('');
277
-			$(id).find('.fnUnitAmt').text('');
278
-			$(id).find('.fnUnit').text('');
279
-			$(id).find('.fnPodrQty').text('');
280
-			$(id).find('.fnPodrAmt').text('');
281
-			$(id).find('.fnDlvReqDt').text('');
217
+			$(id).find('.fnColRegDt').text('');
218
+			$(id).find('.fnColPickUnqNo').text('');
219
+			$(id).find('.fnColSchDt').text('');
220
+			$(id).find('.fnColMgrNm').text('');
221
+			$(id).find('.fnWhsAddr').text('');
222
+			$(id).find('.fnPndrTelNo').text('');
223
+
224
+			$(id).find('.fnRtnBsnsRegno').text('');
225
+			$(id).find('.fnRtnNm').text('');
226
+			$(id).find('.fnRtnOwnerNm').text('');
227
+			$(id).find('.fnRtnAddr').text('');
228
+
229
+			$(id).find('.fnColBsnsRegNo').text('');
230
+			$(id).find('.fnColNm').text('');
231
+			$(id).find('.fnColOwnerNm').text('');
232
+			$(id).find('.fnColAddr').text('');
282 233
 			$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').empty();
283 234
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
284 235
 		}

+ 10 - 0
src/main/webapp/mobile/js/app/mordmng/ITP_MORDMNG02010.js

@@ -60,6 +60,7 @@ let mobPageObj = {
60 60
 					case 'ITP_BTN_MORDMNG02010_LIST_SEARCH_WHS_NM'	: mobPopObj.popWhsNm.init(); 	break;
61 61
 					case 'ITP_BTN_MORDMNG02010_LIST_DELETE_WHS_NM'	: mobPopObj.popWhsNm.delete(); 	break;
62 62
 					case 'ITP_BTN_MORDMNG02010_LIST_SEARCH'			: mobContentObj.list.search();	break;
63
+					case 'ITP_BTN_MORDMNG02010_LIST_DLV_VIEW'		: mobContentObj.list.dlvPrint();	break;
63 64
 				}
64 65
 				return false;
65 66
 			});
@@ -134,6 +135,7 @@ let mobContentObj = {
134 135
 			this.listPage = 0;
135 136
 			this.totPage = 0;
136 137
 			this.rows.length = 0;
138
+			this.iChoice = -1;
137 139
 			$('#ITP_LIST_MORDMNG02010_LIST_ITEM_ROWS').empty();
138 140
 			this.load();
139 141
 		},
@@ -168,6 +170,13 @@ let mobContentObj = {
168 170
 			param.fromDt = CommonObj.onlyNumber(param.fromDt);
169 171
 			param.toDt = CommonObj.onlyNumber(param.toDt);
170 172
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
173
+		},
174
+		dlvPrint: function() {
175
+			if(this.iChoice < 0) {
176
+				alert("납품서를 선택해주세요 (대표 납품서번호)");
177
+				return;
178
+			}
179
+			mobContentObj.view.init(this.rows[this.iChoice]);
171 180
 		}
172 181
 	},
173 182
 	view: {
@@ -176,6 +185,7 @@ let mobContentObj = {
176 185
 			this.item = item;
177 186
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
178 187
 			$('#ITP_FORM_MORDMNG02010_VIEW_DLV_SCH_DT').val(itp_fn_date_add('M', 0));
188
+			this.cancel();
179 189
 			this.search(item);
180 190
 		},
181 191
 		search: function(item) {

+ 17 - 13
src/main/webapp/mobile/js/app/mordmng/ITP_MORDMNG03010.js

@@ -7,7 +7,6 @@ require(['config'], function() {
7 7
 
8 8
 /*API URL*/
9 9
 const API_MOBILE_GRID_LIST 			= '/api/pomng/inoutmng/spply-deli-grid-list';	// 목록
10
-const API_MOBILE_INFO 				= '/api/pomng/inoutmng/info-inv';				// 상세
11 10
 const API_POP_SEARCH_LIST			= '/api/whs/mng/pop-whs-search';
12 11
 const API_POP_INV_INFO 				= '/api/pomng/inoutmng/info-inv';
13 12
 
@@ -177,6 +176,7 @@ let mobContentObj = {
177 176
 		rows: [],
178 177
 		init: function(item) {
179 178
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
179
+			this.cancel();
180 180
 			this.search(item);
181 181
 		},
182 182
 		search: function(item) {
@@ -227,18 +227,22 @@ let mobContentObj = {
227 227
 		},
228 228
 		cancel: function () {
229 229
 			var id = '#ITP_AJAX_MORDMNG03010_VIEW_CONTAINER';
230
-			$(id + ' #ITP_FORM_MORDMNG03010_VIEW_DLV_SCH_DT').val('');
231
-			$(id + ' #ITP_FORM_MORDMNG03010_VIEW_DLV_MGR_NM').val('');
232
-			$(id + ' #ITP_FORM_MORDMNG03010_VIEW_DLV_MGR_TEL_NO').val('');
233
-			$(id).find('.fnPchPodrDtlNo').text('');
234
-			$(id).find('.fnItemid').text('');
235
-			$(id).find('.fnItemNm').text('');
236
-			$(id).find('.fnUPodrQty').text('');
237
-			$(id).find('.fnUnitAmt').text('');
238
-			$(id).find('.fnUnit').text('');
239
-			$(id).find('.fnPodrQty').text('');
240
-			$(id).find('.fnPodrAmt').text('');
241
-			$(id).find('.fnDlvReqDt').text('');
230
+			$(id).find('.fnDlvRegDt').text('');
231
+			$(id).find('.fnDlvSttmtUnqNo').text('');
232
+			$(id).find('.fnDlvSchDt').text('');
233
+			$(id).find('.fnDlvMgrNm').text('');
234
+			$(id).find('.fnWhsAddr').text('');
235
+			$(id).find('.fnWhsMgrTelNo').text('');
236
+
237
+			$(id).find('.fnDlvBsnsRegno').text('');
238
+			$(id).find('.fnDlvNm').text('');
239
+			$(id).find('.fnDlvOwnerNm').text('');
240
+			$(id).find('.fnDlvAddr').text('');
241
+
242
+			$(id).find('.fnPoBsnsRegno').text('');
243
+			$(id).find('.fnPoNm').text('');
244
+			$(id).find('.fnPoOwnerNm').text('');
245
+			$(id).find('.fnPoAddr').text('');
242 246
 			$('#ITP_LIST_MORDMNG03010_VIEW_ITEM_AREA .panel-group').empty();
243 247
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
244 248
 		}