Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7847273f
authored
2018-04-10 02:16:00 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
电核
1 parent
c39daada
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
60 deletions
application/views/work/审批/电核.php
application/views/work/审批/电核结果.php
application/views/work/审批/电核.php
View file @
7847273
...
...
@@ -54,7 +54,6 @@
</tbody>
</table>
</div>
</div>
<div
class=
"row cl pb-20 col-sm-12"
>
<div
class=
"col-sm-offset-3 col-sm-2"
>
...
...
@@ -64,7 +63,8 @@
<button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button>
</div>-->
<div
class=
"col-sm-2"
>
<button
class=
"btn btn-primary btn-block"
onclick=
"pass()"
>
通过
</button>
<button
class=
"btn btn-primary btn-block"
@
click=
"submit()"
>
通过
</button>
</div>
</div>
</div>
...
...
@@ -74,55 +74,179 @@
var vm = new Vue({
el: '#tab',
data: {
clientInfoOutputVO: {},
clientContactOutputVOS: {},
orderVO: {},
records: [],
use: [],
nature: [],
phoneAudit: {
"accountAddress":"",
"applyAmount":0,
"buildingArea":0,
"chineseZodiac":"",
"companyName":"",
"companyPhoneNumber":"",
"constructionTime":"",
"contacts":[
{},
{},
{},
],
"creditCardMonthRepayAmount":0,
"currentCompanyAddress":"",
"currentCompanyEntryTime":"",
"decorationCost":0,
"familyMembers":[
{},
{},
{},
],
"familySituationIsReal":0,
"financialInstitutions":[
{},
{},
{},
],
"hasProvidentFund":0,
"hasSocialInsurance":0,
"housingValuation":0,
"id":0,
"idCard":"",
"identityInformationOptions":0,
"identityInformationRemark":"",
"incomeCertifies":"",
"incomeCertifiesJobTitle":"",
"jianAnValuation":0,
"jobTitle":"",
"liveYears":0,
"livingCondition":0,
"loanMonthRepayAmount":0,
"loanPeriod":0,
"loanUse":"",
"maritalRemark":"",
"maritalStatus":0,
"monthlyIncome":0,
"name":"",
"nowAddress":"",
"operateInformationOptions":0,
"operateInformationRemark":"",
"orderId":0,
"otherAssets":"",
"otherAssetsDetail":"",
"otherAssetsValuation":0,
"overdueReasons":"",
"permanentPopulation":0,
"populationComposition":"",
"providentFundAmount":0,
"realEstateAmount":0,
"salaryPaymentForm":0,
"socialInsuranceAmount":0,
"totalAssetsAmount":0,
"totalCreditLiabilityAmount":0,
"totalNoneCreditLiabilityAmount":0,
"vehicleBrands":"string",
"vehicleNumber":0,
"vehicleValuation":0,
"whetherLongResidence":0,
"workingYears":0
},
records: {},
use: {},
marry: {},
nature: {},
relation: {},
dwell: {},
wagePaymentForm: {},
},
mounted () {
this.getRecords();
this.getClient();
this.getUse();
this.getNature();
this.getEnum();
},
methods: {
getRecords () {
let _this = this;
instance.get('/audit/phoneAudit/record/
<?=
$id
?>
').then( ( {data} ) => {
this.records = data.data.reverse();
});
},
getClient () {
let _this = this;
instance.get('order/detail/
<?=
$id
?>
').then( ( {data} ) => {
console.log(data);
this.clientInfoOutputVO = data.data.clientInfoOutputVO;
this.orderVO = data.data.orderVO;
this.clientContactOutputVOS = data.data.clientContactOutputVOS;
});
},
getUse () {
let _this = this;
getEnum () {
instance.get('dueDiligence/enum/loanPurpose').then( ( {data} ) => {
this.use = data.data;
});
},
getNature () {
let _this = this;
instance.get('/enum/loan/nature').then( ( {data} ) => {
this.nature = data.data;
});
instance.get('client/enum/marry').then( ( {data} ) => {
this.marry = data.data;
});
instance.get('client/enum/contact/relation').then( ( {data} ) => {
this.relation = data.data;
});
instance.get('client/enum/dwell').then( ( {data} ) => {
this.dwell = data.data;
});
instance.get('client/enum/wagePaymentForm').then( ( {data} ) => {
this.wagePaymentForm = data.data;
});
},
addFamilyMembers () {
this.phoneAudit.familyMembers.push({});
},
addContacts () {
this.phoneAudit.contacts.push({});
},
addFinancialInstitution () {
this.phoneAudit.financialInstitutions.push({});
},
getPhoneAudit: function () {
instance.get('/audit/phoneAudit/
<?=
$id
?>
').then( ( {data} ) => {
if(data.data) {
this.phoneAudit = data.data;
}
});
},
filters: {
shengxiao(birthDate){
let yyyy = new Date(birthDate).getFullYear();
submit () {
var data = this.phoneAudit;
var url = '
<?=
site_url
(
'/work/check/9/'
.
$id
);
?>
';
$.ajax({
type: 'post',
url: apiBaseUrl + 'audit/phoneAudit',
cache: false,
data: JSON.stringify(data),
dataType: 'json',
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.alert('操作成功');
}
if(!data.code){
setTimeout(function () {
loadIframe(url, '审核意见');
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
})
}
},
watch: {
'phoneAudit.idCard' (idCard) {
if(idCard.length >= 10) {
var yyyy = idCard.substring(6, 10)
var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
return /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
this.phoneAudit.chineseZodiac = /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
} else {
this.phoneAudit.chineseZodiac = '';
}
}
// shengxiao(idCard){
// substring
// var arr=['猴','鸡','狗','猪','鼠','牛','虎','兔','龙','蛇','马','羊'];
// return /^\d{4}$/.test(yyyy)?arr[yyyy%12]:null;
// }
}
});
function getQueryString(name) {
...
...
@@ -154,36 +278,6 @@
content: '
<?=
site_url
(
'work/telRefuse'
)
?>
'
});
}
function pass() {
var data = $("#form1").serializeJson();
var url = '
<?=
site_url
(
'/work/check/9/'
.
$id
);
?>
';
$.ajax({
type: '
post
',
url: apiBaseUrl + '
audit
/
phoneAudit
',
cache: false,
data: JSON.stringify(data),
dataType: '
json
',
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('
操作失败
');
} else {
layer.alert('
操作成功
');
}
if(!data.code){
setTimeout(function () {
loadIframe(url, '
审核意见'
);
},
500
)
}
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
}
})
}
</script>
</body>
</html>
...
...
application/views/work/审批/电核结果.php
View file @
7847273
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment