Merge remote-tracking branch 'origin/develop' into develop
Showing
4 changed files
with
98 additions
and
26 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,32 +64,62 @@ | ... | @@ -64,32 +64,62 @@ |
| 64 | icon: 3 | 64 | icon: 3 |
| 65 | }, function(){ | 65 | }, function(){ |
| 66 | var data = $('#form').serializeJson(); | 66 | var data = $('#form').serializeJson(); |
| 67 | data.status = 1; | 67 | //发起尽调 |
| 68 | $.ajax({ | 68 | if(data.dueDiligence){ |
| 69 | type: 'post', | 69 | $.ajax({ |
| 70 | url: apiBaseUrl + 'flow/saveFirstCheck', | 70 | type: 'post', |
| 71 | cache: false, | 71 | url: apiBaseUrl + 'flow/firstDueDiligence', |
| 72 | data: JSON.stringify(data), | 72 | cache: false, |
| 73 | dataType: 'json', | 73 | data: JSON.stringify(data), |
| 74 | contentType: "application/json; charset=UTF-8", | 74 | dataType: 'json', |
| 75 | success: function (data) { | 75 | contentType: "application/json; charset=UTF-8", |
| 76 | if (data.msg) { | 76 | success: function (data) { |
| 77 | layer.alert(data.msg); | 77 | if (data.msg) { |
| 78 | } else if (data.code != 0) { | 78 | layer.alert(data.msg); |
| 79 | layer.alert('操作失败'); | 79 | } else if (data.code != 0) { |
| 80 | } else { | 80 | layer.alert('操作失败'); |
| 81 | 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("操作失败") | ||
| 82 | } | 92 | } |
| 83 | if(!data.code){ | 93 | }) |
| 84 | setTimeout(function () { | 94 | }else{ |
| 85 | loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见'); | 95 | data.status = 1; |
| 86 | }, 500) | 96 | var orderStatus = "<?=$applyOrderVO->status?>"; |
| 97 | $.ajax({ | ||
| 98 | type: 'post', | ||
| 99 | url: apiBaseUrl + 'flow/saveFirstCheck', | ||
| 100 | cache: false, | ||
| 101 | data: JSON.stringify(data), | ||
| 102 | dataType: 'json', | ||
| 103 | contentType: "application/json; charset=UTF-8", | ||
| 104 | success: function (data) { | ||
| 105 | if (data.msg) { | ||
| 106 | layer.alert(data.msg); | ||
| 107 | } else if (data.code != 0) { | ||
| 108 | layer.alert('操作失败'); | ||
| 109 | } else { | ||
| 110 | layer.alert('操作成功'); | ||
| 111 | } | ||
| 112 | if(!data.code){ | ||
| 113 | setTimeout(function () { | ||
| 114 | loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见'); | ||
| 115 | }, 500) | ||
| 116 | } | ||
| 117 | }, | ||
| 118 | error: function () { | ||
| 119 | layer.alert("操作失败") | ||
| 87 | } | 120 | } |
| 88 | }, | 121 | }) |
| 89 | error: function () { | 122 | } |
| 90 | layer.alert("操作失败") | ||
| 91 | } | ||
| 92 | }) | ||
| 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