资料清单.php
4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php $this->load->view('common/header'); ?>
<body>
<?php $this->load->view('work/审批/header'); ?>
<div id="tab" class="HuiTab">
<div class="tabBar clearfix" style="background-color:#e8e8e8">
<span>申请信息</span>
<span>尽调报告</span>
<!-- <span>信用报告</span> -->
<!-- <span>电核结果</span>-->
<!-- <span>网查筛查(图片)</span>-->
<!-- <span>附件清单(图片)</span>-->
</div>
<div class="tabCon">
<?php $this->load->view('work/申请信息/借款人信息'); ?>
<?php $this->load->view('work/申请信息/单位信息'); ?>
<?php $this->load->view('work/申请信息/联系人信息'); ?>
</div>
<div class="tabCon" id="disabled">
<div class="panel panel-default mb-20" v-for="(dueDiligenceVO, index, key) in dueDiligences">
<div class="panel-header">尽调报告{{index}}<span class="r"><button class="btn btn-primary pannel-sh">显示/隐藏</button></span></div>
<div class="panel-body" style="display: none">
<?php $this->load->view('work/尽调报告/法人'); //打工\法人2合一?>
</div>
</div>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
var vm = new Vue({
el: '#tab',
data: {
dueDiligences: '',
marry: {},
folkHasKnows: {},
type: {},
},
mounted () {
this.getDueDiligences();
this.getMarry();
this.getFolkHasKnow();
this.getType();
this.getCompanyNature();
this.getIndustry();
},
methods: {
async getDueDiligences () {
await instance.get('/dueDiligence/<?=$id?>').then( ( {data} ) => {
this.dueDiligences = data.data;
});
$('.btn.btn-primary.pannel-sh').on('click', function () {
$(this).parent().parent().siblings('.panel-body').toggle();
});
$('#disabled').find('input').each(function () {
$(this).attr("readonly","readonly")
})
$('#disabled').find('select').each(function () {
$(this).attr("disabled","disabled")
})
},
getMarry () {
instance.get('client/enum/marry').then( ( {data} ) => {
this.marry = data.data;
});
},
getFolkHasKnow () {
instance.get('dueDiligence/enum/folkHasKnow').then( ( {data} ) => {
this.folkHasKnows = data.data;
});
},
getType () {
instance.get('dueDiligence/type/<?=$id?>').then( ( {data} ) => {
this.type = data.data;
});
},
getIndustry () {
instance.get('dueDiligence/enum/industry').then( ( {data} ) => {
this.industry = data.data;
});
},
getCompanyNature () {
instance.get('dueDiligence/enum/companyNature').then( ( {data} ) => {
this.companyNature = data.data;
});
},
},
});
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var index = getQueryString('tab');
var loc = beva.locationutil.attach('province', 'city', 'county', 'address');
loc.setSelectedCodes(['<?=$clientInfoOutputVO->registerProvince?>', '<?=$clientInfoOutputVO->registerCity?>', '<?=$clientInfoOutputVO->registerCounty?>']);
$("#tab").Huitab({index: index});
</script>
</body>
</html>