7847273f by Zelig

电核

1 parent c39daada
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
54 </tbody> 54 </tbody>
55 </table> 55 </table>
56 </div> 56 </div>
57 </div>
58 57
59 <div class="row cl pb-20 col-sm-12"> 58 <div class="row cl pb-20 col-sm-12">
60 <div class="col-sm-offset-3 col-sm-2"> 59 <div class="col-sm-offset-3 col-sm-2">
...@@ -64,7 +63,8 @@ ...@@ -64,7 +63,8 @@
64 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button> 63 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button>
65 </div>--> 64 </div>-->
66 <div class="col-sm-2"> 65 <div class="col-sm-2">
67 <button class="btn btn-primary btn-block" onclick="pass()">通过</button> 66 <button class="btn btn-primary btn-block" @click="submit()">通过</button>
67 </div>
68 </div> 68 </div>
69 </div> 69 </div>
70 70
...@@ -74,55 +74,179 @@ ...@@ -74,55 +74,179 @@
74 var vm = new Vue({ 74 var vm = new Vue({
75 el: '#tab', 75 el: '#tab',
76 data: { 76 data: {
77 clientInfoOutputVO: {}, 77 phoneAudit: {
78 clientContactOutputVOS: {}, 78 "accountAddress":"",
79 orderVO: {}, 79 "applyAmount":0,
80 records: [], 80 "buildingArea":0,
81 use: [], 81 "chineseZodiac":"",
82 nature: [], 82 "companyName":"",
83 "companyPhoneNumber":"",
84 "constructionTime":"",
85 "contacts":[
86 {},
87 {},
88 {},
89 ],
90 "creditCardMonthRepayAmount":0,
91 "currentCompanyAddress":"",
92 "currentCompanyEntryTime":"",
93 "decorationCost":0,
94 "familyMembers":[
95 {},
96 {},
97 {},
98 ],
99 "familySituationIsReal":0,
100 "financialInstitutions":[
101 {},
102 {},
103 {},
104 ],
105 "hasProvidentFund":0,
106 "hasSocialInsurance":0,
107 "housingValuation":0,
108 "id":0,
109 "idCard":"",
110 "identityInformationOptions":0,
111 "identityInformationRemark":"",
112 "incomeCertifies":"",
113 "incomeCertifiesJobTitle":"",
114 "jianAnValuation":0,
115 "jobTitle":"",
116 "liveYears":0,
117 "livingCondition":0,
118 "loanMonthRepayAmount":0,
119 "loanPeriod":0,
120 "loanUse":"",
121 "maritalRemark":"",
122 "maritalStatus":0,
123 "monthlyIncome":0,
124 "name":"",
125 "nowAddress":"",
126 "operateInformationOptions":0,
127 "operateInformationRemark":"",
128 "orderId":0,
129 "otherAssets":"",
130 "otherAssetsDetail":"",
131 "otherAssetsValuation":0,
132 "overdueReasons":"",
133 "permanentPopulation":0,
134 "populationComposition":"",
135 "providentFundAmount":0,
136 "realEstateAmount":0,
137 "salaryPaymentForm":0,
138 "socialInsuranceAmount":0,
139 "totalAssetsAmount":0,
140 "totalCreditLiabilityAmount":0,
141 "totalNoneCreditLiabilityAmount":0,
142 "vehicleBrands":"string",
143 "vehicleNumber":0,
144 "vehicleValuation":0,
145 "whetherLongResidence":0,
146 "workingYears":0
147 },
148 records: {},
149
150 use: {},
151 marry: {},
152 nature: {},
153 relation: {},
154 dwell: {},
155 wagePaymentForm: {},
83 }, 156 },
84 mounted () { 157 mounted () {
85 this.getRecords(); 158 this.getRecords();
86 this.getClient(); 159 this.getEnum();
87 this.getUse();
88 this.getNature();
89 }, 160 },
90 methods: { 161 methods: {
91 getRecords () { 162 getRecords () {
92 let _this = this;
93 instance.get('/audit/phoneAudit/record/<?=$id?>').then( ( {data} ) => { 163 instance.get('/audit/phoneAudit/record/<?=$id?>').then( ( {data} ) => {
94 this.records = data.data.reverse(); 164 this.records = data.data.reverse();
95 }); 165 });
96 }, 166 },
97 getClient () { 167 getEnum () {
98 let _this = this;
99 instance.get('order/detail/<?=$id?>').then( ( {data} ) => {
100 console.log(data);
101 this.clientInfoOutputVO = data.data.clientInfoOutputVO;
102 this.orderVO = data.data.orderVO;
103 this.clientContactOutputVOS = data.data.clientContactOutputVOS;
104 });
105 },
106 getUse () {
107 let _this = this;
108 instance.get('dueDiligence/enum/loanPurpose').then( ( {data} ) => { 168 instance.get('dueDiligence/enum/loanPurpose').then( ( {data} ) => {
109 this.use = data.data; 169 this.use = data.data;
110 }); 170 });
111 },
112 getNature () {
113 let _this = this;
114 instance.get('/enum/loan/nature').then( ( {data} ) => { 171 instance.get('/enum/loan/nature').then( ( {data} ) => {
115 this.nature = data.data; 172 this.nature = data.data;
116 }); 173 });
174 instance.get('client/enum/marry').then( ( {data} ) => {
175 this.marry = data.data;
176 });
177 instance.get('client/enum/contact/relation').then( ( {data} ) => {
178 this.relation = data.data;
179 });
180 instance.get('client/enum/dwell').then( ( {data} ) => {
181 this.dwell = data.data;
182 });
183 instance.get('client/enum/wagePaymentForm').then( ( {data} ) => {
184 this.wagePaymentForm = data.data;
185 });
186 },
187 addFamilyMembers () {
188 this.phoneAudit.familyMembers.push({});
189 },
190 addContacts () {
191 this.phoneAudit.contacts.push({});
192 },
193 addFinancialInstitution () {
194 this.phoneAudit.financialInstitutions.push({});
195 },
196 getPhoneAudit: function () {
197 instance.get('/audit/phoneAudit/<?=$id?>').then( ( {data} ) => {
198 if(data.data) {
199 this.phoneAudit = data.data;
117 } 200 }
201 });
118 }, 202 },
119 filters: { 203
120 shengxiao(birthDate){ 204 submit () {
121 let yyyy = new Date(birthDate).getFullYear(); 205 var data = this.phoneAudit;
206 var url = '<?=site_url('/work/check/9/' . $id);?>';
207 $.ajax({
208 type: 'post',
209 url: apiBaseUrl + 'audit/phoneAudit',
210 cache: false,
211 data: JSON.stringify(data),
212 dataType: 'json',
213 contentType: "application/json; charset=UTF-8",
214 success: function (data) {
215 if (data.msg) {
216 layer.alert(data.msg);
217 } else if (data.code != 0) {
218 layer.alert('操作失败');
219 } else {
220 layer.alert('操作成功');
221 }
222 if(!data.code){
223 setTimeout(function () {
224 loadIframe(url, '审核意见');
225 }, 500)
226 }
227 },
228 error: function () {
229 layer.alert("操作失败")
230 }
231 })
232 }
233 },
234 watch: {
235 'phoneAudit.idCard' (idCard) {
236 if(idCard.length >= 10) {
237 var yyyy = idCard.substring(6, 10)
122 var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊']; 238 var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
123 return /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null; 239 this.phoneAudit.chineseZodiac = /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
240 } else {
241 this.phoneAudit.chineseZodiac = '';
124 } 242 }
125 } 243 }
244 // shengxiao(idCard){
245 // substring
246 // var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
247 // return /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
248 // }
249 }
126 }); 250 });
127 251
128 function getQueryString(name) { 252 function getQueryString(name) {
...@@ -154,36 +278,6 @@ ...@@ -154,36 +278,6 @@
154 content: '<?=site_url('work/telRefuse')?>' 278 content: '<?=site_url('work/telRefuse')?>'
155 }); 279 });
156 } 280 }
157
158 function pass() {
159 var data = $("#form1").serializeJson();
160 var url = '<?=site_url('/work/check/9/' . $id);?>';
161 $.ajax({
162 type: 'post',
163 url: apiBaseUrl + 'audit/phoneAudit',
164 cache: false,
165 data: JSON.stringify(data),
166 dataType: 'json',
167 contentType: "application/json; charset=UTF-8",
168 success: function (data) {
169 if (data.msg) {
170 layer.alert(data.msg);
171 } else if (data.code != 0) {
172 layer.alert('操作失败');
173 } else {
174 layer.alert('操作成功');
175 }
176 if(!data.code){
177 setTimeout(function () {
178 loadIframe(url, '审核意见');
179 }, 500)
180 }
181 },
182 error: function () {
183 layer.alert("操作失败")
184 }
185 })
186 }
187 </script> 281 </script>
188 </body> 282 </body>
189 </html> 283 </html>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!