Browse Source

재고 실사 개발중

marseyes 2 years ago
parent
commit
7a16ca7481

+ 1 - 1
src/main/webapp/app/stockmng/STOCKMNG02010.html

@@ -5,7 +5,7 @@
5
 				<h2 class="pull-left itp_det_tit"><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> <strong>재고실사</strong></h2>
6
 				<div class="pull-right itp_cicon">
6
 				<div class="pull-right itp_cicon">
7
 					<button type="button" id="ITP_BTN_STOCKMNG02010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
7
 					<button type="button" id="ITP_BTN_STOCKMNG02010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8
-					<button type="button" id="ITP_BTN_STOCKMNG02010_SRH" class="btn btn-success btn-sm " style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;재고실사&nbsp;&nbsp;</button>
8
+					<button type="button" id="ITP_BTN_STOCKMNG02010_STOCK_CDD" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;재고실사&nbsp;&nbsp;</button>
9
 					<button type="button" id="ITP_BTN_STOCKMNG02010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon "></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
9
 					<button type="button" id="ITP_BTN_STOCKMNG02010_SAVE" class="btn btn-success btn-sm SAB"><i class="glyphicon "></i>&nbsp;&nbsp;저장&nbsp;&nbsp;</button>
10
 					<button type="button" id="ITP_BTN_STOCKMNG02010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon "></i>&nbsp;&nbsp;취소/목록&nbsp;&nbsp;</button>
10
 					<button type="button" id="ITP_BTN_STOCKMNG02010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon "></i>&nbsp;&nbsp;취소/목록&nbsp;&nbsp;</button>
11
 				</div>					
11
 				</div>					

+ 33 - 23
src/main/webapp/js/app/stockmng/ITP_STOCKMNG02010.js

@@ -6,7 +6,7 @@
6
  * let pageObj = {}			: 화면공통 Object			*
6
  * let pageObj = {}			: 화면공통 Object			*
7
  * let listObj = {}			: 목록화면 Object			*
7
  * let listObj = {}			: 목록화면 Object			*
8
  * let viewObj = {}			: 상세화면 Object			*
8
  * let viewObj = {}			: 상세화면 Object			*
9
- * let createObj = {}		: 신규화면 Object			*
9
+ * let stockCddObj = {}		: 재고실사 Object			*
10
  * let locInfoObj = {}		: 로케이션정보 Object				*
10
  * let locInfoObj = {}		: 로케이션정보 Object				*
11
  *******************************************************/
11
  *******************************************************/
12
 
12
 
@@ -62,13 +62,13 @@ const gridColModel = {
62
 		{
62
 		{
63
 			index: 'BRAND_NM', name: 'brandNm',
63
 			index: 'BRAND_NM', name: 'brandNm',
64
 			label: ITP_MSG_LOCALE.label.brandNm, //브랜드
64
 			label: ITP_MSG_LOCALE.label.brandNm, //브랜드
65
-			width: '13', fixed: false, align: 'center',
65
+			width: '10', fixed: false, align: 'center',
66
 			sortable: false, hidden: false
66
 			sortable: false, hidden: false
67
 		},
67
 		},
68
 		{
68
 		{
69
 			index: 'STORE_NM', name: 'storeNm',
69
 			index: 'STORE_NM', name: 'storeNm',
70
 			label: "매장명", 
70
 			label: "매장명", 
71
-			width: '13', fixed: false, align: 'center',
71
+			width: '10', fixed: false, align: 'center',
72
 			sortable: false, hidden: false
72
 			sortable: false, hidden: false
73
 		},
73
 		},
74
 		{
74
 		{
@@ -80,26 +80,38 @@ const gridColModel = {
80
 		{
80
 		{
81
 			index: 'WHS_NM', name: 'whsNm',
81
 			index: 'WHS_NM', name: 'whsNm',
82
 			label: "창고명", 
82
 			label: "창고명", 
83
-			width: '13', fixed: false, align: 'center',
83
+			width: '10', fixed: false, align: 'center',
84
 			sortable: false, hidden: false
84
 			sortable: false, hidden: false
85
 		},
85
 		},
86
 		{
86
 		{
87
-			index: 'WHS_ST_NM', name: 'whsStNm',
88
-			label: ITP_MSG_LOCALE.label.status, //상태
89
-			width: '6', fixed: false, align: 'center',
87
+			index: 'LOCATION_NM', name: 'locationNm',
88
+			label: "Location", 
89
+			width: '10', fixed: false, align: 'center',
90
+			sortable: false, hidden: false
91
+		},		
92
+		{
93
+			index: 'CDD_MGR_NM', name: 'cddMgrNm',
94
+			label: "실사담당자", 
95
+			width: '8', fixed: false, align: 'center',
90
 			sortable: false, hidden: false
96
 			sortable: false, hidden: false
91
 		},
97
 		},
92
 		{
98
 		{
93
-			index: 'MGR_NM', name: 'mgrNm',
94
-			label: "담당자명", 
99
+			index: 'CDD_DT', name: 'cddDt',
100
+			label: "실사일자", 
95
 			width: '8', fixed: false, align: 'center',
101
 			width: '8', fixed: false, align: 'center',
96
 			sortable: false, hidden: false
102
 			sortable: false, hidden: false
97
 		},
103
 		},
98
 		{
104
 		{
99
-			index: 'MGR_TEL_NO', name: 'mgrTelNo',
100
-			label: "연락처", 
105
+			index: 'CDD_TM', name: 'cddTm',
106
+			label: "실사시각", 
101
 			width: '8', fixed: false, align: 'center',
107
 			width: '8', fixed: false, align: 'center',
102
 			sortable: false, hidden: false
108
 			sortable: false, hidden: false
109
+		},		
110
+		{
111
+			index: 'CDD_DVSN_NM', name: 'cddDvsnNm',
112
+			label: "실사구분", 
113
+			width: '10', fixed: false, align: 'center',
114
+			sortable: false, hidden: false
103
 		}
115
 		}
104
 	],
116
 	],
105
 	view: [
117
 	view: [
@@ -225,13 +237,12 @@ let pageObj = {
225
 				$(this).on('click', function() {
237
 				$(this).on('click', function() {
226
 					switch (id) {
238
 					switch (id) {
227
 						case 'ITP_BTN_STOCKMNG02010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
239
 						case 'ITP_BTN_STOCKMNG02010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
228
-						case 'ITP_BTN_STOCKMNG02010_NEWREG'				: listObj.button.create(); 		break;	// 신규등록 버튼
229
-						// case 'ITP_BTN_STOCKMNG02010_MODIFY'				: modifyObj.button.modify();	break;	// 수정 버튼
230
-						case 'ITP_BTN_STOCKMNG02010_CANCELLIST'			: createObj.button.cancel(); 	break;	// 취소/목록 버튼
231
-						case 'ITP_BTN_STOCKMNG02010_DELETE'				: 								break;	// 삭제 버튼
232
-						case 'ITP_BTN_STOCKMNG02010_SAVE'				: createObj.button.save(); 		break;	// 저장 버튼
233
-						case 'ITP_BTN_STOCKMNG02010_DETAIL_ADDROW'		: locInfoObj.button.addRow();	break;	// 상세:추가버튼
234
-						case 'ITP_BTN_STOCKMNG02010_DETAIL_DELROW'		: locInfoObj.button.delRow();	break;	// 상세:삭제버튼
240
+						case 'ITP_BTN_STOCKMNG02010_STOCK_CDD'			: listObj.button.fnStockCdd(); 	break;	// 재고실사 버튼
241
+						case 'ITP_BTN_STOCKMNG02010_CANCELLIST'			: stockCddObj.button.cancel(); 	break;	// 취소/목록 버튼
242
+						// case 'ITP_BTN_STOCKMNG02010_DELETE'				: 								break;	// 삭제 버튼
243
+						case 'ITP_BTN_STOCKMNG02010_SAVE'				: stockCddObj.button.save(); 		break;	// 저장 버튼
244
+						// case 'ITP_BTN_STOCKMNG02010_DETAIL_ADDROW'		: locInfoObj.button.addRow();	break;	// 상세:추가버튼
245
+						// case 'ITP_BTN_STOCKMNG02010_DETAIL_DELROW'		: locInfoObj.button.delRow();	break;	// 상세:삭제버튼
235
 					}
246
 					}
236
 				});
247
 				});
237
 			});
248
 			});
@@ -375,11 +386,10 @@ let listObj = {
375
 			param.gridPage = $.jgrid.defaults.page;
386
 			param.gridPage = $.jgrid.defaults.page;
376
 			$(STOCKMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
387
 			$(STOCKMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
377
 		},
388
 		},
378
-		create: function() {
389
+		fnStockCdd: function() {
379
 			pageObj.switchScreen('ADD');			
390
 			pageObj.switchScreen('ADD');			
380
 			itp_fn_form_clear_validate(null, '#ITP_FORM_STOCKMNG02010_DETAIL');						
391
 			itp_fn_form_clear_validate(null, '#ITP_FORM_STOCKMNG02010_DETAIL');						
381
-			// 로케이션 리스트 조회
382
-			createObj.init();
392
+			stockCddObj.init();
383
 		}
393
 		}
384
 	},
394
 	},
385
 	empty: {
395
 	empty: {
@@ -561,8 +571,8 @@ let viewObj = {
561
 	}
571
 	}
562
 };
572
 };
563
 
573
 
564
-/*신규화면 Object*/
565
-let createObj = {
574
+/*재고실사 Object*/
575
+let stockCddObj = {
566
 	init: function () {
576
 	init: function () {
567
 		this.unload();
577
 		this.unload();
568
 		this.load();
578
 		this.load();