Browse Source

창고 팝업 구분자 정의함...

dwkim 2 years ago
parent
commit
013c1a9c74

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

@@ -4,9 +4,10 @@
4 4
 			<form id="ITP_FORM_BIZPOP_WHS_LOCATION">
5 5
 				<input type="hidden" id="ITP_FORM_BIZPOP_WHS_LOCATION_BRAND_ID" name="sbrandId" value="">
6 6
 				<input type="hidden" id="ITP_FORM_BIZPOP_WHS_LOCATION_STORE_ID" name="sstoreId" value="">
7
+				<input type="hidden" id="ITP_FORM_BIZPOP_WHS_LOCATION_WHS_DVSN" name="swhsDvsn" value="">
7 8
 				<div class="modal-header">
8 9
 					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
9
-					<h5 class="modal-title">납품장소 검색</h5>
10
+					<h5 class="modal-title">창고 검색</h5>
10 11
 				</div>
11 12
 				<div class="modal-body">
12 13
 					<div class="itp_form fix">

+ 15 - 4
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG01010.js

@@ -230,12 +230,12 @@ let listObj = {
230 230
 	},
231 231
 	action: function () {
232 232
 		var _this = this;
233
-		// 납품장소 조회 버튼 클릭
233
+		// 출하창고 조회 버튼 클릭
234 234
 		$('#ITP_FORM_INOUTMNG01010_SEARCH_SHMT_WHS_NM').on('click', function() {
235 235
 			console.log("=================================");
236 236
 			_this.popup('S');
237 237
 		});
238
-		// 납품장소 텍스트 삭제 버튼 클릭
238
+		// 출하창고 텍스트 삭제 버튼 클릭
239 239
 		$('#ITP_FORM_INOUTMNG01010_DELETE_SHMT_WHS_NM').on('click', function() {
240 240
 			console.log("=================================");
241 241
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMT_WHS_NM').val('');
@@ -243,7 +243,7 @@ let listObj = {
243 243
 			
244 244
 		});
245 245
 		
246
-		// 수정 화면에서의 납품장소 조회 버튼 클릭
246
+		// 납품장소 조회 버튼 클릭
247 247
 		$('#ITP_FORM_INOUTMNG01010_SEARCH_WHS_NM').on('click', function() {
248 248
 			console.log("=================================");
249 249
 			_this.popup('W');
@@ -265,7 +265,18 @@ let listObj = {
265 265
 			popFn = this.callback.whs;
266 266
 		}
267 267
 		
268
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
268
+		var whsDvsn = "";
269
+		
270
+		if (arg == "S") {
271
+			whsDvsn = "W01";
272
+		} else {
273
+			whsDvsn = "W02";
274
+		}
275
+		
276
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn: whsDvsn};
277
+		
278
+		
279
+		 
269 280
 		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
270 281
 		
271 282
 	},

+ 11 - 1
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG02010.js

@@ -405,12 +405,22 @@ let listObj = {
405 405
 	},
406 406
 	popup: function(keyword) {
407 407
 		var popFn ;
408
+		
408 409
 		if(keyword == 'shmtWhs') {
409 410
 			popFn = this.callback.shmtWhs;
410 411
 		} else if(keyword == 'whs'){
411 412
 			popFn = this.callback.whs;
412 413
 		}
413
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
414
+		
415
+		var whsDvsn = "";
416
+		if(keyword == 'shmtWhs') {
417
+			whsDvsn = "W01";
418
+		} else if(keyword == 'whs'){
419
+			whsDvsn = "W02";
420
+		}
421
+		
422
+		
423
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'),whsDvsn: whsDvsn};
414 424
 		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
415 425
 		
416 426
 	},

+ 1 - 1
src/main/webapp/js/app/ordmng/ITP_ORDMNG01010.js

@@ -406,7 +406,7 @@ let listObj = {
406 406
 	popup: function() {
407 407
 		// 팝업
408 408
 		var popFn = this.callback.create;
409
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
409
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
410 410
 		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
411 411
 	},
412 412
 	callback: {

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

@@ -232,7 +232,7 @@ let pageObj = {
232 232
 			popFn = this.callback.searWhs;
233 233
 		} 
234 234
 		
235
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
235
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
236 236
 		if (arg == "SW" ) {
237 237
 			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
238 238
 		} 

+ 9 - 1
src/main/webapp/js/app/pomng/ITP_POMNG01010.js

@@ -127,7 +127,15 @@ let pageObj = {
127 127
 	popup: function () {
128 128
 		// 팝업
129 129
 		var popFn = this.callback.create;
130
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
130
+		
131
+		var whsDvsn = "";
132
+		if (fn_make_user_info.get('storeId') == '' ) {
133
+			whsDvsn = "W01";
134
+		} else {
135
+			whsDvsn = "W02";
136
+		}
137
+		
138
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'),whsDvsn: whsDvsn};
131 139
 		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
132 140
 		
133 141
 	},

+ 9 - 1
src/main/webapp/js/app/pomng/ITP_POMNG02010.js

@@ -329,7 +329,15 @@ let pageObj = {
329 329
 			popFn = this.callback.modify;
330 330
 		}
331 331
 		
332
-		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
332
+		var whsDvsn = "";
333
+		if (fn_make_user_info.get('storeId') == '' ) {
334
+			whsDvsn = "W01";
335
+		} else {
336
+			whsDvsn = "W02";
337
+		}
338
+		
339
+		
340
+		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn: whsDvsn};
333 341
 		fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
334 342
 		
335 343
 	},

+ 4 - 3
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -443,12 +443,13 @@ let pageObj = {
443 443
 		
444 444
 		const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
445 445
 		if (arg == "SW" ) {
446
-			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
446
+			const keya = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
447
+			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, keya, 'S');
447 448
 		} else if (arg == "SS" || arg == "NS" ) {
448 449
 			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
449 450
 		} else if (arg == "SHW" || arg == "NHW") {
450
-			const key1 = {brandId:fn_make_user_info.get('brandId')};
451
-			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
451
+			const keyb = {brandId:fn_make_user_info.get('brandId'),storeId:"", whsDvsn:"W01"};
452
+			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, keyb, 'S');
452 453
 		} else if (arg == "REJ" ) {
453 454
 			/* 선택ROW가져오기 */
454 455
 			const rowKey = $(POMNG03010_GRID_ID).getGridParam('selrow');

+ 4 - 2
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -408,11 +408,13 @@ 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
+		
412 412
 		if(keyword === 'spply'){
413
+			const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
413 414
 			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
414 415
 		} else if(keyword === 'whs'){
415
-			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key, 'S');
416
+			const key1 = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
417
+			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
416 418
 		}
417 419
 	},
418 420
 	callback: {

+ 5 - 3
src/main/webapp/js/app/pomng/ITP_POMNG07010.js

@@ -334,11 +334,13 @@ let listObj = {
334 334
 	},
335 335
 	popup: function(keyword) {
336 336
 		var popFn = this.callback.create;
337
-		// const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
337
+		 
338 338
 		if(keyword === 'spply'){
339
-			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, /*key*/null, 'S');
339
+			const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
340
+			fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
340 341
 		} else if(keyword === 'whs'){
341
-			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, /*key*/null, 'S');
342
+			const key1 = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
343
+			fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
342 344
 		}
343 345
 	},
344 346
 	callback: {

+ 1 - 0
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_WHS_LOCATION.js

@@ -19,6 +19,7 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
19 19
 
20 20
 	$('#ITP_FORM_BIZPOP_WHS_LOCATION_BRAND_ID').val(fn_make_user_info.get('brandId'));
21 21
 	$('#ITP_FORM_BIZPOP_WHS_LOCATION_STORE_ID').val(fn_make_user_info.get('storeId'));
22
+	$('#ITP_FORM_BIZPOP_WHS_LOCATION_WHS_DVSN').val(args.whsDvsn);
22 23
 
23 24
 	
24 25
 	$('#ITP_BIZPOP_WHS_LOCATION').one('shown.bs.modal', function(e) {