Browse Source

传递漏写的东西

lvhao 6 months ago
parent
commit
83f77c7913
1 changed files with 12 additions and 3 deletions
  1. 12 3
      core/CoreApp/controllers/Returngoods.php

+ 12 - 3
core/CoreApp/controllers/Returngoods.php

@@ -122,8 +122,11 @@ class Returngoods extends Start_Controller {
         $this->data['status_list'] = $this->returngoods->getStatus();    
         $this->data['back_status_list'] = $this->returngoods->getBackStatus();    
         $this->data['cate_one_list'] = $this->returngoods->getCateOne();    
-        $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());    
-    
+        $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());  
+        $orderinfo = $this->input->get('orderinfo');
+        $this->data['orderinfo'] = $orderinfo;
+        // var_dump($orderinfo);
+        // die;
         $this->_Template("returngoods",$this->data);
     }
     //添加登记记录
@@ -231,7 +234,7 @@ class Returngoods extends Start_Controller {
         	}
 		}
         $id= $arg_array[0];
-
+       
         $info = $this->returngoods->read($id);
         $order_info = $this->_getOrderInfo($info['orderinfo']);
         
@@ -250,6 +253,12 @@ class Returngoods extends Start_Controller {
     }
     public function _see($arg_array){
         $id = $arg_array[0];
+        $type = isset($arg_array[1])?$arg_array[1]:'id';
+        if($type == 'orderinfo'){
+            $list = $this->returngoods->find_all('orderinfo = '.$id,'*','id desc');
+            $info = $list[0];
+            $id = $info['id'];
+        }
         $info = $this->_getInfo($id);
         $order_info = $this->_getOrderInfo($info['orderinfo']);
         $shop = $this->shop->read($info['shop']);