Procházet zdrojové kódy

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

whakdo963 před 2 roky
rodič
revize
8c9e93a254

+ 4 - 5
src/main/webapp/app/pomng/POMNG07010.html

@@ -13,17 +13,16 @@
13 13
 						<div class="itp_srh_border fix">
14 14
 							<div class="col-xs-12">
15 15
 								<form id="ITP_FORM_POMNG07010_SEARCH" class="form-horizontal">
16
+                                <input type="hidden" id="ITP_FORM_POMNG07010_SEARCH_BRAND_ID" name="sbrandId" value="">
16 17
 									<div class="form-group">
17 18
 										<div class="col-xs-2 itp_ip itp_noMar">
18
-											<select id="ITP_FORM_POMNG07010_SERVICE_DLV_CMPLT_DT" class="form-control itp_input" name="servicedlvCmpltDt">
19
-												<option value="A">입고일*</option>		
20
-											</select>
19
+                                            <label>일고일 *</label>
21 20
 										</div>											
22 21
 										<div class="col-xs-3 itp_ip itp_noMar">
23 22
 											<div class="input-daterange input-group date">
24
-												<input type="text" id="ITP_FORM_POMNG07010_SEARCH_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
23
+												<input type="text" id="ITP_FORM_POMNG07010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="">
25 24
 												<span class="input-group-addon itp_date_to">~</span>
26
-												<input type="text" id="ITP_FORM_POMNG07010_SEARCH_DLV_CMPLT_DT" class="form-control itp_input" name="dlvCmpltDt" value="">
25
+                                                <input type="text" id="ITP_FORM_POMNG07010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="">
27 26
 											</div>
28 27
 										</div>
29 28
 										<div class="col-xs-2 itp_ip itp_noMar" style="width:9.6%;"></div>

+ 31 - 5
src/main/webapp/js/app/locales/locale-ko.js

@@ -177,14 +177,38 @@ const ITP_MSG_LOCALE = (function() {
177 177
 			"pchOdrStCd": "발주상태코드",
178 178
 			"pchOdrStNm": "발주상태명",
179 179
 			"podrDt": "발주일자",
180
-			"dlvReqDt": "납품요일",
180
+			"dlvReqDt": "납품요일",
181 181
 			"whsNm": "납품장소",
182 182
 			"podrTotalAmt": "총 발주금액",
183 183
 			"podrItemQty": "발주품목수",
184 184
 			"podrMgrNm": "발주담당자",
185
-			"pchPodrDtlNo": "항번",
186
-			"podrQty": "발주수량",
187
-			"podrAmt": "발주금액"
185
+            "pchPodrDtlNo": "발주항번",
186
+            "podrQty": "발주수량",
187
+            "podrAmt": "발주금액",
188
+            "dlvSttmtUnqNo": "납품번호",
189
+            "dlvSttmtDtlNo": "납품항번",
190
+            "dlvQty": "납품수량",
191
+            "whsQty": "입고수량",
192
+            "dlvSchDt": "납품예정일",
193
+            "dlvCmpltDt": "납품일자",
194
+            "whsCnfmNm": "입고확인자",
195
+            "dlvMgrNm": "납품자명",
196
+            "dlvMgrTelNo": "납품자전화번호",
197
+            "whsAmt": "입고금액",
198
+            "pchReqNm": "구매요청명",
199
+            "pchReqDt": "구매요청일",
200
+            "pchReqItemQty": "요청품목수",
201
+            "pchReqTotalAmt": "요청금액",
202
+            "pchReqRjctDt": "반려일자",
203
+            "pchReqRjctNm": "반려자",
204
+            "pchReqMgrNm": "요청자명",
205
+            "whsLocationNm": "납품창고",
206
+            "pchReqStNm": "요청상태명",
207
+            "pchReqUnqNo": "구매요청번호",
208
+            "viewNm": "신규여부",
209
+			"podrAmt": "발주금액",
210
+			"locationNm": "입고처",
211
+			"whsPassQty": "출고가능수량"
188 212
 		},
189 213
 		"table": {
190 214
 			"brandId": "브랜드ID",
@@ -268,7 +292,9 @@ const ITP_MSG_LOCALE = (function() {
268 292
 				"deletFaq": "TOP5에서도 함께 제거됩니다.<br>삭제 하시겠습니까?",
269 293
 				"tmpSave": "임시저장 하시겠습니까?",
270 294
 				"reqSave": "구매요청 하시겠습니까?",
271
-				"lackReqAmt": "구매한도가 부족합니다."
295
+                "lackReqAmt": "구매한도가 부족합니다.",
296
+                "diffWrite": "수정은 작성자만 가능합니다.",
297
+                "notWrite": "수정할 수 없는 상태입니다."
272 298
 			},
273 299
 			"login": {
274 300
 				"help": "아이디와 비밀번호를 입력하세요.",

+ 171 - 0
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -0,0 +1,171 @@
1
+require(['config'], function() {
2
+    require([
3
+    ], function($) {
4
+        pageObj.init();
5
+    });
6
+});
7
+
8
+
9
+//화면변수
10
+const POMNG04010_GRID_ID = '#ITP_POMNG04010_jqGrid';
11
+const POMNG04010_GRID_LIST = '#ITP_POMNG04010_jqGrid_list';
12
+const POMNG04010_GRID_PAGER = '#ITP_POMNG04010_jqGridPager';
13
+const POMNG04010_GRID_EMPTY = '#ITP_POMNG04010_jqGridEmpty';
14
+
15
+const POMNG04010_GRID_DETAIL_ID = '#ITP_POMNG04010_DETAIL_jqGrid';
16
+const POMNG04010_GRID_DETAIL_LIST = '#ITP_POMNG04010_DETAIL_jqGrid_list';
17
+const POMNG04010_GRID_DETAIL_PAGER = '#ITP_POMNG04010_DETAIL_jqGridPager';
18
+const POMNG04010_GRID_DETAIL_EMPTY = '#ITP_POMNG04010_DETAIL_jqGridEmpty';
19
+
20
+
21
+//API URL
22
+let API_POMNG_PO_DETAIL_GRID_LIST =  '/api/pomng/po/detail-grid-list';
23
+let API_POMNG_PO_INFO_PCHODR_ =  '/api/pomng/po/info-pchOdr';
24
+let API_POMNG_PO_CANCEL_PCHPO =  '/api/pomng/po/cancel-pchPo';
25
+
26
+
27
+//화면 grid ColModel
28
+const gridColModel = {
29
+	list:[
30
+		{
31
+			index: 'VIEW_CD', name: 'viewCd',
32
+			label: ITP_MSG_LOCALE.label.viewCd,
33
+			width: '10', fixed: false, align: 'center',
34
+			sortable: false, hidden: true
35
+		},
36
+		{
37
+			index: 'BRAND_NM', name: 'brandNm',
38
+			label: ITP_MSG_LOCALE.label.brandNm,			// 브랜드명
39
+			width: '10', fixed: false, align: 'center',
40
+			sortable: false, hidden: true
41
+		},
42
+		{
43
+			index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
44
+			label: ITP_MSG_LOCALE.label.pchPodrUnqNo, 		// 발주번호
45
+			width: '10', fixed: false, align: 'center',
46
+			sortable: false, hidden: false
47
+		},
48
+		{
49
+			index: 'PCH_ODR_ST_NM', name: 'pchOdrStNm',
50
+			label: ITP_MSG_LOCALE.label.pchOdrStNm, 		// 발주상태명
51
+			width: '10', fixed: false, align: 'center',
52
+			sortable: false, hidden: false
53
+		},
54
+		{
55
+			index: 'PODR_DT', name: 'podrDt',
56
+			label: ITP_MSG_LOCALE.label.podrDt, 			// 발주일자
57
+			width: '10', fixed: false, align: 'center',
58
+			sortable: false, hidden: false
59
+		},
60
+		{
61
+			index: 'LOCATION_NM', name: 'locationNm',
62
+			label: ITP_MSG_LOCALE.label.locationNm, 		// 입고처
63
+			width: '10', fixed: false, align: 'center',
64
+			sortable: false, hidden: false
65
+		},
66
+		{
67
+			index: 'SPPLY_NM', name: 'spplyNm',
68
+			label: ITP_MSG_LOCALE.label.spplyNm, 			// 공급업체명
69
+			width: '10', fixed: false, align: 'center',
70
+			sortable: false, hidden: false
71
+		},
72
+		{
73
+			index: 'PODR_TOTAL_AMT', name: 'podrTotalAmt',
74
+			label: ITP_MSG_LOCALE.label.podrTotalAmt, 		// 총 발주금액
75
+			width: '10', fixed: false, align: 'center',
76
+			sortable: false, hidden: false
77
+		},
78
+		{
79
+			index: 'PODR_ITEM_QTY', name: 'podrItemQty',
80
+			label: ITP_MSG_LOCALE.label.podpodrItemQtyrDt, 	// 발주품목수
81
+			width: '10', fixed: false, align: 'center',
82
+			sortable: false, hidden: false
83
+		},
84
+		{
85
+			index: 'PODR_MGR_NM', name: 'podrMgrNm',
86
+			label: ITP_MSG_LOCALE.label.podrMgrNm, 			// 발주담당자
87
+			width: '10', fixed: false, align: 'center',
88
+			sortable: false, hidden: false
89
+		}
90
+	],
91
+	view: [],
92
+	detail: [
93
+		{
94
+			index: 'VIEW_CD', name: 'viewCd',
95
+			label: ITP_MSG_LOCALE.label.viewCd,
96
+			width: '10', fixed: false, align: 'center',
97
+			sortable: false, hidden: true
98
+		},
99
+		{
100
+			index: 'ITEM_ID', name: 'itemId',
101
+			label: ITP_MSG_LOCALE.label.itemId, 			// 품목번호
102
+			width: '5', fixed: false, align: 'center',
103
+			sortable: false, hidden: false
104
+		},
105
+		{
106
+			index: 'ITEM_NM', name: 'itemNm',
107
+			label: ITP_MSG_LOCALE.label.itemNm, 			// 품목명
108
+			width: '5', fixed: false, align: 'center',
109
+			sortable: false, hidden: false
110
+		},
111
+		{
112
+			index: 'UNIT_AMT', name: 'unitAmt',
113
+			label: ITP_MSG_LOCALE.label.unitAmt, 			// 단가
114
+			width: '5', fixed: false, align: 'center',
115
+			sortable: false, hidden: false
116
+		},
117
+		{
118
+			index: 'UNIT', name: 'unit',
119
+			label: ITP_MSG_LOCALE.label.unit, 				// 기본단위
120
+			width: '5', fixed: false, align: 'center',
121
+			sortable: false, hidden: false
122
+		},
123
+		{
124
+			index: 'PODR_QTY', name: 'podrQty',
125
+			label: ITP_MSG_LOCALE.label.podrQty, 			// 발주수량
126
+			width: '5', fixed: false, align: 'center',
127
+			sortable: false, hidden: false
128
+		},
129
+		{
130
+			index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
131
+			label: ITP_MSG_LOCALE.label.pchPodrDtlNo, 		// 발주항번
132
+			width: '5', fixed: false, align: 'center',
133
+			sortable: false, hidden: false
134
+		},
135
+		{
136
+			index: 'PODR_AMT', name: 'podrAmt',
137
+			label: ITP_MSG_LOCALE.label.podrAmt, 			// 발주금액
138
+			width: '5', fixed: false, align: 'center',
139
+			sortable: false, hidden: false
140
+		},
141
+		{
142
+			index: 'WHS_PASS_QTY', name: 'whsPassQty',
143
+			label: ITP_MSG_LOCALE.label.whsPassQty, 		// 발주항번
144
+			width: '5', fixed: false, align: 'center',
145
+			sortable: false, hidden: false
146
+		},
147
+		{
148
+			index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
149
+			label: ITP_MSG_LOCALE.label.pchPodrDtlNo, 		// 발주항번
150
+			width: '5', fixed: false, align: 'center',
151
+			sortable: false, hidden: false
152
+		}
153
+	]
154
+};
155
+
156
+
157
+
158
+/*화면공통 Object*/
159
+let pageObj = {
160
+	init: function() {
161
+		this.ui.init();
162
+		this.event.init();
163
+	},
164
+	ui: {
165
+		init: function() {
166
+			
167
+		}
168
+	}
169
+};
170
+console.log(CONN_KEY);
171
+console.log(CODE_LIST);