Merge remote-tracking branch 'origin/develop' into develop
Showing
4 changed files
with
74 additions
and
2 deletions
| ... | @@ -349,4 +349,9 @@ class Work extends CI_Controller | ... | @@ -349,4 +349,9 @@ class Work extends CI_Controller |
| 349 | $data['draw'] = $draw + 1; | 349 | $data['draw'] = $draw + 1; |
| 350 | $this->output->set_content_type('application/json')->set_output(json_encode($data)); | 350 | $this->output->set_content_type('application/json')->set_output(json_encode($data)); |
| 351 | } | 351 | } |
| 352 | |||
| 353 | public function inquiry ($id) | ||
| 354 | { | ||
| 355 | $this->load->view('/work/尽调报告/index', compact('id')); | ||
| 356 | } | ||
| 352 | } | 357 | } | ... | ... |
| ... | @@ -37,7 +37,7 @@ | ... | @@ -37,7 +37,7 @@ |
| 37 | </span> | 37 | </span> |
| 38 | </div> | 38 | </div> |
| 39 | <div class="form-group col-sm-12"> | 39 | <div class="form-group col-sm-12"> |
| 40 | <textarea class="textarea" placeholder="" name="dueDiligencePurpose"></textarea> | 40 | <textarea class="textarea" placeholder="" name="diligencePurpose"></textarea> |
| 41 | </div> | 41 | </div> |
| 42 | </div> | 42 | </div> |
| 43 | </div> | 43 | </div> |
| ... | @@ -64,7 +64,36 @@ | ... | @@ -64,7 +64,36 @@ |
| 64 | icon: 3 | 64 | icon: 3 |
| 65 | }, function(){ | 65 | }, function(){ |
| 66 | var data = $('#form').serializeJson(); | 66 | var data = $('#form').serializeJson(); |
| 67 | //发起尽调 | ||
| 68 | if(data.dueDiligence){ | ||
| 69 | $.ajax({ | ||
| 70 | type: 'post', | ||
| 71 | url: apiBaseUrl + 'flow/firstDueDiligence', | ||
| 72 | cache: false, | ||
| 73 | data: JSON.stringify(data), | ||
| 74 | dataType: 'json', | ||
| 75 | contentType: "application/json; charset=UTF-8", | ||
| 76 | success: function (data) { | ||
| 77 | if (data.msg) { | ||
| 78 | layer.alert(data.msg); | ||
| 79 | } else if (data.code != 0) { | ||
| 80 | layer.alert('操作失败'); | ||
| 81 | } else { | ||
| 82 | layer.alert('操作成功'); | ||
| 83 | } | ||
| 84 | if(!data.code){ | ||
| 85 | setTimeout(function () { | ||
| 86 | loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见'); | ||
| 87 | }, 500) | ||
| 88 | } | ||
| 89 | }, | ||
| 90 | error: function () { | ||
| 91 | layer.alert("操作失败") | ||
| 92 | } | ||
| 93 | }) | ||
| 94 | }else{ | ||
| 67 | data.status = 1; | 95 | data.status = 1; |
| 96 | var orderStatus = "<?=$applyOrderVO->status?>"; | ||
| 68 | $.ajax({ | 97 | $.ajax({ |
| 69 | type: 'post', | 98 | type: 'post', |
| 70 | url: apiBaseUrl + 'flow/saveFirstCheck', | 99 | url: apiBaseUrl + 'flow/saveFirstCheck', |
| ... | @@ -90,6 +119,7 @@ | ... | @@ -90,6 +119,7 @@ |
| 90 | layer.alert("操作失败") | 119 | layer.alert("操作失败") |
| 91 | } | 120 | } |
| 92 | }) | 121 | }) |
| 122 | } | ||
| 93 | }); | 123 | }); |
| 94 | } | 124 | } |
| 95 | </script> | 125 | </script> | ... | ... |
application/views/work/尽调报告/index.php
0 → 100644
| 1 | <?php $this->load->view('common/header'); ?> | ||
| 2 | |||
| 3 | <body> | ||
| 4 | <div id="tab" class="HuiTab"> | ||
| 5 | <div class="tabBar clearfix" style="background-color:#e8e8e8"> | ||
| 6 | <span>尽调报告</span> | ||
| 7 | <span>资料清单</span> | ||
| 8 | </div> | ||
| 9 | |||
| 10 | <div class="tabCon"> | ||
| 11 | <?php $this->load->view('work/尽调报告/打工'); ?> | ||
| 12 | <!-- <?php $this->load->view('work/尽调报告/法人'); ?> --> | ||
| 13 | </div> | ||
| 14 | |||
| 15 | <div class="tabCon"> | ||
| 16 | <?php $this->load->view('work/图片上传'); ?> | ||
| 17 | </div> | ||
| 18 | |||
| 19 | </div> | ||
| 20 | |||
| 21 | <?php $this->load->view('common/footer'); ?> | ||
| 22 | |||
| 23 | <script> | ||
| 24 | function getQueryString(name) { | ||
| 25 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); | ||
| 26 | var r = window.location.search.substr(1).match(reg); | ||
| 27 | if (r != null) return unescape(r[2]); return null; | ||
| 28 | } | ||
| 29 | |||
| 30 | var index = getQueryString('tab'); | ||
| 31 | |||
| 32 | $("#tab").Huitab({index: index}); | ||
| 33 | |||
| 34 | uploadList(); | ||
| 35 | </script> | ||
| 36 | </body> | ||
| 37 | </html> |
| ... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
| 67 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ | 67 | <button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\ |
| 68 | <ul class="dropDown-menu menu radius box-shadow">\ | 68 | <ul class="dropDown-menu menu radius box-shadow">\ |
| 69 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/' + data + '?tab=0\')">查看详细</a></li>\ | 69 | <li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.php/work/detail/' + data + '?tab=0\')">查看详细</a></li>\ |
| 70 | <li><a href="javascript:;" onclick="layer_show(\'资料补录\', \'/index.php/work/record/' + data + '\')">马上尽调</a></li>\ | 70 | <li><a href="javascript:;" onclick="layer_show(\'马上尽调\', \'/index.php/work/inquiry/' + data + '\')">马上尽调</a></li>\ |
| 71 | <li><a href="javascript:;" onclick="rollback(' + data + ')">驳回</a></li>\ | 71 | <li><a href="javascript:;" onclick="rollback(' + data + ')">驳回</a></li>\ |
| 72 | <li>\ | 72 | <li>\ |
| 73 | <a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\ | 73 | <a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\ | ... | ... |
-
Please register or sign in to post a comment