2cda9b38 by Zelig

复审不能发起尽调

1 parent 70b1dbf6
...@@ -253,7 +253,9 @@ class Work extends CI_Controller ...@@ -253,7 +253,9 @@ class Work extends CI_Controller
253 $data['getSecondCheck'] = $getSecondCheck; 253 $data['getSecondCheck'] = $getSecondCheck;
254 254
255 $this->load->view('work/审批/终审意见', $data); 255 $this->load->view('work/审批/终审意见', $data);
256 }else{ 256 } elseif($ret->orderVO->status == 5) {
257 $this->load->view('work/审批/意见2', $data);
258 } else {
257 $this->load->view('work/审批/意见', $data); 259 $this->load->view('work/审批/意见', $data);
258 } 260 }
259 } 261 }
......
1 <?php $this->load->view('common/header'); ?>
2
3 <body>
4 <div class="cl pd-5 bg-1">
5 <span class="l">
6 <?php if($applyOrderVO->status == 4): ?>
7 <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/6/'.$id)?>', '录入信用报告');">录入信用报告</button>
8 <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/7/'.$id)?>', '网查筛查');">网查筛查</button>
9 <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/8/'.$id)?>', '电核');">电核</button>
10 <?php endif;?>
11 <button class="btn btn-primary radius" onclick="loadIframe('<?=site_url('work/check/9/'.$id)?>', '受理意见');">受理意见</button>
12 </span>
13 </div>
14
15 <form action="" id="form">
16
17
18 <div class="panel panel-default mb-20">
19 <div class="panel-header">审核意见</div>
20 <div class="panel-body">
21 <div class="row cl">
22 <div class="form-group col-sm-4 col-md-2">
23 <label>拟批</label>
24 <input type="text" class="form-control input-text" name="mockMoney" value="">
25 <span class="glyphicon form-control-feedback"></span>
26 </div>
27 <div class="form-group col-sm-12">
28 <textarea class="textarea" placeholder="" name="description"></textarea>
29 </div>
30 </div>
31 </div>
32 </div>
33 <input type="hidden" name="orderId" value="<?=$id?>">
34 </form>
35
36 <div class="row cl pb-20 col-sm-12">
37 <div class="col-sm-offset-4 col-sm-2">
38 <button class="btn btn-warning btn-block" onclick="history.back()">退回订单</button>
39 </div>
40 <div class="col-sm-2">
41 <button class="btn btn-primary btn-block" onclick="next()">通过</button>
42 </div>
43 </div>
44
45 <?php $this->load->view('common/footer'); ?>
46
47 <script>
48 function next () {
49 layer.confirm('确认通过', {
50 btn: ['确认','取消'],
51 title: '通过',
52 icon: 3
53 }, function(){
54 var orderStatus = "<?=$applyOrderVO->status?>";
55 var data = $('#form').serializeJson();
56 //发起尽调
57 if(data.dueDiligence && data.dueDiligence == '1' && false){
58 $.ajax({
59 type: 'post',
60 url: apiBaseUrl + 'flow/firstDueDiligence',
61 cache: false,
62 data: JSON.stringify(data),
63 dataType: 'json',
64 contentType: "application/json; charset=UTF-8",
65 success: function (data) {
66 if (data.msg) {
67 layer.alert(data.msg);
68 } else if (data.code != 0) {
69 layer.alert('操作失败');
70 } else {
71 layer.alert('操作成功');
72 }
73 if(data.success){
74 setTimeout(function () {
75 loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见');
76 }, 500)
77 }
78 },
79 error: function () {
80 layer.alert("操作失败")
81 }
82 })
83 }else{
84 data.status = 1;
85 var url = 'flow/saveFirstCheck';
86 if(orderStatus == 4) {
87 url = url;
88 } else if(orderStatus == 5) {
89 url = 'flow/saveSecoundCheck';
90 } else if(orderStatus == 6) {
91 url = 'flow/saveLastCheck';
92 }
93 $.ajax({
94 type: 'post',
95 url: apiBaseUrl + url,
96 cache: false,
97 data: JSON.stringify(data),
98 dataType: 'json',
99 contentType: "application/json; charset=UTF-8",
100 success: function (data) {
101 if (data.msg) {
102 layer.alert(data.msg);
103 } else if (data.code != 0) {
104 layer.alert('操作失败');
105 } else {
106 layer.alert('操作成功');
107 }
108 if(!data.code){
109 setTimeout(function () {
110 loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见');
111 }, 500)
112 }
113 },
114 error: function () {
115 layer.alert("操作失败")
116 }
117 })
118 }
119 });
120 }
121 </script>
122 </body>
123 </html>
...@@ -9,16 +9,6 @@ ...@@ -9,16 +9,6 @@
9 9
10 <input type="hidden" name="orderId" value="<?=$id?>"> 10 <input type="hidden" name="orderId" value="<?=$id?>">
11 <div class="tabCon"> 11 <div class="tabCon">
12 <div class="panel panel-default mb-20">
13 <div class="panel-header">尽调目的</div>
14 <div class="panel-body">
15 <div class="row cl">
16 <div class="form-group col-sm-3 col-md-2">
17 {{type.diligencePurpose}}
18 </div>
19 </div>
20 </div>
21 </div>
22 12
23 <?php $this->load->view('work/尽调报告/法人'); //打工\法人2合一?> 13 <?php $this->load->view('work/尽调报告/法人'); //打工\法人2合一?>
24 14
...@@ -67,7 +57,9 @@ ...@@ -67,7 +57,9 @@
67 }, 57 },
68 dueDiligenceVO: { 58 dueDiligenceVO: {
69 dueDiligenceAssetsLiabilitiesVO: {}, 59 dueDiligenceAssetsLiabilitiesVO: {},
70 dueDiligenceBasicInformationVO: {}, 60 dueDiligenceBasicInformationVO: {
61 diligencePurpose: ''
62 },
71 dueDiligenceClientCompanyAssetConditionVO: {}, 63 dueDiligenceClientCompanyAssetConditionVO: {},
72 dueDiligenceCompanyOperationConditionVO: {}, 64 dueDiligenceCompanyOperationConditionVO: {},
73 dueDiligenceCompanyReconnaissanceVO: {}, 65 dueDiligenceCompanyReconnaissanceVO: {},
...@@ -90,6 +82,7 @@ ...@@ -90,6 +82,7 @@
90 this.getType(); 82 this.getType();
91 this.getCompanyNature(); 83 this.getCompanyNature();
92 this.getIndustry(); 84 this.getIndustry();
85 this.getFirstCheck();
93 }, 86 },
94 methods: { 87 methods: {
95 getOrder () { 88 getOrder () {
...@@ -138,10 +131,15 @@ ...@@ -138,10 +131,15 @@
138 }, 131 },
139 getCompanyNature () { 132 getCompanyNature () {
140 instance.get('dueDiligence/enum/companyNature').then( ( {data} ) => { 133 instance.get('dueDiligence/enum/companyNature').then( ( {data} ) => {
141 console.log(data);
142 this.companyNature = data.data; 134 this.companyNature = data.data;
143 }); 135 });
144 }, 136 },
137 getFirstCheck () {
138 instance.get('flow/getFirstCheck/<?=$id?>').then( ( {data} ) => {
139 this.dueDiligenceVO.dueDiligenceBasicInformationVO.diligencePurpose = data.data.diligencePurpose;
140 });
141 },
142
145 submit() { 143 submit() {
146 let _this = this; 144 let _this = this;
147 layer.confirm('确认要提交尽调?', { 145 layer.confirm('确认要提交尽调?', {
......
1 <div class="panel panel-default mb-20">
2 <div class="panel-header">尽调目的</div>
3 <div class="panel-body">
4 <div class="row cl">
5 <div class="form-group col-sm-12">
6 {{dueDiligenceVO.dueDiligenceBasicInformationVO.diligencePurpose}}
7 </div>
8 </div>
9 </div>
10 </div>
11
1 <form action="" id="dueDiligenceBasicInformationVO"> 12 <form action="" id="dueDiligenceBasicInformationVO">
2 <input type="hidden" name="orderId" value="<?=$id?>"> 13 <input type="hidden" name="orderId" value="<?=$id?>">
3 <div class="panel panel-default mb-20"> 14 <div class="panel panel-default mb-20">
...@@ -157,18 +168,18 @@ ...@@ -157,18 +168,18 @@
157 </span> 168 </span>
158 </div> 169 </div>
159 </div> 170 </div>
171 </div>
160 172
161 <div class="row cl"> 173 <div class="row cl">
162 <div class="form-group has-feedback col-sm-3 col-md-2"> 174 <div class="form-group has-feedback col-sm-3 col-md-2">
163 <label>借款人从业时间</label> 175 <label>从业时间</label>
164 <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceWorkConditionVO.workingSeniority"> 176 <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceWorkConditionVO.workingSeniority">
165 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span> 177 <span class="glyphicon glyphicon-year form-control-feedback" aria-hidden="true"></span>
166 </div> 178 </div>
167 <div class="form-group has-feedback col-sm-3 col-md-2"> 179 <div class="form-group has-feedback col-sm-3 col-md-2">
168 <label>在公司所占股份</label> 180 <label>在公司所占股份</label>
169 <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceWorkConditionVO.share"> 181 <input type="text" class="form-control input-text" v-model="dueDiligenceVO.dueDiligenceWorkConditionVO.share">
170 <span class="glyphicon glyphicon-percent form-control-feedback" aria-hidden="true"></span> 182 <span class="glyphicon glyphicon-percent form-control-feedback" aria-hidden="true"></span>
171 </div>
172 </div> 183 </div>
173 </div> 184 </div>
174 185
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!