|
@@ -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']);
|