87147b7c by Zelig

资料补录限制

1 parent 8c6ecffd
...@@ -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>
...@@ -264,7 +239,7 @@ ...@@ -264,7 +239,7 @@
264 </div> 239 </div>
265 <div class="form-group col-sm-3 col-md-2"> 240 <div class="form-group col-sm-3 col-md-2">
266 <label>职位名称</label> 241 <label>职位名称</label>
267 <input type="text" class="form-control input-text" 242 <input type="text" class="form-control input-text" name="clientUnitInputVO.jobPosition"
268 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->jobPosition : '' ?>"> 243 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->jobPosition : '' ?>">
269 </div> 244 </div>
270 </div> 245 </div>
...@@ -272,25 +247,25 @@ ...@@ -272,25 +247,25 @@
272 <div class="row cl"> 247 <div class="row cl">
273 <div class="form-group col-sm-3 col-md-2"> 248 <div class="form-group col-sm-3 col-md-2">
274 <label>现单位入职时间</label> 249 <label>现单位入职时间</label>
275 <input type="text" class="form-control input-text Wdate" 250 <input type="text" class="form-control input-text Wdate" name="clientUnitInputVO.currentUnitEntryDate"
276 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitEntryDate : '' ?>"> 251 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitEntryDate : '' ?>">
277 </div> 252 </div>
278 <div class="form-group col-sm-3 col-md-2"> 253 <div class="form-group col-sm-3 col-md-2">
279 <label>现单位工作年限</label> 254 <label>现单位工作年限</label>
280 <input type="text" class="form-control input-text" 255 <input type="text" class="form-control input-text" name="clientUnitInputVO.currentUnitWorkYears"
281 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitWorkYears : '' ?>"> 256 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitWorkYears : '' ?>">
282 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span> 257 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span>
283 </div> 258 </div>
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" 261 <input type="text" class="form-control input-text" name="clientUnitInputVO.unitPhone"
287 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>"> 262 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->unitPhone : '' ?>">
288 </div> 263 </div>
289 264
290 <div class="form-group col-sm-3 col-md-2"> 265 <div class="form-group col-sm-3 col-md-2">
291 <label>职称类型</label> 266 <label>职称类型</label>
292 <span class="form-control select-box"> 267 <span class="form-control select-box">
293 <select class="select" size="1"> 268 <select class="select" size="1" name="clientUnitInputVO.jobType">
294 <?php foreach ($this->session->jobTypeEnum as $k => $v): ?> 269 <?php foreach ($this->session->jobTypeEnum as $k => $v): ?>
295 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' ?> 270 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->jobType == $k ? 'selected' : '' ?>
296 value="<?= $k ?>"><?= $v ?></option> 271 value="<?= $k ?>"><?= $v ?></option>
...@@ -304,14 +279,14 @@ ...@@ -304,14 +279,14 @@
304 <div class="row cl"> 279 <div class="row cl">
305 <div class="form-group col-sm-3 col-md-2"> 280 <div class="form-group col-sm-3 col-md-2">
306 <label>月收入</label> 281 <label>月收入</label>
307 <input type="text" class="form-control input-text" 282 <input type="text" class="form-control input-text" name="clientUnitInputVO.monthlyIncome"
308 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->monthlyIncome : '' ?>"> 283 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->monthlyIncome : '' ?>">
309 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span> 284 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span>
310 </div> 285 </div>
311 <div class="form-group col-sm-3 col-md-2"> 286 <div class="form-group col-sm-3 col-md-2">
312 <label>工资发放形式</label> 287 <label>工资发放形式</label>
313 <span class="form-control select-box"> 288 <span class="form-control select-box">
314 <select class="select" size="1"> 289 <select class="select" size="1" name="clientUnitInputVO.salaryGrantForm">
315 <?php foreach ($this->session->wagePaymentFormEnum as $k => $v): ?> 290 <?php foreach ($this->session->wagePaymentFormEnum as $k => $v): ?>
316 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->salaryGrantForm == $k ? 'selected' : '' ?> 291 <option <?= $clientUnitOutputVO && $clientUnitOutputVO->salaryGrantForm == $k ? 'selected' : '' ?>
317 value="<?= $k ?>"><?= $v ?></option> 292 value="<?= $k ?>"><?= $v ?></option>
...@@ -324,7 +299,7 @@ ...@@ -324,7 +299,7 @@
324 <div class="row cl"> 299 <div class="row cl">
325 <div class="form-group col-sm-6 col-md-4"> 300 <div class="form-group col-sm-6 col-md-4">
326 <label>现单位所在地</label> 301 <label>现单位所在地</label>
327 <input type="text" class="form-control input-text" 302 <input type="text" class="form-control input-text" name="clientUnitInputVO.currentUnitAddress"
328 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitAddress : '' ?>"> 303 value="<?= $clientUnitOutputVO ? $clientUnitOutputVO->currentUnitAddress : '' ?>">
329 </div> 304 </div>
330 </div> 305 </div>
...@@ -337,14 +312,15 @@ ...@@ -337,14 +312,15 @@
337 <?php if($clientContactOutputVOS):?> 312 <?php if($clientContactOutputVOS):?>
338 <?php foreach ($clientContactOutputVOS as $k=>$v):?> 313 <?php foreach ($clientContactOutputVOS as $k=>$v):?>
339 <div class="row cl"> 314 <div class="row cl">
315 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.<?=$k?>.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
340 <div class="form-group col-sm-3 col-md-2"> 316 <div class="form-group col-sm-3 col-md-2">
341 <label>联系人姓名</label> 317 <label>联系人姓名</label>
342 <input type="text" class="form-control input-text" name="contactName" value="<?=$v->contactName?>"> 318 <input type="text" class="form-control input-text" name="clientContactInputVOS.<?=$k?>.contactName" value="<?=$v->contactName?>">
343 </div> 319 </div>
344 <div class="form-group col-sm-3 col-md-2"> 320 <div class="form-group col-sm-3 col-md-2">
345 <label>是您的</label> 321 <label>是您的</label>
346 <span class="form-control select-box"> 322 <span class="form-control select-box">
347 <select class="select" size="1" name="contactRelation"> 323 <select class="select" size="1" name="clientContactInputVOS.<?=$k?>.contactRelation">
348 <?php foreach ($this->session->relationEnum as $kk => $vv): ?> 324 <?php foreach ($this->session->relationEnum as $kk => $vv): ?>
349 <option <?= $vv && $v->contactRelation == $kk ? 'selected' : '' ?> 325 <option <?= $vv && $v->contactRelation == $kk ? 'selected' : '' ?>
350 value="<?= $kk ?>"><?= $vv ?></option> 326 value="<?= $kk ?>"><?= $vv ?></option>
...@@ -354,20 +330,21 @@ ...@@ -354,20 +330,21 @@
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 <input type="text" name="contactPhone" class="form-control input-text" value="<?=$v ? $v->contactPhone : ''?>"> 333 <input type="text" name="clientContactInputVOS.<?=$k?>.contactPhone" class="form-control input-text" value="<?=$v ? $v->contactPhone : ''?>">
358 </div> 334 </div>
359 </div> 335 </div>
360 <?php endforeach;?> 336 <?php endforeach;?>
361 <?php endif;?> 337 <?php endif;?>
362 <div class="row cl"> 338 <div class="row cl">
339 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.99.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
363 <div class="form-group col-sm-3 col-md-2"> 340 <div class="form-group col-sm-3 col-md-2">
364 <label>联系人姓名</label> 341 <label>联系人姓名</label>
365 <input type="text" class="form-control input-text" name="contactName" value=""> 342 <input type="text" class="form-control input-text" name="clientContactInputVOS.99.contactName" value="">
366 </div> 343 </div>
367 <div class="form-group col-sm-3 col-md-2"> 344 <div class="form-group col-sm-3 col-md-2">
368 <label>是您的</label> 345 <label>是您的</label>
369 <span class="form-control select-box"> 346 <span class="form-control select-box">
370 <select class="select" size="1" name="contactRelation"> 347 <select class="select" size="1" name="clientContactInputVOS.99.contactRelation">
371 <?php foreach ($this->session->relationEnum as $k => $v): ?> 348 <?php foreach ($this->session->relationEnum as $k => $v): ?>
372 <option value="<?= $k ?>"><?= $v ?></option> 349 <option value="<?= $k ?>"><?= $v ?></option>
373 <?php endforeach; ?> 350 <?php endforeach; ?>
...@@ -376,18 +353,19 @@ ...@@ -376,18 +353,19 @@
376 </div> 353 </div>
377 <div class="form-group col-sm-3 col-md-2"> 354 <div class="form-group col-sm-3 col-md-2">
378 <label>手机号</label> 355 <label>手机号</label>
379 <input type="text" class="form-control input-text" name="contactPhone" value=""> 356 <input type="text" class="form-control input-text" name="clientContactInputVOS.99.contactPhone" value="">
380 </div> 357 </div>
381 </div> 358 </div>
382 <div class="row cl"> 359 <div class="row cl">
360 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.98.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
383 <div class="form-group col-sm-3 col-md-2"> 361 <div class="form-group col-sm-3 col-md-2">
384 <label>联系人姓名</label> 362 <label>联系人姓名</label>
385 <input type="text" class="form-control input-text" name="contactName" value=""> 363 <input type="text" class="form-control input-text" name="clientContactInputVOS.98.contactName" value="">
386 </div> 364 </div>
387 <div class="form-group col-sm-3 col-md-2"> 365 <div class="form-group col-sm-3 col-md-2">
388 <label>是您的</label> 366 <label>是您的</label>
389 <span class="form-control select-box"> 367 <span class="form-control select-box">
390 <select class="select" size="1" name="contactRelation"> 368 <select class="select" size="1" name="clientContactInputVOS.98.contactRelation">
391 <?php foreach ($this->session->relationEnum as $k => $v): ?> 369 <?php foreach ($this->session->relationEnum as $k => $v): ?>
392 <option value="<?= $k ?>"><?= $v ?></option> 370 <option value="<?= $k ?>"><?= $v ?></option>
393 <?php endforeach; ?> 371 <?php endforeach; ?>
...@@ -396,18 +374,19 @@ ...@@ -396,18 +374,19 @@
396 </div> 374 </div>
397 <div class="form-group col-sm-3 col-md-2"> 375 <div class="form-group col-sm-3 col-md-2">
398 <label>手机号</label> 376 <label>手机号</label>
399 <input type="text" class="form-control input-text" name="contactPhone" value=""> 377 <input type="text" class="form-control input-text" name="clientContactInputVOS.98.contactPhone" value="">
400 </div> 378 </div>
401 </div> 379 </div>
402 <div class="row cl"> 380 <div class="row cl">
381 <input type="hidden" class="form-control input-text" name="clientContactInputVOS.97.userId" value="<?= $clientInfoOutputVO ? $clientInfoOutputVO->id : '' ?>">
403 <div class="form-group col-sm-3 col-md-2"> 382 <div class="form-group col-sm-3 col-md-2">
404 <label>联系人姓名</label> 383 <label>联系人姓名</label>
405 <input type="text" class="form-control input-text" name="contactName" value=""> 384 <input type="text" class="form-control input-text" name="clientContactInputVOS.97.contactName" value="">
406 </div> 385 </div>
407 <div class="form-group col-sm-3 col-md-2"> 386 <div class="form-group col-sm-3 col-md-2">
408 <label>是您的</label> 387 <label>是您的</label>
409 <span class="form-control select-box"> 388 <span class="form-control select-box">
410 <select class="select" size="1" name="contactRelation"> 389 <select class="select" size="1" name="clientContactInputVOS.97.contactRelation">
411 <?php foreach ($this->session->relationEnum as $k => $v): ?> 390 <?php foreach ($this->session->relationEnum as $k => $v): ?>
412 <option value="<?= $k ?>"><?= $v ?></option> 391 <option value="<?= $k ?>"><?= $v ?></option>
413 <?php endforeach; ?> 392 <?php endforeach; ?>
...@@ -416,7 +395,7 @@ ...@@ -416,7 +395,7 @@
416 </div> 395 </div>
417 <div class="form-group col-sm-3 col-md-2"> 396 <div class="form-group col-sm-3 col-md-2">
418 <label>手机号</label> 397 <label>手机号</label>
419 <input type="text" class="form-control input-text" name="contactPhone" value=""> 398 <input type="text" class="form-control input-text" name="clientContactInputVOS.97.contactPhone" value="">
420 </div> 399 </div>
421 </div> 400 </div>
422 </div> 401 </div>
...@@ -426,16 +405,17 @@ ...@@ -426,16 +405,17 @@
426 <div class="panel-header">贷款事项</div> 405 <div class="panel-header">贷款事项</div>
427 <div class="panel-body"> 406 <div class="panel-body">
428 <div class="row cl"> 407 <div class="row cl">
408 <input type="hidden" class="form-control input-text" name="applyOrderVO.id" value="<?= $applyOrderVO ? $applyOrderVO->id : '' ?>">
429 <div class="form-group col-sm-3 col-md-2"> 409 <div class="form-group col-sm-3 col-md-2">
430 <label>申请金额</label> 410 <label id="applyMoney">申请金额</label>
431 <input type="text" class="form-control input-text" 411 <input type="number" class="form-control input-text" name="applyOrderVO.applyMoney"
432 value="<?= $applyOrderVO ? $applyOrderVO->applyMoney : '' ?>"> 412 value="<?= $applyOrderVO ? $applyOrderVO->applyMoney : '' ?>">
433 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span> 413 <span class="glyphicon glyphicon-rmb form-control-feedback" aria-hidden="true"></span>
434 </div> 414 </div>
435 <div class="form-group col-sm-3 col-md-2"> 415 <div class="form-group col-sm-3 col-md-2">
436 <label>贷款期限</label> 416 <label id="deadline">贷款期限</label>
437 <span class="form-control select-box"> 417 <span class="form-control select-box">
438 <select class="select" size="1"> 418 <select class="select" size="1" name="applyOrderVO.deadline">
439 <?php for ($i = 1; $i <= 12; $i++): ?> 419 <?php for ($i = 1; $i <= 12; $i++): ?>
440 <option <?= $applyOrderVO && $applyOrderVO->deadline ? 'selected' : '' ?> 420 <option <?= $applyOrderVO && $applyOrderVO->deadline ? 'selected' : '' ?>
441 value="<?= $i ?>"><?= $i ?></option> 421 value="<?= $i ?>"><?= $i ?></option>
...@@ -446,7 +426,7 @@ ...@@ -446,7 +426,7 @@
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>还款方式</label>
448 <span class="form-control select-box"> 428 <span class="form-control select-box">
449 <select class="select" size=c""> 429 <select class="select" size=c"" name="applyOrderVO.payBackType">
450 <?php foreach ($this->session->repayments as $k => $v): ?> 430 <?php foreach ($this->session->repayments as $k => $v): ?>
451 <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?> 431 <option <?= $applyOrderVO && $applyOrderVO->payBackType ? 'selected' : '' ?>
452 value="<?= $k ?>"><?= $v ?></option> 432 value="<?= $k ?>"><?= $v ?></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="1"> 440 <select class="select" size="1" name="applyOrderVO.use">
461 <?php foreach ($this->session->loanUseEnum as $k => $v): ?> 441 <?php foreach ($this->session->loanUseEnum as $k => $v): ?>
462 <option value="<?= $k ?>"><?= $v ?></option> 442 <option value="<?= $k ?>"><?= $v ?></option>
463 <?php endforeach; ?> 443 <?php endforeach; ?>
...@@ -472,20 +452,20 @@ ...@@ -472,20 +452,20 @@
472 <div class="panel-header">其他</div> 452 <div class="panel-header">其他</div>
473 <div class="panel-body"> 453 <div class="panel-body">
474 <div class="row cl"> 454 <div class="row cl">
475 <div class="form-group col-sm-3 col-md-2"> 455 <!-- <div class="form-group col-sm-3 col-md-2">
476 <label>贷款品种/代码</label> 456 <label>贷款品种/代码</label>
477 <span class="form-control select-box"> 457 <span class="form-control select-box">
478 <select class="select" size="1"> 458 <select class="select" size="1" name="applyOrderVO.productId">
479 <?php foreach ($this->session->products as $k => $v): ?> 459 <?php foreach ($this->session->products as $k => $v): ?>
480 <option value="<?= $v->id ?>"><?= $v->productName ?></option> 460 <option value="<?= $v->id ?>"><?= $v->productName ?></option>
481 <?php endforeach; ?> 461 <?php endforeach; ?>
482 </select> 462 </select>
483 </span> 463 </span>
484 </div> 464 </div> -->
485 <div class="form-group col-sm-3 col-md-2"> 465 <div class="form-group col-sm-3 col-md-2">
486 <label>贷款性质</label> 466 <label>贷款性质</label>
487 <span class="form-control select-box"> 467 <span class="form-control select-box">
488 <select class="select" size="1"> 468 <select class="select" size="1" name="applyOrderVO.useNature">
489 <?php foreach ($this->session->loanNatureEnum as $k => $v): ?> 469 <?php foreach ($this->session->loanNatureEnum as $k => $v): ?>
490 <option value="<?= $k ?>"><?= $v ?></option> 470 <option value="<?= $k ?>"><?= $v ?></option>
491 <?php endforeach; ?> 471 <?php endforeach; ?>
...@@ -506,7 +486,7 @@ ...@@ -506,7 +486,7 @@
506 <?php $this->load->view('work/图片上传'); ?> 486 <?php $this->load->view('work/图片上传'); ?>
507 487
508 <div class="col-sm-offset-4 col-sm-4 pb-20"> 488 <div class="col-sm-offset-4 col-sm-4 pb-20">
509 <button class="btn btn-primary btn-block" type="button" onclick="submit()">提交</button> 489 <button class="btn btn-primary btn-block" type="button" onclick="save()">提交</button>
510 </div> 490 </div>
511 </div> 491 </div>
512 </form> 492 </form>
...@@ -551,17 +531,45 @@ ...@@ -551,17 +531,45 @@
551 } 531 }
552 }); 532 });
553 533
554 function submit() { 534 function save() {
555 layer.confirm('提交成功之后, 将立即进入审批阶段', { 535 var data = $("form").serializeJson();
556 btn: ['确认', '取消'], 536 data = json(data);
557 title: '提交订单' 537 data.clientContactInputVOS = Object.values(data.clientContactInputVOS);
558 }, function () { 538
559 layer_load('提交成功', '<?=site_url("work/recorded")?>'); 539 ajax('client/collection', 'post', data, '操作成功', function () {
540 window.parent.reload();
541 layer_close();
560 }); 542 });
561 } 543 }
562 544
563 var loc = beva.locationutil.attach('province', 'city', 'county', 'address'); 545 var loc = beva.locationutil.attach('province', 'city', 'county', 'address');
564 546
547 $('input[name="applyOrderVO.products"]').on('change', function () {
548 const limit = $(this).data('limit');
549 const deadline = $(this).data('deadline');
550
551 $('#applyMoney').html('申请金额(max: '+limit+')');
552 $('#deadline').html('贷款期限(max: '+deadline+')');
553 })
554
555 $('input[name="applyOrderVO.applyMoney"]').on('keyup', function () {
556 var product = $('input[name="applyOrderVO.products"]:checked');
557 var limit = product.data('limit')
558
559 if($(this).val() > limit) {
560 $(this).val(limit)
561 }
562 });
563
564 $('select[name="applyOrderVO.deadline"]').on('change', function () {
565 var product = $('input[name="applyOrderVO.products"]:checked');
566 var deadline = product.data('deadline')
567
568 if($(this).val() > deadline) {
569 $(this).val(deadline)
570 }
571 });
572
565 uploadList(); 573 uploadList();
566 </script> 574 </script>
567 </body> 575 </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!