Преглед на файлове

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

whakdo963 преди 2 години
родител
ревизия
9952e99026

+ 2 - 2
src/main/webapp/mobile/app/login.html

@@ -31,14 +31,14 @@
31 31
             <button type="button" id="ITP_BTN_LOGIN_BSNS_REG_NO">연결</button>
32 32
           </div>
33 33
           <div class="brand_list">
34
-            <select name="brandId" id="ITP_FORM_LOGIN_BRAND_ID">
34
+            <select name="brandId" id="ITP_FORM_LOGIN_BRAND_ID" required>
35 35
               <option value="">선택</option>
36 36
             </select>
37 37
           </div>
38 38
         </div>
39 39
         <div class="login_page">
40 40
           <div class="input_area">
41
-            <input type="text" id="ITP_FORM_LOGIN_USER_ID"  required>
41
+            <input type="text" id="ITP_FORM_LOGIN_USER_ID" required>
42 42
             <label for="ITP_FORM_LOGIN_USER_ID">아이디</label>
43 43
           </div>
44 44
           <div class="input_area">

+ 114 - 60
src/main/webapp/mobile/app/mloanmng/MLOANMNG01010.html

@@ -1,16 +1,17 @@
1 1
 <section id="ITP_MOBILE_MLOANMNG01010">
2 2
 	<div id="ITP_AJAX_MLOANMNG01010_LIST_CONTAINER" style="display: none;" >
3
-		<form id="ITP_FORM_MLOANMNG01010_LIST" class="form-horizontal" onsubmit="return false;">
4
-		<input type="hidden" id="ITP_FORM_MLOANMNG01010_LIST_VIEW_CD" name="viewCd" value="C">
3
+		<form id="ITP_FORM_MLOANMNG01010_LIST_SEARCH" class="form-horizontal" onsubmit="return false;">
4
+			<input type="hidden" id="ITP_FORM_MLOANMNG01010_LIST_SEARCH_BRAND_ID" name="sbrandId" value="">
5
+			<input type="hidden" id="ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_ID" name="sstoreId" value="">
5 6
 		  <div class="content">
6 7
 			<div class="line">
7 8
 			  <label>매장선택</label>
8 9
 			  <div class="search_wrap">
9 10
 				  <div class="float_left">
10
-					<input id="ITP_FORM_MLOANMNG01010_LIST_STORE_NM" name="storeNm" type="text" placeholder="A매장명">
11
+					<input id="ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_NM" name="storeNm" type="text" placeholder="A매장명">
11 12
 				  </div>
12 13
 				  <div class="float_left_btn">
13
-					<button id="ITP_BTN_MLOANMNG01010_LIST_SEARCH_STORE_NM" data-call-popup="ITP_POP_MLOANMNG01010_STORE_AREA"><img src="../img/search.png" alt=""></button>
14
+					<button id="ITP_BTN_MLOANMNG01010_LIST_SEARCH_STORE_NM"><img src="../img/search.png" alt=""></button>
14 15
 					<button id="ITP_BTN_MLOANMNG01010_LIST_DELETE_STORE_NM"><img src="../img/delete.png" alt=""></button>
15 16
 				  </div>
16 17
 			  </div>
@@ -18,7 +19,7 @@
18 19
 			<div class="line">
19 20
 			  <label>정산타입</label>
20 21
 			  <div class="line_right">
21
-				<select name="sttlType" id="ITP_FORM_MLOANMNG01010_LIST_STTL_TYPE">
22
+				<select name="sloanDvsn" id="ITP_FORM_MLOANMNG01010_LIST_LOAN_DVSN" data-select-code="LOAN_DVSN">
22 23
 				  <option value=""></option>
23 24
 				</select>
24 25
 			  </div>
@@ -26,7 +27,7 @@
26 27
 			<div class="line">
27 28
 			  <label>사용여부</label>
28 29
 			  <div class="line_right">
29
-				<select name="useYn" id="ITP_FORM_MLOANMNG01010_LIST_USE_YN">
30
+				<select name="suseYn" id="ITP_FORM_MLOANMNG01010_LIST_USE_YN" data-select-code="USE_YN" name="suseYn">
30 31
 				  <option value=""></option>
31 32
 				</select>
32 33
 			  </div>
@@ -40,19 +41,19 @@
40 41
 			  <h1>> 여신 현황 내역</h1>
41 42
 			</div>
42 43
 		  </div>
43
-	   <div id="ITP_LIST_MLOANMNG01010_ITEM_AREA" class="scroll_area row-2">
44
-		  <ul id="ITP_LIST_MLOANMNG01010_LIST_ROWS" class="panel-group"></ul>
45
-			  <div id="ITP_LIST_MLOANMNG01010_LIST_ROWCOPY" style="display:block;">
46
-				<li class="history_list">
44
+	   <div id="ITP_LIST_MLOANMNG01010_LIST_ITEM_AREA" class="scroll_area row-2">
45
+		  <ul id="ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWS" class="panel-group"></ul>
46
+			  <div id="ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWCOPY" style="display:none;">
47
+				<li class="history_list list-row">
47 48
 				  <div class="left">
48 49
 					<div class="nomal">
49 50
 					  <label>매장명 &nbsp;:</label>
50 51
 					  <div class="history">
51
-						<div class="fnStoreNm">A매장</div>
52
+						<div class="fnStoreNm"></div>
52 53
 					  </div>
53 54
 					  <label>정산타입&nbsp;:</label>
54 55
 					  <div class="history">
55
-						<div class="fnSttlType">선입금</div>
56
+						<div class="fnLoanDvsnNm"></div>
56 57
 					  </div>
57 58
 					</div>
58 59
 				  </div>
@@ -60,11 +61,11 @@
60 61
 					<div class="nomal">
61 62
 					  <label>한도금액 &nbsp;:</label>
62 63
 					  <div class="history">
63
-						<div class="fnLimitAmt">1,000,000</div>
64
+						<div class="fnLimitAmt"></div>
64 65
 					  </div>
65 66
 					  <label class="col_7">가용한도금액&nbsp;:</label>
66 67
 					  <div class="history">
67
-						<div class="fnLimitAmt">800,000</div>
68
+						<div class="fnPosbLimitAmt"></div>
68 69
 					  </div>
69 70
 					</div>
70 71
 				  </div>
@@ -72,11 +73,11 @@
72 73
 					<div class="nomal">
73 74
 					  <label class="col_6">가수금금액 &nbsp;:</label>
74 75
 					  <div class="history">
75
-						<div class="fnAmt">100,000</div>
76
+						<div class="fnTmpRcvAcctTotal"></div>
76 77
 					  </div>
77 78
 					  <label>사용금액&nbsp;:</label>
78 79
 					  <div class="history">
79
-						<div class="fnUseAmt">200,000</div>
80
+						<div class="fnUseAmtTotal"></div>
80 81
 					  </div>
81 82
 					</div>
82 83
 				  </div>
@@ -84,7 +85,7 @@
84 85
 					<div class="nomal">
85 86
 					  <label>사용여부 &nbsp;:</label>
86 87
 					  <div class="history">
87
-						<div class="fnUseYn">사용</div> 
88
+						<div class="fnUseYnNm"></div>
88 89
 					  </div>
89 90
 					</div>
90 91
 				  </div>
@@ -93,54 +94,69 @@
93 94
 		  </div>
94 95
 	  </form>
95 96
 	</div>
96
-	<div id="ITP_AJAX_MLOANMNG01010_VIEW_CONTAINER" style="display: block;">
97
-		<form id="ITP_FORM_MLOANMNG01010_VIEW" class="form-horizontal" onsubmit="return false;">
98
-		<input type="hidden" id="ITP_FORM_MLOANMNG01010_VIEW_VIEW_CD" name="VIEWCd" value="C">
97
+	<div id="ITP_AJAX_MLOANMNG01010_VIEW_CONTAINER" style="display: none;">
98
+		<form id="ITP_FORM_MLOANMNG01010_VIEW_SEARCH" class="form-horizontal" onsubmit="return false;">
99
+			<input type="hidden" id="ITP_FORM_MLOANMNG01010_VIEW__SEARCH_BRAND_ID" name="sbrandId" value="">
100
+			<input type="hidden" id="ITP_FORM_MLOANMNG01010_VIEW__SEARCH_STORE_ID" name="sstoreId" value="">
99 101
 		  <div class="content">
100
-			<div class="line">
101
-			  <label>매장명</label>
102
-			  <div class="search_wrap">
103
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_STORE_NM" name="storeNm" type="text" placeholder="A매장명">
104
-			  </div>      
105
-			</div>
106
-			<div class="line">
107
-			  <label class="col_6">정산타입/사용여부</label>
108
-			  <div class="search_wrap">
109
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_TYPE_YN" name="typeYn" type="text" >
102
+			  <div class="line">
103
+				  <label>매장명</label>
104
+				  <div class="search_wrap">
105
+					  <div class="fnStoreNm"></div>
106
+				  </div>
110 107
 			  </div>
111
-			</div>
112
-			<div class="line">
113
-			  <label>한도금액</label>
114
-			  <div class="search_wrap">
115
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_LIMIT_AMT" name="limitAmt" type="text" >
108
+			  <div class="line">
109
+				  <label>정산타입</label>
110
+				  <div class="search_wrap">
111
+					  <div class="fnLoanDvsnNm"></div>
112
+				  </div>
116 113
 			  </div>
117
-			</div>
118
-			<div class="line">
119
-			  <label>가용한도금액</label>
120
-			  <div class="search_wrap">
121
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_LIMIT_AMT" name="limitAmt" type="text" >
114
+			  <div class="line">
115
+				  <label>한도금액</label>
116
+				  <div class="search_wrap">
117
+					  <div class="fnLimitAmt">0원</div>
118
+				  </div>
122 119
 			  </div>
123
-			</div>
124
-			<div class="line">
125
-			  <label>가수금액</label>
126
-			  <div class="search_wrap">
127
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_AMT" name="amt" type="text" >
120
+			  <div class="line">
121
+				  <label>사용여부</label>
122
+				  <div class="search_wrap">
123
+					  <div class="fnUseYnNm"></div>
124
+				  </div>
128 125
 			  </div>
129
-			</div>
130
-			<div class="line">
131
-			  <label>사용금액</label>
132
-			  <div class="search_wrap">
133
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_USE_AMT" name="useAmt" type="text" >
126
+			  <div class="line">
127
+				  <label>가용한도금액</label>
128
+				  <div class="search_wrap">
129
+					  <div class="fnPosbLimitAmt">0원</div>
130
+				  </div>
131
+			  </div>
132
+			  <div class="line">
133
+				  <label>가수금</label>
134
+				  <div class="search_wrap">
135
+					  <div class="fnTmpRcvAcctTotal">0원</div>
136
+				  </div>
137
+			  </div>
138
+			  <div class="line">
139
+				  <label>사용금액</label>
140
+				  <div class="search_wrap">
141
+					  <div class="fnUseAmtTotal">0원</div>
142
+				  </div>
134 143
 			  </div>
135
-			</div>
136 144
 			<div class="line">
137 145
 			  <label>거래일자</label>
138 146
 			  <div class="date_to">
139
-				<input id="ITP_FORM_MLOANMNG01010_VIEW_TRSC_DT" name="trscDt" class="year" type="date">
147
+				<input id="ITP_FORM_MLOANMNG01010_VIEW_SEARCH_FROM_DT" name="fromDt" class="year" type="date">
140 148
 				<div class="at">~</div>
141
-				<input id="ITP_FORM_MLOANMNG01010_VIEW" class="year" type="date">
149
+				<input id="ITP_FORM_MLOANMNG01010_VIEW_SEARCH_TO_DT" name="toDt" class="year" type="date">
142 150
 			  </div>
143 151
 			</div>
152
+			  <div class="line">
153
+				  <label>입금지급구분</label>
154
+				  <div class="line_right">
155
+					  <select name="sdpstPayDvsn" id="ITP_FORM_MLOANMNG01010_VIEW_DPST_PAY_DVSN" data-select-code="DPST_PAY_DVSN">
156
+						  <option value=""></option>
157
+					  </select>
158
+				  </div>
159
+			  </div>
144 160
 			<div class="line" style="height:45px;">
145 161
 			  <div class="search">
146 162
 				<button id="ITP_BTN_MLOANMNG01010_VIEW_SEARCH" class="btn-primary btn-sm ADB">검색</button>
@@ -150,20 +166,20 @@
150 166
 			  <h1>> 여신 입출금 이력</h1>
151 167
 			</div>
152 168
 		  </div>
153
-			<div id="ITP_LIST_MLOANMNG01010_ITEM_AREA" class="scroll_area row-6">
154
-				 <ul id="ITP_LIST_MLOANMNG01010_VIEW_ROWS" class="panel-group"></ul>
155
-			  <div id="ITP_LIST_MLOANMNG01010_VIEW_ROWCOPY" style="display: block;">
156
-				<li class="history_list4">
169
+			<div id="ITP_LIST_MLOANMNG01010_VIEW_ITEM_AREA" class="scroll_area row-6">
170
+				 <ul id="ITP_LIST_MLOANMNG01010_VIEW_ITEM_ROWS" class="panel-group"></ul>
171
+			  <div id="ITP_LIST_MLOANMNG01010_VIEW_ITEM_ROWCOPY" style="display: none;">
172
+				<li class="history_list4 list-row">
157 173
 				  <div>
158 174
 					<div class="detail_line">
159 175
 					  <div class="detail_left">
160 176
 						<div class="detail_info">
161
-						  <div class="fnTrscDt">2022.10.04</div>
177
+						  <div class="fnLoanRegDt">2022.10.04</div>
162 178
 						</div>
163 179
 					  </div>
164 180
 					  <div class="detail_right">
165 181
 						<div class="detail_info">
166
-						  <div class="fnDstp">입금</div>
182
+						  <div class="fnDpstPayDvsnNm">입금</div>
167 183
 						</div>
168 184
 					  </div>
169 185
 					</div>
@@ -187,7 +203,7 @@
187 203
 					  </div>
188 204
 					  <div class="detail_right">
189 205
 						<div class="detail_info">
190
-						  <div class="fnBal">1,000,000 원</div>
206
+						  <div class="fnTrscAfBal">1,000,000 원</div>
191 207
 						</div>
192 208
 					  </div>
193 209
 					</div>
@@ -207,6 +223,44 @@
207 223
 				</li>
208 224
 			</div>
209 225
 		  </div>
226
+			<div class="button_bar">
227
+				<button id="ITP_BTN_MLOANMNG01010_VIEW_CANCEL_LIST" class="col_12 btn-gray CLB">취소</button>
228
+			</div>
210 229
 	  </form>
211 230
 	</div>
231
+	<div id="ITP_MOBILE_JS"></div>
232
+	<div id="ITP_POP_MLOANMNG01010_STORE_AREA" class="popup2 mobile-pop-close" style="display: none;">
233
+		<div class="pop">
234
+			<div class="header">
235
+				<div class="header_left">
236
+					<label>> 매장</label>
237
+				</div>
238
+				<div class="header_right">
239
+					<button type="button" id="ITP_BTN_MLOANMNG01010_POP_STORE_CLOSE"><img src="../img/close.png"></button>
240
+				</div>
241
+			</div>
242
+			<div class="search_bar">
243
+				<form id="ITP_FORM_MLOANMNG01010_POP_STORE" class="form-horizontal" onsubmit="return false;">
244
+					<input type="hidden" id="ITP_FORM_MLOANMNG01010_STORE_ITEM_BRAND_ID" name="brandId" value="">
245
+					<input type="hidden" id="ITP_FORM_MLOANMNG01010_STORE_ITEM_STORE_ID" name="storeId" value="">
246
+					<input id="ITP_FORM_MLOANMNG01010_POP_STORE_KEYWORD" type="text" name="storeNm" placeholder="매장명">
247
+					<button id="ITP_BTN_MLOANMNG01010_POP_STORE_SEARCH"><img src="../img/search.png"></button>
248
+				</form>
249
+			</div>
250
+			<div id="ITP_LIST_MLOANMNG01010_POP_STORE_AREA" class="popup_scroll">
251
+				<ul id="ITP_LIST_MLOANMNG01010_POP_STORE_ROWS" class="panel-group itp_nav"></ul>
252
+				<div id="ITP_LIST_MLOANMNG01010_POP_STORE_ROWCOPY" style="display:none;">
253
+					<li class="list-row">
254
+						<div class="scroll_left">
255
+							<div class="fnStoreNm"></div>
256
+							<div class="fnStoreStNm"></div>
257
+						</div>
258
+						<div class="scroll_right">
259
+							<button id="ITP_BTN_MLOANMNG01010_POP_STORE_CHOICE" class="fnStoreId" data-store-id="">선택</button>
260
+						</div>
261
+					</li>
262
+				</div>
263
+			</div>
264
+		</div>
265
+	</div>
212 266
   </section>

+ 195 - 151
src/main/webapp/mobile/app/mloanmng/MLOANMNG02010.html

@@ -1,153 +1,25 @@
1 1
 <section id="ITP_MOBILE_MLOANMNG02010">
2
-	<div id="ITP_POP_MLOANMNG_DPST_AREA" class="popup2 mobile-pop-close" style="display: none; background: transparent;">
3
-	  <div class="pop">
4
-		<div class="header">
5
-		  <div class="header_left">
6
-			<label>> 입금등록</label>
7
-		  </div>
8
-		  <div class="header_right">
9
-			<button id="ITP_BTN_MLOANMNG02010_POP_DPST_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
10
-		  </div>
11
-		</div>
12
-		<div class="content">
13
-		  <div class="line">
14
-			<label>브랜드명</label>
15
-			<div class="search_wrap">
16
-			  <input id="ITP_FORM_MLOANMNG02010_POP_BRAND_NM" name="brandNm" type="text" placeholder="A 브랜드명">
17
-			</div>
18
-		  </div>
19
-		  <div class="line">
20
-			<label>매장명</label>
21
-			<div class="search_wrap">
22
-			  <input id="ITP_FORM_MLOANMNG02010_POP_STORE_NM" name="storeNm" type="text" placeholder="A매장명">
23
-			</div>
24
-		  </div>
25
-		  <div class="line">
26
-			<label>입금금액</label>
27
-			<div class="search_wrap">
28
-			  <input id="ITP_FORM_MLOANMNG02010_POP_DPST_AMT" name="dpstAmt" type="text" >
29
-			</div>
30
-		  </div>
31
-		  <div class="line">
32
-			<label>입금일자</label>
33
-			<div class="search_wrap">
34
-			  <input id="ITP_FORM_MLOANMNG02010_POP_DPST_DT" name="dpstDt" type="date" style="width: 178px;">
35
-			</div>
36
-		  </div>
37
-		  <div class="line">
38
-			<label>입금자명</label>
39
-			<div class="search_wrap">
40
-			  <input id="ITP_FORM_MLOANMNG02010_POP_DPST_NM" name="dpstNm" type="text" >
41
-			</div>
42
-		  </div>
43
-		  <div class="line">
44
-			<label>입금은행</label>
45
-			<div class="search_wrap">
46
-			  <select name="dpstBnk" id="ITP_FORM_MLOANMNG02010_POP_DPST_BNK" style="width: 178px;">
47
-				<option value="">은행코드 선택</option>
48
-			  </select>
49
-			</div>
50
-		  </div>
51
-		  <div class="line" style="height:70px;">
52
-			<label>입금계좌번호</label>
53
-			<div class="search_wrap">
54
-			  <input id="ITP_FORM_MLOANMNG02010_POP_DPST_ACCT_NO" name="dpstAcctNo" type="text" >
55
-			</div>
56
-		  </div>
57
-		  <div class="line">
58
-			<button id="ITP_BTN_MLOANMNG02010_POP_DPST_" class="col_4 btn-primary btn-sm ">등록</button>
59
-			<button id="ITP_BTN_MLOANMNG02010_POP_DPST_CLOSE" class="cancel col_4 btn-pop-close btn-gray btn-sm CLB">취소</button>
60
-		  </div>
61
-		</div> 
62
-	  </div>
63
-	</div>
64
-	<div id="ITP_POP_MLOANMNG_DPST_RJCT_AREA" class="popup3 mobile-pop-close" style="display: none;">
65
-	  <div class="pop">
66
-		<div class="header">
67
-		  <div class="header_left">
68
-			<label>> 입금요청반려</label>
69
-		  </div>
70
-		  <div class="header_right">
71
-			<button id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
72
-		  </div>
73
-		</div>
74
-		<div class="content">
75
-		  <div class="line">
76
-			<label>브랜드명</label>
77
-			<div class="float_left">
78
-			  <div class="fnBrandNm">A 브랜드명</div>
79
-			</div>
80
-		  </div>
81
-		  <div class="line">
82
-			<label>매장명</label>
83
-			<div class="float_left">
84
-			  <div class="fnStoreNm">A 매장명</div>
85
-			</div>
86
-		  </div>
87
-		  <div class="line">
88
-			<label>입금금액</label>
89
-			<div class="float_left">
90
-			  <div class="fnDpstAmt">1,000,000</div>
91
-			</div>
92
-		  </div>
93
-		  <div class="line">
94
-			<label>입금일자</label>
95
-			<div class="float_left">
96
-			  <div class="fnDpstDt">2022.10.05</div>
97
-			</div>
98
-		  </div>
99
-		  <div class="line">
100
-			<label>입금자명</label>
101
-			<div class="float_left">
102
-			  <div class="fnDpstNm">홍길동</div>
103
-			</div>
104
-		  </div>
105
-		  <div class="line">
106
-			<label>입금은행</label>
107
-			<div class="float_left">
108
-			  <div class="fnDpstBnk">우리은행</div>
109
-			</div>
110
-		  </div>
111
-		  <div class="line">
112
-			<label>입금계좌번호</label>
113
-			<div class="float_left">
114
-			  <div class="fnDpstAcctNo">11122233333344</div>
115
-			</div>
116
-		  </div>
117
-		  <div class="line" style="height: 180px;">
118
-			<label>반려사유</label>
119
-			<div class="float_left note">
120
-			  <textarea  class="fn" cols="30" rows="10"></textarea>       
121
-		   </div>
122
-		  </div>
123
-		  <div class="line">
124
-			<div class="search">
125
-			  <button id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT" class="col_6 btn-danger btn-sm ">반려</button>
126
-			</div>
127
-		  </div>
128
-		</div> 
129
-	  </div>
130
-	</div>
131 2
 	<div id="ITP_AJAX_MLOANMNG02010_LIST_CONTAINER">
132
-		<form id="ITP_FORM_MLOANMNG02010_LIST" class="form-horizontal" onsubmit="return false;">
133
-		<input type="hidden" id="ITP_FORM_MLOANMNG02010_LIST_VIEW_CD" name="viewCd" value="C">
3
+		<form id="ITP_FORM_MLOANMNG02010_LIST_SEARCH" class="form-horizontal" onsubmit="return false;">
4
+			<input type="hidden" id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_BRAND_ID" name="sbrandId" value="">
5
+			<input type="hidden" id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID" name="sstoreId" value="">
134 6
 		  <div class="content">
135 7
 			<div class="line">
136
-			  <label>반품장소</label>
8
+			  <label>매장선텍</label>
137 9
 			  <div class="search_wrap">
138 10
 				  <div class="float_left">
139
-					<input id="ITP_FORM_MLOANMNG02010_LIST_RTN_PLACE" type="text" placeholder="A매장명">
11
+					<input id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM" name="sstoreNm" type="text" placeholder="A매장명">
140 12
 				  </div>
141 13
 				  <div class="float_left_btn">
142
-					<button id="ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE" data-call-popup="ITP_POP_MPOMNG02010_WHS_AREA"><img src="../img/search.png" alt=""></button>
14
+					<button id="ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE"><img src="../img/search.png" alt=""></button>
143 15
 					<button id="ITP_BTN_MLOANMNG02010_LIST_DELETE_RTN_PLACE"><img src="../img/delete.png" alt=""></button>
144 16
 				  </div>
145 17
 			  </div>
146 18
 			</div>
147 19
 			<div class="line">
148
-			  <label>반품발주상태</label>
20
+			  <label>입금상태</label>
149 21
 			  <div class="line_right">
150
-				<select name="rtnPodrStCd" id="ITP_FORM_MLOANMNG02010_LIST_RTN_PODR_ST_CD">
22
+				<select name="sdpstStCd" id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_DPST_ST_CD" data-select-code="DPST_ST_CD">
151 23
 				  <option value=""></option>
152 24
 				</select>
153 25
 			  </div>
@@ -155,14 +27,14 @@
155 27
 			<div class="line">
156 28
 			  <label>입금일자</label>
157 29
 			  <div class="date_to">
158
-				<input id="ITP_FORM_MLOANMNG02010_LIST_DPST_DT" name="dpstDt" class="year" type="date">
30
+				<input id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_FROM_DT" name="fromDt" class="year" type="date">
159 31
 				<div class="at">~</div>
160
-				<input id="ITP_FORM_MLOANMNG02010" class="year" type="date">
32
+				<input id="ITP_FORM_MLOANMNG02010_LIST_SEARCH_TO_DT" name="toDt" class="year" type="date">
161 33
 			  </div>
162 34
 			</div>
163 35
 			<div class="line">
164 36
 			  <div class="search">
165
-				<button id="ITP_BTN_MLOANMNG02010_LIST_" class="col_3 btn-yellow btn-sm ">입금등록</button>
37
+				<button id="ITP_BTN_MLOANMNG02010_LIST_ADD" class="col_3 btn-yellow btn-sm ">입금등록</button>
166 38
 				<button id="ITP_BTN_MLOANMNG02010_LIST_SEARCH" class="col_5 btn-primary btn-sm ADB">검색</button>
167 39
 			  </div>
168 40
 			</div>
@@ -170,19 +42,19 @@
170 42
 			  <h1>> 입금 요청 내역</h1>
171 43
 			</div>
172 44
 		  </div>
173
-			<div id="ITP_LIST_MLOANMNG02010_ITEM_AREA" class="scroll_area row-2">
174
-			  <ul id="ITP_LIST_MLOANMNG02010_LIST_ROWS" class="panel-group"></ul>
175
-			  <div id="ITP_LIST_MLOANMNG02010_LIST_ROWCOPY" style="display: block;">
176
-				<li class="history_list4">
177
-				  <div class="button_right">
178
-					<button id="ITP_BTN_MLOANMNG02010_LIST" class="btn-primary AGR">승인</button>
179
-					<button id="ITP_BTN_MLOANMNG02010_LIST" class="btn-danger RJT">반려</button>
45
+			<div id="ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA" class="scroll_area row-2">
46
+			  <ul id="ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS" class="panel-group"></ul>
47
+			  <div id="ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWCOPY" style="display: none;">
48
+				<li class="history_list4 list-row">
49
+				  <div class="button_right btn-dpst" style="display: none;">
50
+					<button id="ITP_BTN_MLOANMNG02010_LIST_AGREE" class="btn-primary AGR">승인</button>
51
+					<button id="ITP_BTN_MLOANMNG02010_LIST_REJECT" class="btn-danger RJT">반려</button>
180 52
 				  </div>
181 53
 				  <div class="left btn">
182 54
 					<div class="nomal">
183 55
 					  <label class="col_0">매장명&nbsp;&nbsp;&nbsp;:&nbsp;</label>
184 56
 					  <div class="col_5">
185
-						<div class="col_5 fnStoreNm">A매장</div>
57
+						<div class="col_5 fnStoreNm"></div>
186 58
 					  </div>
187 59
 					  <label class="col_0">입금일자&nbsp;:</label>
188 60
 					  <div class="history">
@@ -206,8 +78,8 @@
206 78
 					<div class="nomal">
207 79
 					  <label class="col_0">입금정보&nbsp;:</label>
208 80
 					  <div class="history">
209
-						<div class="fnDpstAcctNo">11122233344</div>
210
-						<div class="fnDpstBnk">(우리은행)</div>
81
+						<div class="fnRcvAcctNo">11122233344</div>
82
+						<div class="fnDpstBnkNm">(우리은행)</div>
211 83
 					  </div>
212 84
 					</div>
213 85
 				  </div>
@@ -215,8 +87,8 @@
215 87
 					<div class="nomal">
216 88
 					  <label class="col_0">처리결과&nbsp;:</label>
217 89
 					  <div class="history">
218
-						<div class="fn">입금요청</div> 
219
-						<div class="fn">(2022.10.05)</div> 
90
+						<div class="fnDpstStNm">입금요청</div>
91
+						<div class="fnDpstDt">(2022.10.05)</div>
220 92
 					  </div>
221 93
 					</div>
222 94
 				  </div>
@@ -225,4 +97,176 @@
225 97
 		  </div>
226 98
 	  </form>
227 99
 	</div>
100
+	<div id="ITP_MOBILE_JS"></div>
101
+	<div id="ITP_POP_MLOANMNG02010_STORE_AREA" class="popup2 mobile-pop-close" style="display: none;">
102
+		<div class="pop">
103
+			<div class="header">
104
+				<div class="header_left">
105
+					<label>> 매장</label>
106
+				</div>
107
+				<div class="header_right">
108
+					<button type="button" id="ITP_BTN_MLOANMNG02010_POP_STORE_CLOSE"><img src="../img/close.png"></button>
109
+				</div>
110
+			</div>
111
+			<div class="search_bar">
112
+				<form id="ITP_FORM_MLOANMNG02010_POP_STORE" class="form-horizontal" onsubmit="return false;">
113
+					<input type="hidden" id="ITP_FORM_MLOANMNG02010_STORE_ITEM_BRAND_ID" name="brandId" value="">
114
+					<input type="hidden" id="ITP_FORM_MLOANMNG02010_STORE_ITEM_STORE_ID" name="storeId" value="">
115
+					<input id="ITP_FORM_MLOANMNG02010_POP_STORE_KEYWORD" type="text" name="storeNm" placeholder="매장명">
116
+					<button id="ITP_BTN_MLOANMNG02010_POP_STORE_SEARCH"><img src="../img/search.png"></button>
117
+				</form>
118
+			</div>
119
+			<div id="ITP_LIST_MLOANMNG02010_POP_STORE_AREA" class="popup_scroll">
120
+				<ul id="ITP_LIST_MLOANMNG02010_POP_STORE_ROWS" class="panel-group itp_nav"></ul>
121
+				<div id="ITP_LIST_MLOANMNG02010_POP_STORE_ROWCOPY" style="display:none;">
122
+					<li class="list-row">
123
+						<div class="scroll_left">
124
+							<div class="fnStoreNm"></div>
125
+							<div class="fnStoreStNm"></div>
126
+						</div>
127
+						<div class="scroll_right">
128
+							<button id="ITP_BTN_MLOANMNG02010_POP_STORE_CHOICE" class="fnStoreId" data-store-id="">선택</button>
129
+						</div>
130
+					</li>
131
+				</div>
132
+			</div>
133
+		</div>
134
+	</div>
135
+	<div id="ITP_POP_MLOANMNG02010_DPST_REQ_AREA" class="popup2 mobile-pop-close" style="display: none; background: transparent;">
136
+		<form id="ITP_POP_FORM_MLOANMNG02010_DPST_REQ" class="form-horizontal" onsubmit="return false;">
137
+			<input type="hidden" id="ITP_POP_FORM_MLOANMNG02010_DPST_REQ_BRAND_ID" name="brandId" value="">
138
+			<input type="hidden" id="ITP_POP_FORM_MLOANMNG02010_DPST_REQ_STORE_ID" name="storeId" value="">
139
+			<div class="pop">
140
+				<div class="header">
141
+					<div class="header_left">
142
+						<label>> 입금등록</label>
143
+					</div>
144
+					<div class="header_right">
145
+						<button id="ITP_BTN_MLOANMNG02010_POP_DPST_REQ_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
146
+					</div>
147
+				</div>
148
+				<div class="content">
149
+					<div class="line">
150
+						<label>브랜드명</label>
151
+						<div class="search_wrap itp_ip">
152
+							<input id="ITP_FORM_MLOANMNG02010_POP_BRAND_NM" name="brandNm" data-check-required="empty" type="text" placeholder="A 브랜드명" readonly>
153
+						</div>
154
+					</div>
155
+					<div class="line">
156
+						<label>매장명</label>
157
+						<div class="search_wrap itp_ip">
158
+							<input id="ITP_FORM_MLOANMNG02010_POP_STORE_NM" name="storeNm" data-check-required="empty" type="text" placeholder="A매장명" readonly>
159
+						</div>
160
+					</div>
161
+					<div class="line">
162
+						<label>입금금액</label>
163
+						<div class="search_wrap itp_ip">
164
+							<input id="ITP_FORM_MLOANMNG02010_POP_DPST_AMT" name="dpstAmt" data-check-required="empty" type="text" >
165
+						</div>
166
+					</div>
167
+					<div class="line">
168
+						<label>입금일자</label>
169
+						<div class="search_wrap itp_ip">
170
+							<input id="ITP_FORM_MLOANMNG02010_POP_DPST_DT" name="dpstDt" data-check-required="empty" type="date" style="width: 178px;">
171
+						</div>
172
+					</div>
173
+					<div class="line itp_ip">
174
+						<label>입금자명</label>
175
+						<div class="search_wrap">
176
+							<input id="ITP_FORM_MLOANMNG02010_POP_DPST_NM" name="dpstNm" data-check-required="empty" type="text" >
177
+						</div>
178
+					</div>
179
+					<div class="line">
180
+						<label>입금은행</label>
181
+						<div class="search_wrap itp_ip">
182
+							<select name="dpstBnkCd" id="ITP_FORM_MLOANMNG02010_POP_DPST_BNK" data-select-code="BNK_CD" data-check-required="empty" style="width: 178px;">
183
+								<option value="">은행코드 선택</option>
184
+							</select>
185
+						</div>
186
+					</div>
187
+					<div class="line" style="height:70px;">
188
+						<label>입금계좌번호</label>
189
+						<div class="search_wrap itp_ip">
190
+							<input id="ITP_FORM_MLOANMNG02010_POP_DPST_ACCT_NO" name="rcvAcctNo" data-check-required="empty" type="text" >
191
+						</div>
192
+					</div>
193
+					<div class="line">
194
+						<button id="ITP_BTN_MLOANMNG02010_POP_DPST_ADD" class="col_4 btn-primary btn-sm ">등록</button>
195
+						<button id="ITP_BTN_MLOANMNG02010_POP_DPST_CANCEL" class="cancel col_4 btn-pop-close btn-gray btn-sm CLB">취소</button>
196
+					</div>
197
+				</div>
198
+			</div>
199
+		</form>
200
+	</div>
201
+	<div id="ITP_POP_MLOANMNG02010_DPST_RJCT_AREA" class="popup3 mobile-pop-close" style="display: none;">
202
+		<form id="ITP_POP_FORM_MLOANMNG02010_DPST_RJCT" class="form-horizontal" onsubmit="return false;">
203
+			<input type="hidden" id="ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_BRAND_ID" name="sbrandId" value="">
204
+			<input type="hidden" id="ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_STORE_ID" name="sstoreId" value="">
205
+		<div class="pop">
206
+			<div class="header">
207
+				<div class="header_left">
208
+					<label>> 입금요청반려</label>
209
+				</div>
210
+				<div class="header_right">
211
+					<button id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
212
+				</div>
213
+			</div>
214
+			<div class="content">
215
+				<div class="line">
216
+					<label>브랜드명</label>
217
+					<div class="float_left">
218
+						<div class="fnBrandNm">A 브랜드명</div>
219
+					</div>
220
+				</div>
221
+				<div class="line">
222
+					<label>매장명</label>
223
+					<div class="float_left">
224
+						<div class="fnStoreNm">A 매장명</div>
225
+					</div>
226
+				</div>
227
+				<div class="line">
228
+					<label>입금금액</label>
229
+					<div class="float_left">
230
+						<div class="fnDpstAmt">1,000,000</div>
231
+					</div>
232
+				</div>
233
+				<div class="line">
234
+					<label>입금일자</label>
235
+					<div class="float_left">
236
+						<div class="fnDpstDt">2022.10.05</div>
237
+					</div>
238
+				</div>
239
+				<div class="line">
240
+					<label>입금자명</label>
241
+					<div class="float_left">
242
+						<div class="fnDpstNm">홍길동</div>
243
+					</div>
244
+				</div>
245
+				<div class="line">
246
+					<label>입금은행</label>
247
+					<div class="float_left">
248
+						<div class="fnDpstBnk">우리은행</div>
249
+					</div>
250
+				</div>
251
+				<div class="line">
252
+					<label>입금계좌번호</label>
253
+					<div class="float_left">
254
+						<div class="fnDpstAcctNo">11122233333344</div>
255
+					</div>
256
+				</div>
257
+				<div class="line" style="height: 180px;">
258
+					<label>반려사유</label>
259
+					<div class="float_left note">
260
+						<textarea id="ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_REASON" name="dsptRjctRsn" class="fn" cols="30" rows="10"></textarea>
261
+					</div>
262
+				</div>
263
+				<div class="line">
264
+					<div class="search">
265
+						<button id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT" class="col_6 btn-danger btn-sm ">반려</button>
266
+					</div>
267
+				</div>
268
+			</div>
269
+		</div>
270
+		</form>
271
+	</div>
228 272
   </section>

+ 62 - 25
src/main/webapp/mobile/app/mloanmng/MLOANMNG03010.html

@@ -1,19 +1,20 @@
1 1
 <section id="ITP_MOBILE_MLOANMNG03010">
2
-	<div id="ITP_AJAX_MLOANMNG03010_LIST" style="display: block;">
3
-		 <form id="ITP_FORM_MLOANMNG03010_LIST" class="form-horizontal" onsubmit="return false;">
4
-		<input type="hidden" id="ITP_FORM_MLOANMNG02010_LIST_VIEW_CD" name="viewCd" value="C">
2
+	<div id="ITP_AJAX_MLOANMNG03010_LIST_CONTAINER" style="display: block;">
3
+		 <form id="ITP_FORM_MLOANMNG03010_LIST_SEARCH" class="form-horizontal" onsubmit="return false;">
4
+			 <input type="hidden" id="ITP_FORM_MLOANMNG03010_LIST_SEARCH_BRAND_ID" name="sbrandId" value="">
5
+			 <input type="hidden" id="ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_ID" name="sstoreId" value="">
5 6
 		  <div class="content">
6 7
 			<div class="line">
7 8
 			  <label>매장선택</label>
8
-			  <div class="search_wrap">
9
-				  <div class="float_left">
10
-					<input id="ITP_FORM_MLOANMNG03010_LIST_STORE_NM" type="text" placeholder="A매장명">
11
-				  </div>
12
-				  <div class="float_left_btn">
13
-					<button id="ITP_BTN_MLOANMNG03010_LIST_SEARCH_STORE_NM" data-call-popup="ITP_POP_MLOANMNG03010_STORE_AREA"><img src="../img/search.png" alt=""></button>
14
-					<button id="ITP_BTN_MLOANMNG03010_LIST_DETELE_sSTORE_NM"><img src="../img/delete.png" alt=""></button>
15
-				  </div>
16
-			  </div>
9
+				<div class="search_wrap">
10
+					<div class="float_left">
11
+						<input id="ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_NM" name="storeNm" type="text" placeholder="A매장명">
12
+					</div>
13
+					<div class="float_left_btn">
14
+						<button id="ITP_BTN_MLOANMNG03010_LIST_SEARCH_STORE_NM"><img src="../img/search.png" alt=""></button>
15
+						<button id="ITP_BTN_MLOANMNG03010_LIST_DELETE_STORE_NM"><img src="../img/delete.png" alt=""></button>
16
+					</div>
17
+				</div>
17 18
 			</div>
18 19
 		   <!--  <div class="line">
19 20
 			  <label>정산상태</label>
@@ -26,24 +27,24 @@
26 27
 			<div class="line">
27 28
 			  <label>정산요청일</label>
28 29
 			  <div class="date_to">
29
-				<input id="ITP_FORM_MLOANMNG03010_LIST_STTL_DT" name="sttlDt" class="year" type="date">
30
+				<input id="ITP_FORM_MLOANMNG03010_LIST_SEARCH_FROM_DT" name="fromDt" class="year" type="date">
30 31
 				<div class="at">~</div>
31
-				<input id="ITP_FORM_MLOANMNG03010_LIST" class="year" type="date">
32
+				<input id="ITP_FORM_MLOANMNG03010_LIST_SEARCH_TO_DT" name="toDt"  class="year" type="date">
32 33
 			  </div>
33 34
 			</div>
34 35
 			<div class="line" style="height:45px;">
35 36
 			  <div class="search">
36
-				<button id="ITP_BTN_MLOANMNG03010" class="btn-primary btn-sm ADB">검색</button>
37
+				<button id="ITP_BTN_MLOANMNG03010_LIST_SEARCH" class="btn-primary btn-sm ADB">검색</button>
37 38
 			  </div>
38 39
 			</div>
39 40
 			<div class="table_header">
40 41
 			  <h1>> 정산 내역</h1>
41 42
 			</div>
42 43
 		  </div>
43
-			<div id="ITP_LIST_MLOANMNG03010_ITEM_AREA" class="scroll_area row-1">
44
-			  <ul id="ITP_LIST_MLOANMNG03010_LIST_ROWS" class="panel-group"></ul>
45
-			  <div id="ITP_LIST_MLOANMNG03010_LIST_ROWCOPY" style="display: block;">
46
-				<li class="history_list5">
44
+			<div id="ITP_LIST_MLOANMNG03010_LIST_ITEM_AREA" class="scroll_area row-1">
45
+			  <ul id="ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWS" class="panel-group"></ul>
46
+			  <div id="ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWCOPY" style="display: none;">
47
+				<li class="history_list5 list-row">
47 48
 				  <div class="left">
48 49
 					<div class="nomal">
49 50
 					  <label class="history_label">브랜드명 &nbsp;:</label>
@@ -85,9 +86,10 @@
85 86
 		  </div>
86 87
 	  </form>
87 88
 	</div>
88
-	<div id="ITP_AJAX_MLOANMNG03010_VIEW" style="display: none;">
89
+	<div id="ITP_AJAX_MLOANMNG03010_VIEW_CONTAINER" style="display: none;">
89 90
 		<form id="ITP_FORM_MLOANMNG03010_VIEW" class="form-horizontal" onsubmit="return false;">
90
-		  <input type="hidden" id="ITP_FORM_MLOANMNG03010_VIEW_VIEW_CD" name="viewCd" value="C">
91
+			<input type="hidden" id="ITP_FORM_MLOANMNG03010_VIEW__SEARCH_BRAND_ID" name="sbrandId" value="">
92
+			<input type="hidden" id="ITP_FORM_MLOANMNG03010_VIEW__SEARCH_STORE_ID" name="sstoreId" value="">
91 93
 		  <div class="content">
92 94
 			<div class="line">
93 95
 			  <label>매장명</label>
@@ -129,10 +131,10 @@
129 131
 			  <h1>> 정산 상세 내역</h1>
130 132
 			</div>
131 133
 		  </div>
132
-			<div id="ITP_LIST_MLOANMNG03010_ITEM_AREA" class="scroll_area row-4">
133
-			  <ul id="ITP_LIST_MLOANMNG03010_VIEW_ROWS" class="panel-group"></ul>
134
-			  <div id="ITP_LIST_MLOANMNG03010_VIEW_ROWCOPY" style="display: block;">
135
-				<li class="history_list2">
134
+			<div id="ITP_LIST_MLOANMNG03010_VIEW_ITEM_AREA" class="scroll_area row-4">
135
+			  <ul id="ITP_LIST_MLOANMNG03010_VIEW_ITEM_ROWS" class="panel-group"></ul>
136
+			  <div id="ITP_LIST_MLOANMNG03010_VIEW_ITEM_ROWCOPY" style="display: block;">
137
+				<li class="history_list2 list-row">
136 138
 				  <div>
137 139
 					<div class="left">
138 140
 					  <div class="nomal">
@@ -196,4 +198,39 @@
196 198
 		  </div>
197 199
 	  </form>
198 200
 	</div>
201
+	<div id="ITP_MOBILE_JS"></div>
202
+	<div id="ITP_POP_MLOANMNG03010_STORE_AREA" class="popup2 mobile-pop-close" style="display: none;">
203
+		<div class="pop">
204
+			<div class="header">
205
+				<div class="header_left">
206
+					<label>> 매장</label>
207
+				</div>
208
+				<div class="header_right">
209
+					<button type="button" id="ITP_BTN_MLOANMNG03010_POP_STORE_CLOSE"><img src="../img/close.png"></button>
210
+				</div>
211
+			</div>
212
+			<div class="search_bar">
213
+				<form id="ITP_FORM_MLOANMNG03010_POP_STORE" class="form-horizontal" onsubmit="return false;">
214
+					<input type="hidden" id="ITP_FORM_MLOANMNG03010_STORE_ITEM_BRAND_ID" name="brandId" value="">
215
+					<input type="hidden" id="ITP_FORM_MLOANMNG03010_STORE_ITEM_STORE_ID" name="storeId" value="">
216
+					<input id="ITP_FORM_MLOANMNG03010_POP_STORE_KEYWORD" type="text" name="storeNm" placeholder="매장명">
217
+					<button id="ITP_BTN_MLOANMNG03010_POP_STORE_SEARCH"><img src="../img/search.png"></button>
218
+				</form>
219
+			</div>
220
+			<div id="ITP_LIST_MLOANMNG03010_POP_STORE_AREA" class="popup_scroll">
221
+				<ul id="ITP_LIST_MLOANMNG03010_POP_STORE_ROWS" class="panel-group itp_nav"></ul>
222
+				<div id="ITP_LIST_MLOANMNG03010_POP_STORE_ROWCOPY" style="display:none;">
223
+					<li class="list-row">
224
+						<div class="scroll_left">
225
+							<div class="fnStoreNm"></div>
226
+							<div class="fnStoreStNm"></div>
227
+						</div>
228
+						<div class="scroll_right">
229
+							<button id="ITP_BTN_MLOANMNG03010_POP_STORE_CHOICE" class="fnStoreId" data-store-id="">선택</button>
230
+						</div>
231
+					</li>
232
+				</div>
233
+			</div>
234
+		</div>
235
+	</div>
199 236
   </section>

+ 110 - 111
src/main/webapp/mobile/app/mpomng/MPOMNG01010.html

@@ -1,115 +1,4 @@
1 1
 <section id="ITP_MOBILE_MPOMNG01010">
2
-  <div id="ITP_POP_MPOMNG01010_REQ_AREA" class="popup mobile-pop-close" style="display: none;">
3
-    <div class="pop">
4
-      <div class="pop_line">
5
-        <label>납품요청일 &nbsp;&nbsp;:</label>
6
-        <div class="fnPopDlvReqDt"></div>
7
-      </div>
8
-      <div class="pop_line">
9
-        <label>품목수&nbsp;&nbsp; :</label>
10
-        <div class="fnItemQty">개</div>
11
-      </div>
12
-      <div class="pop_line">
13
-        <label>구매금액 &nbsp;&nbsp;:</label>
14
-        <div class="fnOrdAmt">원</div>
15
-      </div>
16
-      <label class="pop_label msg_save">구매요청 하시겠습니까?</label>
17
-      <div class="popup_btn">
18
-        <button id="ITP_BTN_MPOMNG01010_POP_REQ_CLOSE" class="cancel btn-gray CLB btn-pop-close">취소</button>
19
-        <button id="ITP_BTN_MPOMNG01010_POP_REQ_CONFIRM" class="ok btn-primary COK">확인</button>
20
-      </div>
21
-    </div>
22
-  </div>
23
-  <div id="ITP_POP_MPOMNG01010_WHS_AREA" class="popup2 mobile-pop-close" style="display: none;">
24
-    <div class="pop">
25
-      <div class="header">
26
-        <div class="header_left">
27
-          <label>> 납품장소</label>
28
-        </div>
29
-        <div class="header_right">
30
-          <button type="button" id="ITP_BTN_MPOMNG01010_POP_WHS_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
31
-        </div>
32
-      </div>
33
-      <div class="search_bar">
34
-        <form id="ITP_FORM_MPOMNG01010_POP_WHS" class="form-horizontal" onsubmit="return false;">
35
-            <input type="hidden" id="ITP_FORM_MPOMNG01010_WHS_ITEM_BRAND_ID" name="sbrandId" value="">
36
-            <input type="hidden" id="ITP_FORM_MPOMNG01010_WHS_ITEM_STORE_ID" name="sstoreId" value="">
37
-            <input id="ITP_FORM_MPOMNG01010_POP_WHS_KEYWORD" type="text" name="swhsNm" placeholder="납품장소명">
38
-          <button id="ITP_BTN_MPOMNG01010_POP_WHS_SEARCH"><img src="../img/search.png"></button>
39
-        </form>
40
-      </div>
41
-      <div class="search_bar">
42
-        <button id="ITP_BTN_MPOMNG01010_POP_WHS_NM" class="btn_blue">납품장소▼</button>
43
-      </div>
44
-        <div id="ITP_LIST_MPOMNG01010_POP_WHS_AREA" class="popup_scroll">
45
-        <ul id="ITP_LIST_MPOMNG01010_POP_WHS_ROWS" class="panel-group itp_nav"></ul>
46
-        <div id="ITP_LIST_MPOMNG01010_POP_WHS_ROWCOPY" style="display:none;">
47
-            <li class="row_2">
48
-            <div class="scroll_left">
49
-                <div class="fnWhsNm">브랜드 창고 명A</div>
50
-                <div class="fnLocationNm">(상세위치내용)</div>
51
-            </div>
52
-            <div class="scroll_right">
53
-                <button id="ITP_BTN_MPOMNG01010_POP_WHS_CHOICE" class="fnWhsId" data-whs-id="">선택</button>
54
-            </div>
55
-          </li>
56
-        </div>
57
-      </div>
58
-    </div>
59
-  </div>
60
-  <div id="ITP_POP_MPOMNG01010_ITEM_AREA" class="popup2 mobile-pop-close" style="display: none;">
61
-    <div class="pop">
62
-        <div class="header">
63
-            <div class="header_left">
64
-                <label>> 품목 검색</label>
65
-            </div>
66
-            <div class="header_right">
67
-                <button type="button" id="ITP_BTN_MPOMNG01010_POP_ITEM_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
68
-            </div>
69
-        </div>
70
-        <form id="ITP_FORM_MPOMNG01010_POPUP_ITEM" class="form-horizontal" onsubmit="return false;">
71
-            <input type="hidden" id="ITP_FORM_MPOMNG01010_POPUP_ITEM_BRAND_ID" name="sbrandId" value="">
72
-            <input type="hidden" id="ITP_FORM_MPOMNG01010_POPUP_ITEM_STORE_ID" name="sstoreId" value="">
73
-            <div class="search_bar">
74
-                <input id="ITP_FORM_MPOMNG01010_POP_ITEM_KEYWORD" name="sitemNm" type="text" placeholder="품목명/품목번호" />
75
-                <button id="ITP_BTN_MPOMNG01010_POP_ITEM_SEARCH"><img src="../img/search.png"></button>
76
-            </div>
77
-            <div class="search_bar">
78
-                <button id="ITP_BTN_MPOMNG01010_POP_ITEM_NM" class="btn_blue">품목명▼</button>
79
-            </div>
80
-        </form>
81
-        <div id="ITP_LIST_MPOMNG01010_POP_ITEM_AREA" class="popup_scroll">
82
-            <ul id="ITP_LIST_MPOMNG01010_POP_ITEM_ROWS" class="panel-group"></ul>
83
-            <div id="ITP_LIST_MPOMNG01010_POP_ITEM_ROWCOPY" style="display:none;">
84
-                <li class="row_2">
85
-                    <div class="left" style="width:180px;">
86
-                        <!--<div class="check_box">
87
-                            <input type="checkbox" id="ITP_FORM_MPOMNG01010_POP_ITEM_CHECKBOX" name="itemId" />
88
-                        </div>-->
89
-                        <div class="thick">
90
-                            <div class="fnItemNm">품목명</div>
91
-                            <div>-</div>
92
-                            <div class="fnUnit">EA</div>
93
-                        </div>
94
-                        <div class="thick" style="font-weight:100;">
95
-                            <div class="space">구매가 :</div>
96
-                            <div class="fnUnitAmt">0</div>
97
-                        </div>
98
-                    </div>
99
-                    <div class="right">
100
-                        <button id="ITP_BTN_MPOMNG01010_POP_ITEM_MINUS" class="POP_ITEM_MINUS">-</button>
101
-                        <div class="num fnPchReqQty">1</div>
102
-                        <button id="ITP_BTN_MPOMNG01010_POP_ITEM_PLUS" class="POP_ITEM_PLUS">+</button>
103
-                    </div>
104
-                    <div class="add">
105
-                        <button id="ITP_BTN_MPOMNG01010_POP_ITEM_ADD" class="POP_ITEM_ADD">추가</button>
106
-                    </div>
107
-                </li>
108
-            </div>
109
-        </div>
110
-    </div>
111
-</div>
112
-
113 2
   <div id="ITP_AJAX_MPOMNG01010_VIEW_CONTAINER">
114 3
     <form id="ITP_FORM_MPOMNG01010_DETAIL" class="form-horizontal" onsubmit="return false;">
115 4
       <input type="hidden" id="ITP_FORM_MPOMNG01010_DETAIL_VIEW_CD" name="viewCd" value="C">
@@ -192,4 +81,114 @@
192 81
     </form>
193 82
   </div>
194 83
   <div id="ITP_MOBILE_JS"></div>
84
+    <div id="ITP_POP_MPOMNG01010_REQ_AREA" class="popup mobile-pop-close" style="display: none;">
85
+        <div class="pop">
86
+            <div class="pop_line">
87
+                <label>납품요청일 &nbsp;&nbsp;:</label>
88
+                <div class="fnPopDlvReqDt"></div>
89
+            </div>
90
+            <div class="pop_line">
91
+                <label>품목수&nbsp;&nbsp; :</label>
92
+                <div class="fnItemQty">개</div>
93
+            </div>
94
+            <div class="pop_line">
95
+                <label>구매금액 &nbsp;&nbsp;:</label>
96
+                <div class="fnOrdAmt">원</div>
97
+            </div>
98
+            <label class="pop_label msg_save">구매요청 하시겠습니까?</label>
99
+            <div class="popup_btn">
100
+                <button id="ITP_BTN_MPOMNG01010_POP_REQ_CLOSE" class="cancel btn-gray CLB btn-pop-close">취소</button>
101
+                <button id="ITP_BTN_MPOMNG01010_POP_REQ_CONFIRM" class="ok btn-primary COK">확인</button>
102
+            </div>
103
+        </div>
104
+    </div>
105
+    <div id="ITP_POP_MPOMNG01010_WHS_AREA" class="popup2 mobile-pop-close" style="display: none;">
106
+        <div class="pop">
107
+            <div class="header">
108
+                <div class="header_left">
109
+                    <label>> 납품장소</label>
110
+                </div>
111
+                <div class="header_right">
112
+                    <button type="button" id="ITP_BTN_MPOMNG01010_POP_WHS_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
113
+                </div>
114
+            </div>
115
+            <div class="search_bar">
116
+                <form id="ITP_FORM_MPOMNG01010_POP_WHS" class="form-horizontal" onsubmit="return false;">
117
+                    <input type="hidden" id="ITP_FORM_MPOMNG01010_WHS_ITEM_BRAND_ID" name="sbrandId" value="">
118
+                    <input type="hidden" id="ITP_FORM_MPOMNG01010_WHS_ITEM_STORE_ID" name="sstoreId" value="">
119
+                    <input id="ITP_FORM_MPOMNG01010_POP_WHS_KEYWORD" type="text" name="swhsNm" placeholder="납품장소명">
120
+                    <button id="ITP_BTN_MPOMNG01010_POP_WHS_SEARCH"><img src="../img/search.png"></button>
121
+                </form>
122
+            </div>
123
+            <div class="search_bar">
124
+                <button id="ITP_BTN_MPOMNG01010_POP_WHS_NM" class="btn_blue">납품장소▼</button>
125
+            </div>
126
+            <div id="ITP_LIST_MPOMNG01010_POP_WHS_AREA" class="popup_scroll">
127
+                <ul id="ITP_LIST_MPOMNG01010_POP_WHS_ROWS" class="panel-group itp_nav"></ul>
128
+                <div id="ITP_LIST_MPOMNG01010_POP_WHS_ROWCOPY" style="display:none;">
129
+                    <li class="row_2">
130
+                        <div class="scroll_left">
131
+                            <div class="fnWhsNm">브랜드 창고 명A</div>
132
+                            <div class="fnLocationNm">(상세위치내용)</div>
133
+                        </div>
134
+                        <div class="scroll_right">
135
+                            <button id="ITP_BTN_MPOMNG01010_POP_WHS_CHOICE" class="fnWhsId" data-whs-id="">선택</button>
136
+                        </div>
137
+                    </li>
138
+                </div>
139
+            </div>
140
+        </div>
141
+    </div>
142
+    <div id="ITP_POP_MPOMNG01010_ITEM_AREA" class="popup2 mobile-pop-close" style="display: none;">
143
+        <div class="pop">
144
+            <div class="header">
145
+                <div class="header_left">
146
+                    <label>> 품목 검색</label>
147
+                </div>
148
+                <div class="header_right">
149
+                    <button type="button" id="ITP_BTN_MPOMNG01010_POP_ITEM_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
150
+                </div>
151
+            </div>
152
+            <form id="ITP_FORM_MPOMNG01010_POPUP_ITEM" class="form-horizontal" onsubmit="return false;">
153
+                <input type="hidden" id="ITP_FORM_MPOMNG01010_POPUP_ITEM_BRAND_ID" name="sbrandId" value="">
154
+                <input type="hidden" id="ITP_FORM_MPOMNG01010_POPUP_ITEM_STORE_ID" name="sstoreId" value="">
155
+                <div class="search_bar">
156
+                    <input id="ITP_FORM_MPOMNG01010_POP_ITEM_KEYWORD" name="sitemNm" type="text" placeholder="품목명/품목번호" />
157
+                    <button id="ITP_BTN_MPOMNG01010_POP_ITEM_SEARCH"><img src="../img/search.png"></button>
158
+                </div>
159
+                <div class="search_bar">
160
+                    <button id="ITP_BTN_MPOMNG01010_POP_ITEM_NM" class="btn_blue">품목명▼</button>
161
+                </div>
162
+            </form>
163
+            <div id="ITP_LIST_MPOMNG01010_POP_ITEM_AREA" class="popup_scroll">
164
+                <ul id="ITP_LIST_MPOMNG01010_POP_ITEM_ROWS" class="panel-group"></ul>
165
+                <div id="ITP_LIST_MPOMNG01010_POP_ITEM_ROWCOPY" style="display:none;">
166
+                    <li class="row_2">
167
+                        <div class="left" style="width:180px;">
168
+                            <!--<div class="check_box">
169
+                                <input type="checkbox" id="ITP_FORM_MPOMNG01010_POP_ITEM_CHECKBOX" name="itemId" />
170
+                            </div>-->
171
+                            <div class="thick">
172
+                                <div class="fnItemNm">품목명</div>
173
+                                <div>-</div>
174
+                                <div class="fnUnit">EA</div>
175
+                            </div>
176
+                            <div class="thick" style="font-weight:100;">
177
+                                <div class="space">구매가 :</div>
178
+                                <div class="fnUnitAmt">0</div>
179
+                            </div>
180
+                        </div>
181
+                        <div class="right">
182
+                            <button id="ITP_BTN_MPOMNG01010_POP_ITEM_MINUS" class="POP_ITEM_MINUS">-</button>
183
+                            <div class="num fnPchReqQty">1</div>
184
+                            <button id="ITP_BTN_MPOMNG01010_POP_ITEM_PLUS" class="POP_ITEM_PLUS">+</button>
185
+                        </div>
186
+                        <div class="add">
187
+                            <button id="ITP_BTN_MPOMNG01010_POP_ITEM_ADD" class="POP_ITEM_ADD">추가</button>
188
+                        </div>
189
+                    </li>
190
+                </div>
191
+            </div>
192
+        </div>
193
+    </div>
195 194
 </section>

+ 74 - 74
src/main/webapp/mobile/app/mpomng/MPOMNG04010.html

@@ -1,78 +1,4 @@
1 1
 <section id="ITP_MOBILE_MPOMNG04010">
2
-	<div id="ITP_POP_MPOMNG04010_SPPLY_AREA" class="popup2 mobile-pop-close" style="display: none;">
3
-		<div class="pop">
4
-			<div class="header">
5
-				<div class="header_left">
6
-					<label>> 공급업체</label>
7
-				</div>
8
-				<div class="header_right">
9
-					<button type="button" id="ITP_BTN_MPOMNG04010_POP_SPPLY_CLOSE"><img src="../img/close.png"></button>
10
-				</div>
11
-			</div>
12
-			<div class="search_bar">
13
-				<form id="ITP_FORM_MPOMNG04010_POP_SPPLY_SEARCH" class="form-horizontal" onsubmit="return false;">
14
-					<input type="hidden" id="ITP_FORM_MPOMNG04010_POP_SPPLY_ITEM_BRAND_ID" name="sbrandId" value="">
15
-					<input type="hidden" id="ITP_FORM_MPOMNG04010_PO_PSPPLY_ITEM_STORE_ID" name="sstoreId" value="">
16
-					<input id="ITP_FORM_MPOMNG04010_POP_SPPLY_KEYWORD" type="text" name="sspplyNm" placeholder="공급업체명">
17
-					<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_SEARCH"><img src="../img/search.png"></button>
18
-				</form>
19
-			</div>
20
-			<div class="search_bar">
21
-				<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_NM" class="btn_blue">공급업체▼</button>
22
-			</div>
23
-			<div id="ITP_POP_MPOMNG04010_LIST_SPPLY_AREA" class="popup_scroll">
24
-				<ul id="ITP_POP_MPOMNG04010_LIST_SPPLY_ROWS" class="panel-group itp_nav"></ul>
25
-				<div id="ITP_POP_MPOMNG04010_LIST_SPPLY_ROWCOPY" style="display: none;">
26
-					<li class="list-row">
27
-						<div class="scroll_left">
28
-							<div class="fnSpplyNm">공급업체 명A</div>
29
-							<div class="fnStNm">($)</div>
30
-						</div>
31
-						<div class="scroll_right">
32
-							<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_CHOICE" class="fnSpplyId" data-item-key="">선택</button>
33
-						</div>
34
-					</li>
35
-				</div>
36
-			</div>
37
-		</div>
38
-	</div>
39
-	<div id="ITP_POP_MPOMNG04010_WHS_AREA" class="popup2 mobile-pop-close" style="display: none;">
40
-		<div class="pop">
41
-			<div class="header">
42
-				<div class="header_left">
43
-					<label>> 납품장소</label>
44
-				</div>
45
-				<div class="header_right">
46
-					<button type="button" id="ITP_BTN_MPOMNG04010_POP_WHS_CLOSE"><img src="../img/close.png"></button>
47
-				</div>
48
-			</div>
49
-			<div class="search_bar">
50
-				<form id="ITP_FORM_MPOMNG04010_POP_WHS" class="form-horizontal" onsubmit="return false;">
51
-					<input type="hidden" id="ITP_FORM_MPOMNG04010_WHS_ITEM_BRAND_ID" name="sbrandId" value="">
52
-					<input type="hidden" id="ITP_FORM_MPOMNG04010_WHS_ITEM_STORE_ID" name="sstoreId" value="">
53
-					<input id="ITP_FORM_MPOMNG04010_POP_WHS_KEYWORD" type="text" name="swhsNm" placeholder="납품장소명">
54
-					<button id="ITP_BTN_MPOMNG04010_POP_WHS_SEARCH"><img src="../img/search.png"></button>
55
-				</form>
56
-			</div>
57
-			<div class="search_bar">
58
-				<button id="ITP_BTN_MPOMNG04010_POP_WHS_NM" class="btn_blue">납품장소▼</button>
59
-			</div>
60
-			<div id="ITP_LIST_MPOMNG04010_POP_WHS_AREA" class="popup_scroll">
61
-				<ul id="ITP_LIST_MPOMNG04010_POP_WHS_ROWS" class="panel-group itp_nav"></ul>
62
-				<div id="ITP_LIST_MPOMNG04010_POP_WHS_ROWCOPY" style="display:none;">
63
-					<li class="list-row">
64
-						<div class="scroll_left">
65
-							<div class="fnWhsNm">브랜드 창고 명A</div>
66
-							<div class="fnLocationNm">(상세위치내용)</div>
67
-						</div>
68
-						<div class="scroll_right">
69
-							<button id="ITP_BTN_MPOMNG04010_POP_WHS_CHOICE" class="fnWhsId" data-whs-id="">선택</button>
70
-						</div>
71
-					</li>
72
-				</div>
73
-			</div>
74
-		</div>
75
-	</div>
76 2
 	<div id="ITP_AJAX_MPOMNG04010_LIST_CONTAINER" style="display: block;">
77 3
 		<form id="ITP_FORM_MPOMNG04010_LIST_SEARCH" class="form-horizontal" onsubmit="return false;">
78 4
 			<input type="hidden" id="ITP_FORM_MPOMNG02010_LIST_SEARCH_BRAND_ID" name="sbrandId" value="">
@@ -258,4 +184,78 @@
258 184
 		</form>
259 185
 	</div>
260 186
 	<div id="ITP_MOBILE_JS"></div>
187
+	<div id="ITP_POP_MPOMNG04010_SPPLY_AREA" class="popup2 mobile-pop-close" style="display: none;">
188
+		<div class="pop">
189
+			<div class="header">
190
+				<div class="header_left">
191
+					<label>> 공급업체</label>
192
+				</div>
193
+				<div class="header_right">
194
+					<button type="button" id="ITP_BTN_MPOMNG04010_POP_SPPLY_CLOSE"><img src="../img/close.png"></button>
195
+				</div>
196
+			</div>
197
+			<div class="search_bar">
198
+				<form id="ITP_FORM_MPOMNG04010_POP_SPPLY_SEARCH" class="form-horizontal" onsubmit="return false;">
199
+					<input type="hidden" id="ITP_FORM_MPOMNG04010_POP_SPPLY_ITEM_BRAND_ID" name="sbrandId" value="">
200
+					<input type="hidden" id="ITP_FORM_MPOMNG04010_PO_PSPPLY_ITEM_STORE_ID" name="sstoreId" value="">
201
+					<input id="ITP_FORM_MPOMNG04010_POP_SPPLY_KEYWORD" type="text" name="sspplyNm" placeholder="공급업체명">
202
+					<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_SEARCH"><img src="../img/search.png"></button>
203
+				</form>
204
+			</div>
205
+			<div class="search_bar">
206
+				<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_NM" class="btn_blue">공급업체▼</button>
207
+			</div>
208
+			<div id="ITP_POP_MPOMNG04010_LIST_SPPLY_AREA" class="popup_scroll">
209
+				<ul id="ITP_POP_MPOMNG04010_LIST_SPPLY_ROWS" class="panel-group itp_nav"></ul>
210
+				<div id="ITP_POP_MPOMNG04010_LIST_SPPLY_ROWCOPY" style="display: none;">
211
+					<li class="list-row">
212
+						<div class="scroll_left">
213
+							<div class="fnSpplyNm">공급업체 명A</div>
214
+							<div class="fnStNm">($)</div>
215
+						</div>
216
+						<div class="scroll_right">
217
+							<button id="ITP_BTN_MPOMNG04010_POP_SPPLY_CHOICE" class="fnSpplyId" data-item-key="">선택</button>
218
+						</div>
219
+					</li>
220
+				</div>
221
+			</div>
222
+		</div>
223
+	</div>
224
+	<div id="ITP_POP_MPOMNG04010_WHS_AREA" class="popup2 mobile-pop-close" style="display: none;">
225
+		<div class="pop">
226
+			<div class="header">
227
+				<div class="header_left">
228
+					<label>> 납품장소</label>
229
+				</div>
230
+				<div class="header_right">
231
+					<button type="button" id="ITP_BTN_MPOMNG04010_POP_WHS_CLOSE"><img src="../img/close.png"></button>
232
+				</div>
233
+			</div>
234
+			<div class="search_bar">
235
+				<form id="ITP_FORM_MPOMNG04010_POP_WHS" class="form-horizontal" onsubmit="return false;">
236
+					<input type="hidden" id="ITP_FORM_MPOMNG04010_WHS_ITEM_BRAND_ID" name="sbrandId" value="">
237
+					<input type="hidden" id="ITP_FORM_MPOMNG04010_WHS_ITEM_STORE_ID" name="sstoreId" value="">
238
+					<input id="ITP_FORM_MPOMNG04010_POP_WHS_KEYWORD" type="text" name="swhsNm" placeholder="납품장소명">
239
+					<button id="ITP_BTN_MPOMNG04010_POP_WHS_SEARCH"><img src="../img/search.png"></button>
240
+				</form>
241
+			</div>
242
+			<div class="search_bar">
243
+				<button id="ITP_BTN_MPOMNG04010_POP_WHS_NM" class="btn_blue">납품장소▼</button>
244
+			</div>
245
+			<div id="ITP_LIST_MPOMNG04010_POP_WHS_AREA" class="popup_scroll">
246
+				<ul id="ITP_LIST_MPOMNG04010_POP_WHS_ROWS" class="panel-group itp_nav"></ul>
247
+				<div id="ITP_LIST_MPOMNG04010_POP_WHS_ROWCOPY" style="display:none;">
248
+					<li class="list-row">
249
+						<div class="scroll_left">
250
+							<div class="fnWhsNm">브랜드 창고 명A</div>
251
+							<div class="fnLocationNm">(상세위치내용)</div>
252
+						</div>
253
+						<div class="scroll_right">
254
+							<button id="ITP_BTN_MPOMNG04010_POP_WHS_CHOICE" class="fnWhsId" data-whs-id="">선택</button>
255
+						</div>
256
+					</li>
257
+				</div>
258
+			</div>
259
+		</div>
260
+	</div>
261 261
 </section>

+ 61 - 60
src/main/webapp/mobile/app/mstockmng/MSTOCKMNG01010.html

@@ -1,64 +1,4 @@
1 1
 <section id="ITP_MOBILE_MSTOCKMNG01010">
2
-	<div id="ITP_POP_MSTOCKMNG01010_ITEM_AREA" class="popup2 mobile-pop-close" style="display: block;">
3
-	  <div class="pop">
4
-		  <div class="header">
5
-			  <div class="header_left">
6
-				  <label>> 품목 검색</label>
7
-			  </div>
8
-			  <div class="header_right">
9
-				  <button type="button" id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
10
-			  </div>
11
-		  </div>
12
-		  <form id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM" class="form-horizontal" onsubmit="return false;">
13
-			  <input type="hidden" id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM_BRAND_ID" name="sbrandId" value="">
14
-			  <input type="hidden" id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM_STORE_ID" name="sstoreId" value="">
15
-			  <div class="search_bar">
16
-				  <input id="ITP_FORM_MSTOCKMNG01010_POP_ITEM_KEYWORD" name="sitemNm" type="text" placeholder="품목명/품목번호" />
17
-				  <button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_SEARCH"><img src="../img/search.png"></button>
18
-			  </div>
19
-			  <div class="search_bar">
20
-				  <button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_NM" class="btn_blue">품목명▼</button>
21
-			  </div>
22
-		  </form>
23
-		  <div class="popup_scroll">
24
-			  <ul id="ITP_LIST_MSTOCKMNG01010_POP_ITEM_ROWS" class="panel-group"></ul>
25
-			  <div id="ITP_LIST_MSTOCKMNG01010_POP_ITEM_ROWCOPY" style="display:block;">
26
-				  <li class="row_2"
27
-					  data-brandUnitUnqNo=""
28
-					  data-podrPssblDvsn=""
29
-					  data-spplyId=""
30
-					  data-stddQty=""
31
-					  data-storeUnitUnqNo=""
32
-					  data-unit=""
33
-					  data-unitAmt=""
34
-					  data-unitGubun="">
35
-					  <div class="left" style="width:200px;">
36
-						  <div class="check_box">
37
-							  <input type="checkbox" id="ITP_FORM_MSTOCKMNG01010_POP_ITEM_CHECKBOX" name="itemId" />
38
-						  </div>
39
-						  <div class="thick">
40
-							  <div class="fnItemNm">품목명</div>
41
-							  <div>-</div>
42
-							  <div class="fnOrdUnit">EA</div>
43
-						  </div>
44
-						  <div class="thick" style="font-weight:100;">
45
-							  <div class="space">구매가 :</div>
46
-							  <div class="fnOrdAmount">0</div>
47
-						  </div>
48
-					  </div>
49
-					  <div class="right">
50
-						  <button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_PLUS">-</button>
51
-						  <div class="num">2</div>
52
-						  <button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_MINUS">+</button>
53
-					  </div>
54
-					  <div class="add">
55
-						  <button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_ADD">추가</button>
56
-					  </div>
57
-				  </li>
58
-			  </div>
59
-		  </div>
60
-	  </div>
61
-  </div>
62 2
 	<div id="ITP_AJAX_MSTOCKMNG01010_LIST_CONTAINER">
63 3
 	  <form id="ITP_FORM_MSTOCKMNG01010_LIST" class="form-horizontal" onsubmit="return false;">
64 4
 		<input type="hidden" id="ITP_FORM_MSTOCKMNG01010_LIST_VIEW_CD" name="viewCd" value="C">
@@ -164,4 +104,65 @@
164 104
 		  </div>
165 105
 	  </form>
166 106
 	</div>
107
+	<div id="ITP_MOBILE_JS"></div>
108
+	<div id="ITP_POP_MSTOCKMNG01010_ITEM_AREA" class="popup2 mobile-pop-close" style="display: block;">
109
+		<div class="pop">
110
+			<div class="header">
111
+				<div class="header_left">
112
+					<label>> 품목 검색</label>
113
+				</div>
114
+				<div class="header_right">
115
+					<button type="button" id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_CLOSE" class="btn-pop-close"><img src="../img/close.png"></button>
116
+				</div>
117
+			</div>
118
+			<form id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM" class="form-horizontal" onsubmit="return false;">
119
+				<input type="hidden" id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM_BRAND_ID" name="sbrandId" value="">
120
+				<input type="hidden" id="ITP_FORM_MSTOCKMNG01010_POPUP_ITEM_STORE_ID" name="sstoreId" value="">
121
+				<div class="search_bar">
122
+					<input id="ITP_FORM_MSTOCKMNG01010_POP_ITEM_KEYWORD" name="sitemNm" type="text" placeholder="품목명/품목번호" />
123
+					<button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_SEARCH"><img src="../img/search.png"></button>
124
+				</div>
125
+				<div class="search_bar">
126
+					<button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_NM" class="btn_blue">품목명▼</button>
127
+				</div>
128
+			</form>
129
+			<div class="popup_scroll">
130
+				<ul id="ITP_LIST_MSTOCKMNG01010_POP_ITEM_ROWS" class="panel-group"></ul>
131
+				<div id="ITP_LIST_MSTOCKMNG01010_POP_ITEM_ROWCOPY" style="display:block;">
132
+					<li class="row_2"
133
+						data-brandUnitUnqNo=""
134
+						data-podrPssblDvsn=""
135
+						data-spplyId=""
136
+						data-stddQty=""
137
+						data-storeUnitUnqNo=""
138
+						data-unit=""
139
+						data-unitAmt=""
140
+						data-unitGubun="">
141
+						<div class="left" style="width:200px;">
142
+							<div class="check_box">
143
+								<input type="checkbox" id="ITP_FORM_MSTOCKMNG01010_POP_ITEM_CHECKBOX" name="itemId" />
144
+							</div>
145
+							<div class="thick">
146
+								<div class="fnItemNm">품목명</div>
147
+								<div>-</div>
148
+								<div class="fnOrdUnit">EA</div>
149
+							</div>
150
+							<div class="thick" style="font-weight:100;">
151
+								<div class="space">구매가 :</div>
152
+								<div class="fnOrdAmount">0</div>
153
+							</div>
154
+						</div>
155
+						<div class="right">
156
+							<button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_PLUS">-</button>
157
+							<div class="num">2</div>
158
+							<button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_MINUS">+</button>
159
+						</div>
160
+						<div class="add">
161
+							<button id="ITP_BTN_MSTOCKMNG01010_POP_ITEM_ADD">추가</button>
162
+						</div>
163
+					</li>
164
+				</div>
165
+			</div>
166
+		</div>
167
+	</div>
167 168
   </section>

+ 12 - 11
src/main/webapp/mobile/app/mstockmng/MSTOCKMNG02010.html

@@ -1,15 +1,4 @@
1 1
 <section id="ITP_MOBILE_MSTOCKMNG02010">
2
-	<div id="ITP_POP_MSTOCKMNG02010_BARCODE_AREA" class="popup2" style="display: block;">
3
-	  <div class="barcode">
4
-		<h1>바코드를 스캔 하시면 재고  실사 목록에 스캔한<br>바코드의품목이 추가 되고 실사 수량을 입력<br>하시기 바랍니다.</h1>
5
-	  </div>
6
-	  <div class="barcode_area">
7
-  
8
-	  </div>
9
-	  <div class="btn_barcode">
10
-		<button id="ITP_BTN_MSTOCKMNG02010_POP_CANCEL" class="btn-gray">취소</button>
11
-	  </div>
12
-	</div>
13 2
 	<div id="ITP_AJAX_MSTOCKMNG02010_LIST_CONTAINER">
14 3
 	 <form id="ITP_FORM_MSTOCKMNG02010_LIST" class="form-horizontal" onsubmit="return false;">
15 4
 		<input type="hidden" id="ITP_FORM_MSTOCKMNG02010_LIST_VIEW_CD" name="viewCd" value="C">
@@ -103,4 +92,16 @@
103 92
 		  </div>
104 93
 	  </form>
105 94
 	</div>
95
+	<div id="ITP_MOBILE_JS"></div>
96
+	<div id="ITP_POP_MSTOCKMNG02010_BARCODE_AREA" class="popup2" style="display: block;">
97
+		<div class="barcode">
98
+			<h1>바코드를 스캔 하시면 재고  실사 목록에 스캔한<br>바코드의품목이 추가 되고 실사 수량을 입력<br>하시기 바랍니다.</h1>
99
+		</div>
100
+		<div class="barcode_area">
101
+
102
+		</div>
103
+		<div class="btn_barcode">
104
+			<button id="ITP_BTN_MSTOCKMNG02010_POP_CANCEL" class="btn-gray">취소</button>
105
+		</div>
106
+	</div>
106 107
   </section>

+ 8 - 1
src/main/webapp/mobile/js/app/login.js

@@ -49,10 +49,17 @@ function itp_fn_login_reg_no() {
49 49
 }
50 50
 
51 51
 function itp_fn_login_validate() {
52
+	$('#ITP_FORM_LOGIN_BRAND_ID').closest('.form-group').removeClass('has-error');
52 53
 	$('#ITP_FORM_LOGIN_USER_ID').closest('.form-group').removeClass('has-error');
53 54
 	$('#ITP_FORM_LOGIN_USER_PW').closest('.form-group').removeClass('has-error');
54 55
 	$('#ITP_FORM_LOGIN_ERROR').text(ITP_MSG_LOCALE.message.login.help);
55 56
 
57
+	if ($('#ITP_FORM_LOGIN_BRAND_ID').val() === '') {
58
+		$('#ITP_FORM_LOGIN_BRAND_ID').closest('.form-group').addClass('has-error');
59
+		$('#ITP_FORM_LOGIN_ERROR').text(ITP_MSG_LOCALE.message.login.needId);
60
+		return false;
61
+	}
62
+
56 63
 	if ($('#ITP_FORM_LOGIN_USER_ID').val() === '') {
57 64
 		$('#ITP_FORM_LOGIN_USER_ID').closest('.form-group').addClass('has-error');
58 65
 		$('#ITP_FORM_LOGIN_ERROR').text(ITP_MSG_LOCALE.message.login.needId);
@@ -90,7 +97,7 @@ function itp_fn_login_proc() {
90 97
 		};
91 98
 		var params = $('#ITP_FORM_MOBILE_LOGIN').serializeObject();
92 99
 		// console.log(JSON.stringify(params));
93
-		fn_ajax_call('/api/member/sign-in-app', JSON.stringify(params), loginFn, 'POST'); //암호화 해서 보내는 경우 먼저 해시키를 가져와서 암호화해서 보낸다
100
+		fn_ajax_call('/api/member/sign-in', JSON.stringify(params), loginFn, 'POST'); //암호화 해서 보내는 경우 먼저 해시키를 가져와서 암호화해서 보낸다
94 101
 	};
95 102
 	fn_ajax_call('/api/session/hashed', null, callbackFn, 'GET'); //Crypto 암호화를 위한 해쉬키.. 로그인 후에는 Jwt 포함인 /api/session/hashedKey 이걸로 호출해서 사용한다.
96 103
 }

+ 336 - 0
src/main/webapp/mobile/js/app/mloanmng/ITP_MLOANMNG01010.js

@@ -0,0 +1,336 @@
1
+require(['config'], function() {
2
+	require([
3
+	], function($) {
4
+		mobPageObj.init();
5
+	});
6
+});
7
+
8
+/*API URL*/
9
+const API_MOBILE_GRID_LIST 			= '/api/loan/state/detail-grid-list';	// 목록
10
+const API_MOBILE_INFO 				= '/api/loan/state/info-loan-mng';		// 상세
11
+const API_MOBILE_HISTORY			= '/api/loan/state/hist-grid-list';		// 이력
12
+const API_POP_SEARCH_LIST			= '/api/store/pop-grid-list';
13
+
14
+const PAGE_MODE_LIST				= "LIST";
15
+const PAGE_MODE_VIEW				= "VIEW";
16
+
17
+let mobPageObj = {
18
+	viewMode: PAGE_MODE_LIST,
19
+	init: function () {
20
+		this.ui.init();
21
+		this.event.init();
22
+		this.ready();
23
+	},
24
+	ui: {
25
+		init: function () {
26
+			this.view();
27
+			this.info();
28
+		},
29
+		view: function() {
30
+			// 공통코드 표시
31
+			$('select').each(function() {
32
+				if($(this).data('select-code')) {
33
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
34
+				}
35
+			});
36
+		},
37
+		info: function() {
38
+			$('input:hidden[id$="_BRAND_ID"]').val(fn_make_user_info.get('brandId'));
39
+			$('input:hidden[id$="_STORE_ID"]').val(fn_make_user_info.get('storeId'));
40
+		}
41
+	},
42
+	event: {
43
+		init: function() {
44
+			this.button();
45
+		},
46
+		button: function() {
47
+			$('button[id^="ITP_BTN_MLOANMNG01010_LIST"]').on('click', function() {
48
+				var id = $(this).attr('id');
49
+				switch (id) {
50
+					case 'ITP_BTN_MLOANMNG01010_LIST_SEARCH_STORE_NM'	: mobPopObj.popStoreNm.init(); 		break;
51
+					case 'ITP_BTN_MLOANMNG01010_LIST_DELETE_STORE_NM'	: mobPopObj.popStoreNm.delete(); 	break;
52
+					case 'ITP_BTN_MLOANMNG01010_LIST_SEARCH'			: mobContentObj.list.search();		break;
53
+				}
54
+				return false;
55
+			});
56
+
57
+			$('button[id^="ITP_BTN_MLOANMNG01010_VIEW"]').on('click', function() {
58
+				var id = $(this).attr('id');
59
+				switch (id) {
60
+					case 'ITP_BTN_MLOANMNG01010_VIEW_SEARCH'		: mobContentObj.view.history.search();	break;
61
+					case 'ITP_BTN_MLOANMNG01010_VIEW_CANCEL_LIST'	: mobContentObj.view.cancel();			break;
62
+				}
63
+				return false;
64
+			});
65
+
66
+			$(document).on('click', '#ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWS li', function() {
67
+				var item = mobContentObj.list.rows[$(this).index()];
68
+				mobContentObj.view.init(item);
69
+			});
70
+
71
+			$(document).on('click', '#ITP_LIST_MLOANMNG01010_POP_STORE_ROWS li button', function() {
72
+				mobPopObj.popWhsNm.choice($(this));
73
+			});
74
+		}
75
+	},
76
+	switchScreen: function(mode) {
77
+		$('#ITP_MOBILE_MLOANMNG01010').find('div[id$="_CONTAINER"]').each(function(i) {
78
+			$(this).hide();
79
+		});
80
+		if(mode === PAGE_MODE_LIST) {
81
+			$('#ITP_AJAX_MLOANMNG01010_LIST_CONTAINER').show();
82
+			this.moreView(true);
83
+		} else if(mode === PAGE_MODE_VIEW) {
84
+			$('#ITP_AJAX_MLOANMNG01010_VIEW_CONTAINER').show();
85
+			this.moreView(false);
86
+		}
87
+		this.viewMode = mode;
88
+	},
89
+	moreView: function(isScroll) {
90
+		var _this = this;
91
+		if(isScroll) {
92
+			$('#ITP_LIST_MLOANMNG01010_LIST_ITEM_AREA').on('scroll', function () {
93
+				if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
94
+					if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
95
+						if(!mobContentObj.list.isSearch) {
96
+							mobContentObj.list.load();
97
+						}
98
+					}
99
+				}
100
+			});
101
+		} else {
102
+			$('#ITP_LIST_MLOANMNG01010_LIST_AREA').off('scroll');
103
+		}
104
+	},
105
+	ready: function() {
106
+		mobContentObj.list.init();
107
+	}
108
+};
109
+
110
+let mobContentObj = {
111
+	list: {
112
+		listSize: 10,
113
+		listPage: 0,
114
+		totPage: 0,
115
+		isSearch: false,
116
+		rows: [],
117
+		init: function() {
118
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
119
+			this.search();
120
+		},
121
+		search: function() {
122
+			this.listPage = 0;
123
+			this.totPage = 0;
124
+			this.rows.length = 0;
125
+			$('#ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWS').empty();
126
+			this.load();
127
+		},
128
+		load: function() {
129
+			var _this = this;
130
+			this.isSearch = true;
131
+			var callbackFn = function(result) {
132
+				console.log(result);
133
+				_this.isSearch = false;
134
+				_this.totPage = result.gridTotal;
135
+				$.each(result.gridRows, function (i, item) {
136
+					$('#ITP_LIST_MLOANMNG01010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWCOPY').html());
137
+					var $li = $('#ITP_LIST_MLOANMNG01010_LIST_ITEM_AREA .panel-group > .list-row:last');
138
+					$li.find('.fnStoreNm').text(item.storeNm);
139
+					$li.find('.fnLoanDvsnNm').text(item.loanDvsnNm);
140
+					var limitAmt;
141
+					if(item.loanDvsn == 'LD01') { // 선불(충전)
142
+						limitAmt = item.chrgeLimitAmt;
143
+					} else if(item.loanDvsn == 'LD02') { // 후불(신용)
144
+						limitAmt = item.credtLimitAmt;
145
+					}
146
+					$li.find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
147
+					$li.find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - item.useAmtTotal));
148
+					$li.find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(item.tmpRcvAcctTotal));
149
+					$li.find('.fnUseAmtTotal').text(CommonObj.currency.add(item.useAmtTotal));
150
+					$li.find('.fnUseYnNm').text(item.useYnNm);
151
+					_this.rows.push(item);
152
+				});
153
+			};
154
+			var errFn = function() { _this.isSearch = false;};
155
+			const param = $('#ITP_FORM_MLOANMNG01010_LIST_SEARCH').serializeObject();
156
+			param.gridPage = ++this.listPage;
157
+			param.gridSize = this.listSize
158
+			// console.log(JSON.stringify(param));
159
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
160
+		}
161
+	},
162
+	view: {
163
+		init: function(item) {
164
+			mobPageObj.switchScreen(PAGE_MODE_VIEW);
165
+			this.search(item);
166
+		},
167
+		search: function(item) {
168
+			var _this = this;
169
+			var callbackFn = function(result) {
170
+				console.log(result);
171
+				_this.view(result);
172
+			};
173
+			const param = {
174
+				'brandId': fn_make_user_info.get('brandId'),
175
+				'spplyId': fn_make_user_info.get('spplyId'),
176
+				'loanMgntUnqNo': item.loanMgntUnqNo
177
+			};
178
+			fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
179
+		},
180
+		view: function(result) {
181
+			var _this = this;
182
+			var id = '#ITP_AJAX_MLOANMNG01010_VIEW_CONTAINER';
183
+			$(id).find('.fnStoreNm').text(result.storeNm);
184
+			$(id).find('.fnLoanDvsnNm').text(result.loanDvsnNm);
185
+			var limitAmt;
186
+			if(result.loanDvsn == 'LD01') { // 선불(충전)
187
+				limitAmt = result.chrgeLimitAmt;
188
+			} else if(result.loanDvsn == 'LD02') { // 후불(신용)
189
+				limitAmt = result.credtLimitAmt;
190
+			}
191
+			$(id).find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
192
+			$(id).find('.fnUseYnNm').text(result.useYnNm);
193
+			$(id).find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - result.useAmtTotal));
194
+			$(id).find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(result.tmpRcvAcctTotal));
195
+			$(id).find('.fnUseAmtTotal').text(CommonObj.currency.add(result.useAmtTotal));
196
+			_this.history.init(result.loanMgntUnqNo);
197
+		},
198
+		history: {
199
+			rows: [],
200
+			init: function(loanMgntUnqNo) {
201
+				// 조회일자 지정
202
+				$('#ITP_FORM_MLOANMNG01010_VIEW_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
203
+				$('#ITP_FORM_MLOANMNG01010_VIEW_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
204
+				this.loanMgntUnqNo = loanMgntUnqNo;
205
+				this.search();
206
+			},
207
+			search: function() {
208
+				this.listPage = 0;
209
+				this.totPage = 0;
210
+				this.rows.length = 0;
211
+				$('#ITP_LIST_MLOANMNG01010_LIST_ITEM_ROWS').empty();
212
+				this.load();
213
+			},
214
+			load: function() {
215
+				var _this = this;
216
+				this.isSearch = true;
217
+				var callbackFn = function(result) {
218
+					console.log(result);
219
+					_this.isSearch = false;
220
+					_this.totPage = result.gridTotal;
221
+					$.each(result.gridRows, function (i, item) {
222
+						$('#ITP_LIST_MLOANMNG01010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG01010_VIEW_ITEM_ROWCOPY').html());
223
+						var $li = $('#ITP_LIST_MLOANMNG01010_VIEW_ITEM_AREA .panel-group > .list-row:last');
224
+						$li.find('.fnLoanRegDt').text(item.loanRegDt);
225
+						$li.find('.fnDpstPayDvsnNm').text(item.dpstPayDvsnNm);
226
+						$li.find('.fnDstpAmt').text(item.dstpAmt);
227
+						$li.find('.fnTrscAfBal').text(item.trscAfBal);
228
+						$li.find('.fnUse').text(item.use);
229
+						_this.rows.push(item);
230
+					});
231
+				};
232
+				var errFn = function() { _this.isSearch = false;};
233
+				const param = $('#ITP_FORM_MLOANMNG01010_VIEW_SEARCH').serializeObject();
234
+				param.gridPage = ++this.listPage;
235
+				param.gridSize = this.listSize;
236
+				param.sloanMgntUnqNo = _this.loanMgntUnqNo;
237
+				param.fromDt = param.fromDt.replace(/-/g, ".");
238
+				param.toDt = param.toDt.replace(/-/g, ".");
239
+				console.log(JSON.stringify(param));
240
+				fn_ajax_call(API_MOBILE_HISTORY, JSON.stringify(param), callbackFn, 'POST', errFn);
241
+			}
242
+		},
243
+		cancel: function () {
244
+			var id = '#ITP_AJAX_MLOANMNG01010_VIEW_CONTAINER';
245
+			$(id).find('.fnItemid').text('');
246
+			$(id).find('.fnItemNm').text('');
247
+			$(id).find('.fnUPodrQty').text('');
248
+			$(id).find('.fnUnitAmt').text('');
249
+			$(id).find('.fnUnit').text('');
250
+			$(id).find('.fnPodrQty').text('');
251
+			$(id).find('.fnPodrAmt').text('');
252
+			$(id).find('.fnDlvReqDt').text('');
253
+			$('#ITP_LIST_MLOANMNG01010_VIEW_ITEM_AREA .panel-group').empty();
254
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
255
+		}
256
+	}
257
+};
258
+
259
+let mobPopObj = {
260
+	popStoreNm: {
261
+		popId: 'ITP_POP_MLOANMNG01010_STORE_AREA',
262
+		rows: [],
263
+		init: function () {
264
+			this.rows.length = 0;
265
+			mobPopObj.show(this.popId);
266
+			this.search();
267
+			this.action();
268
+		},
269
+		search: function () {
270
+			var _this = this;
271
+			$('#ITP_LIST_MLOANMNG01010_POP_STORE_AREA .panel-group').empty();
272
+			var callbackFn = function(result) {
273
+				console.log(result);
274
+				_this.view(result.gridRows);
275
+			};
276
+			const param = $('#ITP_FORM_MLOANMNG01010_POP_STORE').serializeObject();
277
+			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
278
+		},
279
+		view: function(gridRows) {
280
+			this.rows = gridRows;
281
+			$.each(gridRows, function (i, item) {
282
+				$('#ITP_LIST_MLOANMNG01010_POP_STORE_AREA .panel-group').append($('#ITP_LIST_MLOANMNG01010_POP_STORE_ROWCOPY').html());
283
+				var $li = $('#ITP_LIST_MLOANMNG01010_POP_STORE_AREA .panel-group > .list-row:last');
284
+				$li.find('.fnStoreNm').text(item.storeNm);
285
+				$li.find('.fnStoreStNm').text(item.storeStNm);
286
+				$li.find('.fnStoreId').data('store-id', item.storeId);
287
+			});
288
+		},
289
+		choice: function(elem) {
290
+			var _this = this;
291
+			var storeId = $(elem).data('store-id');
292
+			$.each(this.rows, function (i, item) {
293
+				if(storeId === item.storeId) {
294
+					$('#ITP_FORM_MLOANMNG01010_LIST_SEARCH #ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_ID').val(item.storeId);
295
+					$('#ITP_FORM_MLOANMNG01010_LIST_SEARCH #ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_NM').val(item.storeNm);
296
+					_this.close();
297
+					return false;
298
+				}
299
+			});
300
+		},
301
+		action: function() {
302
+			var _this = this;
303
+			$('button[id^="ITP_BTN_MLOANMNG01010_POP_STORE"]').off('click').on('click', function() {
304
+				var id = $(this).attr('id');
305
+				switch (id) {
306
+					case 'ITP_BTN_MLOANMNG01010_POP_STORE_SEARCH'	: _this.search();			break;
307
+					case 'ITP_BTN_MLOANMNG01010_POP_STORE_CHOICE'	: _this.choice($(this)); 	break;
308
+					case 'ITP_BTN_MLOANMNG01010_POP_STORE_CLOSE'	: _this.close(); 			break;
309
+				}
310
+				return false;
311
+			});
312
+		},
313
+		delete: function() {
314
+			$('#ITP_FORM_MLOANMNG01010_LIST_SEARCH #ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_ID').val('');
315
+			$('#ITP_FORM_MLOANMNG01010_LIST_SEARCH #ITP_FORM_MLOANMNG01010_LIST_SEARCH_STORE_NM').val('');
316
+		},
317
+		close: function() {
318
+			this.rows.length = 0;
319
+			$('#ITP_POP_MLOANMNG01010_LIST_WHS_AREA .panel-group').empty();
320
+			$('#ITP_FORM_MLOANMNG01010_POP_STORE #ITP_FORM_MLOANMNG01010_POP_STORE_KEYWORD').val('');
321
+			mobPopObj.hide(this.popId);
322
+		}
323
+	},
324
+	show: function(popId) {
325
+		$('button[id$="_CLOSE"]').off('click').on('click', function() {
326
+			console.log($(this).attr('id'));
327
+			if($(this).hasClass('btn-pop-close')) {
328
+				mobPopObj.hide(popId);
329
+			}
330
+		});
331
+		$('#' + popId).show();
332
+	},
333
+	hide: function(popId) {
334
+		$('#' + popId).closest('.mobile-pop-close').hide();
335
+	}
336
+};

+ 487 - 0
src/main/webapp/mobile/js/app/mloanmng/ITP_MLOANMNG02010.js

@@ -0,0 +1,487 @@
1
+require(['config'], function() {
2
+	require([
3
+	], function($) {
4
+		mobPageObj.init();
5
+	});
6
+});
7
+
8
+/*API URL*/
9
+const API_MOBILE_GRID_LIST 			= '/api/dspt/mng/detail-grid-list';	// 목록
10
+const API_MOBILE_INFO 				= '/api/dspt/mng/info-dspt';		// 상세
11
+const API_MOBILE_DSPT_REQ			= '/api/dspt/mng/request-dspt';		// 신규/승인
12
+const API_MOBILE_DSPT_REJ			= '/api/dspt/mng/remove-dspt';		// 삭제/반려
13
+const API_MOBILE_APPROVE			= '/api/dspt/mng/approve-dspt';		// 승인
14
+const API_MOBILE_REJECT				= '/api/dspt/mng/reject-dspt';		// 반려
15
+const API_POP_SEARCH_LIST			= '/api/store/pop-grid-list';
16
+
17
+const PAGE_MODE_LIST				= "LIST";
18
+const PAGE_MODE_VIEW				= "VIEW";
19
+
20
+let mobPageObj = {
21
+	viewMode: PAGE_MODE_LIST,
22
+	init: function () {
23
+		this.ui.init();
24
+		this.event.init();
25
+		this.ready();
26
+	},
27
+	ui: {
28
+		init: function () {
29
+			this.view();
30
+			this.info();
31
+		},
32
+		view: function() {
33
+			// 공통코드 표시
34
+			$('select').each(function() {
35
+				if($(this).data('select-code')) {
36
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
37
+				}
38
+			});
39
+
40
+			// 조회일자 지정
41
+			$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
42
+			$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
43
+
44
+			console.log(fn_make_user_info.get('authTpCd'));
45
+			if(fn_make_user_info.get('authTpCd') === '50') {
46
+				$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val(fn_make_user_info.get('storeNm'));
47
+				$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').attr('readonly', true);
48
+				$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE').attr('disabled', true);
49
+				$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_BTN_MLOANMNG02010_LIST_DELETE_RTN_PLACE').attr('disabled', true);
50
+			}
51
+		},
52
+		info: function() {
53
+			$('input:hidden[id$="_BRAND_ID"]').val(fn_make_user_info.get('brandId'));
54
+			$('input:hidden[id$="_STORE_ID"]').val(fn_make_user_info.get('storeId'));
55
+		}
56
+	},
57
+	event: {
58
+		init: function() {
59
+			this.button();
60
+		},
61
+		button: function() {
62
+			$('button[id^="ITP_BTN_MLOANMNG02010_LIST"]').on('click', function() {
63
+				var id = $(this).attr('id');
64
+				switch (id) {
65
+					case 'ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE'	: mobPopObj.popStoreNm.init(); 		break;
66
+					case 'ITP_BTN_MLOANMNG02010_LIST_DELETE_RTN_PLACE'	: mobPopObj.popStoreNm.delete(); 	break;
67
+					case 'ITP_BTN_MLOANMNG02010_LIST_ADD'				: mobContentObj.list.add();		break;
68
+					case 'ITP_BTN_MLOANMNG02010_LIST_SEARCH'			: mobContentObj.list.search();		break;
69
+				}
70
+				return false;
71
+			});
72
+
73
+			$('button[id^="ITP_BTN_MLOANMNG02010_VIEW"]').on('click', function() {
74
+				var id = $(this).attr('id');
75
+				switch (id) {
76
+					case 'ITP_BTN_MLOANMNG02010_VIEW_SEARCH'		: mobContentObj.view.history.search();	break;
77
+					case 'ITP_BTN_MLOANMNG02010_VIEW_CANCEL_LIST'	: mobContentObj.view.cancel();			break;
78
+				}
79
+				return false;
80
+			});
81
+
82
+			$(document).on('click', '#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS li', function(e) {
83
+				var index = $(this).index();
84
+				if($(e.target).hasClass('AGR')) {
85
+					mobContentObj.list.agree(index);
86
+				} else if($(e.target).hasClass('RJT')) {
87
+					mobContentObj.list.reject(index);
88
+				} else {
89
+					// var item = mobContentObj.list.rows[index];
90
+					// mobContentObj.view.init(item);
91
+				}
92
+			});
93
+
94
+			$(document).on('click', '#ITP_LIST_MLOANMNG02010_POP_STORE_ROWS li button', function() {
95
+				mobPopObj.popWhsNm.choice($(this));
96
+			});
97
+		}
98
+	},
99
+	switchScreen: function(mode) {
100
+		$('#ITP_MOBILE_MLOANMNG02010').find('div[id$="_CONTAINER"]').each(function(i) {
101
+			$(this).hide();
102
+		});
103
+		if(mode === PAGE_MODE_LIST) {
104
+			$('#ITP_AJAX_MLOANMNG02010_LIST_CONTAINER').show();
105
+			this.moreView(true);
106
+		} else if(mode === PAGE_MODE_VIEW) {
107
+			$('#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER').show();
108
+			this.moreView(false);
109
+		}
110
+		this.viewMode = mode;
111
+	},
112
+	moreView: function(isScroll) {
113
+		var _this = this;
114
+		if(isScroll) {
115
+			$('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA').on('scroll', function () {
116
+				if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
117
+					if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
118
+						if(!mobContentObj.list.isSearch) {
119
+							mobContentObj.list.load();
120
+						}
121
+					}
122
+				}
123
+			});
124
+		} else {
125
+			$('#ITP_LIST_MLOANMNG02010_LIST_AREA').off('scroll');
126
+		}
127
+	},
128
+	ready: function() {
129
+		mobContentObj.list.init();
130
+	}
131
+};
132
+
133
+let mobContentObj = {
134
+	list: {
135
+		listSize: 10,
136
+		listPage: 0,
137
+		totPage: 0,
138
+		isSearch: false,
139
+		rows: [],
140
+		init: function() {
141
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
142
+			this.search();
143
+		},
144
+		search: function() {
145
+			this.listPage = 0;
146
+			this.totPage = 0;
147
+			this.rows.length = 0;
148
+			$('#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS').empty();
149
+			this.load();
150
+		},
151
+		load: function() {
152
+			var _this = this;
153
+			this.isSearch = true;
154
+			var callbackFn = function(result) {
155
+				console.log(result);
156
+				_this.isSearch = false;
157
+				_this.totPage = result.gridTotal;
158
+				$.each(result.gridRows, function (i, item) {
159
+					$('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWCOPY').html());
160
+					var $li = $('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
161
+					$li.find('.fnStoreNm').text(item.storeNm);
162
+					$li.find('.fnDpstDt').text(item.dpstDt);
163
+					$li.find('.fnDpstAmt').text(CommonObj.currency.add(item.dpstAmt));
164
+					$li.find('.fnDpstNm').text(item.dpstNm);
165
+					$li.find('.fnRcvAcctNo').text(item.rcvAcctNo);
166
+					$li.find('.fnDpstBnkNm').text(item.dpstBnkNm);
167
+					$li.find('.fnDpstStNm').text(item.dpstStNm);
168
+					var dpstDt = '';
169
+					if(item.dpstStCd === 'DP01') {
170
+						dpstDt = item.reqDt;
171
+						if(fn_make_user_info.get('authTpCd') === '40') {
172
+							$li.find('.btn-dpst').show();
173
+						}
174
+					} else if(item.dpstStCd === 'DP02') {
175
+						dpstDt = item.dpstDt;
176
+					} else if(item.dpstStCd === 'DP03') {
177
+						dpstDt = item.dsptRjctDt;
178
+					} else if(item.dpstStCd === 'DP04') {
179
+						dpstDt = item.dpstAuthDt;
180
+					}
181
+					$li.find('.fnDpstDt').text(dpstDt);
182
+					_this.rows.push(item);
183
+				});
184
+			};
185
+			var errFn = function() { _this.isSearch = false;};
186
+			const param = $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH').serializeObject();
187
+			param.gridPage = ++this.listPage;
188
+			param.gridSize = this.listSize
189
+			param.fromDt = param.fromDt.replace(/-/g, ".");
190
+			param.toDt = param.toDt.replace(/-/g, ".");
191
+			console.log(JSON.stringify(param));
192
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
193
+		},
194
+		add: function() {
195
+			var storeId = $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val();
196
+			if(storeId.length < 1) {
197
+				alert('신규입금 처리를 위한 매장을 선택하세요.');
198
+				return;
199
+			}
200
+			mobPopObj.popDpstReq.init();
201
+		},
202
+		agree: function(index) {
203
+			var item = this.rows[index];
204
+			console.log(item);
205
+			if(item.dpstStCd !== 'DP01') {
206
+				alert('입금요청 건만 승인처리를 할 수 있습니다.');
207
+				return;
208
+			}
209
+			if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
210
+				var param = {"dsptMgntNoList": [item.dsptMgntNo]};
211
+				fn_ajax_call(API_MOBILE_APPROVE, JSON.stringify(param), function() { mobContentObj.list.search(); }, 'POST');
212
+			}
213
+		},
214
+		reject: function(index) {
215
+			var item = this.rows[index];
216
+			console.log(item);
217
+			if(item.dpstStCd !== 'DP01') {
218
+				alert('입금요청 건만 반려처리를 할 수 있습니다.');
219
+				return;
220
+			}
221
+			mobPopObj.popDpstRjct.init(item.dsptMgntNo);
222
+		}
223
+	},
224
+	view: {
225
+		init: function(item) {
226
+			mobPageObj.switchScreen(PAGE_MODE_VIEW);
227
+			this.search(item);
228
+		},
229
+		search: function(item) {
230
+			var _this = this;
231
+			var callbackFn = function(result) {
232
+				console.log(result);
233
+				_this.view(result);
234
+			};
235
+			const param = {
236
+				'brandId': fn_make_user_info.get('brandId'),
237
+				'spplyId': fn_make_user_info.get('spplyId'),
238
+				'loanMgntUnqNo': item.loanMgntUnqNo
239
+			};
240
+			fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
241
+		},
242
+		view: function(result) {
243
+			var _this = this;
244
+			var id = '#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER';
245
+			$(id).find('.fnStoreNm').text(result.storeNm);
246
+			$(id).find('.fnLoanDvsnNm').text(result.loanDvsnNm);
247
+			var limitAmt;
248
+			if(result.loanDvsn == 'LD01') { // 선불(충전)
249
+				limitAmt = result.chrgeLimitAmt;
250
+			} else if(result.loanDvsn == 'LD02') { // 후불(신용)
251
+				limitAmt = result.credtLimitAmt;
252
+			}
253
+			$(id).find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
254
+			$(id).find('.fnUseYnNm').text(result.useYnNm);
255
+			$(id).find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - result.useAmtTotal));
256
+			$(id).find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(result.tmpRcvAcctTotal));
257
+			$(id).find('.fnUseAmtTotal').text(CommonObj.currency.add(result.useAmtTotal));
258
+			_this.history.init(result.loanMgntUnqNo);
259
+		},
260
+		history: {
261
+			rows: [],
262
+			init: function(loanMgntUnqNo) {
263
+				// 조회일자 지정
264
+				$('#ITP_FORM_MLOANMNG02010_VIEW_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
265
+				$('#ITP_FORM_MLOANMNG02010_VIEW_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
266
+				this.loanMgntUnqNo = loanMgntUnqNo;
267
+				this.search();
268
+			},
269
+			search: function() {
270
+				this.listPage = 0;
271
+				this.totPage = 0;
272
+				this.rows.length = 0;
273
+				$('#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS').empty();
274
+				this.load();
275
+			},
276
+			load: function() {
277
+				var _this = this;
278
+				this.isSearch = true;
279
+				var callbackFn = function(result) {
280
+					console.log(result);
281
+					_this.isSearch = false;
282
+					_this.totPage = result.gridTotal;
283
+					$.each(result.gridRows, function (i, item) {
284
+						$('#ITP_LIST_MLOANMNG02010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG02010_VIEW_ITEM_ROWCOPY').html());
285
+						var $li = $('#ITP_LIST_MLOANMNG02010_VIEW_ITEM_AREA .panel-group > .list-row:last');
286
+						$li.find('.fnLoanRegDt').text(item.loanRegDt);
287
+						$li.find('.fnDpstPayDvsnNm').text(item.dpstPayDvsnNm);
288
+						$li.find('.fnDstpAmt').text(item.dstpAmt);
289
+						$li.find('.fnTrscAfBal').text(item.trscAfBal);
290
+						$li.find('.fnUse').text(item.use);
291
+						_this.rows.push(item);
292
+					});
293
+				};
294
+				var errFn = function() { _this.isSearch = false;};
295
+				const param = $('#ITP_FORM_MLOANMNG02010_VIEW_SEARCH').serializeObject();
296
+				param.gridPage = ++this.listPage;
297
+				param.gridSize = this.listSize;
298
+				param.sloanMgntUnqNo = _this.loanMgntUnqNo;
299
+				param.fromDt = param.fromDt.replace(/-/g, ".");
300
+				param.toDt = param.toDt.replace(/-/g, ".");
301
+				console.log(JSON.stringify(param));
302
+				fn_ajax_call(API_MOBILE_HISTORY, JSON.stringify(param), callbackFn, 'POST', errFn);
303
+			}
304
+		},
305
+		cancel: function () {
306
+			var id = '#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER';
307
+			$(id).find('.fnItemid').text('');
308
+			$(id).find('.fnItemNm').text('');
309
+			$(id).find('.fnUPodrQty').text('');
310
+			$(id).find('.fnUnitAmt').text('');
311
+			$(id).find('.fnUnit').text('');
312
+			$(id).find('.fnPodrQty').text('');
313
+			$(id).find('.fnPodrAmt').text('');
314
+			$(id).find('.fnDlvReqDt').text('');
315
+			$('#ITP_LIST_MLOANMNG02010_VIEW_ITEM_AREA .panel-group').empty();
316
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
317
+		}
318
+	}
319
+};
320
+
321
+let mobPopObj = {
322
+	popStoreNm: {
323
+		popId: 'ITP_POP_MLOANMNG02010_STORE_AREA',
324
+		rows: [],
325
+		init: function () {
326
+			this.rows.length = 0;
327
+			mobPopObj.show(this.popId);
328
+			this.search();
329
+			this.action();
330
+		},
331
+		search: function () {
332
+			var _this = this;
333
+			$('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group').empty();
334
+			var callbackFn = function(result) {
335
+				console.log(result);
336
+				_this.view(result.gridRows);
337
+			};
338
+			const param = $('#ITP_FORM_MLOANMNG02010_POP_STORE').serializeObject();
339
+			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
340
+		},
341
+		view: function(gridRows) {
342
+			this.rows = gridRows;
343
+			$.each(gridRows, function (i, item) {
344
+				$('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group').append($('#ITP_LIST_MLOANMNG02010_POP_STORE_ROWCOPY').html());
345
+				var $li = $('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group > .list-row:last');
346
+				$li.find('.fnStoreNm').text(item.storeNm);
347
+				$li.find('.fnStoreStNm').text(item.storeStNm);
348
+				$li.find('.fnStoreId').data('store-id', item.storeId);
349
+			});
350
+		},
351
+		choice: function(elem) {
352
+			var _this = this;
353
+			var storeId = $(elem).data('store-id');
354
+			$.each(this.rows, function (i, item) {
355
+				if(storeId === item.storeId) {
356
+					$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val(item.storeId);
357
+					$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val(item.storeNm);
358
+					_this.close();
359
+					return false;
360
+				}
361
+			});
362
+		},
363
+		action: function() {
364
+			var _this = this;
365
+			$('button[id^="ITP_BTN_MLOANMNG02010_POP_STORE"]').off('click').on('click', function() {
366
+				var id = $(this).attr('id');
367
+				switch (id) {
368
+					case 'ITP_BTN_MLOANMNG02010_POP_STORE_SEARCH'	: _this.search();			break;
369
+					case 'ITP_BTN_MLOANMNG02010_POP_STORE_CHOICE'	: _this.choice($(this)); 	break;
370
+					case 'ITP_BTN_MLOANMNG02010_POP_STORE_CLOSE'	: _this.close(); 			break;
371
+				}
372
+				return false;
373
+			});
374
+		},
375
+		delete: function() {
376
+			$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val('');
377
+			$('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val('');
378
+		},
379
+		close: function() {
380
+			this.rows.length = 0;
381
+			$('#ITP_POP_MLOANMNG02010_LIST_WHS_AREA .panel-group').empty();
382
+			$('#ITP_FORM_MLOANMNG02010_POP_STORE #ITP_FORM_MLOANMNG02010_POP_STORE_KEYWORD').val('');
383
+			mobPopObj.hide(this.popId);
384
+		}
385
+	},
386
+	popDpstReq: {
387
+		popId: 'ITP_POP_MLOANMNG02010_DPST_REQ_AREA',
388
+		init: function() {
389
+			this.reset();
390
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_BRAND_NM').val(fn_make_user_info.get('brandNm'));
391
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_POP_FORM_MLOANMNG02010_DPST_REQ_STORE_ID').val($('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val());
392
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_NM').val($('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val());
393
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_DT').val(itp_fn_date_add('M', 0));
394
+			mobPopObj.show(this.popId);
395
+			this.action();
396
+		},
397
+		action: function() {
398
+			var _this = this;
399
+			$('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_ADD"]').off('click').on('click', function() {
400
+				_this.save();
401
+			});
402
+			$('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_CANCEL"]').off('click').on('click', function() {
403
+				_this.cancel();
404
+			});
405
+		},
406
+		save: function() {
407
+			var _this = this;
408
+			const formId = '#ITP_POP_FORM_MLOANMNG02010_DPST_REQ';
409
+			if (itp_fn_form_event.isValid(formId)) {
410
+				if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
411
+					var saveFn = function() {
412
+						_this.cancel();
413
+						mobContentObj.list.search();
414
+					};
415
+					var param = $(formId).serializeObject();
416
+					param.dpstDt = param.dpstDt.replace(/-/g, ".");
417
+					console.log(JSON.stringify(param));
418
+					fn_ajax_call(API_MOBILE_DSPT_REQ, JSON.stringify(param), saveFn, 'POST');
419
+				}
420
+			}
421
+		},
422
+		reset: function() {
423
+			itp_fn_form_clear_validate(null,  '#ITP_POP_FORM_MLOANMNG02010_DPST_REQ');
424
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_ID').val('');
425
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_BRAND_NM').val('');
426
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_NM').val('');
427
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_AMT').val('');
428
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_DT').val('');
429
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_NM').val('');
430
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_BNK').val('');
431
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_ACCT_NO').val('');
432
+		},
433
+		cancel: function() {
434
+			mobPopObj.hide(this.popId);
435
+		}
436
+	},
437
+	popDpstRjct: {
438
+		popId: 'ITP_POP_MLOANMNG02010_DPST_RJCT_AREA',
439
+		init: function(dsptMgntNo) {
440
+			this.reset();
441
+			this.action();
442
+			this.dsptMgntNo = dsptMgntNo;
443
+			mobPopObj.show(this.popId);
444
+		},
445
+		action: function() {
446
+			var _this = this;
447
+			$('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT"]').off('click').on('click', function() {
448
+				_this.save();
449
+			});
450
+		},
451
+		save: function() {
452
+			var _this = this;
453
+			var reason = $('#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT #ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_REASON').val();
454
+			if(reason.length < 1) {
455
+				alert('반려 사유를 입력해 주세요.');
456
+				return;
457
+			}
458
+			if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
459
+				var saveFn = function() {
460
+					_this.cancel();
461
+					mobContentObj.list.search();
462
+				};
463
+				var param = {'dsptMgntNoList': [_this.dsptMgntNo], 'dsptRjctRsn': reason};
464
+				fn_ajax_call(API_MOBILE_REJECT, JSON.stringify(param), saveFn, 'POST');
465
+			}
466
+		},
467
+		reset: function() {
468
+			itp_fn_form_clear_validate(null,  '#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT');
469
+			$('#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT #ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_REASON').val('');
470
+		},
471
+		cancel: function() {
472
+			mobPopObj.hide(this.popId);
473
+		}
474
+	},
475
+	show: function(popId) {
476
+		$('button[id$="_CLOSE"]').off('click').on('click', function() {
477
+			console.log($(this).attr('id'));
478
+			if($(this).hasClass('btn-pop-close')) {
479
+				mobPopObj.hide(popId);
480
+			}
481
+		});
482
+		$('#' + popId).show();
483
+	},
484
+	hide: function(popId) {
485
+		$('#' + popId).closest('.mobile-pop-close').hide();
486
+	}
487
+};

+ 340 - 0
src/main/webapp/mobile/js/app/mloanmng/ITP_MLOANMNG03010.js

@@ -0,0 +1,340 @@
1
+require(['config'], function() {
2
+	require([
3
+	], function($) {
4
+		mobPageObj.init();
5
+	});
6
+});
7
+
8
+/*API URL*/
9
+const API_MOBILE_GRID_LIST 			= '/api/unpaid/mng/detail-grid-list';	// 목록
10
+const API_MOBILE_INFO 				= '/api/unpaid/mng/info-unpaid';		// 상세
11
+const API_MOBILE_HISTORY			= '/api/unpaid/mng/stl-grid-list';		// 이력
12
+const API_POP_SEARCH_LIST			= '/api/store/pop-grid-list';
13
+
14
+const PAGE_MODE_LIST				= "LIST";
15
+const PAGE_MODE_VIEW				= "VIEW";
16
+
17
+let mobPageObj = {
18
+	viewMode: PAGE_MODE_LIST,
19
+	init: function () {
20
+		this.ui.init();
21
+		this.event.init();
22
+		this.ready();
23
+	},
24
+	ui: {
25
+		init: function () {
26
+			this.view();
27
+			this.info();
28
+		},
29
+		view: function() {
30
+			// 공통코드 표시
31
+			$('select').each(function() {
32
+				if($(this).data('select-code')) {
33
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
34
+				}
35
+			});
36
+
37
+			// 조회일자 지정
38
+			$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
39
+			$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
40
+		},
41
+		info: function() {
42
+			$('input:hidden[id$="_BRAND_ID"]').val(fn_make_user_info.get('brandId'));
43
+			$('input:hidden[id$="_STORE_ID"]').val(fn_make_user_info.get('storeId'));
44
+		}
45
+	},
46
+	event: {
47
+		init: function() {
48
+			this.button();
49
+		},
50
+		button: function() {
51
+			$('button[id^="ITP_BTN_MLOANMNG03010_LIST"]').on('click', function() {
52
+				var id = $(this).attr('id');
53
+				switch (id) {
54
+					case 'ITP_BTN_MLOANMNG03010_LIST_SEARCH_STORE_NM'	: mobPopObj.popStoreNm.init(); 		break;
55
+					case 'ITP_BTN_MLOANMNG03010_LIST_DELETE_STORE_NM'	: mobPopObj.popStoreNm.delete(); 	break;
56
+					case 'ITP_BTN_MLOANMNG03010_LIST_SEARCH'			: mobContentObj.list.search();		break;
57
+				}
58
+				return false;
59
+			});
60
+
61
+			$('button[id^="ITP_BTN_MLOANMNG03010_VIEW"]').on('click', function() {
62
+				var id = $(this).attr('id');
63
+				switch (id) {
64
+					case 'ITP_BTN_MLOANMNG03010_VIEW_SEARCH'		: mobContentObj.view.history.search();	break;
65
+					case 'ITP_BTN_MLOANMNG03010_VIEW_CANCEL_LIST'	: mobContentObj.view.cancel();			break;
66
+				}
67
+				return false;
68
+			});
69
+
70
+			$(document).on('click', '#ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWS li', function() {
71
+				var item = mobContentObj.list.rows[$(this).index()];
72
+				mobContentObj.view.init(item);
73
+			});
74
+
75
+			$(document).on('click', '#ITP_LIST_MLOANMNG03010_POP_STORE_ROWS li button', function() {
76
+				mobPopObj.popWhsNm.choice($(this));
77
+			});
78
+		}
79
+	},
80
+	switchScreen: function(mode) {
81
+		$('#ITP_MOBILE_MLOANMNG03010').find('div[id$="_CONTAINER"]').each(function(i) {
82
+			$(this).hide();
83
+		});
84
+		if(mode === PAGE_MODE_LIST) {
85
+			$('#ITP_AJAX_MLOANMNG03010_LIST_CONTAINER').show();
86
+			this.moreView(true);
87
+		} else if(mode === PAGE_MODE_VIEW) {
88
+			$('#ITP_AJAX_MLOANMNG03010_VIEW_CONTAINER').show();
89
+			this.moreView(false);
90
+		}
91
+		this.viewMode = mode;
92
+	},
93
+	moreView: function(isScroll) {
94
+		var _this = this;
95
+		if(isScroll) {
96
+			$('#ITP_LIST_MLOANMNG03010_LIST_ITEM_AREA').on('scroll', function () {
97
+				if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
98
+					if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
99
+						if(!mobContentObj.list.isSearch) {
100
+							mobContentObj.list.load();
101
+						}
102
+					}
103
+				}
104
+			});
105
+		} else {
106
+			$('#ITP_LIST_MLOANMNG03010_LIST_AREA').off('scroll');
107
+		}
108
+	},
109
+	ready: function() {
110
+		mobContentObj.list.init();
111
+	}
112
+};
113
+
114
+let mobContentObj = {
115
+	list: {
116
+		listSize: 10,
117
+		listPage: 0,
118
+		totPage: 0,
119
+		isSearch: false,
120
+		rows: [],
121
+		init: function() {
122
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
123
+			this.search();
124
+		},
125
+		search: function() {
126
+			this.listPage = 0;
127
+			this.totPage = 0;
128
+			this.rows.length = 0;
129
+			$('#ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWS').empty();
130
+			this.load();
131
+		},
132
+		load: function() {
133
+			var _this = this;
134
+			this.isSearch = true;
135
+			var callbackFn = function(result) {
136
+				console.log(result);
137
+				_this.isSearch = false;
138
+				_this.totPage = result.gridTotal;
139
+				$.each(result.gridRows, function (i, item) {
140
+					$('#ITP_LIST_MLOANMNG03010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWCOPY').html());
141
+					var $li = $('#ITP_LIST_MLOANMNG03010_LIST_ITEM_AREA .panel-group > .list-row:last');
142
+					$li.find('.fnStoreNm').text(item.storeNm);
143
+					$li.find('.fnLoanDvsnNm').text(item.loanDvsnNm);
144
+					var limitAmt;
145
+					if(item.loanDvsn == 'LD01') { // 선불(충전)
146
+						limitAmt = item.chrgeLimitAmt;
147
+					} else if(item.loanDvsn == 'LD02') { // 후불(신용)
148
+						limitAmt = item.credtLimitAmt;
149
+					}
150
+					$li.find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
151
+					$li.find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - item.useAmtTotal));
152
+					$li.find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(item.tmpRcvAcctTotal));
153
+					$li.find('.fnUseAmtTotal').text(CommonObj.currency.add(item.useAmtTotal));
154
+					$li.find('.fnUseYnNm').text(item.useYnNm);
155
+					_this.rows.push(item);
156
+				});
157
+			};
158
+			var errFn = function() { _this.isSearch = false;};
159
+			const param = $('#ITP_FORM_MLOANMNG03010_LIST_SEARCH').serializeObject();
160
+			param.gridPage = ++this.listPage;
161
+			param.gridSize = this.listSize
162
+			// console.log(JSON.stringify(param));
163
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
164
+		}
165
+	},
166
+	view: {
167
+		init: function(item) {
168
+			mobPageObj.switchScreen(PAGE_MODE_VIEW);
169
+			this.search(item);
170
+		},
171
+		search: function(item) {
172
+			var _this = this;
173
+			var callbackFn = function(result) {
174
+				console.log(result);
175
+				_this.view(result);
176
+			};
177
+			const param = {
178
+				'brandId': fn_make_user_info.get('brandId'),
179
+				'spplyId': fn_make_user_info.get('spplyId'),
180
+				'loanMgntUnqNo': item.loanMgntUnqNo
181
+			};
182
+			fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
183
+		},
184
+		view: function(result) {
185
+			var _this = this;
186
+			var id = '#ITP_AJAX_MLOANMNG03010_VIEW_CONTAINER';
187
+			$(id).find('.fnStoreNm').text(result.storeNm);
188
+			$(id).find('.fnLoanDvsnNm').text(result.loanDvsnNm);
189
+			var limitAmt;
190
+			if(result.loanDvsn == 'LD01') { // 선불(충전)
191
+				limitAmt = result.chrgeLimitAmt;
192
+			} else if(result.loanDvsn == 'LD02') { // 후불(신용)
193
+				limitAmt = result.credtLimitAmt;
194
+			}
195
+			$(id).find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
196
+			$(id).find('.fnUseYnNm').text(result.useYnNm);
197
+			$(id).find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - result.useAmtTotal));
198
+			$(id).find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(result.tmpRcvAcctTotal));
199
+			$(id).find('.fnUseAmtTotal').text(CommonObj.currency.add(result.useAmtTotal));
200
+			_this.history.init(result.loanMgntUnqNo);
201
+		},
202
+		history: {
203
+			rows: [],
204
+			init: function(loanMgntUnqNo) {
205
+				// 조회일자 지정
206
+				$('#ITP_FORM_MLOANMNG03010_VIEW_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
207
+				$('#ITP_FORM_MLOANMNG03010_VIEW_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
208
+				this.loanMgntUnqNo = loanMgntUnqNo;
209
+				this.search();
210
+			},
211
+			search: function() {
212
+				this.listPage = 0;
213
+				this.totPage = 0;
214
+				this.rows.length = 0;
215
+				$('#ITP_LIST_MLOANMNG03010_LIST_ITEM_ROWS').empty();
216
+				this.load();
217
+			},
218
+			load: function() {
219
+				var _this = this;
220
+				this.isSearch = true;
221
+				var callbackFn = function(result) {
222
+					console.log(result);
223
+					_this.isSearch = false;
224
+					_this.totPage = result.gridTotal;
225
+					$.each(result.gridRows, function (i, item) {
226
+						$('#ITP_LIST_MLOANMNG03010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG03010_VIEW_ITEM_ROWCOPY').html());
227
+						var $li = $('#ITP_LIST_MLOANMNG03010_VIEW_ITEM_AREA .panel-group > .list-row:last');
228
+						$li.find('.fnLoanRegDt').text(item.loanRegDt);
229
+						$li.find('.fnDpstPayDvsnNm').text(item.dpstPayDvsnNm);
230
+						$li.find('.fnDstpAmt').text(item.dstpAmt);
231
+						$li.find('.fnTrscAfBal').text(item.trscAfBal);
232
+						$li.find('.fnUse').text(item.use);
233
+						_this.rows.push(item);
234
+					});
235
+				};
236
+				var errFn = function() { _this.isSearch = false;};
237
+				const param = $('#ITP_FORM_MLOANMNG03010_VIEW_SEARCH').serializeObject();
238
+				param.gridPage = ++this.listPage;
239
+				param.gridSize = this.listSize;
240
+				param.sloanMgntUnqNo = _this.loanMgntUnqNo;
241
+				param.fromDt = param.fromDt.replace(/-/g, ".");
242
+				param.toDt = param.toDt.replace(/-/g, ".");
243
+				console.log(JSON.stringify(param));
244
+				fn_ajax_call(API_MOBILE_HISTORY, JSON.stringify(param), callbackFn, 'POST', errFn);
245
+			}
246
+		},
247
+		cancel: function () {
248
+			var id = '#ITP_AJAX_MLOANMNG03010_VIEW_CONTAINER';
249
+			$(id).find('.fnItemid').text('');
250
+			$(id).find('.fnItemNm').text('');
251
+			$(id).find('.fnUPodrQty').text('');
252
+			$(id).find('.fnUnitAmt').text('');
253
+			$(id).find('.fnUnit').text('');
254
+			$(id).find('.fnPodrQty').text('');
255
+			$(id).find('.fnPodrAmt').text('');
256
+			$(id).find('.fnDlvReqDt').text('');
257
+			$('#ITP_LIST_MLOANMNG03010_VIEW_ITEM_AREA .panel-group').empty();
258
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
259
+		}
260
+	}
261
+};
262
+
263
+let mobPopObj = {
264
+	popStoreNm: {
265
+		popId: 'ITP_POP_MLOANMNG03010_STORE_AREA',
266
+		rows: [],
267
+		init: function () {
268
+			this.rows.length = 0;
269
+			mobPopObj.show(this.popId);
270
+			this.search();
271
+			this.action();
272
+		},
273
+		search: function () {
274
+			var _this = this;
275
+			$('#ITP_LIST_MLOANMNG03010_POP_STORE_AREA .panel-group').empty();
276
+			var callbackFn = function(result) {
277
+				console.log(result);
278
+				_this.view(result.gridRows);
279
+			};
280
+			const param = $('#ITP_FORM_MLOANMNG03010_POP_STORE').serializeObject();
281
+			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
282
+		},
283
+		view: function(gridRows) {
284
+			this.rows = gridRows;
285
+			$.each(gridRows, function (i, item) {
286
+				$('#ITP_LIST_MLOANMNG03010_POP_STORE_AREA .panel-group').append($('#ITP_LIST_MLOANMNG03010_POP_STORE_ROWCOPY').html());
287
+				var $li = $('#ITP_LIST_MLOANMNG03010_POP_STORE_AREA .panel-group > .list-row:last');
288
+				$li.find('.fnStoreNm').text(item.storeNm);
289
+				$li.find('.fnStoreStNm').text(item.storeStNm);
290
+				$li.find('.fnStoreId').data('store-id', item.storeId);
291
+			});
292
+		},
293
+		choice: function(elem) {
294
+			var _this = this;
295
+			var storeId = $(elem).data('store-id');
296
+			$.each(this.rows, function (i, item) {
297
+				if(storeId === item.storeId) {
298
+					$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH #ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_ID').val(item.storeId);
299
+					$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH #ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_NM').val(item.storeNm);
300
+					_this.close();
301
+					return false;
302
+				}
303
+			});
304
+		},
305
+		action: function() {
306
+			var _this = this;
307
+			$('button[id^="ITP_BTN_MLOANMNG03010_POP_STORE"]').off('click').on('click', function() {
308
+				var id = $(this).attr('id');
309
+				switch (id) {
310
+					case 'ITP_BTN_MLOANMNG03010_POP_STORE_SEARCH'	: _this.search();			break;
311
+					case 'ITP_BTN_MLOANMNG03010_POP_STORE_CHOICE'	: _this.choice($(this)); 	break;
312
+					case 'ITP_BTN_MLOANMNG03010_POP_STORE_CLOSE'	: _this.close(); 			break;
313
+				}
314
+				return false;
315
+			});
316
+		},
317
+		delete: function() {
318
+			$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH #ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_ID').val('');
319
+			$('#ITP_FORM_MLOANMNG03010_LIST_SEARCH #ITP_FORM_MLOANMNG03010_LIST_SEARCH_STORE_NM').val('');
320
+		},
321
+		close: function() {
322
+			this.rows.length = 0;
323
+			$('#ITP_POP_MLOANMNG03010_LIST_WHS_AREA .panel-group').empty();
324
+			$('#ITP_FORM_MLOANMNG03010_POP_STORE #ITP_FORM_MLOANMNG03010_POP_STORE_KEYWORD').val('');
325
+			mobPopObj.hide(this.popId);
326
+		}
327
+	},
328
+	show: function(popId) {
329
+		$('button[id$="_CLOSE"]').off('click').on('click', function() {
330
+			console.log($(this).attr('id'));
331
+			if($(this).hasClass('btn-pop-close')) {
332
+				mobPopObj.hide(popId);
333
+			}
334
+		});
335
+		$('#' + popId).show();
336
+	},
337
+	hide: function(popId) {
338
+		$('#' + popId).closest('.mobile-pop-close').hide();
339
+	}
340
+};

+ 340 - 0
src/main/webapp/mobile/js/app/mstockmng/ITP_MSTOCKMNG01010.js

@@ -0,0 +1,340 @@
1
+require(['config'], function() {
2
+	require([
3
+	], function($) {
4
+		mobPageObj.init();
5
+	});
6
+});
7
+
8
+/*API URL*/
9
+const API_MOBILE_GRID_LIST 			= '/api/unpaid/mng/detail-grid-list';	// 목록
10
+const API_MOBILE_INFO 				= '/api/unpaid/mng/info-unpaid';		// 상세
11
+const API_MOBILE_HISTORY			= '/api/unpaid/mng/stl-grid-list';		// 이력
12
+const API_POP_SEARCH_LIST			= '/api/store/pop-grid-list';
13
+
14
+const PAGE_MODE_LIST				= "LIST";
15
+const PAGE_MODE_VIEW				= "VIEW";
16
+
17
+let mobPageObj = {
18
+	viewMode: PAGE_MODE_LIST,
19
+	init: function () {
20
+		this.ui.init();
21
+		this.event.init();
22
+		this.ready();
23
+	},
24
+	ui: {
25
+		init: function () {
26
+			this.view();
27
+			this.info();
28
+		},
29
+		view: function() {
30
+			// 공통코드 표시
31
+			$('select').each(function() {
32
+				if($(this).data('select-code')) {
33
+					fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
34
+				}
35
+			});
36
+
37
+			// 조회일자 지정
38
+			$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
39
+			$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
40
+		},
41
+		info: function() {
42
+			$('input:hidden[id$="_BRAND_ID"]').val(fn_make_user_info.get('brandId'));
43
+			$('input:hidden[id$="_STORE_ID"]').val(fn_make_user_info.get('storeId'));
44
+		}
45
+	},
46
+	event: {
47
+		init: function() {
48
+			this.button();
49
+		},
50
+		button: function() {
51
+			$('button[id^="ITP_BTN_MSTOCKMNG01010_LIST"]').on('click', function() {
52
+				var id = $(this).attr('id');
53
+				switch (id) {
54
+					case 'ITP_BTN_MSTOCKMNG01010_LIST_SEARCH_STORE_NM'	: mobPopObj.popStoreNm.init(); 		break;
55
+					case 'ITP_BTN_MSTOCKMNG01010_LIST_DELETE_STORE_NM'	: mobPopObj.popStoreNm.delete(); 	break;
56
+					case 'ITP_BTN_MSTOCKMNG01010_LIST_SEARCH'			: mobContentObj.list.search();		break;
57
+				}
58
+				return false;
59
+			});
60
+
61
+			$('button[id^="ITP_BTN_MSTOCKMNG01010_VIEW"]').on('click', function() {
62
+				var id = $(this).attr('id');
63
+				switch (id) {
64
+					case 'ITP_BTN_MSTOCKMNG01010_VIEW_SEARCH'		: mobContentObj.view.history.search();	break;
65
+					case 'ITP_BTN_MSTOCKMNG01010_VIEW_CANCEL_LIST'	: mobContentObj.view.cancel();			break;
66
+				}
67
+				return false;
68
+			});
69
+
70
+			$(document).on('click', '#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_ROWS li', function() {
71
+				var item = mobContentObj.list.rows[$(this).index()];
72
+				mobContentObj.view.init(item);
73
+			});
74
+
75
+			$(document).on('click', '#ITP_LIST_MSTOCKMNG01010_POP_STORE_ROWS li button', function() {
76
+				mobPopObj.popWhsNm.choice($(this));
77
+			});
78
+		}
79
+	},
80
+	switchScreen: function(mode) {
81
+		$('#ITP_MOBILE_MSTOCKMNG01010').find('div[id$="_CONTAINER"]').each(function(i) {
82
+			$(this).hide();
83
+		});
84
+		if(mode === PAGE_MODE_LIST) {
85
+			$('#ITP_AJAX_MSTOCKMNG01010_LIST_CONTAINER').show();
86
+			this.moreView(true);
87
+		} else if(mode === PAGE_MODE_VIEW) {
88
+			$('#ITP_AJAX_MSTOCKMNG01010_VIEW_CONTAINER').show();
89
+			this.moreView(false);
90
+		}
91
+		this.viewMode = mode;
92
+	},
93
+	moreView: function(isScroll) {
94
+		var _this = this;
95
+		if(isScroll) {
96
+			$('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_AREA').on('scroll', function () {
97
+				if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
98
+					if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
99
+						if(!mobContentObj.list.isSearch) {
100
+							mobContentObj.list.load();
101
+						}
102
+					}
103
+				}
104
+			});
105
+		} else {
106
+			$('#ITP_LIST_MSTOCKMNG01010_LIST_AREA').off('scroll');
107
+		}
108
+	},
109
+	ready: function() {
110
+		mobContentObj.list.init();
111
+	}
112
+};
113
+
114
+let mobContentObj = {
115
+	list: {
116
+		listSize: 10,
117
+		listPage: 0,
118
+		totPage: 0,
119
+		isSearch: false,
120
+		rows: [],
121
+		init: function() {
122
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
123
+			this.search();
124
+		},
125
+		search: function() {
126
+			this.listPage = 0;
127
+			this.totPage = 0;
128
+			this.rows.length = 0;
129
+			$('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_ROWS').empty();
130
+			this.load();
131
+		},
132
+		load: function() {
133
+			var _this = this;
134
+			this.isSearch = true;
135
+			var callbackFn = function(result) {
136
+				console.log(result);
137
+				_this.isSearch = false;
138
+				_this.totPage = result.gridTotal;
139
+				$.each(result.gridRows, function (i, item) {
140
+					$('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_ROWCOPY').html());
141
+					var $li = $('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_AREA .panel-group > .list-row:last');
142
+					$li.find('.fnStoreNm').text(item.storeNm);
143
+					$li.find('.fnLoanDvsnNm').text(item.loanDvsnNm);
144
+					var limitAmt;
145
+					if(item.loanDvsn == 'LD01') { // 선불(충전)
146
+						limitAmt = item.chrgeLimitAmt;
147
+					} else if(item.loanDvsn == 'LD02') { // 후불(신용)
148
+						limitAmt = item.credtLimitAmt;
149
+					}
150
+					$li.find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
151
+					$li.find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - item.useAmtTotal));
152
+					$li.find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(item.tmpRcvAcctTotal));
153
+					$li.find('.fnUseAmtTotal').text(CommonObj.currency.add(item.useAmtTotal));
154
+					$li.find('.fnUseYnNm').text(item.useYnNm);
155
+					_this.rows.push(item);
156
+				});
157
+			};
158
+			var errFn = function() { _this.isSearch = false;};
159
+			const param = $('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH').serializeObject();
160
+			param.gridPage = ++this.listPage;
161
+			param.gridSize = this.listSize
162
+			// console.log(JSON.stringify(param));
163
+			fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
164
+		}
165
+	},
166
+	view: {
167
+		init: function(item) {
168
+			mobPageObj.switchScreen(PAGE_MODE_VIEW);
169
+			this.search(item);
170
+		},
171
+		search: function(item) {
172
+			var _this = this;
173
+			var callbackFn = function(result) {
174
+				console.log(result);
175
+				_this.view(result);
176
+			};
177
+			const param = {
178
+				'brandId': fn_make_user_info.get('brandId'),
179
+				'spplyId': fn_make_user_info.get('spplyId'),
180
+				'loanMgntUnqNo': item.loanMgntUnqNo
181
+			};
182
+			fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
183
+		},
184
+		view: function(result) {
185
+			var _this = this;
186
+			var id = '#ITP_AJAX_MSTOCKMNG01010_VIEW_CONTAINER';
187
+			$(id).find('.fnStoreNm').text(result.storeNm);
188
+			$(id).find('.fnLoanDvsnNm').text(result.loanDvsnNm);
189
+			var limitAmt;
190
+			if(result.loanDvsn == 'LD01') { // 선불(충전)
191
+				limitAmt = result.chrgeLimitAmt;
192
+			} else if(result.loanDvsn == 'LD02') { // 후불(신용)
193
+				limitAmt = result.credtLimitAmt;
194
+			}
195
+			$(id).find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
196
+			$(id).find('.fnUseYnNm').text(result.useYnNm);
197
+			$(id).find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - result.useAmtTotal));
198
+			$(id).find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(result.tmpRcvAcctTotal));
199
+			$(id).find('.fnUseAmtTotal').text(CommonObj.currency.add(result.useAmtTotal));
200
+			_this.history.init(result.loanMgntUnqNo);
201
+		},
202
+		history: {
203
+			rows: [],
204
+			init: function(loanMgntUnqNo) {
205
+				// 조회일자 지정
206
+				$('#ITP_FORM_MSTOCKMNG01010_VIEW_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
207
+				$('#ITP_FORM_MSTOCKMNG01010_VIEW_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
208
+				this.loanMgntUnqNo = loanMgntUnqNo;
209
+				this.search();
210
+			},
211
+			search: function() {
212
+				this.listPage = 0;
213
+				this.totPage = 0;
214
+				this.rows.length = 0;
215
+				$('#ITP_LIST_MSTOCKMNG01010_LIST_ITEM_ROWS').empty();
216
+				this.load();
217
+			},
218
+			load: function() {
219
+				var _this = this;
220
+				this.isSearch = true;
221
+				var callbackFn = function(result) {
222
+					console.log(result);
223
+					_this.isSearch = false;
224
+					_this.totPage = result.gridTotal;
225
+					$.each(result.gridRows, function (i, item) {
226
+						$('#ITP_LIST_MSTOCKMNG01010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MSTOCKMNG01010_VIEW_ITEM_ROWCOPY').html());
227
+						var $li = $('#ITP_LIST_MSTOCKMNG01010_VIEW_ITEM_AREA .panel-group > .list-row:last');
228
+						$li.find('.fnLoanRegDt').text(item.loanRegDt);
229
+						$li.find('.fnDpstPayDvsnNm').text(item.dpstPayDvsnNm);
230
+						$li.find('.fnDstpAmt').text(item.dstpAmt);
231
+						$li.find('.fnTrscAfBal').text(item.trscAfBal);
232
+						$li.find('.fnUse').text(item.use);
233
+						_this.rows.push(item);
234
+					});
235
+				};
236
+				var errFn = function() { _this.isSearch = false;};
237
+				const param = $('#ITP_FORM_MSTOCKMNG01010_VIEW_SEARCH').serializeObject();
238
+				param.gridPage = ++this.listPage;
239
+				param.gridSize = this.listSize;
240
+				param.sloanMgntUnqNo = _this.loanMgntUnqNo;
241
+				param.fromDt = param.fromDt.replace(/-/g, ".");
242
+				param.toDt = param.toDt.replace(/-/g, ".");
243
+				console.log(JSON.stringify(param));
244
+				fn_ajax_call(API_MOBILE_HISTORY, JSON.stringify(param), callbackFn, 'POST', errFn);
245
+			}
246
+		},
247
+		cancel: function () {
248
+			var id = '#ITP_AJAX_MSTOCKMNG01010_VIEW_CONTAINER';
249
+			$(id).find('.fnItemid').text('');
250
+			$(id).find('.fnItemNm').text('');
251
+			$(id).find('.fnUPodrQty').text('');
252
+			$(id).find('.fnUnitAmt').text('');
253
+			$(id).find('.fnUnit').text('');
254
+			$(id).find('.fnPodrQty').text('');
255
+			$(id).find('.fnPodrAmt').text('');
256
+			$(id).find('.fnDlvReqDt').text('');
257
+			$('#ITP_LIST_MSTOCKMNG01010_VIEW_ITEM_AREA .panel-group').empty();
258
+			mobPageObj.switchScreen(PAGE_MODE_LIST);
259
+		}
260
+	}
261
+};
262
+
263
+let mobPopObj = {
264
+	popStoreNm: {
265
+		popId: 'ITP_POP_MSTOCKMNG01010_STORE_AREA',
266
+		rows: [],
267
+		init: function () {
268
+			this.rows.length = 0;
269
+			mobPopObj.show(this.popId);
270
+			this.search();
271
+			this.action();
272
+		},
273
+		search: function () {
274
+			var _this = this;
275
+			$('#ITP_LIST_MSTOCKMNG01010_POP_STORE_AREA .panel-group').empty();
276
+			var callbackFn = function(result) {
277
+				console.log(result);
278
+				_this.view(result.gridRows);
279
+			};
280
+			const param = $('#ITP_FORM_MSTOCKMNG01010_POP_STORE').serializeObject();
281
+			fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
282
+		},
283
+		view: function(gridRows) {
284
+			this.rows = gridRows;
285
+			$.each(gridRows, function (i, item) {
286
+				$('#ITP_LIST_MSTOCKMNG01010_POP_STORE_AREA .panel-group').append($('#ITP_LIST_MSTOCKMNG01010_POP_STORE_ROWCOPY').html());
287
+				var $li = $('#ITP_LIST_MSTOCKMNG01010_POP_STORE_AREA .panel-group > .list-row:last');
288
+				$li.find('.fnStoreNm').text(item.storeNm);
289
+				$li.find('.fnStoreStNm').text(item.storeStNm);
290
+				$li.find('.fnStoreId').data('store-id', item.storeId);
291
+			});
292
+		},
293
+		choice: function(elem) {
294
+			var _this = this;
295
+			var storeId = $(elem).data('store-id');
296
+			$.each(this.rows, function (i, item) {
297
+				if(storeId === item.storeId) {
298
+					$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH #ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_STORE_ID').val(item.storeId);
299
+					$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH #ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_STORE_NM').val(item.storeNm);
300
+					_this.close();
301
+					return false;
302
+				}
303
+			});
304
+		},
305
+		action: function() {
306
+			var _this = this;
307
+			$('button[id^="ITP_BTN_MSTOCKMNG01010_POP_STORE"]').off('click').on('click', function() {
308
+				var id = $(this).attr('id');
309
+				switch (id) {
310
+					case 'ITP_BTN_MSTOCKMNG01010_POP_STORE_SEARCH'	: _this.search();			break;
311
+					case 'ITP_BTN_MSTOCKMNG01010_POP_STORE_CHOICE'	: _this.choice($(this)); 	break;
312
+					case 'ITP_BTN_MSTOCKMNG01010_POP_STORE_CLOSE'	: _this.close(); 			break;
313
+				}
314
+				return false;
315
+			});
316
+		},
317
+		delete: function() {
318
+			$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH #ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_STORE_ID').val('');
319
+			$('#ITP_FORM_MSTOCKMNG01010_LIST_SEARCH #ITP_FORM_MSTOCKMNG01010_LIST_SEARCH_STORE_NM').val('');
320
+		},
321
+		close: function() {
322
+			this.rows.length = 0;
323
+			$('#ITP_POP_MSTOCKMNG01010_LIST_WHS_AREA .panel-group').empty();
324
+			$('#ITP_FORM_MSTOCKMNG01010_POP_STORE #ITP_FORM_MSTOCKMNG01010_POP_STORE_KEYWORD').val('');
325
+			mobPopObj.hide(this.popId);
326
+		}
327
+	},
328
+	show: function(popId) {
329
+		$('button[id$="_CLOSE"]').off('click').on('click', function() {
330
+			console.log($(this).attr('id'));
331
+			if($(this).hasClass('btn-pop-close')) {
332
+				mobPopObj.hide(popId);
333
+			}
334
+		});
335
+		$('#' + popId).show();
336
+	},
337
+	hide: function(popId) {
338
+		$('#' + popId).closest('.mobile-pop-close').hide();
339
+	}
340
+};