Selaa lähdekoodia

html 수정 완료

whakdo963 2 vuotta sitten
vanhempi
commit
8de9afb8a5

+ 12 - 16
bin/src/main/webapp/app/pomng/POMNG02010.html

@@ -97,16 +97,12 @@
97 97
 										<div class="form-group">
98 98
 											<label class="col-xs-2 itp_lb">구매 요청자</label>
99 99
 												<div class="col-xs-4 itp_ip">
100
-													<div class="col-xs-2 itp_in">
101
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
102
-													</div>
103
-													<label class="col-xs-1" style="top:7px;">/</label>
104
-													<div class="col-xs-4 itp_in">
105
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
106
-													</div>
100
+													<div class="col-xs-a itp_in fnPchReqDept"></div>
101
+													<div class="col-xs-a itp_in ">/</div>
102
+													<div class="col-xs-4 itp_in fnPchReqMgrNm"></div>
107 103
 												</div>
108 104
 											<label class="col-xs-2 itp_lb">구매요청금액</label>
109
-											<div class="col-xs-4 itp_ip fnPchReqDt">asfdsdsa</div>
105
+											<div class="col-xs-4 itp_ip fnPchReqAmt"></div>
110 106
 										</div>
111 107
 									</div>
112 108
 									<div class="itp_form_in">	
@@ -139,11 +135,11 @@
139 135
 											<label class="col-xs-2 itp_lb">정산타입</label>
140 136
 												<div class="col-xs-4 itp_ip">
141 137
 													<div class="col-xs-12 itp_in">
142
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
138
+														<div class="input-group fnSttlType" style="padding:5px;"></div>
143 139
 													</div>
144 140
 												</div>
145 141
 											<label class="col-xs-2 itp_lb">구매가능금액</label>
146
-											<div class="col-xs-4 itp_ip fnPchReqDt">10,000,000원 </div>
142
+											<div class="col-xs-4 itp_ip fnPchActAmt">10,000,000원 </div>
147 143
 										</div>
148 144
 									</div>
149 145
 									<div class="itp_form_in">
@@ -173,7 +169,7 @@
173 169
 							</form>
174 170
 						</div>
175 171
 					</div>
176
-				</div>			
172
+				</div>		
177 173
 				<div id="ITP_AJAX_POMNG02010_VIEW_CONTAINER">
178 174
 					<div class="itp_form itp_type1 fix">
179 175
 						<div class="col-xs-12">
@@ -195,7 +191,7 @@
195 191
 											<label class="col-xs-2 itp_lb">구매요청명</label>
196 192
 											<div class="col-xs-4 itp_ip fnPchReqNm"></div>
197 193
 											<label class="col-xs-2 itp_lb">상태</label>
198
-											<div class="col-xs-4 itp_ip fnStCd"></div>
194
+											<div class="col-xs-4 itp_ip fnPchTeqDtCd"></div>
199 195
 										</div>
200 196
 									</div>
201 197
 									<div class="itp_form_in">	
@@ -229,11 +225,11 @@
229 225
 											<label class="col-xs-2 itp_lb">정산타입</label>
230 226
 												<div class="col-xs-4 itp_ip">
231 227
 													<div class="col-xs-12 itp_in">
232
-														<div class="input-group fnPchReqDept" style="padding:5px;"></div>
228
+														<div class="input-group fnSttlType" style="padding:5px;"></div>
233 229
 													</div>
234 230
 												</div>
235 231
 											<label class="col-xs-2 itp_lb">구매가능금액</label>
236
-											<div class="col-xs-4 itp_ip fnPchReqDt"></div>
232
+											<div class="col-xs-4 itp_ip fnPchActAmt"></div>
237 233
 										</div>
238 234
 									</div>
239 235
 									<div class="itp_form_in">
@@ -245,9 +241,9 @@
245 241
 									<div class="itp_form_in">	
246 242
 										<div class="form-group">
247 243
 											<label class="col-xs-2 itp_lb">반려일자</label>
248
-											<div class="col-xs-4 itp_ip fnBrandNm"></div>
244
+											<div class="col-xs-4 itp_ip fnRjctDt"></div>
249 245
 											<label class="col-xs-2 itp_lb">반려담당자명</label>
250
-											<div class="col-xs-4 itp_ip fnPchReqUnqNo"></div>
246
+											<div class="col-xs-4 itp_ip fnRjctMgrNm"></div>
251 247
 										</div>
252 248
 									</div>
253 249
 									<div class="itp_form_in">

+ 47 - 28
bin/src/main/webapp/app/pomng/POMNG03010.html

@@ -70,7 +70,7 @@
70 70
 								<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_VIEW_CD" name="viewCd" value="C">
71 71
 					
72 72
 								<section class="itp_form_sec">
73
-									<h4 class="itp_form_tit">구매발주상세-신규발주생성</h4>
73
+									<h4 class="itp_form_tit">구매발주상세-발주생성</h4>
74 74
 									<div class="itp_form_in">	
75 75
 										<div class="form-group">
76 76
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
@@ -84,13 +84,17 @@
84 84
 											<label class="col-xs-2 itp_lb">공급업체명</label>
85 85
 											<div class="col-xs-4 itp_ip fnPchReqNm"></div>
86 86
 											<label class="col-xs-2 itp_lb">발주일자</label>
87
-											<div class="col-xs-4 itp_ip "></div>
87
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
88 88
 										</div>
89 89
 									</div>
90 90
 									<div class="itp_form_in">	
91 91
 										<div class="form-group">
92 92
 											<label class="col-xs-2 itp_lb">납품장소</label>
93
-											<div class="col-xs-4 itp_ip fnDlvPlace"></div>
93
+											<div class="col-xs-4 itp_ip">
94
+												<div class="col-xs-a itp_in fnWhsNm"></div>
95
+												<div class="col-xs-a itp_in ">-</div>
96
+												<div class="col-xs-4 itp_in fnDtlLcn"></div>
97
+											</div>
94 98
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
95 99
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
96 100
 										</div>
@@ -99,23 +103,37 @@
99 103
 										<div class="form-group">
100 104
 											<label class="col-xs-2 itp_lb">발주담당자</label>
101 105
 											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
102
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
103
-											<div class="col-xs-4 itp_ip fnPodrMgrMblNo"></div>
104
-										</div>
105
-									</div>
106
-									<div class="itp_form_in">	
107
-										<div class="form-group">
108 106
 											<label class="col-xs-2 itp_lb">배송구분</label>
109 107
 											<div class="col-xs-4 itp_ip">
110 108
 												<div class="col-xs-5 itp_in">
111
-													<select id="ITP_FORM_POMNG03010_DETAIL_DLV_CNDT" class="form-control itp_input" name="dlvCndt">
109
+													<select id="ITP_FORM_POMNG03010_VIEW_DLV_DVSN" class="form-control itp_input" name="dlvDvsn">
112 110
 														<option value="">본사배송</option>											
113 111
 														<option value="">공급사직송</option>											
114 112
 													</select>
115 113
 												</div>
116 114
 											</div>
117
-											<label class="col-xs-2 itp_lb"></label>
118
-											<div class="col-xs-4 itp_ip"></div>
115
+										</div>
116
+									</div>
117
+									<div class="itp_form_in">	
118
+										<div class="form-group">
119
+											<label class="col-xs-2 itp_lb">납품요청일</label>
120
+											<div class="col-xs-4 itp_ip">
121
+												<div class="col-xs-5 itp_in itp_noMar">
122
+													<div class="input-daterange input-group date">
123
+														<input type="text" id="ITP_FORM_POMNG03010_DETAIL_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
124
+													</div>
125
+												</div>
126
+											</div>
127
+											<label class="col-xs-2 itp_lb">출하창고</label>
128
+											<div class="col-xs-4 itp_ip">
129
+												<div class="col-xs-5 itp_in">
130
+													<input type="text" id="ITP_FORM_POMNG03010_DELETE_SHMT_WHS_NM" class="form-control itp_input" name="shmtWhsNm" />
131
+												</div>
132
+												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
133
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_SHMT_WHS_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
134
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_SHMT_WHS_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
135
+								                </div>
136
+											</div>
119 137
 										</div>
120 138
 									</div>
121 139
 									<div class="itp_form_in">
@@ -141,7 +159,7 @@
141 159
 								<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_VIEW_CD" name="viewCd" value="C">
142 160
 					
143 161
 								<section class="itp_form_sec">
144
-									<h4 class="itp_form_tit">구매발주상세-발주생성</h4>
162
+									<h4 class="itp_form_tit">구매발주상세-신규발주생성</h4>
145 163
 									<div class="itp_form_in">	
146 164
 										<div class="form-group">
147 165
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
@@ -158,12 +176,12 @@
158 176
 													<input type="text" id="ITP_FORM_POMNG03010_VIEW_SPPLY_NM" class="form-control itp_input" name="spplyNm" />
159 177
 												</div>
160 178
 												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
161
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
162
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
179
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_SPPLY_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
180
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_SPPLY_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
163 181
 								                </div>
164 182
 											</div>
165 183
 											<label class="col-xs-2 itp_lb">발주일자</label>
166
-											<div class="col-xs-4 itp_ip "></div>
184
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
167 185
 										</div>
168 186
 									</div>
169 187
 									<div class="itp_form_in">	
@@ -171,13 +189,13 @@
171 189
 											<label class="col-xs-2 itp_lb">납품장소</label>
172 190
 											<div class="col-xs-4 itp_ip">
173 191
 												<div class="col-xs-5 itp_in">
174
-													<input type="text" id="ITP_FORM_POMNG03010_VIEW_DLV_PLACE" class="form-control itp_input" name="dlvPlace"  />
192
+													<input type="text" id="ITP_FORM_POMNG03010_VIEW_WHS_NM" class="form-control itp_input" name="whsNm"  />
175 193
 												</div>
176 194
 												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
177
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
178
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
195
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_WHS_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
196
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_WHS_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
179 197
 								                </div>
180
-												</div>
198
+											</div>
181 199
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
182 200
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
183 201
 										</div>
@@ -186,21 +204,22 @@
186 204
 										<div class="form-group">
187 205
 											<label class="col-xs-2 itp_lb">발주담당자</label>
188 206
 											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
189
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
190
-											<div class="col-xs-4 itp_ip fnPodrMgrMblNo"></div>
207
+											<label class="col-xs-2 itp_lb">배송구분</label>
208
+											<div class="col-xs-4 itp_ip fnDlvDvsn"></div>
191 209
 										</div>
192 210
 									</div>
193 211
 									<div class="itp_form_in">	
194 212
 										<div class="form-group">
195
-											<label class="col-xs-2 itp_lb">배송구분</label>
213
+											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
214
+											<div class="col-xs-4 itp_ip fnPodrMgrNo"></div>
215
+											<label class="col-xs-2 itp_lb">납품요청일</label>
196 216
 											<div class="col-xs-4 itp_ip">
197
-												<div class="col-xs-5 itp_in">
198
-													<select id="ITP_FORM_POMNG03010_VIEW_DLV_CNDT" class="form-control itp_input" name="dlvCndt">
199
-													</select>
217
+												<div class="col-xs-5 itp_in itp_noMar">
218
+													<div class="input-daterange input-group date">
219
+														<input type="text" id="ITP_FORM_POMNG03010_DETAIL_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
220
+													</div>
200 221
 												</div>
201 222
 											</div>
202
-											<label class="col-xs-2 itp_lb"></label>
203
-											<div class="col-xs-4 itp_ip"></div>
204 223
 										</div>
205 224
 									</div>
206 225
 									<div class="itp_form_in">

+ 23 - 8
bin/src/main/webapp/app/pomng/POMNG04010.html

@@ -82,8 +82,8 @@
82 82
 											<div class="col-xs-4 itp_ip fnBrandNm"></div>
83 83
 											<label class="col-xs-2 itp_lb">발주번호/상태</label>
84 84
 											<div class="col-xs-4 itp_ip">
85
-												<div class="col-xs-3 itp_in fnPchPodrUnqNo"></div>
86
-												<label class="col-xs-1" style="top:7px;">/</label>
85
+												<div class="col-xs-a itp_in fnPchPodrUnqNo"></div>
86
+												<div class="col-xs-a">/</div>
87 87
 												<div class="col-xs-4 itp_in fnPchOdrStCd"></div>
88 88
 											</div>
89 89
 										</div>
@@ -93,13 +93,17 @@
93 93
 											<label class="col-xs-2 itp_lb">공급업체명</label>
94 94
 											<div class="col-xs-4 itp_ip fnSpplyNm"></div>
95 95
 											<label class="col-xs-2 itp_lb">발주일자</label>
96
-											<div class="col-xs-4 itp_ip "></div>
96
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
97 97
 										</div>
98 98
 									</div>
99 99
 									<div class="itp_form_in">	
100 100
 										<div class="form-group">
101 101
 											<label class="col-xs-2 itp_lb">납품장소</label>
102
-											<div class="col-xs-4 itp_ip fnDlvPlace"></div>
102
+											<div class="col-xs-4 itp_ip">
103
+												<div class="col-xs-a itp_in fnWhsNm"></div>
104
+												<div class="col-xs-a itp_in ">-</div>
105
+												<div class="col-xs-4 itp_in fnDtlLcn"></div>
106
+											</div>
103 107
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
104 108
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
105 109
 										</div>
@@ -107,12 +111,23 @@
107 111
 									<div class="itp_form_in">	
108 112
 										<div class="form-group">
109 113
 											<label class="col-xs-2 itp_lb">발주담당자</label>
110
-											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
111
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
112
-											<div class="col-xs-4 itp_ip fnPodrMgrTelNo"></div>
114
+											<div class="col-xs-4 itp_ip">
115
+												<div class="col-xs-a itp_in fnPodrMgrNm"></div>
116
+												<div class="col-xs-a itp_in ">/</div>
117
+												<div class="col-xs-4 itp_in fnPodrMgrNo"></div>
118
+											</div>
119
+											<label class="col-xs-2 itp_lb">배송구분</label>
120
+											<div class="col-xs-4 itp_ip fnDlvDvsn"></div>
121
+										</div>
122
+									</div>
123
+									<div class="itp_form_in">	
124
+										<div class="form-group">
125
+											<label class="col-xs-2 itp_lb">납품요청일</label>
126
+											<div class="col-xs-4 itp_ip fnDlvReqDt"></div>
127
+											<label class="col-xs-2 itp_lb">출하창고</label>
128
+											<div class="col-xs-4 itp_ip fnShmtWhsNm"></div>
113 129
 										</div>
114 130
 									</div>
115
-									
116 131
 									<div class="itp_form_in">
117 132
 										<div class="itp_table_head fix" style="background:#f5f5f5;">
118 133
 											<h4 class="itp_table_tit">발주 품목</h4>

+ 1 - 1
bin/src/main/webapp/app/pomng/POMNG07010.html

@@ -26,7 +26,7 @@
26 26
 												<input type="text" id="ITP_FORM_POMNG07010_SEARCH_DLV_CMPLT_DT" class="form-control itp_input" name="dlvCmpltDt" value="">
27 27
 											</div>
28 28
 										</div>
29
-										<div class="col-xs-2 itp_ip itp_noMar" style="width:15.4%"></div>
29
+										<div class="col-xs-2 itp_ip itp_noMar" style="width:9.6%;"></div>
30 30
 										<div class="col-xs-4 itp_ip itp_noMar">
31 31
 											<input type="text" id="ITP_FORM_POMNG07010_SEARCH_PCH_PODR_UNQ_NO" class="form-control itp_input" name="spchPodrUnqNo" placeholder="발주번호" />
32 32
 										</div>

+ 1 - 1
bin/src/main/webapp/js/app/pomng/ITP_POMNG05010.js

@@ -77,7 +77,7 @@ const gridColModel = {
77 77
 					index: 'UNIT', name: 'unit',
78 78
 					label: ITP_MSG_LOCALE.label.unit, //발주생성일
79 79
 					width: '6', fixed: false, align: 'center',
80
-					sortable: false, hidden: false
80
+					sortable: false, hidden: true
81 81
 			},
82 82
 			{
83 83
 					index: 'PCH_ITEM_YN', name: 'pchItemYn',

+ 685 - 0
bin/src/main/webapp/js/app/settmng/ITP_SETTMNG01010.js

@@ -0,0 +1,685 @@
1
+/********************************************************
2
+ --------------------------------------------------------
3
+ - Object 목록								            -
4
+ --------------------------------------------------------
5
+ * const gridColModel = {}	: 화면 Grid Object			*
6
+ * let pageObj = {}			: 화면공통 Object			*
7
+ * let listObj = {}			: 목록화면 Object			*
8
+ * let modifyObj = {}			: 상세화면 Object			*
9
+ *******************************************************/
10
+
11
+/*화면 변수*/
12
+const SETTMNG01010_GRID_ID = '#ITP_SETTMNG01010_jqGrid';
13
+const SETTMNG01010_GRID_LIST = '#ITP_SETTMNG01010_jqGrid_list';
14
+const SETTMNG01010_GRID_PAGER = '#ITP_SETTMNG01010_jqGridPager';
15
+const SETTMNG01010_GRID_EMPTY = '#ITP_SETTMNG01010_jqGridEmpty';
16
+
17
+const SETTMNG01010_DETAIL_GRID_ID = '#ITP_SETTMNG01010_DETAIL_jqGrid';
18
+const SETTMNG01010_DETAIL_GRID_LIST = '#ITP_SETTMNG01010_DETAIL_jqGrid_list';
19
+const SETTMNG01010_DETAIL_GRID_PAGER = '#ITP_SETTMNG01010_DETAIL_jqGridPager';
20
+const SETTMNG01010_DETAIL_GRID_EMPTY = '#ITP_SETTMNG01010_DETAIL_jqGridEmpty';
21
+
22
+let ITP_FORM_SETTMNG01010_DETAIL_IS_DUPLICATE = false;
23
+let ITP_FORM_SETTMNG01010_DETAIL_IS_WRITING = false;
24
+let SETTMNG01010_DETAIL_GRID_LAST_ROW_ID;
25
+
26
+/*API URL*/
27
+let STTL_REQ_DETAIL_GRID_LIST = '/api/sttl/req/detail-grid-list';
28
+let STTL_REQ_REQUEST_STTL = '/api/sttl/req/request-sttl';
29
+let STTL_REQ_REQUEST_STTL_PROC = '/api/sttl/req/request-sttl-proc';
30
+let STTL_REQ_INFO_STTL = '/api/sttl/req/info-sttl';
31
+let STTL_REQ_STL_GRID_LIST = '/api/sttl/req/stl-grid-list';
32
+
33
+let LOGIN_AUTH_TYPE_CD;
34
+
35
+/*화면 Grid ColModel*/
36
+const gridColModel = {
37
+	list: [
38
+		{
39
+			index: 'VIEW_CD', name: 'viewCd',
40
+			label: ITP_MSG_LOCALE.label.viewCd,
41
+			width: '10', fixed: false, align: 'center',
42
+			sortable: false, hidden: true
43
+		},
44
+		{
45
+			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
46
+			label: "정산관리고유번호", 
47
+			width: '0', fixed: false, align: 'center',
48
+			sortable: false, hidden: true
49
+		},
50
+		{
51
+			index: 'STTL_MGNT_DTL_NO', name: 'sttlMgntDtlNo',
52
+			label: '정산관리상세번호',
53
+			width: '10', fixed: false, align: 'center',
54
+			sortable: false, hidden: true
55
+		},
56
+		{
57
+			index: 'MGNT_UNQ_NO', name: 'mgntUnqNo',
58
+			label: '관리고유번호',
59
+			width: '10', fixed: false, align: 'center',
60
+			sortable: false, hidden: true
61
+		},
62
+		{
63
+			index: 'BRAND_NM', name: 'brandNm',
64
+			label: "브랜드",
65
+			width: '10', fixed: false, align: 'center',
66
+			sortable: false, hidden: true
67
+		},
68
+		{
69
+			index: 'STORE_NM', name: 'storeNm',
70
+			label: "매장명",
71
+			width: '10', fixed: false, align: 'center',
72
+			sortable: false, hidden: false
73
+		},
74
+		{
75
+			index: 'LOAN_DVSN', name: 'loanDvsn',
76
+			label: "정산타입", 
77
+			width: '8', fixed: false, align: 'center',
78
+			sortable: false, hidden: true
79
+		},
80
+		{
81
+			index: 'LOAN_DVSN_NM', name: 'loanDvsnNm',
82
+			label: "정산타입", 
83
+			width: '8', fixed: false, align: 'center',
84
+			sortable: false, hidden: false
85
+		},
86
+		{
87
+			index: 'STTL_ST_CD', name: 'sttlStCd',
88
+			label: "정산상태코드", 
89
+			width: '8', fixed: false, align: 'center',
90
+			sortable: false, hidden: true
91
+		},
92
+		{
93
+			index: 'STTL_ST_NM', name: 'sttlStNm',
94
+			label: "정산상태", 
95
+			width: '8', fixed: false, align: 'center',
96
+			sortable: false, hidden: false
97
+		},		
98
+		{
99
+			index: 'ITEM_ID', name: 'itemId',
100
+			label: "품목코드",
101
+			width: '10', fixed: false, align: 'center',
102
+			sortable: false, editable: false, edittype: 'text'
103
+		},
104
+		{
105
+			index: 'ITEM_NM', name: 'itemNm',
106
+			label: "품목명",
107
+			width: '10', fixed: false, align: 'center',
108
+			sortable: false, editable: false, edittype: 'text'
109
+		},
110
+		{
111
+			index: 'UNIT', name: 'unit',
112
+			label: "단위",
113
+			width: '6', fixed: false, align: 'center',
114
+			sortable: false, editable: false, edittype: 'text'
115
+		},
116
+		{
117
+			index: 'UNIT_AMT', name: 'unitAmt',
118
+			label: "단가",
119
+			width: '7', fixed: false, align: 'center',
120
+			sortable: false, editable: false, edittype: 'text', 
121
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
122
+		},
123
+		{
124
+			index: 'PODR_QTY', name: 'podrQty',
125
+			label: "발주수량",
126
+			width: '7', fixed: false, align: 'center',
127
+			sortable: false, editable: false, edittype: 'text', 
128
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
129
+		},
130
+		{
131
+			index: 'DLV_QTY', name: 'dlvQty',
132
+			label: "납품수량",
133
+			width: '7', fixed: false, align: 'center',
134
+			sortable: false, editable: false, edittype: 'text', 
135
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
136
+		},
137
+		{
138
+			index: 'WHS_COL_QTY', name: 'whsColQty',
139
+			label: "입고/수거수량",
140
+			width: '10', fixed: false, align: 'center',
141
+			sortable: false, editable: false, edittype: 'text', 
142
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
143
+		}, 
144
+		{
145
+			index: 'WHS_COL_DT', name: 'whsColDt',
146
+			label: "입고/수거일자",
147
+			width: '10', fixed: false, align: 'center',
148
+			sortable: false, editable: false, edittype: 'text'
149
+		},
150
+		{
151
+			index: 'WHS_COL_AMT', name: 'whsColAmt',
152
+			label: "입고/수거금액",
153
+			width: '10', fixed: false, align: 'center',
154
+			sortable: false, editable: false, edittype: 'text', 
155
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
156
+		},
157
+		{
158
+			index: 'STTL_DVSN', name: 'sttlDvsn',
159
+			label: "정산구분",
160
+			width: '8', fixed: false, align: 'center',
161
+			sortable: false, hidden: true
162
+		},
163
+		{
164
+			index: 'STTL_DVSN_NM', name: 'sttlDvsnNm',
165
+			label: "정산구분",
166
+			width: '8', fixed: false, align: 'center',
167
+			sortable: false, editable: false, edittype: 'text'
168
+		},
169
+		{
170
+			index: 'PODR_UNQ_NO', name: 'podrUnqNo',
171
+			label: "발주번호",
172
+			width: '8', fixed: false, align: 'center',
173
+			sortable: false, editable: false, edittype: 'text'
174
+		},
175
+		{
176
+			index: 'PODR_DTL_NO', name: 'podrDtlNo',
177
+			label: "발주항번",
178
+			width: '7', fixed: false, align: 'center',
179
+			sortable: false, editable: false, edittype: 'text'
180
+		}	
181
+	],
182
+	view: [
183
+		{
184
+			index: 'VIEW_CD', name: 'viewCd',
185
+			label: ITP_MSG_LOCALE.label.viewCd,
186
+			width: '10', fixed: false, align: 'center',
187
+			sortable: false, hidden: true
188
+		},
189
+		{
190
+			index: 'STTL_MGNT_DTL_NO', name: 'sttlMgntDtlNo',
191
+			label: '정산관리상세번호',
192
+			width: '10', fixed: false, align: 'center',
193
+			sortable: false, hidden: true
194
+		},		
195
+		{
196
+			index: 'BRAND_NM', name: 'brandNm',
197
+			label: "브랜드",
198
+			width: '10', fixed: false, align: 'center',
199
+			sortable: false, hidden: true
200
+		},
201
+		{
202
+			index: 'STORE_NM', name: 'storeNm',
203
+			label: "매장명",
204
+			width: '10', fixed: false, align: 'center',
205
+			sortable: false, hidden: true
206
+		},
207
+		{
208
+			index: 'ITEM_ID', name: 'itemId',
209
+			label: "품목코드",
210
+			width: '10', fixed: false, align: 'center',
211
+			sortable: false, editable: false, edittype: 'text'
212
+		},
213
+		{
214
+			index: 'ITEM_NM', name: 'itemNm',
215
+			label: "품목명",
216
+			width: '10', fixed: false, align: 'center',
217
+			sortable: false, editable: false, edittype: 'text'
218
+		},
219
+		{
220
+			index: 'UNIT', name: 'unit',
221
+			label: "단위",
222
+			width: '8', fixed: false, align: 'center',
223
+			sortable: false, editable: false, edittype: 'text'
224
+		},
225
+		{
226
+			index: 'UNIT_AMT', name: 'unitAmt',
227
+			label: "단가",
228
+			width: '8', fixed: false, align: 'center',
229
+			sortable: false, editable: false, edittype: 'text', 
230
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
231
+		},
232
+		{
233
+			index: 'PODR_QTY', name: 'podrQty',
234
+			label: "발주수량",
235
+			width: '8', fixed: false, align: 'center',
236
+			sortable: false, editable: false, edittype: 'text', 
237
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
238
+		},
239
+		{
240
+			index: 'DLV_QTY', name: 'dlvQty',
241
+			label: "납품수량",
242
+			width: '8', fixed: false, align: 'center',
243
+			sortable: false, editable: false, edittype: 'text', 
244
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
245
+		},
246
+		{
247
+			index: 'WHS_COL_QTY', name: 'whsColQty',
248
+			label: "입고/수거수량",
249
+			width: '8', fixed: false, align: 'center',
250
+			sortable: false, editable: false, edittype: 'text', 
251
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
252
+		}, 
253
+		{
254
+			index: 'WHS_COL_DT', name: 'whsColDt',
255
+			label: "입고/수거일자",
256
+			width: '8', fixed: false, align: 'center',
257
+			sortable: false, editable: false, edittype: 'text'
258
+		},
259
+		{
260
+			index: 'WHS_COL_AMT', name: 'whsColAmt',
261
+			label: "입고/수거금액",
262
+			width: '8', fixed: false, align: 'center',
263
+			sortable: false, editable: false, edittype: 'text', 
264
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
265
+		},
266
+		{
267
+			index: 'STTL_DVSN_NM', name: 'sttlDvsnNm',
268
+			label: "정산구분",
269
+			width: '8', fixed: false, align: 'center',
270
+			sortable: false, editable: false, edittype: 'text'
271
+		},
272
+		{
273
+			index: 'PODR_UNQ_NO', name: 'podrUnqNo',
274
+			label: "발주번호",
275
+			width: '8', fixed: false, align: 'center',
276
+			sortable: false, editable: false, edittype: 'text'
277
+		},
278
+		{
279
+			index: 'PODR_DTL_NO', name: 'podrDtlNo',
280
+			label: "발주항번",
281
+			width: '8', fixed: false, align: 'center',
282
+			sortable: false, editable: false, edittype: 'text'
283
+		}
284
+	]
285
+};
286
+
287
+require(['config'], function() {
288
+	require([
289
+		'kakao.map.util'
290
+	], function($) {
291
+		pageObj.init();
292
+	});
293
+});
294
+
295
+/*화면공통 Object*/
296
+let pageObj = {
297
+	init: function () {
298
+		this.ui.init();
299
+		this.event.init();
300
+	},
301
+	ui: {
302
+		init: function () {
303
+			this.view();
304
+			this.grid();
305
+			this.ready();
306
+		},
307
+		view: function() {
308
+			// 버튼 권한설정
309
+			fn_proc_btn_auth('SETTMNG01010');
310
+			
311
+			// 공통코드 표시
312
+			$('select').each(function() {
313
+		        if($(this).data('select-code')) {
314
+		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
315
+		        }
316
+		    });
317
+
318
+			// 조회일자 지정
319
+			var now = new Date();
320
+			$('#ITP_TAB_SETTMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
321
+			$('#ITP_FORM_SETTMNG01010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
322
+			$('#ITP_FORM_SETTMNG01010_SEARCH_TO_DT').datepicker('setDate', new Date());
323
+			
324
+			// 권한에 따라 매장값 설정
325
+			$('#ITP_FORM_SETTMNG01010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
326
+			LOGIN_AUTH_TYPE_CD = fn_make_user_info.get('authTpCd'); // 권한타입
327
+			if(LOGIN_AUTH_TYPE_CD == '50') {
328
+				$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val(fn_make_user_info.get('storeId'));
329
+				$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_NM').val(fn_make_user_info.get('storeNm'));	
330
+			}
331
+			
332
+		},
333
+		grid: function() {
334
+			itp_fn_jqgrid_resize(SETTMNG01010_GRID_ID, SETTMNG01010_GRID_LIST, 'lg');
335
+			listObj.empty.init();
336
+			itp_fn_fire_window_resize();
337
+		},
338
+		ready: function() {
339
+			listObj.init();
340
+		}
341
+	},
342
+	event: {
343
+		init: function () {
344
+			this.button();
345
+		},
346
+		button: function () {
347
+			// 버튼 클릭 이벤트
348
+			$('button').each(function() {
349
+				var id = $(this).attr('id');
350
+				$(this).on('click', function() {
351
+					switch (id) {
352
+						case 'ITP_BTN_SETTMNG01010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
353
+						case 'ITP_BTN_SETTMNG01010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
354
+						case 'ITP_BTN_SETTMNG01010_NEWREG'			: listObj.button.reqSttl();	break;	// 정산요청 버튼
355
+						case 'ITP_BTN_SETTMNG01010_REQUEST'			: modifyObj.button.request();	break;	// 요청 버튼
356
+					}
357
+				});
358
+			});
359
+
360
+			$('body').on('click', function(e) {
361
+				var gridId = SETTMNG01010_DETAIL_GRID_ID.replace('#', '');
362
+				var rids = $(SETTMNG01010_DETAIL_GRID_ID).jqGrid('getDataIDs');
363
+				var last_row_id = rids[rids.length - 1];
364
+				itp_fn_grid_reset_selection(e, last_row_id, gridId, 'SETTMNG01010_DETAIL');
365
+			});
366
+
367
+		}
368
+	},
369
+	switchScreen: function(mode) {
370
+		if(mode == 'LIST') { // 목록
371
+			$('#ITP_BTN_SETTMNG01010_MODIFY').hide();
372
+			$('#ITP_BTN_SETTMNG01010_CANCELLIST').hide();
373
+			$('#ITP_BTN_SETTMNG01010_DELETE').hide();
374
+			$('#ITP_BTN_SETTMNG01010_REQUEST').hide();
375
+			
376
+			if(LOGIN_AUTH_TYPE_CD == '50') { // 매장관리자
377
+				$('#ITP_BTN_SETTMNG01010_STORE_SEARCH').hide();
378
+				$('#ITP_BTN_SETTMNG01010_STORE_ERASE').hide();
379
+			} else {
380
+				$('#ITP_BTN_SETTMNG01010_STORE_SEARCH').show();
381
+				$('#ITP_BTN_SETTMNG01010_STORE_ERASE').show();
382
+			}
383
+			
384
+			fn_show_btn_auth('#ITP_BTN_SETTMNG01010_SRH');
385
+			fn_show_btn_auth('#ITP_BTN_SETTMNG01010_NEWREG');
386
+			
387
+			$('#ITP_AJAX_SETTMNG01010_LIST_CONTAINER').show();
388
+			$('#ITP_AJAX_SETTMNG01010_DETAIL_CONTAINER').hide();
389
+			
390
+		} else if(mode == 'DETAIL') { // 보기
391
+			$('#ITP_BTN_SETTMNG01010_SRH').hide();
392
+			$('#ITP_BTN_SETTMNG01010_NEWREG').hide();
393
+			$('#ITP_BTN_SETTMNG01010_DELETE').hide();
394
+			
395
+			fn_show_btn_auth('#ITP_BTN_SETTMNG01010_REQUEST');
396
+			fn_show_btn_auth('#ITP_BTN_SETTMNG01010_CANCELLIST');
397
+
398
+			$('#ITP_AJAX_SETTMNG01010_LIST_CONTAINER').hide();
399
+			$('#ITP_AJAX_SETTMNG01010_DETAIL_CONTAINER').show();
400
+		}
401
+	}
402
+};
403
+
404
+/*목록화면 Object*/
405
+let listObj = {
406
+	init: function () {
407
+		this.grid.init();
408
+	},
409
+	itp_SETTMNG01010_search: false,
410
+	button: {
411
+		search: function() {
412
+			listObj.itp_SETTMNG01010_search = true;
413
+			let param = $('#ITP_FORM_SETTMNG01010_SEARCH').serializeObject();
414
+			param.gridSize = $.jgrid.defaults.rowNum;
415
+			param.gridPage = $.jgrid.defaults.page;
416
+			$(SETTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
417
+		},
418
+		reqSttl: function() { // 정산요청
419
+			// 매장선택 체크
420
+			if($('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val() == '') {
421
+				itp_fn_modal_alert_ajax('정산요청을 위한 매장을 선택하세요.');
422
+				return;
423
+			}
424
+		
425
+			// 그리드에서 최소1개는 선택해야 함
426
+			const rowKey = $(SETTMNG01010_GRID_ID).getGridParam('selrow');
427
+		    if (!rowKey) {
428
+				itp_fn_modal_alert_ajax(ITP_MSG_LOCALE.message.ajax.noData);
429
+		    	return;
430
+		    }
431
+
432
+			var selectedIds = $(SETTMNG01010_GRID_ID).getGridParam('selarrrow');
433
+			let sttlReqDataList = [];			
434
+			var check = true;
435
+			$.each(selectedIds, function(key, value) {
436
+				var sttlMgntUnqNo = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).sttlMgntUnqNo;				
437
+				var sttlMgntDtlNo = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).sttlMgntDtlNo;
438
+				var loanDvsn = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).loanDvsn;		// 여신구분
439
+				var sttlStCd = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).sttlStCd;		// 정산상태코드
440
+				var sttlDvsn = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).sttlDvsn;		// 정산구분
441
+				var mgntUnqNo = $(SETTMNG01010_GRID_ID).jqGrid('getRowData', value).mgntUnqNo;
442
+								
443
+				if(sttlStCd == 'ST10' || sttlStCd == 'ST20') { // 정산요청 및 정산확정 건은 정산요청이 불가능 
444
+					check = false;	
445
+				}
446
+				let data = {}
447
+				data.sttlMgntUnqNo = sttlMgntUnqNo;
448
+				data.sttlMgntDtlNo = sttlMgntDtlNo;
449
+				data.loanDvsn = loanDvsn;
450
+				data.sttlDvsn = sttlDvsn;
451
+				data.mgntUnqNo = mgntUnqNo;
452
+				sttlReqDataList.push(data);
453
+			});
454
+			if(!check) {
455
+				itp_fn_modal_alert_ajax('정산요청 및 확정된 건은 정산 요청이 불가능합니다.');
456
+				return;
457
+			}
458
+			
459
+			let param = {};
460
+			param.brandId = $('#ITP_FORM_SETTMNG01010_SEARCH_BRAND_ID').val();
461
+			param.storeId = $('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val();
462
+			param.sttlReqDataList = sttlReqDataList;
463
+			fn_ajax_call(STTL_REQ_REQUEST_STTL, JSON.stringify(param), function(result) {
464
+				
465
+				// alert(JSON.stringify(result));
466
+				// $('#ITP_FORM_SETTMNG01010_DETAIL_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
467
+				
468
+				const sttlMgntUnqNoVal = result.sttlMgntUnqNo;
469
+				const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
470
+				var param = $.param(key);
471
+				modifyObj.init(param);
472
+				
473
+			}, 'POST');
474
+			
475
+			// pageObj.switchScreen('ADD');			
476
+			// itp_fn_form_clear_validate(null, '#ITP_FORM_SETTMNG01010_DETAIL');						
477
+			// 로케이션 리스트 조회
478
+			// createObj.init();
479
+		}
480
+	},
481
+	empty: {
482
+		init: function() {
483
+			var _this = this;
484
+			this.push();
485
+			$(SETTMNG01010_GRID_EMPTY).on('click', function() {
486
+				_this.back();
487
+				_this.itp_SETTMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
488
+				$(SETTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_SETTMNG01010_param)}).trigger('reloadGrid');
489
+			});
490
+		},
491
+		itp_SETTMNG01010_param: {},
492
+		push: function() {
493
+			let param = $('#ITP_FORM_SETTMNG01010_SEARCH').serializeObject();
494
+			listObj.itp_SETTMNG01010_param = param;
495
+		},
496
+		back: function() {
497
+			$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_ID').val(listObj.itp_SETTMNG01010_param.sstoreId);
498
+			$('#ITP_FORM_SETTMNG01010_SEARCH_STORE_NM').val(listObj.itp_SETTMNG01010_param.sstoreNm);
499
+			$('#ITP_FORM_SETTMNG01010_SEARCH_FROM_DT').val(listObj.itp_SETTMNG01010_param.fromDt);
500
+			$('#ITP_FORM_SETTMNG01010_SEARCH_TO_DT').val(listObj.itp_SETTMNG01010_param.toDt);
501
+			$('#ITP_FORM_SETTMNG01010_SEARCH_ITEM_NM').val(listObj.itp_SETTMNG01010_param.sitemNm);
502
+		}
503
+	},
504
+	grid: {
505
+		init: function () {
506
+			// 데이터 없을때
507
+			listObj.empty.push();
508
+			this.search();
509
+		},
510
+		colModel: gridColModel.list,
511
+		search: function() {
512
+			pageObj.switchScreen('LIST');
513
+			this.unload();
514
+			this.load();
515
+		},
516
+		load: function() {			
517
+			let param = $('#ITP_FORM_SETTMNG01010_SEARCH').serializeObject();
518
+			param.gridSize = $.jgrid.defaults.rowNum;
519
+
520
+			var option = {
521
+				gridId: SETTMNG01010_GRID_ID,
522
+				colModel: gridColModel.list,
523
+				param: param,
524
+				url: DOMAIN + STTL_REQ_DETAIL_GRID_LIST,
525
+				pager: SETTMNG01010_GRID_PAGER,
526
+				multiselect: true, 
527
+				onCellSelect: function(rowId, cellIdx, cellValue) {
528
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
529
+					var colNm = cm[cellIdx].name;
530
+					if (colNm == 'sttlReqDt') {
531
+						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
532
+						
533
+						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
534
+						var param = $.param(key);
535
+						modifyObj.init(param);
536
+					}
537
+				},
538
+				loadComplete: function(data) {
539
+					console.log(data);
540
+					itp_fn_grid_load_complete(data, SETTMNG01010_GRID_ID, true, 'number', 'SETTMNG01010', listObj.itp_SETTMNG01010_search, listObj.empty, true, data.gridRecords, true);
541
+					var ids = $(SETTMNG01010_GRID_ID).getDataIDs();
542
+					$.each(ids, function(idx, rowId) {
543
+						// $(SETTMNG01010_GRID_ID).jqGrid('setCell', rowId, 'sttlReqDt', '', ITP_GRID_COL_STYLE.link);
544
+					});
545
+				},
546
+				onPaging: function(action) {
547
+					itp_fn_grid_paging(SETTMNG01010_GRID_ID, action, param);
548
+				}
549
+			};
550
+			itp_fn_grid_make_remote(option);
551
+		},
552
+		clearData : function() {
553
+			$(SETTMNG01010_GRID_ID).jqGrid('clearGridData', true);
554
+			$(SETTMNG01010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
555
+			$(SETTMNG01010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
556
+			$(SETTMNG01010_GRID_EMPTY).show();
557
+		},
558
+		unload : function() {
559
+			$.jgrid.gridUnload(SETTMNG01010_GRID_ID);
560
+		}
561
+	}
562
+};
563
+
564
+/*상세화면 Object*/
565
+let modifyObj = {
566
+	init: function (param) {
567
+		this.load(param);
568
+	},
569
+	button: {
570
+		cancel: function() {
571
+			listObj.grid.search();
572
+		},
573
+		request: function() {
574
+			
575
+			const formId = '#ITP_FORM_SETTMNG01010_DETAIL';
576
+			itp_fn_form_clear_validate(null, formId);
577
+			
578
+			var vali_sttlReqDt = itp_fn_form_validate(formId, formId + '_STTL_REQ_DT', ['empty'], undefined); // 정산요청일자
579
+			
580
+			if (vali_sttlReqDt) {
581
+				let sttlReqDataList = [];
582
+				const rowData = $(SETTMNG01010_DETAIL_GRID_ID).getRowData();
583
+				// const keyValue = $(formId + '_WHS_ID').val();
584
+				$.each(rowData, function(key, value) {
585
+					sttlReqDataList.push(value);
586
+				});
587
+				let param = $(formId).serializeObject();
588
+				param.sttlReqDataList = sttlReqDataList;
589
+				
590
+				// console.log(JSON.stringify(param));
591
+				var confirmFn= {
592
+					callBack: function() {
593
+						//
594
+						var searhFn = function() {
595
+							ITP_FORM_SETTMNG01010_DETAIL_IS_WRITING = false;
596
+							listObj.grid.search();
597
+						};
598
+						fn_ajax_call(STTL_REQ_REQUEST_STTL_PROC, JSON.stringify(param), searhFn, 'POST'); 	
599
+					}
600
+				};
601
+				itp_fn_modal_confirm(ITP_MSG_LOCALE.message.form.procData, confirmFn, null);				
602
+			}
603
+		}
604
+	}, 
605
+	load: function(param) {
606
+		fn_ajax_call(STTL_REQ_INFO_STTL, param, this.callback, 'GET');
607
+	},
608
+	callback: function (result) {
609
+		// console.log(result);
610
+		pageObj.switchScreen('DETAIL');
611
+		$('#ITP_FORM_SETTMNG01010_DETAIL_BRAND_ID').val(result.brandId);
612
+		$('#ITP_FORM_SETTMNG01010_DETAIL_STORE_ID').val(result.storeId);
613
+		$('#ITP_FORM_SETTMNG01010_DETAIL_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
614
+		
615
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnBrandNm').text(result.brandNm);
616
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnStoreNm').text(result.storeNm);
617
+		$('#ITP_FORM_SETTMNG01010_DETAIL_STTL_REQ_DT').val(result.sttlReqDt);
618
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnSttlStNm').text(result.sttlStNm);
619
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnSttlReqAmt').text(itp_fn_number_comma(result.sttlReqAmt));
620
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
621
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
622
+		$('#ITP_FORM_SETTMNG01010_DETAIL .fnSysRegNm').text(result.sysRegNm);
623
+
624
+		// 리스트 조회
625
+		modifyObj.grid.init();
626
+	},
627
+	grid: {
628
+		init: function() {
629
+			this.unload();
630
+			this.load();
631
+		},
632
+		load : function() {
633
+			let param = $('#ITP_FORM_SETTMNG01010_DETAIL').serializeObject();
634
+			param.gridSize = $.jgrid.defaults.rowNum;
635
+			param.pagingYn = false; // 페이징안함
636
+
637
+			var option = {
638
+				gridId: SETTMNG01010_DETAIL_GRID_ID,
639
+				colModel: gridColModel.view,
640
+				param: param,
641
+				url: DOMAIN + STTL_REQ_STL_GRID_LIST,
642
+				pager: SETTMNG01010_DETAIL_GRID_PAGER,
643
+				loadComplete: function(data) {
644
+					itp_fn_grid_load_complete(data, SETTMNG01010_DETAIL_GRID_ID, true, undefined, 'SETTMNG01010_DETAIL');
645
+				},
646
+				onPaging: function(action) {
647
+					var pagingFn = {
648
+						callBack: function(args) {
649
+							$(args).trigger('reloadGrid');
650
+						}
651
+					};
652
+					if (itp_fn_check_grid_is_writing(SETTMNG01010_DETAIL_GRID_ID)) {
653
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, SETTMNG01010_DETAIL_GRID_ID);
654
+						return 'stop';
655
+					} else {
656
+						itp_fn_grid_paging(SETTMNG01010_DETAIL_GRID_ID, action, param);
657
+					}
658
+				},
659
+				onSortCol: function(index, columnIndex, sortOrder) {
660
+					var sortingFn = {
661
+						callBack: function(args) {
662
+							$(args).trigger('reloadGrid');
663
+						}
664
+					};
665
+					if (itp_fn_check_grid_is_writing(SETTMNG01010_DETAIL_GRID_ID)) {
666
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, SETTMNG01010_DETAIL_GRID_ID);
667
+						return 'stop';
668
+					} else {
669
+						itp_fn_grid_sorting(SETTMNG01010_DETAIL_GRID_ID, index, sortOrder);
670
+					}
671
+				}
672
+			};
673
+			itp_fn_grid_make_remote(option);
674
+		},
675
+		clearData : function() {
676
+			$(SETTMNG01010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
677
+			$(SETTMNG01010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
678
+			$(SETTMNG01010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
679
+			$(SETTMNG01010_DETAIL_GRID_EMPTY).show();
680
+		},
681
+		unload : function() {
682
+			$.jgrid.gridUnload(SETTMNG01010_DETAIL_GRID_ID);
683
+		}
684
+	}
685
+};

+ 554 - 0
bin/src/main/webapp/js/app/settmng/ITP_SETTMNG03010.js

@@ -0,0 +1,554 @@
1
+/********************************************************
2
+ --------------------------------------------------------
3
+ - Object 목록								            -
4
+ --------------------------------------------------------
5
+ * const gridColModel = {}	: 화면 Grid Object			*
6
+ * let pageObj = {}			: 화면공통 Object			*
7
+ * let listObj = {}			: 목록화면 Object			*
8
+ * let modifyObj = {}			: 상세화면 Object			*
9
+ *******************************************************/
10
+
11
+/*화면 변수*/
12
+const SETTMNG03010_GRID_ID = '#ITP_SETTMNG03010_jqGrid';
13
+const SETTMNG03010_GRID_LIST = '#ITP_SETTMNG03010_jqGrid_list';
14
+const SETTMNG03010_GRID_PAGER = '#ITP_SETTMNG03010_jqGridPager';
15
+const SETTMNG03010_GRID_EMPTY = '#ITP_SETTMNG03010_jqGridEmpty';
16
+
17
+const SETTMNG03010_DETAIL_GRID_ID = '#ITP_SETTMNG03010_DETAIL_jqGrid';
18
+const SETTMNG03010_DETAIL_GRID_LIST = '#ITP_SETTMNG03010_DETAIL_jqGrid_list';
19
+const SETTMNG03010_DETAIL_GRID_PAGER = '#ITP_SETTMNG03010_DETAIL_jqGridPager';
20
+const SETTMNG03010_DETAIL_GRID_EMPTY = '#ITP_SETTMNG03010_DETAIL_jqGridEmpty';
21
+
22
+let ITP_FORM_SETTMNG03010_DETAIL_IS_DUPLICATE = false;
23
+let ITP_FORM_SETTMNG03010_DETAIL_IS_WRITING = false;
24
+let SETTMNG03010_DETAIL_GRID_LAST_ROW_ID;
25
+
26
+/*API URL*/
27
+let STTL_STATE_DETAIL_GRID_LIST = '/api/sttl/state/detail-grid-list';
28
+
29
+let STTL_REQ_REQUEST_STTL = '/api/sttl/req/request-sttl';
30
+let STTL_REQ_REQUEST_STTL_PROC = '/api/sttl/req/request-sttl-proc';
31
+let STTL_REQ_INFO_STTL = '/api/sttl/req/info-sttl';
32
+let STTL_REQ_STL_GRID_LIST = '/api/sttl/req/stl-grid-list';
33
+
34
+let LOGIN_AUTH_TYPE_CD;
35
+
36
+/*화면 Grid ColModel*/
37
+const gridColModel = {
38
+	list: [
39
+		{
40
+			index: 'VIEW_CD', name: 'viewCd',
41
+			label: ITP_MSG_LOCALE.label.viewCd,
42
+			width: '10', fixed: false, align: 'center',
43
+			sortable: false, hidden: true
44
+		},		
45
+		{
46
+			index: 'BRAND_NM', name: 'brandNm',
47
+			label: "브랜드",
48
+			width: '10', fixed: false, align: 'center',
49
+			sortable: false, hidden: true
50
+		},
51
+		{
52
+			index: 'STORE_NM', name: 'storeNm',
53
+			label: "매장명",
54
+			width: '10', fixed: false, align: 'center',
55
+			sortable: false, hidden: false
56
+		},
57
+		{
58
+			index: 'SPPLY_NM', name: 'spplyNm',
59
+			label: "공급사명",
60
+			width: '10', fixed: false, align: 'center',
61
+			sortable: false, hidden: true
62
+		},
63
+		{
64
+			index: 'STTL_MGNT_UNQ_NO', name: 'sttlMgntUnqNo',
65
+			label: "정산번호", 
66
+			width: '10', fixed: false, align: 'center',
67
+			sortable: false, hidden: false
68
+		},
69
+		{
70
+			index: 'STTL_ST_CD', name: 'sttlStCd',
71
+			label: "정산상태코드", 
72
+			width: '8', fixed: false, align: 'center',
73
+			sortable: false, hidden: true
74
+		},
75
+		{
76
+			index: 'STTL_ST_NM', name: 'sttlStNm',
77
+			label: "정산상태", 
78
+			width: '10', fixed: false, align: 'center',
79
+			sortable: false, hidden: false
80
+		},		
81
+		{
82
+			index: 'STTL_REQ_DT', name: 'sttlReqDt',
83
+			label: "정산요청일",
84
+			width: '10', fixed: false, align: 'center',
85
+			sortable: false, editable: false, edittype: 'text'
86
+		},
87
+		{
88
+			index: 'STTL_REQ_AMT', name: 'sttlReqAmt',
89
+			label: "정산요청금액",
90
+			width: '10', fixed: false, align: 'center',
91
+			sortable: false, editable: false, edittype: 'text', 
92
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
93
+		}, 
94
+		{
95
+			index: 'STTL_DT', name: 'sttlDt',
96
+			label: "정산일",
97
+			width: '10', fixed: false, align: 'center',
98
+			sortable: false, editable: false, edittype: 'text'
99
+		},
100
+		{
101
+			index: 'STTL_REQ_AMT', name: 'sttlAmt',
102
+			label: "정산금액",
103
+			width: '10', fixed: false, align: 'center',
104
+			sortable: false, editable: false, edittype: 'text', 
105
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
106
+		},
107
+		{
108
+			index: 'ACCT_BAL', name: 'acctBal',
109
+			label: "잔금",
110
+			width: '10', fixed: false, align: 'center',
111
+			sortable: false, editable: false, edittype: 'text', 
112
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
113
+		}, 
114
+		{
115
+			index: 'STTL_REG_MGR_NM', name: 'sttlRegMgrNm',
116
+			label: "등록자",
117
+			width: '10', fixed: false, align: 'center',
118
+			sortable: false, editable: false, edittype: 'text'
119
+		}
120
+	],
121
+	view: [
122
+		{
123
+			index: 'VIEW_CD', name: 'viewCd',
124
+			label: ITP_MSG_LOCALE.label.viewCd,
125
+			width: '10', fixed: false, align: 'center',
126
+			sortable: false, hidden: true
127
+		},
128
+		{
129
+			index: 'STTL_MGNT_DTL_NO', name: 'sttlMgntDtlNo',
130
+			label: '정산관리상세번호',
131
+			width: '10', fixed: false, align: 'center',
132
+			sortable: false, hidden: true
133
+		},		
134
+		{
135
+			index: 'BRAND_NM', name: 'brandNm',
136
+			label: "브랜드",
137
+			width: '10', fixed: false, align: 'center',
138
+			sortable: false, hidden: true
139
+		},
140
+		{
141
+			index: 'STORE_NM', name: 'storeNm',
142
+			label: "매장명",
143
+			width: '10', fixed: false, align: 'center',
144
+			sortable: false, hidden: true
145
+		},
146
+		{
147
+			index: 'ITEM_ID', name: 'itemId',
148
+			label: "품목코드",
149
+			width: '10', fixed: false, align: 'center',
150
+			sortable: false, editable: false, edittype: 'text'
151
+		},
152
+		{
153
+			index: 'ITEM_NM', name: 'itemNm',
154
+			label: "품목명",
155
+			width: '10', fixed: false, align: 'center',
156
+			sortable: false, editable: false, edittype: 'text'
157
+		},
158
+		{
159
+			index: 'UNIT', name: 'unit',
160
+			label: "단위",
161
+			width: '8', fixed: false, align: 'center',
162
+			sortable: false, editable: false, edittype: 'text'
163
+		},
164
+		{
165
+			index: 'UNIT_AMT', name: 'unitAmt',
166
+			label: "단가",
167
+			width: '8', fixed: false, align: 'center',
168
+			sortable: false, editable: false, edittype: 'text', 
169
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
170
+		},
171
+		{
172
+			index: 'PODR_QTY', name: 'podrQty',
173
+			label: "발주수량",
174
+			width: '8', fixed: false, align: 'center',
175
+			sortable: false, editable: false, edittype: 'text', 
176
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
177
+		},
178
+		{
179
+			index: 'DLV_QTY', name: 'dlvQty',
180
+			label: "납품수량",
181
+			width: '8', fixed: false, align: 'center',
182
+			sortable: false, editable: false, edittype: 'text', 
183
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
184
+		},
185
+		{
186
+			index: 'WHS_COL_QTY', name: 'whsColQty',
187
+			label: "입고/수거수량",
188
+			width: '8', fixed: false, align: 'center',
189
+			sortable: false, editable: false, edittype: 'text', 
190
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
191
+		}, 
192
+		{
193
+			index: 'WHS_COL_DT', name: 'whsColDt',
194
+			label: "입고/수거일자",
195
+			width: '8', fixed: false, align: 'center',
196
+			sortable: false, editable: false, edittype: 'text'
197
+		},
198
+		{
199
+			index: 'WHS_COL_AMT', name: 'whsColAmt',
200
+			label: "입고/수거금액",
201
+			width: '8', fixed: false, align: 'center',
202
+			sortable: false, editable: false, edittype: 'text', 
203
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
204
+		},
205
+		{
206
+			index: 'STTL_DVSN_NM', name: 'sttlDvsnNm',
207
+			label: "정산구분",
208
+			width: '8', fixed: false, align: 'center',
209
+			sortable: false, editable: false, edittype: 'text'
210
+		},
211
+		{
212
+			index: 'PODR_UNQ_NO', name: 'podrUnqNo',
213
+			label: "발주번호",
214
+			width: '8', fixed: false, align: 'center',
215
+			sortable: false, editable: false, edittype: 'text'
216
+		},
217
+		{
218
+			index: 'PODR_DTL_NO', name: 'podrDtlNo',
219
+			label: "발주항번",
220
+			width: '8', fixed: false, align: 'center',
221
+			sortable: false, editable: false, edittype: 'text'
222
+		}
223
+	]
224
+};
225
+
226
+require(['config'], function() {
227
+	require([
228
+		'kakao.map.util'
229
+	], function($) {
230
+		pageObj.init();
231
+	});
232
+});
233
+
234
+/*화면공통 Object*/
235
+let pageObj = {
236
+	init: function () {
237
+		this.ui.init();
238
+		this.event.init();
239
+	},
240
+	ui: {
241
+		init: function () {
242
+			this.view();
243
+			this.grid();
244
+			this.ready();
245
+		},
246
+		view: function() {
247
+			// 버튼 권한설정
248
+			fn_proc_btn_auth('SETTMNG03010');
249
+			
250
+			// 공통코드 표시
251
+			$('select').each(function() {
252
+		        if($(this).data('select-code')) {
253
+		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
254
+		        }
255
+		    });
256
+
257
+			// 조회일자 지정
258
+			var now = new Date();
259
+			$('#ITP_TAB_SETTMNG03010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
260
+			$('#ITP_FORM_SETTMNG03010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
261
+			$('#ITP_FORM_SETTMNG03010_SEARCH_TO_DT').datepicker('setDate', new Date());
262
+			
263
+			// 권한에 따라 매장값 설정
264
+			$('#ITP_FORM_SETTMNG03010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));
265
+			LOGIN_AUTH_TYPE_CD = fn_make_user_info.get('authTpCd'); // 권한타입
266
+			if(LOGIN_AUTH_TYPE_CD == '50') {
267
+				$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_ID').val(fn_make_user_info.get('storeId'));
268
+				$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_NM').val(fn_make_user_info.get('storeNm'));	
269
+			}
270
+			
271
+		},
272
+		grid: function() {
273
+			itp_fn_jqgrid_resize(SETTMNG03010_GRID_ID, SETTMNG03010_GRID_LIST, 'lg');
274
+			listObj.empty.init();
275
+			itp_fn_fire_window_resize();
276
+		},
277
+		ready: function() {
278
+			listObj.init();
279
+		}
280
+	},
281
+	event: {
282
+		init: function () {
283
+			this.button();
284
+			this.change();
285
+		},
286
+		button: function () {
287
+			// 버튼 클릭 이벤트
288
+			$('button').each(function() {
289
+				var id = $(this).attr('id');
290
+				$(this).on('click', function() {
291
+					switch (id) {
292
+						case 'ITP_BTN_SETTMNG03010_SRH'				: listObj.button.search();		break;	// 조회 버튼 클릭
293
+						case 'ITP_BTN_SETTMNG03010_CANCELLIST'		: modifyObj.button.cancel(); 	break;	// 취소/목록 버튼
294
+						// case 'ITP_BTN_SETTMNG03010_NEWREG'			: listObj.button.reqSttl();	break;	// 정산요청 버튼
295
+						// case 'ITP_BTN_SETTMNG03010_REQUEST'			: modifyObj.button.request();	break;	// 요청 버튼
296
+					}
297
+				});
298
+			});
299
+
300
+			$('body').on('click', function(e) {
301
+				var gridId = SETTMNG03010_DETAIL_GRID_ID.replace('#', '');
302
+				var rids = $(SETTMNG03010_DETAIL_GRID_ID).jqGrid('getDataIDs');
303
+				var last_row_id = rids[rids.length - 1];
304
+				itp_fn_grid_reset_selection(e, last_row_id, gridId, 'SETTMNG03010_DETAIL');
305
+			});
306
+
307
+		}, 
308
+		change: function() {
309
+			$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_GUBUN').on('change', function() {
310
+				var gubunVal = $('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_GUBUN').val();
311
+				if(gubunVal == '1') { // 매장
312
+					$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_NM').attr('placeholder', '매장명');
313
+					
314
+					$(SETTMNG03010_GRID_ID).jqGrid('hideCol', ["spplyNm"]);
315
+					$(SETTMNG03010_GRID_ID).jqGrid('showCol', ["storeNm"]);		
316
+					// $(SETTMNG03010_GRID_ID).setColProp('spplyNm', {hidden: true});
317
+					// $(SETTMNG03010_GRID_ID).setColProp('storeNm', {hidden: false});
318
+								
319
+				} else if(gubunVal == '2') { // 공급업체
320
+					$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_SPPLY_NM').attr('placeholder', '공급사명');
321
+					
322
+					$(SETTMNG03010_GRID_ID).jqGrid('hideCol', ["storeNm"]);
323
+					$(SETTMNG03010_GRID_ID).jqGrid('showCol', ["spplyNm"]);
324
+					// $(SETTMNG03010_GRID_ID).setColProp('storeNm', {hidden: true});
325
+					// $(SETTMNG03010_GRID_ID).setColProp('spplyNm', {hidden: false});
326
+				}	
327
+				listObj.button.search();	
328
+				// itp_fn_jqgrid_resize(SETTMNG03010_GRID_ID, SETTMNG03010_GRID_LIST, 'lg');							
329
+			});			
330
+		}
331
+	},
332
+	switchScreen: function(mode) {
333
+		if(mode == 'LIST') { // 목록
334
+			$('#ITP_BTN_SETTMNG03010_MODIFY').hide();
335
+			$('#ITP_BTN_SETTMNG03010_CANCELLIST').hide();
336
+			$('#ITP_BTN_SETTMNG03010_DELETE').hide();
337
+			$('#ITP_BTN_SETTMNG03010_REQUEST').hide();
338
+			
339
+			if(LOGIN_AUTH_TYPE_CD == '50') { // 매장관리자
340
+				$('#ITP_BTN_SETTMNG03010_SEARCH_STORE_POP').hide();
341
+				$('#ITP_BTN_SETTMNG03010_SEARCH_ERASE').hide();
342
+			} else {
343
+				$('#ITP_BTN_SETTMNG03010_SEARCH_STORE_POP').show();
344
+				$('#ITP_BTN_SETTMNG03010_SEARCH_ERASE').show();
345
+			}
346
+			
347
+			fn_show_btn_auth('#ITP_BTN_SETTMNG03010_SRH');
348
+			fn_show_btn_auth('#ITP_BTN_SETTMNG03010_NEWREG');
349
+			
350
+			$('#ITP_AJAX_SETTMNG03010_LIST_CONTAINER').show();
351
+			$('#ITP_AJAX_SETTMNG03010_DETAIL_CONTAINER').hide();
352
+			
353
+		} else if(mode == 'DETAIL') { // 보기
354
+			$('#ITP_BTN_SETTMNG03010_SRH').hide();
355
+			$('#ITP_BTN_SETTMNG03010_NEWREG').hide();
356
+			$('#ITP_BTN_SETTMNG03010_DELETE').hide();
357
+			
358
+			fn_show_btn_auth('#ITP_BTN_SETTMNG03010_REQUEST');
359
+			fn_show_btn_auth('#ITP_BTN_SETTMNG03010_CANCELLIST');
360
+
361
+			$('#ITP_AJAX_SETTMNG03010_LIST_CONTAINER').hide();
362
+			$('#ITP_AJAX_SETTMNG03010_DETAIL_CONTAINER').show();
363
+		}
364
+	}
365
+};
366
+
367
+/*목록화면 Object*/
368
+let listObj = {
369
+	init: function () {
370
+		this.grid.init();
371
+	},
372
+	itp_SETTMNG03010_search: false,
373
+	button: {
374
+		search: function() {
375
+			listObj.itp_SETTMNG03010_search = true;
376
+			let param = $('#ITP_FORM_SETTMNG03010_SEARCH').serializeObject();
377
+			param.gridSize = $.jgrid.defaults.rowNum;
378
+			param.gridPage = $.jgrid.defaults.page;
379
+			$(SETTMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
380
+		}
381
+	},
382
+	empty: {
383
+		init: function() {
384
+			var _this = this;
385
+			this.push();
386
+			$(SETTMNG03010_GRID_EMPTY).on('click', function() {
387
+				_this.back();
388
+				_this.itp_SETTMNG03010_param.gridSize = $.jgrid.defaults.rowNum;
389
+				$(SETTMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_SETTMNG03010_param)}).trigger('reloadGrid');
390
+			});
391
+		},
392
+		itp_SETTMNG03010_param: {},
393
+		push: function() {
394
+			let param = $('#ITP_FORM_SETTMNG03010_SEARCH').serializeObject();
395
+			listObj.itp_SETTMNG03010_param = param;
396
+		},
397
+		back: function() {
398
+			$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_ID').val(listObj.itp_SETTMNG03010_param.sstoreId);
399
+			$('#ITP_FORM_SETTMNG03010_SEARCH_STORE_NM').val(listObj.itp_SETTMNG03010_param.sstoreNm);
400
+			$('#ITP_FORM_SETTMNG03010_SEARCH_FROM_DT').val(listObj.itp_SETTMNG03010_param.fromDt);
401
+			$('#ITP_FORM_SETTMNG03010_SEARCH_TO_DT').val(listObj.itp_SETTMNG03010_param.toDt);
402
+			$('#ITP_FORM_SETTMNG03010_SEARCH_ITEM_NM').val(listObj.itp_SETTMNG03010_param.sitemNm);
403
+		}
404
+	},
405
+	grid: {
406
+		init: function () {
407
+			// 데이터 없을때
408
+			listObj.empty.push();
409
+			this.search();
410
+		},
411
+		colModel: gridColModel.list,
412
+		search: function() {
413
+			pageObj.switchScreen('LIST');
414
+			this.unload();
415
+			this.load();
416
+		},
417
+		load: function() {			
418
+			let param = $('#ITP_FORM_SETTMNG03010_SEARCH').serializeObject();
419
+			param.gridSize = $.jgrid.defaults.rowNum;
420
+
421
+			var option = {
422
+				gridId: SETTMNG03010_GRID_ID,
423
+				colModel: gridColModel.list,
424
+				param: param,
425
+				url: DOMAIN + STTL_STATE_DETAIL_GRID_LIST,
426
+				pager: SETTMNG03010_GRID_PAGER,
427
+				onCellSelect: function(rowId, cellIdx, cellValue) {
428
+					var cm = $(this).jqGrid('getGridParam', 'colModel');
429
+					var colNm = cm[cellIdx].name;
430
+					if (colNm == 'sttlMgntUnqNo') {
431
+						const sttlMgntUnqNoVal = $(this).jqGrid('getCell', rowId, 'sttlMgntUnqNo');
432
+						
433
+						const key = {sttlMgntUnqNo: sttlMgntUnqNoVal, viewCd: 'R'};
434
+						var param = $.param(key);
435
+						modifyObj.init(param);
436
+					}
437
+				},
438
+				loadComplete: function(data) {
439
+					console.log(data);
440
+					itp_fn_grid_load_complete(data, SETTMNG03010_GRID_ID, true, 'number', 'SETTMNG03010', listObj.itp_SETTMNG03010_search, listObj.empty, true, data.gridRecords, true);
441
+					var ids = $(SETTMNG03010_GRID_ID).getDataIDs();
442
+					$.each(ids, function(idx, rowId) {
443
+						$(SETTMNG03010_GRID_ID).jqGrid('setCell', rowId, 'sttlMgntUnqNo', '', ITP_GRID_COL_STYLE.link);
444
+					});
445
+				},
446
+				onPaging: function(action) {
447
+					itp_fn_grid_paging(SETTMNG03010_GRID_ID, action, param);
448
+				}
449
+			};
450
+			itp_fn_grid_make_remote(option);
451
+		},
452
+		clearData : function() {
453
+			$(SETTMNG03010_GRID_ID).jqGrid('clearGridData', true);
454
+			$(SETTMNG03010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
455
+			$(SETTMNG03010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
456
+			$(SETTMNG03010_GRID_EMPTY).show();
457
+		},
458
+		unload : function() {
459
+			$.jgrid.gridUnload(SETTMNG03010_GRID_ID);
460
+		}
461
+	}
462
+};
463
+
464
+/*상세화면 Object*/
465
+let modifyObj = {
466
+	init: function (param) {
467
+		this.load(param);
468
+	},
469
+	button: {
470
+		cancel: function() {
471
+			listObj.grid.search();
472
+		}
473
+	}, 
474
+	load: function(param) {
475
+		fn_ajax_call(STTL_REQ_INFO_STTL, param, this.callback, 'GET');
476
+	},
477
+	callback: function (result) {
478
+		// console.log(result);
479
+		pageObj.switchScreen('DETAIL');
480
+		$('#ITP_FORM_SETTMNG03010_DETAIL_BRAND_ID').val(result.brandId);
481
+		$('#ITP_FORM_SETTMNG03010_DETAIL_STORE_ID').val(result.storeId);
482
+		$('#ITP_FORM_SETTMNG03010_DETAIL_STTL_MGNT_UNQ_NO').val(result.sttlMgntUnqNo);
483
+		
484
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnBrandNm').text(result.brandNm);
485
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnStoreNm').text(result.storeNm);
486
+		$('#ITP_FORM_SETTMNG03010_DETAIL_STTL_DT').val(result.sttlDt);  // 정산일자
487
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlStNm').text(result.sttlStNm);
488
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSttlAmt').text(itp_fn_number_comma(result.sttlAmt));
489
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnAcctBal').text(itp_fn_number_comma(result.acctBal));
490
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegDttm').text(result.sysRegDttm);
491
+		$('#ITP_FORM_SETTMNG03010_DETAIL .fnSysRegNm').text(result.sysRegNm);
492
+
493
+		// 리스트 조회
494
+		modifyObj.grid.init();
495
+	},
496
+	grid: {
497
+		init: function() {
498
+			this.unload();
499
+			this.load();
500
+		},
501
+		load : function() {
502
+			let param = $('#ITP_FORM_SETTMNG03010_DETAIL').serializeObject();
503
+			param.gridSize = $.jgrid.defaults.rowNum;
504
+			param.pagingYn = false; // 페이징안함
505
+
506
+			var option = {
507
+				gridId: SETTMNG03010_DETAIL_GRID_ID,
508
+				colModel: gridColModel.view,
509
+				param: param,
510
+				url: DOMAIN + STTL_REQ_STL_GRID_LIST,
511
+				pager: SETTMNG03010_DETAIL_GRID_PAGER,
512
+				loadComplete: function(data) {
513
+					itp_fn_grid_load_complete(data, SETTMNG03010_DETAIL_GRID_ID, true, undefined, 'SETTMNG03010_DETAIL');
514
+				},
515
+				onPaging: function(action) {
516
+					var pagingFn = {
517
+						callBack: function(args) {
518
+							$(args).trigger('reloadGrid');
519
+						}
520
+					};
521
+					if (itp_fn_check_grid_is_writing(SETTMNG03010_DETAIL_GRID_ID)) {
522
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, pagingFn, SETTMNG03010_DETAIL_GRID_ID);
523
+						return 'stop';
524
+					} else {
525
+						itp_fn_grid_paging(SETTMNG03010_DETAIL_GRID_ID, action, param);
526
+					}
527
+				},
528
+				onSortCol: function(index, columnIndex, sortOrder) {
529
+					var sortingFn = {
530
+						callBack: function(args) {
531
+							$(args).trigger('reloadGrid');
532
+						}
533
+					};
534
+					if (itp_fn_check_grid_is_writing(SETTMNG03010_DETAIL_GRID_ID)) {
535
+						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, SETTMNG03010_DETAIL_GRID_ID);
536
+						return 'stop';
537
+					} else {
538
+						itp_fn_grid_sorting(SETTMNG03010_DETAIL_GRID_ID, index, sortOrder);
539
+					}
540
+				}
541
+			};
542
+			itp_fn_grid_make_remote(option);
543
+		},
544
+		clearData : function() {
545
+			$(SETTMNG03010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
546
+			$(SETTMNG03010_DETAIL_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
547
+			$(SETTMNG03010_DETAIL_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
548
+			$(SETTMNG03010_DETAIL_GRID_EMPTY).show();
549
+		},
550
+		unload : function() {
551
+			$.jgrid.gridUnload(SETTMNG03010_DETAIL_GRID_ID);
552
+		}
553
+	}
554
+};

+ 12 - 16
src/main/webapp/app/pomng/POMNG02010.html

@@ -97,16 +97,12 @@
97 97
 										<div class="form-group">
98 98
 											<label class="col-xs-2 itp_lb">구매 요청자</label>
99 99
 												<div class="col-xs-4 itp_ip">
100
-													<div class="col-xs-2 itp_in">
101
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
102
-													</div>
103
-													<label class="col-xs-1" style="top:7px;">/</label>
104
-													<div class="col-xs-4 itp_in">
105
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
106
-													</div>
100
+													<div class="col-xs-a itp_in fnPchReqDept"></div>
101
+													<div class="col-xs-a itp_in ">/</div>
102
+													<div class="col-xs-4 itp_in fnPchReqMgrNm"></div>
107 103
 												</div>
108 104
 											<label class="col-xs-2 itp_lb">구매요청금액</label>
109
-											<div class="col-xs-4 itp_ip fnPchReqDt">asfdsdsa</div>
105
+											<div class="col-xs-4 itp_ip fnPchReqAmt"></div>
110 106
 										</div>
111 107
 									</div>
112 108
 									<div class="itp_form_in">	
@@ -139,11 +135,11 @@
139 135
 											<label class="col-xs-2 itp_lb">정산타입</label>
140 136
 												<div class="col-xs-4 itp_ip">
141 137
 													<div class="col-xs-12 itp_in">
142
-														<div class="input-group fnPchReqDept" style="padding:5px;">asdf</div>
138
+														<div class="input-group fnSttlType" style="padding:5px;"></div>
143 139
 													</div>
144 140
 												</div>
145 141
 											<label class="col-xs-2 itp_lb">구매가능금액</label>
146
-											<div class="col-xs-4 itp_ip fnPchReqDt">10,000,000원 </div>
142
+											<div class="col-xs-4 itp_ip fnPchActAmt">10,000,000원 </div>
147 143
 										</div>
148 144
 									</div>
149 145
 									<div class="itp_form_in">
@@ -173,7 +169,7 @@
173 169
 							</form>
174 170
 						</div>
175 171
 					</div>
176
-				</div>			
172
+				</div>		
177 173
 				<div id="ITP_AJAX_POMNG02010_VIEW_CONTAINER">
178 174
 					<div class="itp_form itp_type1 fix">
179 175
 						<div class="col-xs-12">
@@ -195,7 +191,7 @@
195 191
 											<label class="col-xs-2 itp_lb">구매요청명</label>
196 192
 											<div class="col-xs-4 itp_ip fnPchReqNm"></div>
197 193
 											<label class="col-xs-2 itp_lb">상태</label>
198
-											<div class="col-xs-4 itp_ip fnStCd"></div>
194
+											<div class="col-xs-4 itp_ip fnPchTeqDtCd"></div>
199 195
 										</div>
200 196
 									</div>
201 197
 									<div class="itp_form_in">	
@@ -229,11 +225,11 @@
229 225
 											<label class="col-xs-2 itp_lb">정산타입</label>
230 226
 												<div class="col-xs-4 itp_ip">
231 227
 													<div class="col-xs-12 itp_in">
232
-														<div class="input-group fnPchReqDept" style="padding:5px;"></div>
228
+														<div class="input-group fnSttlType" style="padding:5px;"></div>
233 229
 													</div>
234 230
 												</div>
235 231
 											<label class="col-xs-2 itp_lb">구매가능금액</label>
236
-											<div class="col-xs-4 itp_ip fnPchReqDt"></div>
232
+											<div class="col-xs-4 itp_ip fnPchActAmt"></div>
237 233
 										</div>
238 234
 									</div>
239 235
 									<div class="itp_form_in">
@@ -245,9 +241,9 @@
245 241
 									<div class="itp_form_in">	
246 242
 										<div class="form-group">
247 243
 											<label class="col-xs-2 itp_lb">반려일자</label>
248
-											<div class="col-xs-4 itp_ip fnBrandNm"></div>
244
+											<div class="col-xs-4 itp_ip fnRjctDt"></div>
249 245
 											<label class="col-xs-2 itp_lb">반려담당자명</label>
250
-											<div class="col-xs-4 itp_ip fnPchReqUnqNo"></div>
246
+											<div class="col-xs-4 itp_ip fnRjctMgrNm"></div>
251 247
 										</div>
252 248
 									</div>
253 249
 									<div class="itp_form_in">

+ 47 - 28
src/main/webapp/app/pomng/POMNG03010.html

@@ -70,7 +70,7 @@
70 70
 								<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_VIEW_CD" name="viewCd" value="C">
71 71
 					
72 72
 								<section class="itp_form_sec">
73
-									<h4 class="itp_form_tit">구매발주상세-신규발주생성</h4>
73
+									<h4 class="itp_form_tit">구매발주상세-발주생성</h4>
74 74
 									<div class="itp_form_in">	
75 75
 										<div class="form-group">
76 76
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
@@ -84,13 +84,17 @@
84 84
 											<label class="col-xs-2 itp_lb">공급업체명</label>
85 85
 											<div class="col-xs-4 itp_ip fnPchReqNm"></div>
86 86
 											<label class="col-xs-2 itp_lb">발주일자</label>
87
-											<div class="col-xs-4 itp_ip "></div>
87
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
88 88
 										</div>
89 89
 									</div>
90 90
 									<div class="itp_form_in">	
91 91
 										<div class="form-group">
92 92
 											<label class="col-xs-2 itp_lb">납품장소</label>
93
-											<div class="col-xs-4 itp_ip fnDlvPlace"></div>
93
+											<div class="col-xs-4 itp_ip">
94
+												<div class="col-xs-a itp_in fnWhsNm"></div>
95
+												<div class="col-xs-a itp_in ">-</div>
96
+												<div class="col-xs-4 itp_in fnDtlLcn"></div>
97
+											</div>
94 98
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
95 99
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
96 100
 										</div>
@@ -99,23 +103,37 @@
99 103
 										<div class="form-group">
100 104
 											<label class="col-xs-2 itp_lb">발주담당자</label>
101 105
 											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
102
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
103
-											<div class="col-xs-4 itp_ip fnPodrMgrMblNo"></div>
104
-										</div>
105
-									</div>
106
-									<div class="itp_form_in">	
107
-										<div class="form-group">
108 106
 											<label class="col-xs-2 itp_lb">배송구분</label>
109 107
 											<div class="col-xs-4 itp_ip">
110 108
 												<div class="col-xs-5 itp_in">
111
-													<select id="ITP_FORM_POMNG03010_DETAIL_DLV_CNDT" class="form-control itp_input" name="dlvCndt">
109
+													<select id="ITP_FORM_POMNG03010_VIEW_DLV_DVSN" class="form-control itp_input" name="dlvDvsn">
112 110
 														<option value="">본사배송</option>											
113 111
 														<option value="">공급사직송</option>											
114 112
 													</select>
115 113
 												</div>
116 114
 											</div>
117
-											<label class="col-xs-2 itp_lb"></label>
118
-											<div class="col-xs-4 itp_ip"></div>
115
+										</div>
116
+									</div>
117
+									<div class="itp_form_in">	
118
+										<div class="form-group">
119
+											<label class="col-xs-2 itp_lb">납품요청일</label>
120
+											<div class="col-xs-4 itp_ip">
121
+												<div class="col-xs-5 itp_in itp_noMar">
122
+													<div class="input-daterange input-group date">
123
+														<input type="text" id="ITP_FORM_POMNG03010_DETAIL_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
124
+													</div>
125
+												</div>
126
+											</div>
127
+											<label class="col-xs-2 itp_lb">출하창고</label>
128
+											<div class="col-xs-4 itp_ip">
129
+												<div class="col-xs-5 itp_in">
130
+													<input type="text" id="ITP_FORM_POMNG03010_DELETE_SHMT_WHS_NM" class="form-control itp_input" name="shmtWhsNm" />
131
+												</div>
132
+												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
133
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_SHMT_WHS_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
134
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_SHMT_WHS_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
135
+								                </div>
136
+											</div>
119 137
 										</div>
120 138
 									</div>
121 139
 									<div class="itp_form_in">
@@ -141,7 +159,7 @@
141 159
 								<input type="hidden" id="ITP_FORM_POMNG03010_DETAIL_VIEW_CD" name="viewCd" value="C">
142 160
 					
143 161
 								<section class="itp_form_sec">
144
-									<h4 class="itp_form_tit">구매발주상세-발주생성</h4>
162
+									<h4 class="itp_form_tit">구매발주상세-신규발주생성</h4>
145 163
 									<div class="itp_form_in">	
146 164
 										<div class="form-group">
147 165
 											<label class="col-xs-2 itp_lb">브랜드 *</label>
@@ -158,12 +176,12 @@
158 176
 													<input type="text" id="ITP_FORM_POMNG03010_VIEW_SPPLY_NM" class="form-control itp_input" name="spplyNm" />
159 177
 												</div>
160 178
 												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
161
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
162
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
179
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_SPPLY_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
180
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_SPPLY_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
163 181
 								                </div>
164 182
 											</div>
165 183
 											<label class="col-xs-2 itp_lb">발주일자</label>
166
-											<div class="col-xs-4 itp_ip "></div>
184
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
167 185
 										</div>
168 186
 									</div>
169 187
 									<div class="itp_form_in">	
@@ -171,13 +189,13 @@
171 189
 											<label class="col-xs-2 itp_lb">납품장소</label>
172 190
 											<div class="col-xs-4 itp_ip">
173 191
 												<div class="col-xs-5 itp_in">
174
-													<input type="text" id="ITP_FORM_POMNG03010_VIEW_DLV_PLACE" class="form-control itp_input" name="dlvPlace"  />
192
+													<input type="text" id="ITP_FORM_POMNG03010_VIEW_WHS_NM" class="form-control itp_input" name="whsNm"  />
175 193
 												</div>
176 194
 												<div class="col-xs-4 itp_in" style="padding-left: 3px;">
177
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
178
-													<button type="button" id="ITP_BTN_POMNG03010_VIEW_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
195
+													<button type="button" id="ITP_BTN_POMNG03010_SEARCH_WHS_NM" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
196
+													<button type="button" id="ITP_BTN_POMNG03010_DELETE_WHS_NM" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
179 197
 								                </div>
180
-												</div>
198
+											</div>
181 199
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
182 200
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
183 201
 										</div>
@@ -186,21 +204,22 @@
186 204
 										<div class="form-group">
187 205
 											<label class="col-xs-2 itp_lb">발주담당자</label>
188 206
 											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
189
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
190
-											<div class="col-xs-4 itp_ip fnPodrMgrMblNo"></div>
207
+											<label class="col-xs-2 itp_lb">배송구분</label>
208
+											<div class="col-xs-4 itp_ip fnDlvDvsn"></div>
191 209
 										</div>
192 210
 									</div>
193 211
 									<div class="itp_form_in">	
194 212
 										<div class="form-group">
195
-											<label class="col-xs-2 itp_lb">배송구분</label>
213
+											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
214
+											<div class="col-xs-4 itp_ip fnPodrMgrNo"></div>
215
+											<label class="col-xs-2 itp_lb">납품요청일</label>
196 216
 											<div class="col-xs-4 itp_ip">
197
-												<div class="col-xs-5 itp_in">
198
-													<select id="ITP_FORM_POMNG03010_VIEW_DLV_CNDT" class="form-control itp_input" name="dlvCndt">
199
-													</select>
217
+												<div class="col-xs-5 itp_in itp_noMar">
218
+													<div class="input-daterange input-group date">
219
+														<input type="text" id="ITP_FORM_POMNG03010_DETAIL_DLV_REQ_DT" class="form-control itp_input" name="dlvReqDt" value="">
220
+													</div>
200 221
 												</div>
201 222
 											</div>
202
-											<label class="col-xs-2 itp_lb"></label>
203
-											<div class="col-xs-4 itp_ip"></div>
204 223
 										</div>
205 224
 									</div>
206 225
 									<div class="itp_form_in">

+ 23 - 8
src/main/webapp/app/pomng/POMNG04010.html

@@ -82,8 +82,8 @@
82 82
 											<div class="col-xs-4 itp_ip fnBrandNm"></div>
83 83
 											<label class="col-xs-2 itp_lb">발주번호/상태</label>
84 84
 											<div class="col-xs-4 itp_ip">
85
-												<div class="col-xs-3 itp_in fnPchPodrUnqNo"></div>
86
-												<label class="col-xs-1" style="top:7px;">/</label>
85
+												<div class="col-xs-a itp_in fnPchPodrUnqNo"></div>
86
+												<div class="col-xs-a">/</div>
87 87
 												<div class="col-xs-4 itp_in fnPchOdrStCd"></div>
88 88
 											</div>
89 89
 										</div>
@@ -93,13 +93,17 @@
93 93
 											<label class="col-xs-2 itp_lb">공급업체명</label>
94 94
 											<div class="col-xs-4 itp_ip fnSpplyNm"></div>
95 95
 											<label class="col-xs-2 itp_lb">발주일자</label>
96
-											<div class="col-xs-4 itp_ip "></div>
96
+											<div class="col-xs-4 itp_ip fnPoorDt"></div>
97 97
 										</div>
98 98
 									</div>
99 99
 									<div class="itp_form_in">	
100 100
 										<div class="form-group">
101 101
 											<label class="col-xs-2 itp_lb">납품장소</label>
102
-											<div class="col-xs-4 itp_ip fnDlvPlace"></div>
102
+											<div class="col-xs-4 itp_ip">
103
+												<div class="col-xs-a itp_in fnWhsNm"></div>
104
+												<div class="col-xs-a itp_in ">-</div>
105
+												<div class="col-xs-4 itp_in fnDtlLcn"></div>
106
+											</div>
103 107
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
104 108
 											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
105 109
 										</div>
@@ -107,12 +111,23 @@
107 111
 									<div class="itp_form_in">	
108 112
 										<div class="form-group">
109 113
 											<label class="col-xs-2 itp_lb">발주담당자</label>
110
-											<div class="col-xs-4 itp_ip fnPodrMgrNm"></div>
111
-											<label class="col-xs-2 itp_lb">발주담당자연락처</label>
112
-											<div class="col-xs-4 itp_ip fnPodrMgrTelNo"></div>
114
+											<div class="col-xs-4 itp_ip">
115
+												<div class="col-xs-a itp_in fnPodrMgrNm"></div>
116
+												<div class="col-xs-a itp_in ">/</div>
117
+												<div class="col-xs-4 itp_in fnPodrMgrNo"></div>
118
+											</div>
119
+											<label class="col-xs-2 itp_lb">배송구분</label>
120
+											<div class="col-xs-4 itp_ip fnDlvDvsn"></div>
121
+										</div>
122
+									</div>
123
+									<div class="itp_form_in">	
124
+										<div class="form-group">
125
+											<label class="col-xs-2 itp_lb">납품요청일</label>
126
+											<div class="col-xs-4 itp_ip fnDlvReqDt"></div>
127
+											<label class="col-xs-2 itp_lb">출하창고</label>
128
+											<div class="col-xs-4 itp_ip fnShmtWhsNm"></div>
113 129
 										</div>
114 130
 									</div>
115
-									
116 131
 									<div class="itp_form_in">
117 132
 										<div class="itp_table_head fix" style="background:#f5f5f5;">
118 133
 											<h4 class="itp_table_tit">발주 품목</h4>

+ 1 - 1
src/main/webapp/app/pomng/POMNG07010.html

@@ -26,7 +26,7 @@
26 26
 												<input type="text" id="ITP_FORM_POMNG07010_SEARCH_DLV_CMPLT_DT" class="form-control itp_input" name="dlvCmpltDt" value="">
27 27
 											</div>
28 28
 										</div>
29
-										<div class="col-xs-2 itp_ip itp_noMar" style="width:15.4%"></div>
29
+										<div class="col-xs-2 itp_ip itp_noMar" style="width:9.6%;"></div>
30 30
 										<div class="col-xs-4 itp_ip itp_noMar">
31 31
 											<input type="text" id="ITP_FORM_POMNG07010_SEARCH_PCH_PODR_UNQ_NO" class="form-control itp_input" name="spchPodrUnqNo" placeholder="발주번호" />
32 32
 										</div>

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

@@ -77,7 +77,7 @@ const gridColModel = {
77 77
 					index: 'UNIT', name: 'unit',
78 78
 					label: ITP_MSG_LOCALE.label.unit, //발주생성일
79 79
 					width: '6', fixed: false, align: 'center',
80
-					sortable: false, hidden: false
80
+					sortable: false, hidden: true
81 81
 			},
82 82
 			{
83 83
 					index: 'PCH_ITEM_YN', name: 'pchItemYn',