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
 			<div class="itp_det_head fix">
4
 			<div class="itp_det_head fix">
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>
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
 				<div class="pull-right itp_cicon">
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
 				</div>
13
 				</div>
14
 			</div>
14
 			</div>
15
 			<div class="itp_det_in">
15
 			<div class="itp_det_in">
@@ -29,7 +29,9 @@
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>
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
 						                </div>
30
 						                </div>
31
 										<div class="col-xs-2 itp_ip itp_noMar">
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
 										</div>									
35
 										</div>									
34
 									</div>
36
 									</div>
35
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
37
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
@@ -116,7 +118,7 @@
116
 										<div class="form-group">
118
 										<div class="form-group">
117
 											<label class="col-xs-2 itp_lb">사용자ID *</label>
119
 											<label class="col-xs-2 itp_lb">사용자ID *</label>
118
 											<div class="col-xs-4 itp_ip">
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
 												<div class="col-xs-7 itp_in">
122
 												<div class="col-xs-7 itp_in">
121
 													<div class="input-group">
123
 													<div class="input-group">
122
 														<input type="text" id="ITP_FORM_OPER01010_DETAIL_USER_ID" data-check-required="empty" class="form-control itp_input" name="userId" value="" maxlength="20">
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
 											<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>
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
 										</div>
29
 										</div>
30
 										<div class="col-xs-2 itp_ip itp_noMar">
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
 										</div>
34
 										</div>
33
 									</div>
35
 									</div>
34
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
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
 											<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>
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
 										</div>
28
 										</div>
29
 										<div class="col-xs-2 itp_ip itp_noMar">
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
 										</div>
33
 										</div>
32
 									</div>
34
 									</div>
33
 									<div class="form-group">
35
 									<div class="form-group">

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

@@ -70,7 +70,9 @@
70
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
70
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
71
 											<div class="col-xs-4 itp_ip fnBrandNm"></div>
71
 											<div class="col-xs-4 itp_ip fnBrandNm"></div>
72
 											<label class="col-xs-2 itp_lb">발주번호</label>
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
 										</div>
76
 										</div>
75
 									</div>
77
 									</div>
76
 									<div class="itp_form_in">	
78
 									<div class="itp_form_in">	
@@ -95,7 +97,7 @@
95
 											<div class="input-daterange input-group date">
97
 											<div class="input-daterange input-group date">
96
 												<div class="col-xs-4 itp_ip">
98
 												<div class="col-xs-4 itp_ip">
97
 													<div class="col-xs-7 itp_in">
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
 													</div>
101
 													</div>
100
 												</div>
102
 												</div>
101
 											</div>											
103
 											</div>											
@@ -108,13 +110,13 @@
108
 											<label class="col-xs-2 itp_lb">납품담당자 *</label>
110
 											<label class="col-xs-2 itp_lb">납품담당자 *</label>
109
 											<div class="col-xs-4 itp_ip">
111
 											<div class="col-xs-4 itp_ip">
110
 												<div class="col-xs-7 itp_in">
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
 												</div>
114
 												</div>
113
 											</div>
115
 											</div>
114
 											<label class="col-xs-2 itp_lb">납품담당자연락처 *</label>
116
 											<label class="col-xs-2 itp_lb">납품담당자연락처 *</label>
115
 											<div class="col-xs-4 itp_ip">
117
 											<div class="col-xs-4 itp_ip">
116
 												<div class="col-xs-7 itp_in">
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
 												</div>
120
 												</div>
119
 											</div>
121
 											</div>
120
 										</div>
122
 										</div>

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

@@ -181,7 +181,7 @@ a, button {outline:none !important; text-decoration:none !important;}
181
 #ITP_SIDEBAR .itp_nav .itp_svgs li a .itp_tt {float:left;}
181
 #ITP_SIDEBAR .itp_nav .itp_svgs li a .itp_tt {float:left;}
182
 
182
 
183
 /* ITP_CONTAINER */
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
 #ITP_CONTAINER.itp_open_conts {padding-left:8px; width:99.9%;}
185
 #ITP_CONTAINER.itp_open_conts {padding-left:8px; width:99.9%;}
186
 #ITP_CONTAINER .itp_contents {background:#fff; height:100%;}
186
 #ITP_CONTAINER .itp_contents {background:#fff; height:100%;}
187
 #ITP_CONTAINER .itp_contents .itp_sec {height:100%;}
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
 #ITP_CONTAINER .itp_detail .itp_form .itp_chk_list .itp_chk:first-child {margin-top:5px;}
300
 #ITP_CONTAINER .itp_detail .itp_form .itp_chk_list .itp_chk:first-child {margin-top:5px;}
301
 #ITP_CONTAINER .itp_detail .itp_form .itp_sch_btn {padding: 3px 6px;} /* 조회 버튼 */
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
 #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;}
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
 #ITP_CONTAINER .itp_detail .itp_lg_form .form-group {margin-bottom:10px;}
306
 #ITP_CONTAINER .itp_detail .itp_lg_form .form-group {margin-bottom:10px;}
307
 #ITP_CONTAINER .itp_detail .itp_lg_form .form-control {font-size:13px; color:#333;}
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
 #ITP_CONTAINER .itp_tb_list .itp_no_data u {color:#337ab7; cursor:pointer;}
356
 #ITP_CONTAINER .itp_tb_list .itp_no_data u {color:#337ab7; cursor:pointer;}
357
 
357
 
358
 #ITP_CONTAINER .itp_tb_list .itp_views {font-size:12px; margin-bottom:8px; display:none;}
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
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv span {float:left;}
360
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv span {float:left;}
361
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv em {font-style:normal;}
361
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv em {font-style:normal;}
362
 #ITP_CONTAINER .itp_tb_list .itp_views .itp_shrv .shrv_txt {margin-right:4px;}
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
 .ui-jqgrid tr.jqgrow {
193
 .ui-jqgrid tr.jqgrow {
194
 	outline-style: none;
194
 	outline-style: none;
195
-	height:32px;
195
+	height:25.5px;
196
 }
196
 }
197
 .ui-jqgrid tr.jqgroup {
197
 .ui-jqgrid tr.jqgroup {
198
 	outline-style: none;
198
 	outline-style: none;
@@ -212,7 +212,7 @@ div.tablediv > .table-bordered {
212
 .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
212
 .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
213
 	overflow: hidden;
213
 	overflow: hidden;
214
 	white-space: pre;
214
 	white-space: pre;
215
-	/* padding-right: 2px; */
215
+	padding:0 5px;
216
 }
216
 }
217
 .itp_tb_list.itp_gOver .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
217
 .itp_tb_list.itp_gOver .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
218
 	overflow: visible;
218
 	overflow: visible;
@@ -232,7 +232,7 @@ div.tablediv > .table-bordered {
232
 .ui-jqgrid tr.jqfoot td {
232
 .ui-jqgrid tr.jqfoot td {
233
 	white-space: nowrap;
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
 .ui-jqgrid tr.ui-row-rtl td {font-size:13px;color:#333;}
236
 .ui-jqgrid tr.ui-row-rtl td {font-size:13px;color:#333;}
237
 .ui-jqgrid .ui-jqgrid-resize-mark {
237
 .ui-jqgrid .ui-jqgrid-resize-mark {
238
 	width:2px;
238
 	width:2px;

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

@@ -275,7 +275,6 @@ let pageObj = {
275
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_SRH', '#ITP_BTN_OPER01010_NEWREG']);
275
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_SRH', '#ITP_BTN_OPER01010_NEWREG']);
276
 		} else if(mode == 'ADD') { // 등록
276
 		} else if(mode == 'ADD') { // 등록
277
 			$('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
277
 			$('#ITP_AJAX_OPER01010_DETAIL_CONTAINER').show();
278
-			$('.fnUserId').hide(); //사용자 아이디 신규등록에서 보이지 않게하기
279
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_CANCELLIST', '#ITP_BTN_OPER01010_SAVE']);
278
 			fn_show_btn_auth_array(['#ITP_BTN_OPER01010_CANCELLIST', '#ITP_BTN_OPER01010_SAVE']);
280
 
279
 
281
 			$('#ITP_FORM_OPER01010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
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
 					$((pageObj.pageMode === 'MODIFY') ? OPER01010_NEW_GRID_EMPTY : OPER01010_DETAIL_GRID_EMPTY).hide();
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
 				fn_call_popup('comm', 'AUTH_SCH_POPUP', '#ITP_ASIDE', popFn, null, 'S');
329
 				fn_call_popup('comm', 'AUTH_SCH_POPUP', '#ITP_ASIDE', popFn, null, 'S');
331
 			},
330
 			},
@@ -349,7 +348,7 @@ let pageObj = {
349
 				url: DOMAIN + API_USERAUTH_GRID_LIST,
348
 				url: DOMAIN + API_USERAUTH_GRID_LIST,
350
 				multiselect: (this.mode !== 'VIEW'),
349
 				multiselect: (this.mode !== 'VIEW'),
351
 				loadComplete: function(data) {
350
 				loadComplete: function(data) {
352
-					$("tr.jqgrow:odd").css("background", "#CEDFED"); //2번째 마다 색변경
351
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
353
 
352
 
354
 					console.log(data);
353
 					console.log(data);
355
 					itp_fn_grid_load_complete(data, gridId, true, undefined, 'OPER01010_' + this.mode);
354
 					itp_fn_grid_load_complete(data, gridId, true, undefined, 'OPER01010_' + this.mode);
@@ -435,7 +434,7 @@ let listObj = {
435
 					}
434
 					}
436
 				},
435
 				},
437
 				loadComplete: function(data) {
436
 				loadComplete: function(data) {
438
-					$("tr.jqgrow:odd").css("background", "#F2F8FF"); //2번째 마다 색변경
437
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
439
 					console.log(data);
438
 					console.log(data);
440
 					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);
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
 					var ids = $(OPER01010_GRID_ID).getDataIDs();
440
 					var ids = $(OPER01010_GRID_ID).getDataIDs();
@@ -678,7 +677,7 @@ let createObj = {
678
 				data: gridData,
677
 				data: gridData,
679
 				multiselect: true,
678
 				multiselect: true,
680
 				loadComplete: function(data) {
679
 				loadComplete: function(data) {
681
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
680
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
682
 					_this.clearData();
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
 				loadComplete: function(data) {
446
 				loadComplete: function(data) {
447
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
447
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
448
 					console.log(data);
448
 					console.log(data);
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);
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
 					var ids = $(OPER02010_GRID_ID).getDataIDs();
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
 					$(OPER03010_DETAIL_GRID_EMPTY).hide();
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
 				fn_call_popup('biz', 'BIZPOP_APPL_SALES_USER_SCH', '#ITP_ASIDE', popFn, null, 'S');
321
 				fn_call_popup('biz', 'BIZPOP_APPL_SALES_USER_SCH', '#ITP_ASIDE', popFn, null, 'S');
322
 			},
322
 			},
@@ -332,7 +332,7 @@ let pageObj = {
332
 				data: gridData,
332
 				data: gridData,
333
 				multiselect: (this.mode !== 'VIEW'),
333
 				multiselect: (this.mode !== 'VIEW'),
334
 				loadComplete: function(data) {
334
 				loadComplete: function(data) {
335
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
335
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
336
 					$(_this.mode === 'VIEW' ? OPER03010_VIEW_GRID_LIST : OPER03010_DETAIL_GRID_LIST).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
336
 					$(_this.mode === 'VIEW' ? OPER03010_VIEW_GRID_LIST : OPER03010_DETAIL_GRID_LIST).find('.ui-jqgrid .ui-jqgrid-bdiv').css('overflow-x', 'hidden');
337
 					data.records === 0 ? _this.clearData() : $(this.mode === 'VIEW' ? OPER03010_VIEW_GRID_EMPTY : OPER03010_DETAIL_GRID_EMPTY).hide();
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
 	empty: {
375
 	empty: {
376
 		init: function() {
376
 		init: function() {
377
+			var _this = this;
377
 			this.push();
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
 		itp_OPER03010_param: {},
385
 		itp_OPER03010_param: {},
380
 		push: function() {
386
 		push: function() {
@@ -394,6 +400,7 @@ let listObj = {
394
 			listObj.empty.push();
400
 			listObj.empty.push();
395
 			itp_fn_jqgrid_resize(OPER03010_GRID_ID, OPER03010_GRID_LIST, 'lg');
401
 			itp_fn_jqgrid_resize(OPER03010_GRID_ID, OPER03010_GRID_LIST, 'lg');
396
 			itp_fn_fire_window_resize();
402
 			itp_fn_fire_window_resize();
403
+			this.reload();
397
 			this.search();
404
 			this.search();
398
 		},
405
 		},
399
 		colModel: gridColModel.list,
406
 		colModel: gridColModel.list,
@@ -423,7 +430,7 @@ let listObj = {
423
 					}
430
 					}
424
 				},
431
 				},
425
 				loadComplete: function(data) {
432
 				loadComplete: function(data) {
426
-					$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
433
+					$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
427
 					console.log(data);
434
 					console.log(data);
428
 					itp_fn_grid_load_complete(data, OPER03010_GRID_ID, true, 'number', 'OPER03010', pageObj.itp_OPER03010_search, listObj.empty, true, data.gridRecords, true);
435
 					itp_fn_grid_load_complete(data, OPER03010_GRID_ID, true, 'number', 'OPER03010', pageObj.itp_OPER03010_search, listObj.empty, true, data.gridRecords, true);
429
 					var ids = $(OPER03010_GRID_ID).getDataIDs();
436
 					var ids = $(OPER03010_GRID_ID).getDataIDs();
@@ -434,6 +441,13 @@ let listObj = {
434
 			};
441
 			};
435
 			itp_fn_grid_make_remote(option);
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
 		clearData : function() {
451
 		clearData : function() {
438
 			$(OPER03010_GRID_ID).jqGrid('clearGridData', true);
452
 			$(OPER03010_GRID_ID).jqGrid('clearGridData', true);
439
 			$(OPER03010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
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
                 loadComplete: function(data) {
250
                 loadComplete: function(data) {
251
-                	$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경
251
+                	$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경
252
                     // console.log(data);
252
                     // console.log(data);
253
                     itp_fn_grid_load_complete(data, OPER04010_GRID_ID, true, 'number', 'OPER04010', listObj.itp_OPER04010_search, listObj.empty, true, data.gridRecords, true);
253
                     itp_fn_grid_load_complete(data, OPER04010_GRID_ID, true, 'number', 'OPER04010', listObj.itp_OPER04010_search, listObj.empty, true, data.gridRecords, true);
254
                     var ids = $(OPER04010_GRID_ID).getDataIDs();
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
                 loadComplete: function(data) {
339
                 loadComplete: function(data) {
340
-                	$("tr.jqgrow:odd").css("background", "#f5f5f5"); //2번째 마다 색변경ㄴ
340
+                	$("tr.jqgrow:odd").css("background", "#EEFFFE"); //2번째 마다 색변경ㄴ
341
                     console.log(data);
341
                     console.log(data);
342
                     itp_fn_grid_load_complete(data, OPER06010_GRID_ID, true, 'number', 'OPER06010', listObj.itp_OPER06010_search, listObj.empty, true, data.gridRecords, true);
342
                     itp_fn_grid_load_complete(data, OPER06010_GRID_ID, true, 'number', 'OPER06010', listObj.itp_OPER06010_search, listObj.empty, true, data.gridRecords, true);
343
                     var ids = $(OPER06010_GRID_ID).getDataIDs();
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
             $('#ITP_FORM_ORDMNG02010_SEARCH #ITP_FORM_ORDMNG02010_SEARCH_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
191
             $('#ITP_FORM_ORDMNG02010_SEARCH #ITP_FORM_ORDMNG02010_SEARCH_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
192
             $('#ITP_BTN_ORDMNG02010_SEARCH_WHS_ID').show();
192
             $('#ITP_BTN_ORDMNG02010_SEARCH_WHS_ID').show();
193
             $('#ITP_BTN_ORDMNG02010_DELETE_WHS_ID').show();
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
 			$('#ITP_AJAX_ORDMNG02010_DETAIL_CONTAINER').show();
195
 			$('#ITP_AJAX_ORDMNG02010_DETAIL_CONTAINER').show();
212
 			fn_show_btn_auth_array(['#ITP_BTN_ORDMNG02010_CANCELLIST', '#ITP_BTN_ORDMNG02010_SAVE', '#ITP_BTN_ORDMNG02010_RESET_PW']);
196
 			fn_show_btn_auth_array(['#ITP_BTN_ORDMNG02010_CANCELLIST', '#ITP_BTN_ORDMNG02010_SAVE', '#ITP_BTN_ORDMNG02010_RESET_PW']);
213
 			$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
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
 			$('#ITP_FORM_ORDMNG02010_DETAIL_DELETE_AFFL_SHOP').hide();
204
 			$('#ITP_FORM_ORDMNG02010_DETAIL_DELETE_AFFL_SHOP').hide();
221
 			$('#ITP_BTN_ORDMNG02010_CANCELLIST').show();
205
 			$('#ITP_BTN_ORDMNG02010_CANCELLIST').show();
222
             $('#ITP_BTN_ORDMNG02010_SAVE').show();
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
 			let param = $('#ITP_FORM_ORDMNG02010_SEARCH').serializeObject();
223
 			let param = $('#ITP_FORM_ORDMNG02010_SEARCH').serializeObject();
243
 			param.gridSize = $.jgrid.defaults.rowNum;
224
 			param.gridSize = $.jgrid.defaults.rowNum;
244
             param.gridPage = $.jgrid.defaults.page;
225
             param.gridPage = $.jgrid.defaults.page;
245
-            console.log(1234);
246
             console.log(JSON.stringify(param));
226
             console.log(JSON.stringify(param));
247
             $(ORDMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
227
             $(ORDMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
248
         },
228
         },
@@ -307,18 +287,7 @@ let listObj = {
307
             	pager: ORDMNG02010_GRID_PAGER,
287
             	pager: ORDMNG02010_GRID_PAGER,
308
             	multiselect: true,
288
             	multiselect: true,
309
 				multiboxonly : false,
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
 				loadComplete: function(data) {
291
 				loadComplete: function(data) {
323
 					console.log(data);
292
 					console.log(data);
324
                     itp_fn_grid_load_complete(data, ORDMNG02010_GRID_ID, true, 'number', 'ORDMNG02010', listObj.itp_ORDMNG02010_search, listObj.empty, true, data.gridRecords, true);
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
 /*수정화면 Object*/
339
 /*수정화면 Object*/
371
 let modifyObj = {
340
 let modifyObj = {
372
 	init: function(param) {
341
 	init: function(param) {
373
-		console.log(param);
374
 		this.load(param);
342
 		this.load(param);
375
 	},
343
 	},
376
 	itp_ORDMNG02010_param: {},
344
 	itp_ORDMNG02010_param: {},
@@ -380,38 +348,29 @@ let modifyObj = {
380
 			listObj.grid.search();
348
 			listObj.grid.search();
381
 		},
349
 		},
382
 		save: function() {
350
 		save: function() {
383
-			console.log(111111);
384
 			const formId = '#ITP_FORM_ORDMNG02010_DETAIL';
351
 			const formId = '#ITP_FORM_ORDMNG02010_DETAIL';
385
 			itp_fn_form_clear_validate(null, formId);
352
 			itp_fn_form_clear_validate(null, formId);
386
-			console.log(22222);
387
 			itp_fn_grid_save_rows(ORDMNG02010_DETAIL_GRID_ID);
353
 			itp_fn_grid_save_rows(ORDMNG02010_DETAIL_GRID_ID);
388
 			let gridInsertData = [];
354
 			let gridInsertData = [];
389
 			for(var i=0; i<$(ORDMNG02010_DETAIL_GRID_ID).getGridParam('reccount'); i++) {
355
 			for(var i=0; i<$(ORDMNG02010_DETAIL_GRID_ID).getGridParam('reccount'); i++) {
390
 				$(ORDMNG02010_DETAIL_GRID_ID).jqGrid('saveCell', i+1, 2)
356
 				$(ORDMNG02010_DETAIL_GRID_ID).jqGrid('saveCell', i+1, 2)
391
 			}
357
 			}
358
+			let param = $(formId).serializeObject();
392
 			const rowData = $(ORDMNG02010_DETAIL_GRID_ID).getRowData();
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
 			var modalFn = {
365
 			var modalFn = {
404
 				callBack: (args) => {
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
 					console.log(param);
368
 					console.log(param);
410
 					var searhFn = function () {
369
 					var searhFn = function () {
411
 						ITP_FORM_OPER03010_DETAIL_IS_WRITING = false;
370
 						ITP_FORM_OPER03010_DETAIL_IS_WRITING = false;
412
 						listObj.grid.search();
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
 			itp_fn_modal_confirm('저장 하시겠습니까?', modalFn);
376
 			itp_fn_modal_confirm('저장 하시겠습니까?', modalFn);
@@ -444,13 +403,13 @@ let modifyObj = {
444
 		console.log(result);
403
 		console.log(result);
445
 		pageObj.switchScreen('MODIFY');
404
 		pageObj.switchScreen('MODIFY');
446
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnBrandNm').text(result.brandNm);										// 브랜드
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
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnPodrTotalAmt').text(result.podrTotalAmt);							// 발주총금액
408
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnPodrTotalAmt').text(result.podrTotalAmt);							// 발주총금액
450
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnWhsNm').text(result.whsNm);											// 발주총금액
409
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnWhsNm').text(result.whsNm);											// 발주총금액
451
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDeliTelNo').text(result.deliTelNo);									// 납품장소연락처
410
 		$('#ITP_FORM_ORDMNG02010_DETAIL .fnDeliTelNo').text(result.deliTelNo);									// 납품장소연락처
452
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_SCH_DT').val(result.dlvSchDt);			// 납품예정일
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
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_NM').val(result.dlvMgrNm);			// 납품담당자
413
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_NM').val(result.dlvMgrNm);			// 납품담당자
455
 		$('#ITP_FORM_ORDMNG02010_DETAIL #ITP_FORM_ORDMNG02010_DETAIL_DLV_MGR_TEL_NO').val(result.dlvMgrTelNo);	// 납품담당자연락처
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
     			selRowData = $(ORDMNG02010_DETAIL_GRID_ID).jqGrid('getRowData', selectedIds[i]);		//cell 선택
421
     			selRowData = $(ORDMNG02010_DETAIL_GRID_ID).jqGrid('getRowData', selectedIds[i]);		//cell 선택
463
     		}
422
     		}
464
     		let podrQty = selRowData.podrQty;
423
     		let podrQty = selRowData.podrQty;
465
-    		if(value > podrQty) {
466
-    			console.log(podrQty);
424
+    		if(Number(value) > Number(podrQty)) {
467
 				return [false, '발주수량 이하 값 입력'];
425
 				return [false, '발주수량 이하 값 입력'];
426
+			} else if (Number(value) < 0) {
427
+				return [false, '음수 입력 불가'];
468
 			} else {
428
 			} else {
469
-				console.log(podrQty);
470
 				return [true, ''];
429
 				return [true, ''];
471
 			}
430
 			}
472
 		};		
431
 		};		
@@ -479,13 +438,11 @@ let modifyObj = {
479
     		}
438
     		}
480
     		let expryYn = selRowData.expryYn;
439
     		let expryYn = selRowData.expryYn;
481
     		if (expryYn !== 'Y' && value.length > 0) {
440
     		if (expryYn !== 'Y' && value.length > 0) {
482
-				console.log(expryYn);
483
 				return [false, '유통기한여부 N'];
441
 				return [false, '유통기한여부 N'];
484
 			} else {
442
 			} else {
485
-				console.log(expryYn);0
486
 				return [true, ''];
443
 				return [true, ''];
487
 			}
444
 			}
488
-		}		
445
+		};
489
 		modifyObj.grid.init('MODIFY', result.invPoInfoList);		
446
 		modifyObj.grid.init('MODIFY', result.invPoInfoList);		
490
 	},
447
 	},
491
 	grid: {
448
 	grid: {
@@ -504,6 +461,12 @@ let modifyObj = {
504
 			var option = {
461
 			var option = {
505
 				gridId: _this.gridId,
462
 				gridId: _this.gridId,
506
 				colModel: [
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
 						index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
471
 						index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
509
 						label: ITP_MSG_LOCALE.label.pchPodrDtlNo,  		//발주항번
472
 						label: ITP_MSG_LOCALE.label.pchPodrDtlNo,  		//발주항번
@@ -557,14 +520,14 @@ let modifyObj = {
557
 						index: 'EXPRY_DATE', name: 'expryDate',
520
 						index: 'EXPRY_DATE', name: 'expryDate',
558
 						label: ITP_MSG_LOCALE.label.expryDate,  		//유통기한일자
521
 						label: ITP_MSG_LOCALE.label.expryDate,  		//유통기한일자
559
 						width: '20', fixed: false, align: 'center',
522
 						width: '20', fixed: false, align: 'center',
560
-						sortable: false, hidden: false, /*edittype: 'text',*/
523
+						sortable: false, hidden: false, 
561
 						editable: true, sorttype: 'date',
524
 						editable: true, sorttype: 'date',
562
 				        editoptions: {dataInit: function(e) {$(e).datepicker(ITP_DATE_LANGUAGE);}},
525
 				        editoptions: {dataInit: function(e) {$(e).datepicker(ITP_DATE_LANGUAGE);}},
563
 				        editrules: {custom: true, custom_func: isExpryDate}
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
 						width: '20', fixed: false, align: 'center',
531
 						width: '20', fixed: false, align: 'center',
569
 						sortable: false, hidden: false, edittype: 'text',
532
 						sortable: false, hidden: false, edittype: 'text',
570
 						editable: true
533
 						editable: true
@@ -586,12 +549,5 @@ let modifyObj = {
586
 		unload: function() {
549
 		unload: function() {
587
 			$.jgrid.gridUnload(this.gridId);
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
 						</div>
90
 						</div>
91
 						<label class="col_0">수거수량&nbsp;:</label>
91
 						<label class="col_0">수거수량&nbsp;:</label>
92
 						<div>
92
 						<div>
93
-						  <div class="fnRtnDodrItemQty">3개</div>
93
+						  <div class="fnRtnDodrItemQty"></div>
94
 						</div>
94
 						</div>
95
 					  </div>
95
 					  </div>
96
 					</div>
96
 					</div>
@@ -98,11 +98,11 @@
98
 					  <div class="nomal">
98
 					  <div class="nomal">
99
 						<label class="col_0">단가금액 &nbsp;:</label>
99
 						<label class="col_0">단가금액 &nbsp;:</label>
100
 						<div class="col_5">
100
 						<div class="col_5">
101
-						  <div class="fnUnitAmt col_5">1,000원</div>
101
+						  <div class="fnUnitAmt col_5"></div>
102
 						</div>
102
 						</div>
103
 						<label class="col_0">수거금액&nbsp;:</label>
103
 						<label class="col_0">수거금액&nbsp;:</label>
104
 						<div>
104
 						<div>
105
-						  <div class="fnRtnDodrTotalAmt space0">20,000원</div>
105
+						  <div class="fnRtnDodrTotalAmt space0"></div>
106
 						</div>
106
 						</div>
107
 						<div class="scroll_btn">
107
 						<div class="scroll_btn">
108
 						  <button id="ITP_BTN_MCOLLMNG02010_LIST_CHOICE">선택</button>
108
 						  <button id="ITP_BTN_MCOLLMNG02010_LIST_CHOICE">선택</button>
@@ -199,9 +199,9 @@
199
 						<div class="space2">
199
 						<div class="space2">
200
 						  <div class="fnItemNm"></div>
200
 						  <div class="fnItemNm"></div>
201
 						</div>
201
 						</div>
202
-						<label>가격단위&nbsp;:</label>
202
+						<label>수거주문수량&nbsp;:</label>
203
 						<div class="space2">
203
 						<div class="space2">
204
-						  <div class="fnUnit"></div>
204
+						  <div class="fnRtnOdrQty"></div>
205
 						</div>
205
 						</div>
206
 					  </div>
206
 					  </div>
207
 					</div>
207
 					</div>
@@ -235,7 +235,7 @@
235
 					  <div class="nomal">
235
 					  <div class="nomal">
236
 						<label>비고 &nbsp;:</label>
236
 						<label>비고 &nbsp;:</label>
237
 						<div>
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
 		              	</div>
239
 		              	</div>
240
 						<label></label>
240
 						<label></label>
241
 						<div class="space2">
241
 						<div class="space2">

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

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

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

@@ -52,9 +52,10 @@ let mobPageObj = {
52
 			$('button[id^="ITP_BTN_MCOLLMNG02010_LIST"]').on('click', function() {
52
 			$('button[id^="ITP_BTN_MCOLLMNG02010_LIST"]').on('click', function() {
53
 				var id = $(this).attr('id');
53
 				var id = $(this).attr('id');
54
 				switch (id) {
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
 				return false;
60
 				return false;
60
 			});
61
 			});
@@ -119,6 +120,7 @@ let mobContentObj = {
119
 		totPage: 0,
120
 		totPage: 0,
120
 		isSearch: false,
121
 		isSearch: false,
121
 		rows: [],
122
 		rows: [],
123
+		iChoice: -1,
122
 		init: function() {
124
 		init: function() {
123
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
125
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
124
 			this.search();
126
 			this.search();
@@ -127,6 +129,7 @@ let mobContentObj = {
127
 			this.listPage = 0;
129
 			this.listPage = 0;
128
 			this.totPage = 0;
130
 			this.totPage = 0;
129
 			this.rows.length = 0;
131
 			this.rows.length = 0;
132
+			this.iChoice = -1;
130
 			$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWS').empty();
133
 			$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWS').empty();
131
 			this.load();
134
 			this.load();
132
 		},
135
 		},
@@ -141,16 +144,15 @@ let mobContentObj = {
141
 					$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWCOPY').html());
144
 					$('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_ROWCOPY').html());
142
 					var $li = $('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
145
 					var $li = $('#ITP_LIST_MCOLLMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
143
 					$li.find('.fnBrandNm').text(item.brandNm);
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
 					$li.find('.fnItemId').text(item.itemId);
151
 					$li.find('.fnItemId').text(item.itemId);
150
 					$li.find('.fnItemNm').text(item.itemNm);
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
 					$li.find('.fnUnitAmt').text(CommonObj.comma.set(item.unitAmt));
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
 					_this.rows.push(item);
156
 					_this.rows.push(item);
155
 				});
157
 				});
156
 			};
158
 			};
@@ -162,6 +164,13 @@ let mobContentObj = {
162
 			param.toDt = CommonObj.onlyNumber(param.toDt);
164
 			param.toDt = CommonObj.onlyNumber(param.toDt);
163
 			console.log(JSON.stringify(param));
165
 			console.log(JSON.stringify(param));
164
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
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
 	view: {
176
 	view: {
@@ -187,40 +196,43 @@ let mobContentObj = {
187
 			var _this = this;
196
 			var _this = this;
188
 			var id = '#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER';
197
 			var id = '#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER';
189
 			$(id).find('.fnBrandNm').text(result.brandNm);
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
 				$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_ROWCOPY').html());
207
 				$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_ROWCOPY').html());
197
 				var $li = $('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group > .list-row:last');
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
 				$li.find('.fnItemId').text(item.itemId);
210
 				$li.find('.fnItemId').text(item.itemId);
200
 				$li.find('.fnItemNm').text(item.itemNm);
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
 				$li.find('.fnUnitAmt').text(CommonObj.currency.add(item.unitAmt));
213
 				$li.find('.fnUnitAmt').text(CommonObj.currency.add(item.unitAmt));
203
 				$li.find('.fnUnit').text(item.unit);
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
 				_this.rows.push(item);
218
 				_this.rows.push(item);
207
 			});
219
 			});
208
 		},
220
 		},
209
 		add: function() {
221
 		add: function() {
210
 			var _this = this;
222
 			var _this = this;
211
 			var param = {};
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
 				return false;
229
 				return false;
218
 			}
230
 			}
219
-			if(dlvMgrNm.length < 1) {
231
+			if(colMgrNm.length < 1) {
220
 				alert('발주담당자를 입력해 주세요.');
232
 				alert('발주담당자를 입력해 주세요.');
221
 				return false;
233
 				return false;
222
 			}
234
 			}
223
-			if(dlvMgrTelNo.length < 1) {
235
+			if(colMgrTelNo.length < 1) {
224
 				alert('발주담당자 연락처를 입력해 주세요.');
236
 				alert('발주담당자 연락처를 입력해 주세요.');
225
 				return false;
237
 				return false;
226
 			}
238
 			}
@@ -229,22 +241,18 @@ let mobContentObj = {
229
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group > .list-row').each(function(index) {
241
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group > .list-row').each(function(index) {
230
 				var row = _this.rows[index];
242
 				var row = _this.rows[index];
231
 				var item = {
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
 					return false;
252
 					return false;
245
 				}
253
 				}
246
-				if(row.podrQty < item.shmtQty) {
247
-					alert('납품수량은 발주수량을 초과할 수 없습니다.');
254
+				if(row.rtnOdrQty < item.coltQty) {
255
+					alert('수거수량은 수거요청수량을 초과할 수 없습니다.');
248
 					return false;
256
 					return false;
249
 				}
257
 				}
250
 				item.expryDate = item.expryDate.replace(/-/g, ".");
258
 				item.expryDate = item.expryDate.replace(/-/g, ".");
@@ -255,9 +263,9 @@ let mobContentObj = {
255
 				param['viewCd'] = 'C';
263
 				param['viewCd'] = 'C';
256
 				param['brandId'] = fn_make_user_info.get('brandId');
264
 				param['brandId'] = fn_make_user_info.get('brandId');
257
 				param['spplyId'] = fn_make_user_info.get('userId');
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
 				param['gridInsertData'] = gridInsertData;
269
 				param['gridInsertData'] = gridInsertData;
262
 				console.log(JSON.stringify(param));
270
 				console.log(JSON.stringify(param));
263
 				var callbackFn = function(result) {
271
 				var callbackFn = function(result) {
@@ -269,18 +277,16 @@ let mobContentObj = {
269
 		},
277
 		},
270
 		cancel: function () {
278
 		cancel: function () {
271
 			var id = '#ITP_AJAX_MCOLLMNG02010_VIEW_CONTAINER';
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
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').empty();
290
 			$('#ITP_LIST_MCOLLMNG02010_VIEW_ITEM_AREA .panel-group').empty();
285
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
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
 /*API URL*/
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
 const API_POP_SEARCH_LIST			= '/api/whs/mng/pop-whs-search';
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
 const PAGE_MODE_LIST				= "LIST";
13
 const PAGE_MODE_LIST				= "LIST";
14
 const PAGE_MODE_VIEW				= "VIEW";
14
 const PAGE_MODE_VIEW				= "VIEW";
@@ -140,16 +140,15 @@ let mobContentObj = {
140
 					$('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_ROWCOPY').html());
140
 					$('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_ROWCOPY').html());
141
 					var $li = $('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group > .list-row:last');
141
 					var $li = $('#ITP_LIST_MCOLLMNG03010_LIST_ITEM_AREA .panel-group > .list-row:last');
142
 					$li.find('.fnBrandNm').text(item.brandNm);
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
 					_this.rows.push(item);
152
 					_this.rows.push(item);
154
 				});
153
 				});
155
 			};
154
 			};
@@ -166,6 +165,7 @@ let mobContentObj = {
166
 		rows: [],
165
 		rows: [],
167
 		init: function(item) {
166
 		init: function(item) {
168
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
167
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
168
+			this.cancel();
169
 			this.search(item);
169
 			this.search(item);
170
 		},
170
 		},
171
 		search: function(item) {
171
 		search: function(item) {
@@ -179,106 +179,57 @@ let mobContentObj = {
179
 				'spplyId': fn_make_user_info.get('userId'),
179
 				'spplyId': fn_make_user_info.get('userId'),
180
 				'pchPodrUnqNo': item.pchPodrUnqNo
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
 		view: function(result) {
184
 		view: function(result) {
185
 			var _this = this;
185
 			var _this = this;
186
 			var id = '#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER';
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
 				$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_ROWCOPY').html());
204
 				$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_ROWCOPY').html());
195
 				var $li = $('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group > .list-row:last');
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
 				$li.find('.fnItemId').text(item.itemId);
207
 				$li.find('.fnItemId').text(item.itemId);
198
 				$li.find('.fnItemNm').text(item.itemNm);
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
 				_this.rows.push(item);
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
 		cancel: function () {
215
 		cancel: function () {
269
 			var id = '#ITP_AJAX_MCOLLMNG03010_VIEW_CONTAINER';
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
 			$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').empty();
233
 			$('#ITP_LIST_MCOLLMNG03010_VIEW_ITEM_AREA .panel-group').empty();
283
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
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
 					case 'ITP_BTN_MORDMNG02010_LIST_SEARCH_WHS_NM'	: mobPopObj.popWhsNm.init(); 	break;
60
 					case 'ITP_BTN_MORDMNG02010_LIST_SEARCH_WHS_NM'	: mobPopObj.popWhsNm.init(); 	break;
61
 					case 'ITP_BTN_MORDMNG02010_LIST_DELETE_WHS_NM'	: mobPopObj.popWhsNm.delete(); 	break;
61
 					case 'ITP_BTN_MORDMNG02010_LIST_DELETE_WHS_NM'	: mobPopObj.popWhsNm.delete(); 	break;
62
 					case 'ITP_BTN_MORDMNG02010_LIST_SEARCH'			: mobContentObj.list.search();	break;
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
 				return false;
65
 				return false;
65
 			});
66
 			});
@@ -134,6 +135,7 @@ let mobContentObj = {
134
 			this.listPage = 0;
135
 			this.listPage = 0;
135
 			this.totPage = 0;
136
 			this.totPage = 0;
136
 			this.rows.length = 0;
137
 			this.rows.length = 0;
138
+			this.iChoice = -1;
137
 			$('#ITP_LIST_MORDMNG02010_LIST_ITEM_ROWS').empty();
139
 			$('#ITP_LIST_MORDMNG02010_LIST_ITEM_ROWS').empty();
138
 			this.load();
140
 			this.load();
139
 		},
141
 		},
@@ -168,6 +170,13 @@ let mobContentObj = {
168
 			param.fromDt = CommonObj.onlyNumber(param.fromDt);
170
 			param.fromDt = CommonObj.onlyNumber(param.fromDt);
169
 			param.toDt = CommonObj.onlyNumber(param.toDt);
171
 			param.toDt = CommonObj.onlyNumber(param.toDt);
170
 			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
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
 	view: {
182
 	view: {
@@ -176,6 +185,7 @@ let mobContentObj = {
176
 			this.item = item;
185
 			this.item = item;
177
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
186
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
178
 			$('#ITP_FORM_MORDMNG02010_VIEW_DLV_SCH_DT').val(itp_fn_date_add('M', 0));
187
 			$('#ITP_FORM_MORDMNG02010_VIEW_DLV_SCH_DT').val(itp_fn_date_add('M', 0));
188
+			this.cancel();
179
 			this.search(item);
189
 			this.search(item);
180
 		},
190
 		},
181
 		search: function(item) {
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
 /*API URL*/
8
 /*API URL*/
9
 const API_MOBILE_GRID_LIST 			= '/api/pomng/inoutmng/spply-deli-grid-list';	// 목록
9
 const API_MOBILE_GRID_LIST 			= '/api/pomng/inoutmng/spply-deli-grid-list';	// 목록
10
-const API_MOBILE_INFO 				= '/api/pomng/inoutmng/info-inv';				// 상세
11
 const API_POP_SEARCH_LIST			= '/api/whs/mng/pop-whs-search';
10
 const API_POP_SEARCH_LIST			= '/api/whs/mng/pop-whs-search';
12
 const API_POP_INV_INFO 				= '/api/pomng/inoutmng/info-inv';
11
 const API_POP_INV_INFO 				= '/api/pomng/inoutmng/info-inv';
13
 
12
 
@@ -177,6 +176,7 @@ let mobContentObj = {
177
 		rows: [],
176
 		rows: [],
178
 		init: function(item) {
177
 		init: function(item) {
179
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
178
 			mobPageObj.switchScreen(PAGE_MODE_VIEW);
179
+			this.cancel();
180
 			this.search(item);
180
 			this.search(item);
181
 		},
181
 		},
182
 		search: function(item) {
182
 		search: function(item) {
@@ -227,18 +227,22 @@ let mobContentObj = {
227
 		},
227
 		},
228
 		cancel: function () {
228
 		cancel: function () {
229
 			var id = '#ITP_AJAX_MORDMNG03010_VIEW_CONTAINER';
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
 			$('#ITP_LIST_MORDMNG03010_VIEW_ITEM_AREA .panel-group').empty();
246
 			$('#ITP_LIST_MORDMNG03010_VIEW_ITEM_AREA .panel-group').empty();
243
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
247
 			mobPageObj.switchScreen(PAGE_MODE_LIST);
244
 		}
248
 		}