Sfoglia il codice sorgente

출하현황 작업-1

yhl88 2 anni fa
parent
commit
8223a19e2a

+ 8 - 9
src/main/webapp/app/inoutmng/INOUTMNG02010.html

@@ -4,7 +4,7 @@
4 4
 			<div class="itp_det_head fix">
5 5
 				<h2 class="pull-left itp_det_tit"><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_INOUTMNG02010_SRH" class="btn btn-success btn-sm IVP" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;납품서출력&nbsp;</button>
7
+					<button type="button" id="ITP_BTN_INOUTMNG02010_PRINT" class="btn btn-success btn-sm IVP" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;납품서출력&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_INOUTMNG02010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
9 9
 				</div>
10 10
 			</div>
@@ -14,17 +14,16 @@
14 14
 						<div class="itp_srh_border fix">
15 15
 							<div class="col-xs-12">
16 16
 								<form id="ITP_FORM_INOUTMNG02010_SEARCH" class="form-horizontal">
17
+								<input type="hidden" id="ITP_FORM_INOUTMNG02010_SEARCH_BRAND_ID" name="sbrandId" value="">
17 18
 									<div class="form-group">
18 19
 										<div class="col-xs-2 itp_ip itp_noMar">
19
-											<select id="ITP_FORM_INOUTMNG02010_SERVICE_" class="form-control itp_input" name="">
20
-												<option value="A">출하일자*</option>											
21
-											</select>
20
+                                            <label>출하일자 *</label>
22 21
 										</div>
23 22
 										<div class="col-xs-3 itp_ip itp_noMar">
24 23
 											<div class="input-daterange input-group date">
25
-												<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_" class="form-control itp_input" name="" value="">
24
+												<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="">
26 25
 												<span class="input-group-addon itp_date_to">~</span>
27
-												<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_" class="form-control itp_input" name="" value="">
26
+												<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="">
28 27
 											</div>
29 28
 										</div>
30 29
 										<div class="col-xs-2 itp_ip itp_noMar">
@@ -35,7 +34,7 @@
35 34
 									</div>
36 35
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
37 36
 										<div class="col-xs-2 itp_ip itp_noMar">
38
-											<select id="ITP_FORM_INOUTMNG02010_SEARCH_SHMT_REQ_ST_CD" class="form-control itp_input" name="sShmtReqStCd">
37
+											<select id="ITP_FORM_INOUTMNG02010_SEARCH_SHMT_REQ_ST_CD" data-select-code="SHMT_DTL_ST_CD" class="form-control itp_input" name="sShmtReqStCd">
39 38
 												<option value="A">출하상태</option>											
40 39
 											</select>
41 40
 										</div>
@@ -43,8 +42,8 @@
43 42
 											<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_STORE_NM" class="form-control itp_input" name="sStoreNm" placeholder="매장" />
44 43
 										</div>
45 44
 										<div class="col-xs-1 itp_in" style="width:11%; padding:0px;">
46
-											<button type="button" id="ITP_BTN_INOUTMNG02010_SEARCH_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
47
-											<button type="button" id="ITP_BTN_INOUTMNG02010_SEARCH_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
45
+											<button type="button" id="ITP_BTN_INOUTMNG02010_SEARCH_STORE_ID" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
46
+											<button type="button" id="ITP_BTN_INOUTMNG02010_DELETE_STORE_ID" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
48 47
 						                </div>
49 48
 										<div class="col-xs-4 itp_ip itp_noMar">
50 49
 											<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_ITEM_NM" class="form-control itp_input" name="sItemNm" placeholder="품목번호 or 품목명" />

+ 345 - 0
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG02010.js

@@ -0,0 +1,345 @@
1
+require(['config'], function() {
2
+    require([
3
+    ], function($) {
4
+        pageObj.init();
5
+    });
6
+});
7
+
8
+
9
+//화면변수
10
+const INOUTMNG02010_GRID_ID = '#ITP_INOUTMNG02010_jqGrid';
11
+const INOUTMNG02010_GRID_LIST = '#ITP_INOUTMNG02010_jqGrid_list';
12
+const INOUTMNG02010_GRID_PAGER = '#ITP_INOUTMNG02010_jqGridPager';
13
+const INOUTMNG02010_GRID_EMPTY = '#ITP_INOUTMNG02010_jqGridEmpty';
14
+
15
+let ITP_PODR_DTL_ST_CD = fn_make_common_cd_list(CODE_LIST, 'SHMT_REQ_ST_CD', true, '출하요청상태코드');
16
+
17
+//API URL
18
+let API_POMNG_INOUTMNG_OUTSEARCH_GRID_LIST = '/api/pomng/inoutmng/outsearch-grid-list';
19
+let API_POMNG_INOUTMNG_INFO_INV = '/api/pomng/inoutmng/info-inv';
20
+
21
+
22
+//화면 grid ColModel
23
+const gridColModel = {
24
+	list:[
25
+		{
26
+			index: 'VIEW_CD', name: 'viewCd',
27
+			label: ITP_MSG_LOCALE.label.viewCd,
28
+			width: '10', fixed: false, align: 'center',
29
+			sortable: false, hidden: true
30
+		},
31
+		{
32
+			index: 'BRAND_NM', name: 'brandNm',
33
+			label: ITP_MSG_LOCALE.label.brandNm,				// 브랜드명
34
+			width: '10', fixed: false, align: 'center',
35
+			sortable: false, hidden: false
36
+		},
37
+		{
38
+			index: 'SHMT_REQ_UNQ_NO', name: 'shmtReqUnqNo',
39
+			label: ITP_MSG_LOCALE.label.shmtReqUnqNo,			// 출하지시번호
40
+			width: '10', fixed: false, align: 'center',
41
+			sortable: false, hidden: false
42
+		},
43
+		{
44
+			index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
45
+			label: ITP_MSG_LOCALE.label.pchPodrUnqNo,			// 발주번호
46
+			width: '10', fixed: false, align: 'center',
47
+			sortable: false, hidden: false
48
+		},
49
+		{
50
+			index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
51
+			label: ITP_MSG_LOCALE.label.pchPodrDtlNo,			// 발주항번
52
+			width: '8', fixed: false, align: 'center',
53
+			sortable: false, hidden: false
54
+		},
55
+		{
56
+			index: 'SHMT_REQ_ST_CD', name: 'shmtReqStCd',
57
+			label: ITP_MSG_LOCALE.label.shmtReqStCd,			// 출하상태코드
58
+			width: '10', fixed: false, align: 'center',
59
+			sortable: false, hidden: false, formatter: 'select', edittype: 'select',
60
+			editoptions: {value: ITP_PODR_DTL_ST_CD}
61
+		},
62
+		{
63
+			index: 'ITEM_ID', name: 'itemId',
64
+			label: ITP_MSG_LOCALE.label.itemId,					// 품목번호
65
+			width: '10', fixed: false, align: 'center',
66
+			sortable: false, hidden: false
67
+		},
68
+		{
69
+			index: 'ITEM_NM', name: 'itemNm',
70
+			label: ITP_MSG_LOCALE.label.itemNm,					// 품목명
71
+			width: '10', fixed: false, align: 'center',
72
+			sortable: false, hidden: false
73
+		},
74
+		{
75
+			index: 'WHS_NM', name: 'whsNm',
76
+			label: ITP_MSG_LOCALE.label.whsNm,					// 납품장소
77
+			width: '10', fixed: false, align: 'center',
78
+			sortable: false, hidden: false
79
+		},
80
+		{
81
+			index: 'SHMT_QTY', name: 'shmtQty',
82
+			label: ITP_MSG_LOCALE.label.shmtQty,				// 출하수량
83
+			width: '8', fixed: false, align: 'center',
84
+			sortable: false, hidden: false
85
+		},
86
+		{
87
+			index: 'SHMT_AMT', name: 'shmtAmt',
88
+			label: ITP_MSG_LOCALE.label.shmtAmt,				// 출하금액
89
+			width: '8', fixed: false, align: 'center',
90
+			sortable: false, hidden: false
91
+		},
92
+		{
93
+			index: 'WHS_QTY', name: 'whsQty',
94
+			label: ITP_MSG_LOCALE.label.whsQty,					// 입고수량
95
+			width: '8', fixed: false, align: 'center',
96
+			sortable: false, hidden: false
97
+		},
98
+		{
99
+			index: 'WHS_AMT', name: 'whsAmt',
100
+			label: ITP_MSG_LOCALE.label.whsAmt,					// 입고금액
101
+			width: '8', fixed: false, align: 'center',
102
+			sortable: false, hidden: false
103
+		},
104
+		{
105
+			index: 'WHS_CNFM_NM', name: 'whsCnfmNm',
106
+			label: ITP_MSG_LOCALE.label.whsCnfmNm,				// 입고확인자
107
+			width: '10', fixed: false, align: 'center',
108
+			sortable: false, hidden: false
109
+		},
110
+		{
111
+			index: 'WHS_DT', name: 'whsDt',
112
+			label: ITP_MSG_LOCALE.label.whsDt,					// 입고일
113
+			width: '10', fixed: false, align: 'center',
114
+			sortable: false, hidden: false
115
+		}
116
+	]
117
+}
118
+
119
+
120
+/*화면공통 Object*/
121
+let pageObj = {
122
+	init: function() {
123
+		this.ui.init();
124
+		this.event.init();
125
+	},
126
+	ui: {
127
+		init: function() {
128
+			this.view();
129
+			this.grid();
130
+			this.ready();
131
+		},
132
+		view: function() {
133
+			// 버튼 권한설정
134
+			fn_proc_btn_auth('INOUTMNG02010');
135
+			// 공통코드 표시
136
+			$('select').each(function() {
137
+				if($(this).data('select-code')) {
138
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
139
+				}
140
+			});
141
+			// 조회일자 지정	
142
+			var now = new Date();
143
+			var defaultToDate = new Date(now);
144
+			defaultToDate.setDate(now.getDate() + 10);
145
+			$('#ITP_TAB_INOUTMNG02010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
146
+			$('#ITP_FORM_INOUTMNG02010_SEARCH_FROM_DT').datepicker('setDate', '2022.10.01');
147
+			$('#ITP_FORM_INOUTMNG02010_SEARCH_TO_DT').datepicker('setDate', '2024.10.01');
148
+		},
149
+		grid: function() {
150
+			itp_fn_jqgrid_resize(INOUTMNG02010_GRID_ID, INOUTMNG02010_GRID_LIST, 'lg');
151
+			listObj.empty.init();
152
+			itp_fn_fire_window_resize();
153
+		},
154
+		ready: function() {
155
+			listObj.init();
156
+		}
157
+	},
158
+	event: {
159
+		init: function() {
160
+			this.button();
161
+		},
162
+		button: function() {
163
+			// 버튼 클릭 이벤트
164
+			$('button').each(function() {
165
+				var id = $(this).attr('id');
166
+				$(this).on('click', function() {
167
+					switch (id) {
168
+						case 'ITP_BTN_INOUTMNG02010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
169
+						case 'ITP_BTN_INOUTMNG02010_NEWREG'			: listObj.button.create(); 		break;	// 신규등록 버튼
170
+						case 'ITP_BTN_INOUTMNG02010_MODIFY'			: modifyObj.button.modify();	break;	// 수정 버튼
171
+						case 'ITP_BTN_INOUTMNG02010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
172
+						case 'ITP_BTN_INOUTMNG02010_DELETE'			: modifyObj.button.del();		break;	// 발주 취소 버튼(예정)
173
+					}
174
+				});
175
+			});
176
+		}
177
+	},
178
+	switchScreen: function(mode) {
179
+        $('.itp_det_head').find('button[id^="ITP_BTN_INOUTMNG02010_"]').each(function(i) {
180
+            $(this).hide();
181
+        });
182
+        $('#ITP_TAB_INOUTMNG02010').find('div[id$="_CONTAINER"]').each(function(i) {
183
+            $(this).hide();
184
+        });
185
+        if(mode == 'LIST') { // 목록
186
+            fn_show_btn_auth_array(['#ITP_BTN_INOUTMNG02010_SRH', '#ITP_BTN_INOUTMNG02010_NEWREG']);
187
+            $('#ITP_AJAX_INOUTMNG02010_LIST_CONTAINER').show();
188
+            $('#ITP_FORM_INOUTMNG02010_SEARCH #ITP_FORM_INOUTMNG02010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
189
+            $('#ITP_BTN_INOUTMNG02010_PRINT').show();
190
+            $('#ITP_BTN_INOUTMNG02010_SRH').show();
191
+            $('#ITP_BTN_INOUTMNG02010_SEARCH_STORE_ID').show();
192
+            $('#ITP_BTN_INOUTMNG02010_DELETE_STORE_ID').show();
193
+            
194
+        } /*else if(mode == 'ADD') { // 등록
195
+            $('#ITP_AJAX_INOUTMNG02010_DETAIL_CONTAINER').show();
196
+            fn_show_btn_auth_array(['#ITP_BTN_INOUTMNG02010_CANCELLIST', '#ITP_BTN_INOUTMNG02010_SAVE']);
197
+
198
+            $('#ITP_FORM_INOUTMNG02010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
199
+                $(this).attr('id') === 'ITP_FORM_INOUTMNG02010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
200
+                if(elem.type === 'select') {
201
+                    $(this).val('').prop('selected', true);
202
+                }
203
+            });
204
+            $('#ITP_FORM_INOUTMNG02010_DETAIL #ITP_FORM_INOUTMNG02010_DETAIL_FILE_NO').val('');
205
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BRAND_ID').removeAttr('readonly');
206
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BRAND_NM').removeAttr('readonly');
207
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BSNS_REG_NO').removeAttr('readonly');
208
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_CORP_REG_NO').removeAttr('readonly');
209
+            // $('#ITP_FORM_INOUTMNG02010_DETAIL_SEARCH_AFFL_SHOP').removeAttr('disabled');
210
+            // $('#ITP_FORM_INOUTMNG02010_DETAIL_DELETE_AFFL_SHOP').removeAttr('disabled');
211
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_SEARCH_AFFL_SHOP').show();
212
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_DELETE_AFFL_SHOP').show();
213
+			$('#ITP_FORM_INOUTMNG02010_DETAIL .itp_form_info').hide();
214
+			$('#ITP_FORM_INOUTMNG02010_DETAIL .itp_form_change').show();
215
+
216
+            $('#ITP_FORM_INOUTMNG02010_DETAIL #ITP_FORM_INOUTMNG02010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
217
+            $('#ITP_FORM_INOUTMNG02010_DETAIL #ITP_FORM_INOUTMNG02010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
218
+
219
+            $('.fnBrandId').text('(자동부여)');
220
+        } */else if(mode == 'MODIFY') { // 수정
221
+            $('#ITP_AJAX_INOUTMNG02010_DETAIL_CONTAINER').show();
222
+            fn_show_btn_auth_array(['#ITP_BTN_INOUTMNG02010_CANCELLIST', '#ITP_BTN_INOUTMNG02010_SAVE']);
223
+
224
+            $('#ITP_BTN_INOUTMNG02010_CANCELLIST').show();
225
+            $('#ITP_BTN_INOUTMNG02010_DELETE').show();
226
+            
227
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BRAND_ID').attr('readonly', true);
228
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BRAND_NM').attr('readonly', true);
229
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_BSNS_REG_NO').attr('readonly', true);
230
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_CORP_REG_NO').attr('readonly', true);
231
+            // $('#ITP_FORM_INOUTMNG02010_DETAIL_SEARCH_AFFL_SHOP').attr('disabled', true);
232
+            // $('#ITP_FORM_INOUTMNG02010_DETAIL_DELETE_AFFL_SHOP').attr('disabled', true);
233
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_SEARCH_AFFL_SHOP').hide();
234
+            $('#ITP_FORM_INOUTMNG02010_DETAIL_DELETE_AFFL_SHOP').hide();
235
+			$('#ITP_FORM_INOUTMNG02010_DETAIL .itp_form_info').show();
236
+			$('#ITP_FORM_INOUTMNG02010_DETAIL .itp_form_change').hide();
237
+
238
+            $('#ITP_FORM_INOUTMNG02010_DETAIL #ITP_FORM_INOUTMNG02010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
239
+        } /*else if(mode == 'VIEW') { // 보기
240
+            $('#ITP_AJAX_INOUTMNG02010_VIEW_CONTAINER').show();
241
+            fn_show_btn_auth_array(['#ITP_BTN_INOUTMNG02010_MODIFY', '#ITP_BTN_INOUTMNG02010_CANCELLIST']);
242
+        }*/
243
+    }
244
+};
245
+
246
+
247
+/*목록화면 Object*/
248
+let listObj = {
249
+	init: function() {
250
+		this.grid.init();
251
+		//this.action();
252
+	},
253
+	itp_INOUTMNG02010_param: {},
254
+	itp_INOUTMNG02010_search: false,
255
+	button: {
256
+		search: function() {
257
+			listObj.itp_INOUTMNG02010_search = true;
258
+			let param = $('#ITP_FORM_INOUTMNG02010_SEARCH').serializeObject();
259
+			param.gridSize = $.jgrid.defaults.rowNum;
260
+            param.gridPage = $.jgrid.defaults.page;
261
+            param.sidx = '0';
262
+            console.log(JSON.stringify(param));
263
+            $(INOUTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
264
+        }
265
+	},
266
+	empty: {
267
+		init: function() {
268
+			var _this = this;
269
+            this.push();
270
+            $(INOUTMNG02010_GRID_EMPTY).on('click', function() {
271
+                _this.back();
272
+                listObj.itp_INOUTMNG02010_param.gridSize = $.jgrid.defaults.rowNum;
273
+                $(INOUTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_INOUTMNG02010_param)}).trigger('reloadGrid');
274
+            });
275
+		},
276
+		push: function() {
277
+            let param = $('#ITP_FORM_INOUTMNG02010_SEARCH').serializeObject();
278
+            listObj.itp_INOUTMNG02010_param = param;
279
+            param.sidx = '0';
280
+        },
281
+        back: function() {
282
+            $('#ITP_FORM_INOUTMNG02010_SERVICE_BRAND_TYPE').val(listObj.itp_INOUTMNG02010_param.brandType);
283
+            $('#ITP_FORM_INOUTMNG02010_SERVICE_ST_CD').val(listObj.itp_INOUTMNG02010_param.stCd);
284
+            $('#ITP_FORM_INOUTMNG02010_SEARCH_BRAND_NM').val(listObj.itp_INOUTMNG02010_param.brandNm);
285
+        }
286
+	},
287
+	grid: {
288
+		init: function() {
289
+			// 데이터 없을때
290
+            listObj.empty.push();
291
+            this.search();
292
+		},
293
+		colModel: gridColModel.list,
294
+		search: function() {
295
+			pageObj.switchScreen('LIST');
296
+			this.unload();
297
+			this.load();
298
+		},
299
+		load: function() {
300
+            let param = $('#ITP_FORM_INOUTMNG02010_SEARCH').serializeObject();
301
+            param.gridSize = $.jgrid.defaults.rowNum;
302
+            param.sidx = '0';
303
+            console.log(JSON.stringify(param));
304
+            var option = {
305
+            	gridId: INOUTMNG02010_GRID_ID,
306
+            	colModel: gridColModel.list,
307
+            	param: param,
308
+            	url: DOMAIN + API_POMNG_INOUTMNG_OUTSEARCH_GRID_LIST,
309
+            	pager: INOUTMNG02010_GRID_PAGER,
310
+				multiselect: true,
311
+				rownumbers: false,/*
312
+            	onCellSelect: function(rowId, cellIdx, cellValue) {
313
+                    var cm = $(this).jqGrid('getGridParam', 'colModel');
314
+                    var colNm = cm[cellIdx].name;
315
+                    if (colNm === 'pchPodrUnqNo') {
316
+                        const pchPodrUnqNoVal = $(this).jqGrid('getCell', rowId, 'pchPodrUnqNo');
317
+                        const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
318
+                        const key = {pchPodrUnqNo: pchPodrUnqNoVal, brandId: brandIdVal};
319
+                        var param = $.param(key);
320
+                        modifyObj.init(param);
321
+                    }
322
+				},*/
323
+				loadComplete: function(data) {
324
+					console.log(data);
325
+                    itp_fn_grid_load_complete(data, INOUTMNG02010_GRID_ID, true, 'number', 'INOUTMNG02010', listObj.itp_INOUTMNG02010_search, listObj.empty, true, data.gridRecords, true);
326
+				},
327
+				onPaging: function(action) {
328
+                    itp_fn_grid_paging(INOUTMNG02010_GRID_ID, action, param);
329
+                }
330
+            };
331
+            itp_fn_grid_make_remote(option);
332
+		},
333
+		clearData: function() {
334
+			$(INOUTMNG02010_GRID_ID).jqGrid('clearGridData', true);
335
+            $(INOUTMNG02010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
336
+            $(INOUTMNG02010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
337
+            $(INOUTMNG02010_GRID_EMPTY).show();
338
+		},
339
+		unload: function() {
340
+			$.jgrid.gridUnload(INOUTMNG02010_GRID_ID);
341
+		}
342
+	}
343
+}
344
+
345
+console.log(CODE_LIST);

+ 7 - 1
src/main/webapp/js/app/locales/locale-ko.js

@@ -178,6 +178,7 @@ const ITP_MSG_LOCALE = (function() {
178 178
 			"pchOdrStNm": "발주상태명",
179 179
 			"podrDt": "발주일자",
180 180
 			"dlvReqDt": "납품요청일",
181
+			"whsId": "납품장소번호",
181 182
 			"whsNm": "납품장소",
182 183
 			"podrTotalAmt": "총 발주금액",
183 184
 			"podrItemQty": "발주품목수",
@@ -221,7 +222,12 @@ const ITP_MSG_LOCALE = (function() {
221 222
 			"pchOrdSpplyAmt": "본사납품금액",
222 223
 			"locationNm": "입고처",
223 224
 			"whsPassQty": "출고가능수량",
224
-			"podrDtlStCd": "발주상세상태"
225
+			"podrDtlStCd": "발주상세상태",
226
+			"shmtReqUnqNo": "출하지시번호",
227
+			"shmtReqStCd": "출하상태코드",
228
+			"shmtQty": "출하수량",
229
+			"shmtAmt": "출하금액",
230
+			"whsDt": "입고일"
225 231
 		},
226 232
 		"table": {
227 233
 			"brandId": "브랜드ID",

+ 1 - 1
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -154,7 +154,7 @@ const gridColModel = {
154 154
 			label: ITP_MSG_LOCALE.label.podrDtlStCd, 		// 구매발주상세상태코드
155 155
 			width: '5', fixed: false, align: 'center',
156 156
 			sortable: false, hidden: false, formatter: 'select', edittype: 'select',
157
-			editoptions: {value: ITP_PODR_DTL_ST_CD},
157
+			editoptions: {value: ITP_PODR_DTL_ST_CD}
158 158
 		}
159 159
 	]
160 160
 };

+ 1 - 48
src/main/webapp/js/app/pomng/ITP_POMNG07010.js

@@ -209,52 +209,7 @@ let pageObj = {
209 209
             $('#ITP_BTN_POMNG07010_DELETE_SPPLY_ID').show();
210 210
             $('#ITP_BTN_POMNG07010_SEARCH_WHS_ID').show();
211 211
             $('#ITP_BTN_POMNG07010_DELETE_WHS_ID').show();
212
-        }/* else if(mode == 'ADD') { // 등록
213
-            $('#ITP_AJAX_POMNG07010_DETAIL_CONTAINER').show();
214
-            fn_show_btn_auth_array(['#ITP_BTN_POMNG07010_CANCELLIST', '#ITP_BTN_POMNG07010_SAVE']);
215
-
216
-            $('#ITP_FORM_POMNG07010_DETAIL').find('input, textarea, select, checkbox').each(function(i, elem) {
217
-                $(this).attr('id') === 'ITP_FORM_POMNG07010_DETAIL_VIEW_CD' ? $(this).val('C') : $(this).val('');
218
-                if(elem.type === 'select') {
219
-                    $(this).val('').prop('selected', true);
220
-                }
221
-            });
222
-            $('#ITP_FORM_POMNG07010_DETAIL #ITP_FORM_POMNG07010_DETAIL_FILE_NO').val('');
223
-            $('#ITP_FORM_POMNG07010_DETAIL_BRAND_ID').removeAttr('readonly');
224
-            $('#ITP_FORM_POMNG07010_DETAIL_BRAND_NM').removeAttr('readonly');
225
-            $('#ITP_FORM_POMNG07010_DETAIL_BSNS_REG_NO').removeAttr('readonly');
226
-            $('#ITP_FORM_POMNG07010_DETAIL_CORP_REG_NO').removeAttr('readonly');
227
-            // $('#ITP_FORM_POMNG07010_DETAIL_SEARCH_AFFL_SHOP').removeAttr('disabled');
228
-            // $('#ITP_FORM_POMNG07010_DETAIL_DELETE_AFFL_SHOP').removeAttr('disabled');
229
-            $('#ITP_FORM_POMNG07010_DETAIL_SEARCH_AFFL_SHOP').show();
230
-            $('#ITP_FORM_POMNG07010_DETAIL_DELETE_AFFL_SHOP').show();
231
-			$('#ITP_FORM_POMNG07010_DETAIL .itp_form_info').hide();
232
-			$('#ITP_FORM_POMNG07010_DETAIL .itp_form_change').show();
233
-
234
-            $('#ITP_FORM_POMNG07010_DETAIL #ITP_FORM_POMNG07010_DETAIL_AFFL_SHOP_ID').val(fn_make_user_info.get('afflShopId'));
235
-            $('#ITP_FORM_POMNG07010_DETAIL #ITP_FORM_POMNG07010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
236
-
237
-            $('.fnBrandId').text('(자동부여)');
238
-        } else if(mode == 'MODIFY') { // 수정
239
-            $('#ITP_AJAX_POMNG07010_DETAIL_CONTAINER').show();
240
-            fn_show_btn_auth_array(['#ITP_BTN_POMNG07010_CANCELLIST', '#ITP_BTN_POMNG07010_SAVE']);
241
-
242
-            $('#ITP_FORM_POMNG07010_DETAIL_BRAND_ID').attr('readonly', true);
243
-            $('#ITP_FORM_POMNG07010_DETAIL_BRAND_NM').attr('readonly', true);
244
-            $('#ITP_FORM_POMNG07010_DETAIL_BSNS_REG_NO').attr('readonly', true);
245
-            $('#ITP_FORM_POMNG07010_DETAIL_CORP_REG_NO').attr('readonly', true);
246
-            // $('#ITP_FORM_POMNG07010_DETAIL_SEARCH_AFFL_SHOP').attr('disabled', true);
247
-            // $('#ITP_FORM_POMNG07010_DETAIL_DELETE_AFFL_SHOP').attr('disabled', true);
248
-            $('#ITP_FORM_POMNG07010_DETAIL_SEARCH_AFFL_SHOP').hide();
249
-            $('#ITP_FORM_POMNG07010_DETAIL_DELETE_AFFL_SHOP').hide();
250
-			$('#ITP_FORM_POMNG07010_DETAIL .itp_form_info').show();
251
-			$('#ITP_FORM_POMNG07010_DETAIL .itp_form_change').hide();
252
-
253
-            $('#ITP_FORM_POMNG07010_DETAIL #ITP_FORM_POMNG07010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
254
-        } else if(mode == 'VIEW') { // 보기
255
-            $('#ITP_AJAX_POMNG07010_VIEW_CONTAINER').show();
256
-            fn_show_btn_auth_array(['#ITP_BTN_POMNG07010_MODIFY', '#ITP_BTN_POMNG07010_CANCELLIST']);
257
-        }*/
212
+        }
258 213
     }
259 214
 }
260 215
 
@@ -295,8 +250,6 @@ let listObj = {
295 250
             $('#ITP_FORM_POMNG07010_SERVICE_BRAND_TYPE').val(listObj.itp_POMNG07010_param.brandType);
296 251
             $('#ITP_FORM_POMNG07010_SERVICE_ST_CD').val(listObj.itp_POMNG07010_param.stCd);
297 252
             $('#ITP_FORM_POMNG07010_SEARCH_BRAND_NM').val(listObj.itp_POMNG07010_param.brandNm);
298
-        	console.log('here');
299
-        	console.log(listObj.itp_POMNG07010_param);            
300 253
         }
301 254
 	},
302 255
 	grid: {

+ 0 - 1
src/main/webapp/js/app/vendinfo/ITP_VENDINFO03010.js

@@ -255,7 +255,6 @@ let listObj = {
255 255
             param.gridSize = $.jgrid.defaults.rowNum;            
256 256
             param.sbrandId = LOGIN_USER_INFO.brandId;
257 257
             param.sspplyId = LOGIN_USER_INFO.spplyId;
258
-            console.log(param);
259 258
             var option = {
260 259
                 gridId: VENDINFO03010_GRID_ID,
261 260
                 colModel: gridColModel.list,