|
@@ -192,19 +192,18 @@ class Returngoods extends Start_Controller {
|
|
|
}
|
|
|
|
|
|
$info = $this->returngoods->find("orderinfo = ".$order_info['orderinfo']);
|
|
|
- if(!empty($info)){
|
|
|
- if($info['status']!=120){
|
|
|
- return $this->_see([$info['id']]);
|
|
|
- }
|
|
|
-
|
|
|
+ if(!empty($info) &&($info['status']!=120)){
|
|
|
+ $this->_see([$info['id']]);
|
|
|
+ }else{
|
|
|
+ $this->data['order_info'] = $order_info;
|
|
|
+ $this->data['status_list'] = $this->returngoods->getStatus();
|
|
|
+ $this->data['cate_one_list'] = $this->returngoods->getCateOne();
|
|
|
+ $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());
|
|
|
+ $this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
|
+ $this->_Template('returngoods_add',$this->data);
|
|
|
}
|
|
|
|
|
|
- $this->data['order_info'] = $order_info;
|
|
|
- $this->data['status_list'] = $this->returngoods->getStatus();
|
|
|
- $this->data['cate_one_list'] = $this->returngoods->getCateOne();
|
|
|
- $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());
|
|
|
- $this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
|
- $this->_Template('returngoods_add',$this->data);
|
|
|
+
|
|
|
}
|
|
|
public function _edit($arg_array){
|
|
|
$post = $this->input->post(NULL, TRUE);
|