57249554 by 杨建斌

init

1 parent 121f0132
...@@ -352,6 +352,24 @@ class Work extends CI_Controller ...@@ -352,6 +352,24 @@ class Work extends CI_Controller
352 352
353 public function inquiry ($id) 353 public function inquiry ($id)
354 { 354 {
355 $url = $this->config->item('apiBaseUrl') . 'order/detail/' . $id;
356 $result = file_get_contents($url);
357 $json = json_decode($result);
358 $ret = $json->data;
359 if (!$ret->clientUnitOutputVO) {
360 $ret->clientUnitOutputVO = array();
361 }
362 if (!$ret->clientContactOutputVOS) {
363 $ret->clientContactOutputVOS = array();
364 }
365
366 $data = array(
367 'clientInfoOutputVO' => $ret->clientInfoOutputVO,
368 'clientUnitOutputVO' => $ret->clientUnitOutputVO,
369 'clientContactOutputVOS' => $ret->clientContactOutputVOS,
370 'applyOrderVO' => $ret->applyOrderVO
371 );
372
355 $this->load->view('/work/尽调报告/index', compact('id')); 373 $this->load->view('/work/尽调报告/index', compact('id'));
356 } 374 }
357 } 375 }
......
...@@ -8,8 +8,13 @@ ...@@ -8,8 +8,13 @@
8 </div> 8 </div>
9 9
10 <div class="tabCon"> 10 <div class="tabCon">
11 <?php $this->load->view('work/尽调报告/打工'); ?> 11 <?php
12 <!-- <?php $this->load->view('work/尽调报告/法人'); ?> --> 12 if($clientUnitInputVO->jobType == 1){ //打工类
13 $this->load->view('work/尽调报告/打工');
14 } else { // 经营类
15 $this->load->view('work/尽调报告/法人');
16 }
17 ?>
13 </div> 18 </div>
14 19
15 <div class="tabCon"> 20 <div class="tabCon">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!