e97a6950 by wang

Merge remote-tracking branch 'origin/develop' into develop

2 parents ba06911b ee6a2d46
...@@ -155,7 +155,7 @@ class Work extends CI_Controller ...@@ -155,7 +155,7 @@ class Work extends CI_Controller
155 'operatorRecord'=>$ret2, 155 'operatorRecord'=>$ret2,
156 'id'=>$id 156 'id'=>$id
157 ); 157 );
158 // var_dump($data);exit; 158
159 $this->load->view('work/资料/资料补录', $data); 159 $this->load->view('work/资料/资料补录', $data);
160 } 160 }
161 161
......
...@@ -155,4 +155,37 @@ ...@@ -155,4 +155,37 @@
155 } 155 }
156 }) 156 })
157 } 157 }
158
159 function json(data) {
160 const n = new Object();
161 $.each(data, function (index, value) {
162 tree(index, value, n)
163 });
164
165 return n;
166 }
167
168 function tree(attr, value, tree) {
169 var nestedAttrs = attr.split('.')
170 for(var i = 0 ; i < nestedAttrs.length ; i++) {
171 if(i === (nestedAttrs.length -1)) {
172 if(tree[nestedAttrs[i]] !== value) {
173 tree[nestedAttrs[i]] = value
174 }
175 } else if(!tree.hasOwnProperty(nestedAttrs[i])) {
176 tree[nestedAttrs[i]] = {}
177 tree = tree[nestedAttrs[i]]
178 } else {
179 tree = tree[nestedAttrs[i]]
180 }
181 }
182 }
183
184 $('.Wdate').on('focus', function () {
185 WdatePicker();
186 });
187
188 function reload() {
189 table.fnDraw();
190 }
158 </script> 191 </script>
......
...@@ -115,10 +115,6 @@ ...@@ -115,10 +115,6 @@
115 115
116 }); 116 });
117 } 117 }
118
119 function reload() {
120 table.fnDraw();
121 }
122 </script> 118 </script>
123 </body> 119 </body>
124 <html> 120 <html>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 <div class="form-group col-sm-3 col-md-2"> 6 <div class="form-group col-sm-3 col-md-2">
7 <label>资料上传</label> 7 <label>资料上传</label>
8 <span class="form-control select-box"> 8 <span class="form-control select-box">
9 <select class="select uploader" size="1" name="sourceType" id="upload"> 9 <select class="select uploader" size="1" id="upload">
10 <?php foreach ($this->session->sourceBaseType as $k=>$v):?> 10 <?php foreach ($this->session->sourceBaseType as $k=>$v):?>
11 <option value="<?=$v->code?>" data-name="<?=$v->desc?>"><?=$v->desc?></option> 11 <option value="<?=$v->code?>" data-name="<?=$v->desc?>"><?=$v->desc?></option>
12 <?php if($v->children && !empty($v->children)):?> 12 <?php if($v->children && !empty($v->children)):?>
......
...@@ -14,41 +14,15 @@ ...@@ -14,41 +14,15 @@
14 <div class="panel-header">选择贷款产品</div> 14 <div class="panel-header">选择贷款产品</div>
15 <div class="panel-body cl"> 15 <div class="panel-body cl">
16 <div class="row cl text-c"> 16 <div class="row cl text-c">
17
18 <?php foreach ($this->session->products as $k => $v): ?> 17 <?php foreach ($this->session->products as $k => $v): ?>
19 <div class="col-sm-4 mb-20"> 18 <div class="col-sm-4 mb-20">
20 <label class="radio"> 19 <label class="radio">
21 <input type="radio" value="<?= $v->id ?>" name="1"/> 20 <input type="radio" value="<?= $v->id ?>" name="applyOrderVO.products" data-limit="<?=$v->loanLimit?>" data-deadline="<?=$v->loanDeadline?>"/>
22 <img width="160" height="160" src="holder.js/180x18"> 21 <img width="160" height="160" src="<?=$v->imagePath?>">
23 <?= $v->productName ?> 22 <?= $v->productName ?>
24 </label> 23 </label>
25 </div> 24 </div>
26 <?php endforeach; ?> 25 <?php endforeach; ?>
27
28 <!--<div class="col-sm-4 mb-20">
29 <label class="radio">
30 <input type="radio" name="1"/>
31 <img src="holder.js/180x180">
32 </label>
33 </div>
34 <div class="col-sm-4 mb-20">
35 <label class="radio">
36 <input type="radio" name="1"/>
37 <img src="holder.js/180x180">
38 </label>
39 </div>
40 <div class="col-sm-4 mb-20">
41 <label class="radio">
42 <input type="radio" name="1"/>
43 <img src="holder.js/180x180">
44 </label>
45 </div>
46 <div class="col-sm-4 mb-20">
47 <label class="radio">
48 <input type="radio" name="1"/>
49 <img src="holder.js/180x180">
50 </label>
51 </div>-->
52 </div> 26 </div>
53 </div> 27 </div>
54 </div> 28 </div>
...@@ -67,13 +41,13 @@ ...@@ -67,13 +41,13 @@
67 <div class="row cl"> 41 <div class="row cl">
68 <div class="form-group col-sm-3 col-md-2"> 42 <div class="form-group col-sm-3 col-md-2">
69 <label>姓名</label> 43 <label>姓名</label>
70 <input type="text" class="form-control input-text" name="userName" 44 <input type="text" class="form-control input-text" name="clientInfoInputVO.userName"
71 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->userName : '' ?>"> 45 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->userName : '' ?>">
72 </div> 46 </div>
73 <div class="form-group col-sm-3 col-md-2"> 47 <div class="form-group col-sm-3 col-md-2">
74 <label>性别</label> 48 <label>性别</label>
75 <span class="form-control select-box"> 49 <span class="form-control select-box">
76 <select class="select" size="1" name="gender"> 50 <select class="select" size="1" name="clientInfoInputVO.gender">
77 <?php foreach ($this->session->genderEnum as $k => $v): ?> 51 <?php foreach ($this->session->genderEnum as $k => $v): ?>
78 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->gender == $k ? 'selected' : '' ?> 52 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->gender == $k ? 'selected' : '' ?>
79 value="<?= $k ?>"><?= $v ?></option> 53 value="<?= $k ?>"><?= $v ?></option>
...@@ -84,7 +58,7 @@ ...@@ -84,7 +58,7 @@
84 <div class="form-group col-sm-3 col-md-2"> 58 <div class="form-group col-sm-3 col-md-2">
85 <label>婚姻</label> 59 <label>婚姻</label>
86 <span class="form-control select-box"> 60 <span class="form-control select-box">
87 <select class="select" size="1" name="marriageState"> 61 <select class="select" size="1" name="clientInfoInputVO.marriageState">
88 <?php foreach ($this->session->marryEnum as $k => $v): ?> 62 <?php foreach ($this->session->marryEnum as $k => $v): ?>
89 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->marriageState == $k ? 'selected' : '' ?> 63 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->marriageState == $k ? 'selected' : '' ?>
90 value="<?= $k ?>"><?= $v ?></option> 64 value="<?= $k ?>"><?= $v ?></option>
...@@ -94,7 +68,7 @@ ...@@ -94,7 +68,7 @@
94 </div> 68 </div>
95 <div class="form-group col-sm-3 col-md-2"> 69 <div class="form-group col-sm-3 col-md-2">
96 <label>出生日期</label> 70 <label>出生日期</label>
97 <input type="text" name="birthDate" class="form-control input-text Wdate" 71 <input type="text" name="clientInfoInputVO.birthDate" class="form-control input-text Wdate"
98 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->birthDate : '' ?>" onfocus="WdatePicker()"> 72 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->birthDate : '' ?>" onfocus="WdatePicker()">
99 </div> 73 </div>
100 </div> 74 </div>
...@@ -103,7 +77,7 @@ ...@@ -103,7 +77,7 @@
103 <div class="form-group col-sm-3 col-md-2"> 77 <div class="form-group col-sm-3 col-md-2">
104 <label>教育程度</label> 78 <label>教育程度</label>
105 <span class="form-control select-box"> 79 <span class="form-control select-box">
106 <select class="select" size="1" name="educationDegree"> 80 <select class="select" size="1" name="clientInfoInputVO.educationDegree">
107 <?php foreach ($this->session->educationEnum as $k => $v): ?> 81 <?php foreach ($this->session->educationEnum as $k => $v): ?>
108 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->educationDegree == $k ? 'selected' : '' ?> 82 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->educationDegree == $k ? 'selected' : '' ?>
109 value="<?= $k ?>"><?= $v ?></option> 83 value="<?= $k ?>"><?= $v ?></option>
...@@ -113,7 +87,7 @@ ...@@ -113,7 +87,7 @@
113 </div> 87 </div>
114 <div class="form-group col-sm-3 col-md-2"> 88 <div class="form-group col-sm-3 col-md-2">
115 <label>身份证</label> 89 <label>身份证</label>
116 <input type="text" name="idCard" class="form-control input-text" 90 <input type="text" name="clientInfoInputVO.idCard" class="form-control input-text"
117 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->idCard : '' ?>"> 91 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->idCard : '' ?>">
118 </div> 92 </div>
119 </div> 93 </div>
...@@ -121,14 +95,14 @@ ...@@ -121,14 +95,14 @@
121 <div class="row cl"> 95 <div class="row cl">
122 <div class="form-group has-feedback col-sm-3 col-md-2"> 96 <div class="form-group has-feedback col-sm-3 col-md-2">
123 <label>月收入</label> 97 <label>月收入</label>
124 <input type="text" name="monthlyIncome" class="form-control input-text" 98 <input type="text" name="clientInfoInputVO.monthlyIncome" class="form-control input-text"
125 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->monthlyIncome : '' ?>"> 99 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->monthlyIncome : '' ?>">
126 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span> 100 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span>
127 </div> 101 </div>
128 <div class="form-group col-sm-3 col-md-2"> 102 <div class="form-group col-sm-3 col-md-2">
129 <label>有无本地房产</label> 103 <label>有无本地房产</label>
130 <span class="form-control select-box"> 104 <span class="form-control select-box">
131 <select class="select" size="1" name="localHouse"> 105 <select class="select" size="1" name="clientInfoInputVO.localHouse">
132 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->localHouse == $k ? 'selected' : '' ?> 106 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->localHouse == $k ? 'selected' : '' ?>
133 value="0"></option> 107 value="0"></option>
134 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->localHouse == $k ? 'selected' : '' ?> 108 <option <?= $clientInfoOutputVO && $clientInfoOutputVO->localHouse == $k ? 'selected' : '' ?>
...@@ -144,18 +118,18 @@ ...@@ -144,18 +118,18 @@
144 <div class="info"> 118 <div class="info">
145 <?php foreach ($this->session->dwellEnum as $k => $v): ?> 119 <?php foreach ($this->session->dwellEnum as $k => $v): ?>
146 <div class="live-info"> 120 <div class="live-info">
147 <input type="checkbox" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? 'checked' : '' ?> 121 <input type="radio" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? 'checked' : '' ?>
148 name="dwellState"> 122 name="clientInfoInputVO.dwellState">
149 <span><?= $v ?></span> 123 <span><?= $v ?></span>
150 <?php if ($k == 0): ?> 124 <?php if ($k == 0): ?>
151 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?> 125 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?>
152 class="input-decoration w-50 text-c" name="dwellDetail" value=""> 126 class="input-decoration w-50 text-c" name="clientInfoInputVO.dwellDetail" value="">
153 <?php elseif ($k == 1): ?> 127 <?php elseif ($k == 1): ?>
154 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?> 128 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?>
155 name="dwellDetail" class="input-decoration w-50 text-c"> 129 name="clientInfoInputVO.dwellDetail" class="input-decoration w-50 text-c">
156 <?php elseif ($k == 2): ?> 130 <?php elseif ($k == 2): ?>
157 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?> 131 <input type="text" <?= $clientInfoOutputVO && $clientInfoOutputVO->dwellState == $k ? $clientInfoOutputVO->dwellDetail : '' ?>
158 name="dwellDetail" class="input-decoration w-50 text-c"> 132 name="clientInfoInputVO.dwellDetail" class="input-decoration w-50 text-c">
159 <?php endif; ?> 133 <?php endif; ?>
160 </div> 134 </div>
161 <?php endforeach; ?> 135 <?php endforeach; ?>
...@@ -193,27 +167,27 @@ ...@@ -193,27 +167,27 @@
193 <div class="row cl"> 167 <div class="row cl">
194 <div class="form-group col-sm-3 col-md-2"> 168 <div class="form-group col-sm-3 col-md-2">
195 <label>手机</label> 169 <label>手机</label>
196 <input type="text" class="form-control input-text" 170 <input type="text" class="form-control input-text" name="clientInfoInputVO.phoneNumber"
197 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->phoneNumber : '' ?>"> 171 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->phoneNumber : '' ?>">
198 </div> 172 </div>
199 <div class="form-group col-sm-3 col-md-2"> 173 <div class="form-group col-sm-3 col-md-2">
200 <label>户口所在地</label> 174 <label>户口所在地</label>
201 <span class="form-control select-box"> 175 <span class="form-control select-box">
202 <select class="select" size="1" id="province"> 176 <select class="select" size="1" id="province" name="clientInfoInputVO.registerProvince">
203 </select> 177 </select>
204 </span> 178 </span>
205 </div> 179 </div>
206 <div class="form-group col-sm-3 col-md-2"> 180 <div class="form-group col-sm-3 col-md-2">
207 <label>&nbsp;</label> 181 <label>&nbsp;</label>
208 <span class="form-control select-box"> 182 <span class="form-control select-box">
209 <select class="select" size="1" id="city"> 183 <select class="select" size="1" id="city" name="clientInfoInputVO.registerCity">
210 </select> 184 </select>
211 </span> 185 </span>
212 </div> 186 </div>
213 <div class="form-group col-sm-3 col-md-2"> 187 <div class="form-group col-sm-3 col-md-2">
214 <label>&nbsp;</label> 188 <label>&nbsp;</label>
215 <span class="form-control select-box"> 189 <span class="form-control select-box">
216 <select class="select" size="1" id="county"> 190 <select class="select" size="1" id="county" name="clientInfoInputVO.registerCounty">
217 </select> 191 </select>
218 </span> 192 </span>
219 </div> 193 </div>
...@@ -230,7 +204,7 @@ ...@@ -230,7 +204,7 @@
230 <div class="row cl"> 204 <div class="row cl">
231 <div class="form-group col-sm-6 col-md-4"> 205 <div class="form-group col-sm-6 col-md-4">
232 <label>现居住地址</label> 206 <label>现居住地址</label>
233 <input type="text" class="form-control input-text" 207 <input type="text" class="form-control input-text" name="clientInfoInputVO.currentAddress"
234 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->currentAddress :'' ?>"> 208 value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->currentAddress :'' ?>">
235 </div> 209 </div>
236 </div> 210 </div>
...@@ -241,20 +215,21 @@ ...@@ -241,20 +215,21 @@
241 <div class="panel-header">单位信息</div> 215 <div class="panel-header">单位信息</div>
242 <div class="panel-body"> 216 <div class="panel-body">
243 <div class="row cl"> 217 <div class="row cl">
218 <input type="hidden" class="form-control input-text" name="clientInfoInputVO.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id: '' ?>">
244 <div class="form-group col-sm-3 col-md-2"> 219 <div class="form-group col-sm-3 col-md-2">
245 <label>单位名称</label> 220 <label>单位名称</label>
246 <input type="text" class="form-control input-text" 221 <input type="text" class="form-control input-text" name="clientUnitInputVO.unitName"
247 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitName : '' ?>"> 222 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitName : '' ?>">
248 </div> 223 </div>
249 <div class="form-group col-sm-3 col-md-2"> 224 <div class="form-group col-sm-3 col-md-2">
250 <label>部门</label> 225 <label>部门</label>
251 <input type="text" class="form-control input-text" 226 <input type="text" class="form-control input-text" name="clientUnitInputVO.department"
252 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->department : '' ?>"> 227 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->department : '' ?>">
253 </div> 228 </div>
254 <div class="form-group col-sm-3 col-md-2"> 229 <div class="form-group col-sm-3 col-md-2">
255 <label>单位性质</label> 230 <label>单位性质</label>
256 <span class="form-control select-box"> 231 <span class="form-control select-box">
257 <select class="select" size="1"> 232 <select class="select" size="1" name="clientUnitInputVO.unitNature">
258 <?php foreach ($this->session->unitEnum as $k => $v): ?> 233 <?php foreach ($this->session->unitEnum as $k => $v): ?>
259 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->unitNature == $k ? 'selected' : '' ?> 234 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->unitNature == $k ? 'selected' : '' ?>
260 value="<?= $k ?>"><?= $v ?></option> 235 value="<?= $k ?>"><?= $v ?></option>
...@@ -275,7 +250,7 @@ ...@@ -275,7 +250,7 @@
275 </div> 250 </div>
276 <div class="form-group col-sm-3 col-md-2"> 251 <div class="form-group col-sm-3 col-md-2">
277 <label>职位名称</label> 252 <label>职位名称</label>
278 <input type="text" class="form-control input-text" 253 <input type="text" class="form-control input-text" name="clientUnitInputVO.jobPosition"
279 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->jobPosition : '' ?>"> 254 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->jobPosition : '' ?>">
280 </div> 255 </div>
281 </div> 256 </div>
...@@ -283,25 +258,25 @@ ...@@ -283,25 +258,25 @@
283 <div class="row cl"> 258 <div class="row cl">
284 <div class="form-group col-sm-3 col-md-2"> 259 <div class="form-group col-sm-3 col-md-2">
285 <label>现单位入职时间</label> 260 <label>现单位入职时间</label>
286 <input type="text" class="form-control input-text Wdate" onfocus="WdatePicker()" 261 <input type="text" class="form-control input-text Wdate" name="clientUnitInputVO.currentUnitEntryDate"
287 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitEntryDate : '' ?>"> 262 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitEntryDate : '' ?>">
288 </div> 263 </div>
289 <div class="form-group col-sm-3 col-md-2"> 264 <div class="form-group col-sm-3 col-md-2">
290 <label>现单位工作年限</label> 265 <label>现单位工作年限</label>
291 <input type="text" class="form-control input-text" 266 <input type="text" class="form-control input-text" name="clientUnitInputVO.currentUnitWorkYears"
292 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitWorkYears : '' ?>"> 267 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitWorkYears : '' ?>">
293 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span> 268 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span>
294 </div> 269 </div>
295 <div class="form-group col-sm-3 col-md-2"> 270 <div class="form-group col-sm-3 col-md-2">
296 <label>现单位电话</label> 271 <label>现单位电话</label>
297 <input type="text" class="form-control input-text" 272 <input type="text" class="form-control input-text" name="clientUnitInputVO.unitPhone"
298 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>"> 273 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>">
299 </div> 274 </div>
300 275
301 <div class="form-group col-sm-3 col-md-2"> 276 <div class="form-group col-sm-3 col-md-2">
302 <label>职称类型</label> 277 <label>职称类型</label>
303 <span class="form-control select-box"> 278 <span class="form-control select-box">
304 <select class="select" size="1"> 279 <select class="select" size="1" name="clientUnitInputVO.jobType">
305 <?php foreach ($this->session->jobTypeEnum as $k => $v): ?> 280 <?php foreach ($this->session->jobTypeEnum as $k => $v): ?>
306 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' ?> 281 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' ?>
307 value="<?= $k ?>"><?= $v ?></option> 282 value="<?= $k ?>"><?= $v ?></option>
...@@ -315,14 +290,14 @@ ...@@ -315,14 +290,14 @@
315 <div class="row cl"> 290 <div class="row cl">
316 <div class="form-group col-sm-3 col-md-2"> 291 <div class="form-group col-sm-3 col-md-2">
317 <label>月收入</label> 292 <label>月收入</label>
318 <input type="text" class="form-control input-text" 293 <input type="text" class="form-control input-text" name="clientUnitInputVO.monthlyIncome"
319 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->monthlyIncome : '' ?>"> 294 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->monthlyIncome : '' ?>">
320 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span> 295 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span>
321 </div> 296 </div>
322 <div class="form-group col-sm-3 col-md-2"> 297 <div class="form-group col-sm-3 col-md-2">
323 <label>工资发放形式</label> 298 <label>工资发放形式</label>
324 <span class="form-control select-box"> 299 <span class="form-control select-box">
325 <select class="select" size="1"> 300 <select class="select" size="1" name="clientUnitInputVO.salaryGrantForm">
326 <?php foreach ($this->session->wagePaymentFormEnum as $k => $v): ?> 301 <?php foreach ($this->session->wagePaymentFormEnum as $k => $v): ?>
327 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->salaryGrantForm == $k ? 'selected' : '' ?> 302 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->salaryGrantForm == $k ? 'selected' : '' ?>
328 value="<?= $k ?>"><?= $v ?></option> 303 value="<?= $k ?>"><?= $v ?></option>
...@@ -335,7 +310,7 @@ ...@@ -335,7 +310,7 @@
335 <div class="row cl"> 310 <div class="row cl">
336 <div class="form-group col-sm-6 col-md-4"> 311 <div class="form-group col-sm-6 col-md-4">
337 <label>现单位所在地</label> 312 <label>现单位所在地</label>
338 <input type="text" class="form-control input-text" 313 <input type="text" class="form-control input-text" name="clientUnitInputVO.currentUnitAddress"
339 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitAddress : '' ?>"> 314 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitAddress : '' ?>">
340 </div> 315 </div>
341 </div> 316 </div>
...@@ -348,14 +323,15 @@ ...@@ -348,14 +323,15 @@
348 <?php if($clientContactOutputVOS):?> 323 <?php if($clientContactOutputVOS):?>
349 <?php foreach ($clientContactOutputVOS as $k=>$v):?> 324 <?php foreach ($clientContactOutputVOS as $k=>$v):?>
350 <div class="row cl"> 325 <div class="row cl">
326 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.<?=$k?>.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
351 <div class="form-group col-sm-3 col-md-2"> 327 <div class="form-group col-sm-3 col-md-2">
352 <label>联系人姓名</label> 328 <label>联系人姓名</label>
353 <input type="text" class="form-control input-text" name="contactName" value="<?=$v->contactName?>"> 329 <input type="text" class="form-control input-text" name="clientContactInputVOS.<?=$k?>.contactName" value="<?=$v->contactName?>">
354 </div> 330 </div>
355 <div class="form-group col-sm-3 col-md-2"> 331 <div class="form-group col-sm-3 col-md-2">
356 <label>是您的</label> 332 <label>是您的</label>
357 <span class="form-control select-box"> 333 <span class="form-control select-box">
358 <select class="select" size="1" name="contactRelation"> 334 <select class="select" size="1" name="clientContactInputVOS.<?=$k?>.contactRelation">
359 <?php foreach ($this->session->relationEnum as $kk => $vv): ?> 335 <?php foreach ($this->session->relationEnum as $kk => $vv): ?>
360 <option <?= $vv && $v->contactRelation == $kk ? 'selected' : '' ?> 336 <option <?= $vv && $v->contactRelation == $kk ? 'selected' : '' ?>
361 value="<?= $kk ?>"><?= $vv ?></option> 337 value="<?= $kk ?>"><?= $vv ?></option>
...@@ -365,20 +341,21 @@ ...@@ -365,20 +341,21 @@
365 </div> 341 </div>
366 <div class="form-group col-sm-3 col-md-2"> 342 <div class="form-group col-sm-3 col-md-2">
367 <label>手机号</label> 343 <label>手机号</label>
368 <input type="text" name="contactPhone" class="form-control input-text" value="<?=$v ? $v->contactPhone : ''?>"> 344 <input type="text" name="clientContactInputVOS.<?=$k?>.contactPhone" class="form-control input-text" value="<?=$v ? $v->contactPhone : ''?>">
369 </div> 345 </div>
370 </div> 346 </div>
371 <?php endforeach;?> 347 <?php endforeach;?>
372 <?php endif;?> 348 <?php endif;?>
373 <div class="row cl"> 349 <div class="row cl">
350 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.99.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
374 <div class="form-group col-sm-3 col-md-2"> 351 <div class="form-group col-sm-3 col-md-2">
375 <label>联系人姓名</label> 352 <label>联系人姓名</label>
376 <input type="text" class="form-control input-text" name="contactName" value=""> 353 <input type="text" class="form-control input-text" name="clientContactInputVOS.99.contactName" value="">
377 </div> 354 </div>
378 <div class="form-group col-sm-3 col-md-2"> 355 <div class="form-group col-sm-3 col-md-2">
379 <label>是您的</label> 356 <label>是您的</label>
380 <span class="form-control select-box"> 357 <span class="form-control select-box">
381 <select class="select" size="1" name="contactRelation"> 358 <select class="select" size="1" name="clientContactInputVOS.99.contactRelation">
382 <?php foreach ($this->session->relationEnum as $k => $v): ?> 359 <?php foreach ($this->session->relationEnum as $k => $v): ?>
383 <option value="<?= $k ?>"><?= $v ?></option> 360 <option value="<?= $k ?>"><?= $v ?></option>
384 <?php endforeach; ?> 361 <?php endforeach; ?>
...@@ -387,18 +364,19 @@ ...@@ -387,18 +364,19 @@
387 </div> 364 </div>
388 <div class="form-group col-sm-3 col-md-2"> 365 <div class="form-group col-sm-3 col-md-2">
389 <label>手机号</label> 366 <label>手机号</label>
390 <input type="text" class="form-control input-text" name="contactPhone" value=""> 367 <input type="text" class="form-control input-text" name="clientContactInputVOS.99.contactPhone" value="">
391 </div> 368 </div>
392 </div> 369 </div>
393 <div class="row cl"> 370 <div class="row cl">
371 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.98.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
394 <div class="form-group col-sm-3 col-md-2"> 372 <div class="form-group col-sm-3 col-md-2">
395 <label>联系人姓名</label> 373 <label>联系人姓名</label>
396 <input type="text" class="form-control input-text" name="contactName" value=""> 374 <input type="text" class="form-control input-text" name="clientContactInputVOS.98.contactName" value="">
397 </div> 375 </div>
398 <div class="form-group col-sm-3 col-md-2"> 376 <div class="form-group col-sm-3 col-md-2">
399 <label>是您的</label> 377 <label>是您的</label>
400 <span class="form-control select-box"> 378 <span class="form-control select-box">
401 <select class="select" size="1" name="contactRelation"> 379 <select class="select" size="1" name="clientContactInputVOS.98.contactRelation">
402 <?php foreach ($this->session->relationEnum as $k => $v): ?> 380 <?php foreach ($this->session->relationEnum as $k => $v): ?>
403 <option value="<?= $k ?>"><?= $v ?></option> 381 <option value="<?= $k ?>"><?= $v ?></option>
404 <?php endforeach; ?> 382 <?php endforeach; ?>
...@@ -407,18 +385,19 @@ ...@@ -407,18 +385,19 @@
407 </div> 385 </div>
408 <div class="form-group col-sm-3 col-md-2"> 386 <div class="form-group col-sm-3 col-md-2">
409 <label>手机号</label> 387 <label>手机号</label>
410 <input type="text" class="form-control input-text" name="contactPhone" value=""> 388 <input type="text" class="form-control input-text" name="clientContactInputVOS.98.contactPhone" value="">
411 </div> 389 </div>
412 </div> 390 </div>
413 <div class="row cl"> 391 <div class="row cl">
392 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.97.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
414 <div class="form-group col-sm-3 col-md-2"> 393 <div class="form-group col-sm-3 col-md-2">
415 <label>联系人姓名</label> 394 <label>联系人姓名</label>
416 <input type="text" class="form-control input-text" name="contactName" value=""> 395 <input type="text" class="form-control input-text" name="clientContactInputVOS.97.contactName" value="">
417 </div> 396 </div>
418 <div class="form-group col-sm-3 col-md-2"> 397 <div class="form-group col-sm-3 col-md-2">
419 <label>是您的</label> 398 <label>是您的</label>
420 <span class="form-control select-box"> 399 <span class="form-control select-box">
421 <select class="select" size="1" name="contactRelation"> 400 <select class="select" size="1" name="clientContactInputVOS.97.contactRelation">
422 <?php foreach ($this->session->relationEnum as $k => $v): ?> 401 <?php foreach ($this->session->relationEnum as $k => $v): ?>
423 <option value="<?= $k ?>"><?= $v ?></option> 402 <option value="<?= $k ?>"><?= $v ?></option>
424 <?php endforeach; ?> 403 <?php endforeach; ?>
...@@ -427,7 +406,7 @@ ...@@ -427,7 +406,7 @@
427 </div> 406 </div>
428 <div class="form-group col-sm-3 col-md-2"> 407 <div class="form-group col-sm-3 col-md-2">
429 <label>手机号</label> 408 <label>手机号</label>
430 <input type="text" class="form-control input-text" name="contactPhone" value=""> 409 <input type="text" class="form-control input-text" name="clientContactInputVOS.97.contactPhone" value="">
431 </div> 410 </div>
432 </div> 411 </div>
433 </div> 412 </div>
...@@ -437,16 +416,17 @@ ...@@ -437,16 +416,17 @@
437 <div class="panel-header">贷款事项</div> 416 <div class="panel-header">贷款事项</div>
438 <div class="panel-body"> 417 <div class="panel-body">
439 <div class="row cl"> 418 <div class="row cl">
419 <input type="hidden" class="form-control input-text" name="applyOrderVO.id" value="<?= $applyOrderVO ? $applyOrderVO->id : '' ?>">
440 <div class="form-group col-sm-3 col-md-2"> 420 <div class="form-group col-sm-3 col-md-2">
441 <label>申请金额</label> 421 <label id="applyMoney">申请金额</label>
442 <input type="text" class="form-control input-text" 422 <input type="number" class="form-control input-text" name="applyOrderVO.applyMoney"
443 value="<?= $applyOrderVO ? $applyOrderVO->applyMoney : '' ?>"> 423 value="<?= $applyOrderVO ? $applyOrderVO->applyMoney : '' ?>">
444 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span> 424 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span>
445 </div> 425 </div>
446 <div class="form-group col-sm-3 col-md-2"> 426 <div class="form-group col-sm-3 col-md-2">
447 <label>贷款期限</label> 427 <label id="deadline">贷款期限</label>
448 <span class="form-control select-box"> 428 <span class="form-control select-box">
449 <select class="select" size="1"> 429 <select class="select" size="1" name="applyOrderVO.deadline">
450 <?php for ($i = 1; $i <= 12; $i++): ?> 430 <?php for ($i = 1; $i <= 12; $i++): ?>
451 <option <?= $applyOrderVO && $applyOrderVO->deadline ? 'selected' : '' ?> 431 <option <?= $applyOrderVO && $applyOrderVO->deadline ? 'selected' : '' ?>
452 value="<?= $i ?>"><?= $i ?></option> 432 value="<?= $i ?>"><?= $i ?></option>
...@@ -457,7 +437,7 @@ ...@@ -457,7 +437,7 @@
457 <div class="form-group col-sm-3 col-md-2"> 437 <div class="form-group col-sm-3 col-md-2">
458 <label>还款方式</label> 438 <label>还款方式</label>
459 <span class="form-control select-box"> 439 <span class="form-control select-box">
460 <select class="select" size=c""> 440 <select class="select" size=c"" name="applyOrderVO.payBackType">
461 <?php foreach ($this->session->repayments as $k => $v): ?> 441 <?php foreach ($this->session->repayments as $k => $v): ?>
462 <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?> 442 <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?>
463 value="<?= $k ?>"><?= $v ?></option> 443 value="<?= $k ?>"><?= $v ?></option>
...@@ -468,7 +448,7 @@ ...@@ -468,7 +448,7 @@
468 <div class="form-group col-sm-3 col-md-2"> 448 <div class="form-group col-sm-3 col-md-2">
469 <label>贷款用途</label> 449 <label>贷款用途</label>
470 <span class="form-control select-box"> 450 <span class="form-control select-box">
471 <select class="select" size="1"> 451 <select class="select" size="1" name="applyOrderVO.use">
472 <?php foreach ($this->session->loanUseEnum as $k => $v): ?> 452 <?php foreach ($this->session->loanUseEnum as $k => $v): ?>
473 <option value="<?= $k ?>"><?= $v ?></option> 453 <option value="<?= $k ?>"><?= $v ?></option>
474 <?php endforeach; ?> 454 <?php endforeach; ?>
...@@ -483,20 +463,20 @@ ...@@ -483,20 +463,20 @@
483 <div class="panel-header">其他</div> 463 <div class="panel-header">其他</div>
484 <div class="panel-body"> 464 <div class="panel-body">
485 <div class="row cl"> 465 <div class="row cl">
486 <div class="form-group col-sm-3 col-md-2"> 466 <!-- <div class="form-group col-sm-3 col-md-2">
487 <label>贷款品种/代码</label> 467 <label>贷款品种/代码</label>
488 <span class="form-control select-box"> 468 <span class="form-control select-box">
489 <select class="select" size="1"> 469 <select class="select" size="1" name="applyOrderVO.productId">
490 <?php foreach ($this->session->products as $k => $v): ?> 470 <?php foreach ($this->session->products as $k => $v): ?>
491 <option value="<?= $v->id ?>"><?= $v->productName ?></option> 471 <option value="<?= $v->id ?>"><?= $v->productName ?></option>
492 <?php endforeach; ?> 472 <?php endforeach; ?>
493 </select> 473 </select>
494 </span> 474 </span>
495 </div> 475 </div> -->
496 <div class="form-group col-sm-3 col-md-2"> 476 <div class="form-group col-sm-3 col-md-2">
497 <label>贷款性质</label> 477 <label>贷款性质</label>
498 <span class="form-control select-box"> 478 <span class="form-control select-box">
499 <select class="select" size="1"> 479 <select class="select" size="1" name="applyOrderVO.useNature">
500 <?php foreach ($this->session->loanNatureEnum as $k => $v): ?> 480 <?php foreach ($this->session->loanNatureEnum as $k => $v): ?>
501 <option value="<?= $k ?>"><?= $v ?></option> 481 <option value="<?= $k ?>"><?= $v ?></option>
502 <?php endforeach; ?> 482 <?php endforeach; ?>
...@@ -517,7 +497,7 @@ ...@@ -517,7 +497,7 @@
517 <?php $this->load->view('work/图片上传'); ?> 497 <?php $this->load->view('work/图片上传'); ?>
518 498
519 <div class="col-sm-offset-4 col-sm-4 pb-20"> 499 <div class="col-sm-offset-4 col-sm-4 pb-20">
520 <button class="btn btn-primary btn-block" type="button" onclick="submit()">提交</button> 500 <button class="btn btn-primary btn-block" type="button" onclick="save()">提交</button>
521 </div> 501 </div>
522 </div> 502 </div>
523 </form> 503 </form>
...@@ -562,17 +542,45 @@ ...@@ -562,17 +542,45 @@
562 } 542 }
563 }); 543 });
564 544
565 function submit() { 545 function save() {
566 layer.confirm('提交成功之后, 将立即进入审批阶段', { 546 var data = $("form").serializeJson();
567 btn: ['确认', '取消'], 547 data = json(data);
568 title: '提交订单' 548 data.clientContactInputVOS = Object.values(data.clientContactInputVOS);
569 }, function () { 549
570 layer_load('提交成功', '<?=site_url("work/recorded")?>'); 550 ajax('client/collection', 'post', data, '操作成功', function () {
551 window.parent.reload();
552 layer_close();
571 }); 553 });
572 } 554 }
573 555
574 var loc = beva.locationutil.attach('province', 'city', 'county', 'address'); 556 var loc = beva.locationutil.attach('province', 'city', 'county', 'address');
575 557
558 $('input[name="applyOrderVO.products"]').on('change', function () {
559 const limit = $(this).data('limit');
560 const deadline = $(this).data('deadline');
561
562 $('#applyMoney').html('申请金额(max: '+limit+')');
563 $('#deadline').html('贷款期限(max: '+deadline+')');
564 })
565
566 $('input[name="applyOrderVO.applyMoney"]').on('keyup', function () {
567 var product = $('input[name="applyOrderVO.products"]:checked');
568 var limit = product.data('limit')
569
570 if($(this).val() > limit) {
571 $(this).val(limit)
572 }
573 });
574
575 $('select[name="applyOrderVO.deadline"]').on('change', function () {
576 var product = $('input[name="applyOrderVO.products"]:checked');
577 var deadline = product.data('deadline')
578
579 if($(this).val() > deadline) {
580 $(this).val(deadline)
581 }
582 });
583
576 uploadList(); 584 uploadList();
577 </script> 585 </script>
578 </body> 586 </body>
......
...@@ -326,3 +326,7 @@ label.radio > input:checked + img{ ...@@ -326,3 +326,7 @@ label.radio > input:checked + img{
326 .top .name, .top .num { 326 .top .name, .top .num {
327 padding-left: 40px; 327 padding-left: 40px;
328 } 328 }
329
330 .input-text[type="number"] {
331 width: 100%;
332 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!