瀏覽代碼

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

dwkim 2 年之前
父節點
當前提交
a74eb89d35

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

@@ -27,26 +27,30 @@
27 27
 											</div>
28 28
 										</div>
29 29
 										<div class="col-xs-2 itp_ip itp_noMar">
30
-											<select id="ITP_FORM_INOUTMNG02010_SEARCH_SHMT_WHS_ID" class="form-control itp_input" name="sShmtWhsId">
31
-												<option value="A">출하창고</option>											
32
-											</select>
30
+											<input type="text" id="ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_NM" class="form-control itp_input" name="sshmtWhsNm" placeholder="출하창고" />
31
+											<input type="hidden" id="ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_ID" class="form-control itp_input" name="sshmtWhsId" />
33 32
 										</div>
33
+										<div class="col-xs-1 itp_in" style="width:11%; padding:0px;">
34
+											<button type="button" id="ITP_BTN_INOUTMNG02010_SEARCH_SHMT_WHS_ID" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
35
+											<button type="button" id="ITP_BTN_INOUTMNG02010_DELETE_SHMT_WHS_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
36
+						                </div>
34 37
 									</div>
35 38
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
36 39
 										<div class="col-xs-2 itp_ip itp_noMar">
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">
38
-												<option value="A">출하상태</option>											
40
+											<select id="ITP_FORM_INOUTMNG02010_SEARCH_SHMT_REQ_ST_CD" data-select-code="SHMT_DTL_ST_CD" class="form-control itp_input" name="sshmtReqStCd">
41
+												<option value="">출하상태</option>											
39 42
 											</select>
40 43
 										</div>
41 44
 										<div class="col-xs-2 itp_ip itp_noMar">
42
-											<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_STORE_NM" class="form-control itp_input" name="sStoreNm" placeholder="매장" />
45
+											<input type="text" id="ITP_FORM_INOUTMNG02010_DETAIL_WHS_NM" class="form-control itp_input" name="swhsNm" placeholder="매장" />
46
+											<input type="hidden" id="ITP_FORM_INOUTMNG02010_DETAIL_WHS_ID" class="form-control itp_input" name="swhsId" />
43 47
 										</div>
44 48
 										<div class="col-xs-1 itp_in" style="width:11%; padding:0px;">
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>
49
+											<button type="button" id="ITP_BTN_INOUTMNG02010_SEARCH_WHS_ID" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
50
+											<button type="button" id="ITP_BTN_INOUTMNG02010_DELETE_WHS_ID" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
47 51
 						                </div>
48 52
 										<div class="col-xs-4 itp_ip itp_noMar">
49
-											<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_ITEM_NM" class="form-control itp_input" name="sItemNm" placeholder="품목번호 or 품목명" />
53
+											<input type="text" id="ITP_FORM_INOUTMNG02010_SEARCH_ITEM_NM" class="form-control itp_input" name="sitemNm" placeholder="품목번호 or 품목명" />
50 54
 										</div>
51 55
 									</div>
52 56
 								</form>

+ 0 - 5
src/main/webapp/app/ordmng/ORDMNG03010.html

@@ -7,11 +7,6 @@
7 7
 					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_ORDMNG03010_POPUP" class="btn btn-primary btn-sm IVP" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;납품서출력&nbsp;&nbsp;</button>
9 9
 				</div>
10
-				<div style="top:0px; text-align:center; font-size:20px;">
11
-					<span style="text-decoration:underline; font-weight:600;">테스트공급업체</span>
12
-					<button type="button" id="ITP_BTN_ORDMNG03010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
13
-					<button type="button" id="ITP_BTN_ORDMNG03010_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
14
-				</div>
15 10
 			</div>
16 11
 			<div class="itp_det_in">
17 12
 				<div id="ITP_AJAX_ORDMNG03010_LIST_CONTAINER">

+ 1 - 1
src/main/webapp/app/popup/biz/BIZPOP_DLV_STTMT_PRN.html

@@ -136,7 +136,7 @@
136 136
 									<div class="col-xs-11" style="padding:0; width:90%;">
137 137
 										<label class="col-xs-2">성명</label>
138 138
 										<div class="col-xs-8 itp_form_it">
139
-											<div class="col-xs-12 itp_in fnBrandNm"></div>
139
+											<div class="col-xs-12 itp_in fnDlvSttmtUnqNo"></div>
140 140
 										</div>
141 141
 									</div>
142 142
 									<div class="col-xs-11" style="padding:0; width:90%;">

+ 96 - 7
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG02010.js

@@ -113,7 +113,46 @@ const gridColModel = {
113 113
 			width: '10', fixed: false, align: 'center',
114 114
 			sortable: false, hidden: false
115 115
 		}
116
-	]
116
+	],
117
+	view: [
118
+		{
119
+			index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
120
+			label: ITP_MSG_LOCALE.label.pchPodrUnqNo,			// 발주번호
121
+			width: '10', fixed: false, align: 'center',
122
+			sortable: false, hidden: false
123
+		},
124
+		{
125
+			index: 'ITEM_ID', name: 'itemId',
126
+			label: ITP_MSG_LOCALE.label.itemId,					// 품목번호
127
+			width: '10', fixed: false, align: 'center',
128
+			sortable: false, hidden: false
129
+		},
130
+		{
131
+			index: 'ITEM_NM', name: 'itemNm',
132
+			label: ITP_MSG_LOCALE.label.itemNm,					// 품목명
133
+			width: '10', fixed: false, align: 'center',
134
+			sortable: false, hidden: false
135
+		},
136
+		{
137
+			index: 'PODR_QTY', name: 'podrQty',
138
+			label: ITP_MSG_LOCALE.label.podrQty,				// 발주수량
139
+			width: '10', fixed: false, align: 'center',
140
+			sortable: false, hidden: false
141
+		},
142
+		{
143
+			index: 'DLV_QTY', name: 'dlvQty',
144
+			label: ITP_MSG_LOCALE.label.dlvQty,					// 납품수량
145
+			width: '10', fixed: false, align: 'center',
146
+			sortable: false, hidden: false
147
+		},
148
+		{
149
+			index: 'EXPRY_DATE', name: 'expryDate',
150
+			label: ITP_MSG_LOCALE.label.expryDate,				// 발주번호
151
+			width: '10', fixed: false, align: 'center',
152
+			sortable: false, hidden: false
153
+		}
154
+	],
155
+	detail: []
117 156
 }
118 157
 
119 158
 
@@ -187,9 +226,11 @@ let pageObj = {
187 226
             $('#ITP_AJAX_INOUTMNG02010_LIST_CONTAINER').show();
188 227
             $('#ITP_FORM_INOUTMNG02010_SEARCH #ITP_FORM_INOUTMNG02010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
189 228
             $('#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();
229
+            $('#ITP_BTN_INOUTMNG02010_SRH').show();            
230
+            $('#ITP_BTN_INOUTMNG02010_SEARCH_SHMT_WHS_ID').show();
231
+            $('#ITP_BTN_INOUTMNG02010_DELETE_SHMT_WHS_NM').show();
232
+            $('#ITP_BTN_INOUTMNG02010_SEARCH_WHS_ID').show();
233
+            $('#ITP_BTN_INOUTMNG02010_DELETE_WHS_ID').show();
193 234
             
194 235
         } /*else if(mode == 'ADD') { // 등록
195 236
             $('#ITP_AJAX_INOUTMNG02010_DETAIL_CONTAINER').show();
@@ -236,10 +277,10 @@ let pageObj = {
236 277
 			$('#ITP_FORM_INOUTMNG02010_DETAIL .itp_form_change').hide();
237 278
 
238 279
             $('#ITP_FORM_INOUTMNG02010_DETAIL #ITP_FORM_INOUTMNG02010_DETAIL_BRAND_ID').val(fn_make_user_info.get('brandId'));
239
-        } /*else if(mode == 'VIEW') { // 보기
280
+        } else if(mode == 'VIEW') { // 보기
240 281
             $('#ITP_AJAX_INOUTMNG02010_VIEW_CONTAINER').show();
241 282
             fn_show_btn_auth_array(['#ITP_BTN_INOUTMNG02010_MODIFY', '#ITP_BTN_INOUTMNG02010_CANCELLIST']);
242
-        }*/
283
+        }
243 284
     }
244 285
 };
245 286
 
@@ -248,7 +289,7 @@ let pageObj = {
248 289
 let listObj = {
249 290
 	init: function() {
250 291
 		this.grid.init();
251
-		//this.action();
292
+		this.action();
252 293
 	},
253 294
 	itp_INOUTMNG02010_param: {},
254 295
 	itp_INOUTMNG02010_search: false,
@@ -308,6 +349,7 @@ let listObj = {
308 349
             	url: DOMAIN + API_POMNG_INOUTMNG_OUTSEARCH_GRID_LIST,
309 350
             	pager: INOUTMNG02010_GRID_PAGER,
310 351
 				multiselect: true,
352
+				multiboxonly : false,
311 353
 				rownumbers: false,/*
312 354
             	onCellSelect: function(rowId, cellIdx, cellValue) {
313 355
                     var cm = $(this).jqGrid('getGridParam', 'colModel');
@@ -339,7 +381,54 @@ let listObj = {
339 381
 		unload: function() {
340 382
 			$.jgrid.gridUnload(INOUTMNG02010_GRID_ID);
341 383
 		}
384
+	},
385
+	action: function() {
386
+		var _this = this;
387
+		// 출하창고 조회 버튼 클릭
388
+		$('#ITP_BTN_INOUTMNG02010_SEARCH_SHMT_WHS_ID').on('click', function() {
389
+			_this.popup('shmtWhs');
390
+		});
391
+		// 출하창고 텍스트 삭제 버튼 클릭
392
+		$('#ITP_BTN_INOUTMNG02010_DELETE_SHMT_WHS_NM').on('click', function() {
393
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_ID').val('');
394
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_NM').val('');
395
+		});
396
+		// 매장/창고 조회 버튼 클릭
397
+		$('#ITP_BTN_INOUTMNG02010_SEARCH_WHS_ID').on('click', function() {
398
+			_this.popup('whs');
399
+		});
400
+		// 매장/창고 텍스트 삭제 버튼 클릭
401
+		$('#ITP_BTN_INOUTMNG02010_DELETE_WHS_ID').on('click', function() {
402
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_WHS_NM').val('');
403
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_WHS_ID').val('');
404
+		});
405
+	},
406
+	popup: function(keyword) {
407
+		var popFn ;
408
+		if(keyword == 'shmtWhs') {
409
+			popFn = this.callback.shmtWhs;
410
+		} else if(keyword == 'whs'){
411
+			popFn = this.callback.whs;
412
+		}
413
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
414
+		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
415
+		
416
+	},
417
+	callback: {
418
+		shmtWhs: function(rowDataPop) {
419
+			console.log(rowDataPop);
420
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_ID').val(rowDataPop.whsId);
421
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_SHMT_WHS_NM').val(rowDataPop.whsNm);
422
+			
423
+		},
424
+		whs: function(rowDataPop) {
425
+			console.log(rowDataPop);
426
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_WHS_ID').val(rowDataPop.whsId);
427
+			$('#ITP_FORM_INOUTMNG02010_DETAIL_WHS_NM').val(rowDataPop.whsNm);
428
+		}
342 429
 	}
343 430
 }
344 431
 
432
+
433
+
345 434
 console.log(CODE_LIST);

+ 2 - 2
src/main/webapp/js/app/ordmng/ITP_ORDMNG03010.js

@@ -46,7 +46,7 @@ const gridColModel = {
46 46
 			{
47 47
 				index: 'DLV_STTMT_NO', name: 'dlvSttmtUnqNo',
48 48
 				label: ITP_MSG_LOCALE.label.dlvSttmtUnqNo, //납품서번호
49
-				width: '10', fixed: false, align: 'center',
49
+				width: '20', fixed: false, align: 'center',
50 50
 				sortable: false, hidden: false
51 51
 			},
52 52
 			{
@@ -94,7 +94,7 @@ const gridColModel = {
94 94
 			{
95 95
 				index: 'SALE_ITEM_YN', name: 'dlvQty',
96 96
 				label: ITP_MSG_LOCALE.label.dlvQty, //납품수량
97
-				width: '10', fixed: false, align: 'center',
97
+				width: '6', fixed: false, align: 'center',
98 98
 				sortable: false, hidden: false
99 99
 			},
100 100
 			{

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

@@ -408,11 +408,11 @@ let listObj = {
408 408
 	},
409 409
 	popup: function(keyword) {
410 410
 		var popFn = this.callback.create;
411
-		// const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
411
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
412 412
 		if(keyword === 'spply'){
413
-			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, /*key*/null, 'S');
413
+			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
414 414
 		} else if(keyword === 'whs'){
415
-			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, /*key*/null, 'S');
415
+			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
416 416
 		}
417 417
 	},
418 418
 	callback: {

+ 20 - 16
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_DLV_STTMT_PRN.js

@@ -12,34 +12,38 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, schParam, returnType) {
12 12
 	// 공통코드
13 13
 	// fn_make_select(CODE_LIST, 'CMPY_TYPE_CD', 'ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_TYPE_CD', true, '가맹점타입 선택');
14 14
 	
15
-	console.log(args);
16
-	
17 15
 	let itp_BIZPOP_DLV_STTMT_PRN_param = {};
18 16
 	let itp_BIZPOP_DLV_STTMT_PRN_search = false;
19 17
 
20 18
 	const THIS_FORM_ID = '#ITP_FORM_BIZPOP_DLV_STTMT_PRN';
21 19
 	const THIS_GIRD_ID = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGrid';
22 20
 	const THIS_GIRD_PAGER = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGridPager';
21
+	let viewObj = {
22
+		init: function (param) {
23
+			this.load(param);
24
+		},
25
+		load: function(param) {
26
+			fn_ajax_call(FRCOMP_POP_INFO_INV, param, this.callback, 'GET');
27
+		},
28
+		callback: function (result) {
29
+			console.log(result);
30
+			$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvSttmtUnqNo').text(args.dlvSttmtUnqNo);
31
+			$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvRegDt').text(args.dlvRegDt);
32
+			$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvMgrTelNo').text(args.dlvMgrTelNo);
33
+			var divMgrTelNo = "(" + args.divMgrTelNo + ")";
34
+			
35
+			$('#ITP_BIZPOP_DLV_STTMT_PRN .fnZipNo').val(args.zipNo);
36
+			var zipNo = "(" + args.zipNo + ")";
37
+		},	
38
+	};
23 39
 	
24
-//	fn_ajax_call(FRCOMP_POP_GRID_LIST, args, function(result) {
25
-//		
26
-//	$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvRegDt').text(args.dlvRegDt);
27
-//	$('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvMgrTelNo').text(args.dlvMgrTelNo);
28
-//	var divMgrTelNo = "(" + args.divMgrTelNo + ")";
29
-//	
30
-//	$('#ITP_BIZPOP_DLV_STTMT_PRN .fnZipNo').val(args.zipNo);
31
-//	var zipNo = "(" + args.zipNo + ")";
32
-//	
33
-//	}, 'GET');
34
-	
35
-	
36
-	$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_FORM_DT').val(args.fromDt);
37
-	$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_TO_DT').val(args.toDt);
38 40
 	
39 41
 	$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_BRAND_ID').val(fn_make_user_info.get('brandId'));
40 42
 	$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
41 43
 	if(args) {
42 44
 		$('#ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_NM').val(args.brandNm);
45
+		$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_FORM_DT').val(args.fromDt);
46
+		$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_TO_DT').val(args.toDt);
43 47
 	}
44 48
 	
45 49
 	$('#ITP_BIZPOP_DLV_STTMT_PRN').one('shown.bs.modal', function(e) {