|
@@ -161,6 +161,12 @@ class Returngoods extends Start_Controller {
|
|
}
|
|
}
|
|
$time = date("Y-m-d H:i:s",time());
|
|
$time = date("Y-m-d H:i:s",time());
|
|
$type = $this->logic_order->getType("number = '".$post['number']."'");
|
|
$type = $this->logic_order->getType("number = '".$post['number']."'");
|
|
|
|
+ //如果是tiktok的平台 需要添加紧急程度 和售后评价等级
|
|
|
|
+ if($type ==2){
|
|
|
|
+ if(empty($post['jjcd'])){
|
|
|
|
+ echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if(empty($type)){
|
|
if(empty($type)){
|
|
echo json_encode(array('msg'=>'订单信息存储表单异常','success'=>false));exit;
|
|
echo json_encode(array('msg'=>'订单信息存储表单异常','success'=>false));exit;
|
|
}
|
|
}
|
|
@@ -175,6 +181,8 @@ class Returngoods extends Start_Controller {
|
|
"cate_one"=> $post['cate_one'],
|
|
"cate_one"=> $post['cate_one'],
|
|
"cate_two"=> empty($post['cate_two'])?0:$post['cate_two'],
|
|
"cate_two"=> empty($post['cate_two'])?0:$post['cate_two'],
|
|
"remark"=> $post['remark'],
|
|
"remark"=> $post['remark'],
|
|
|
|
+ 'jjcd'=>empty($post['jjcd'])?0:$post['jjcd'],
|
|
|
|
+ 'shpjxx'=>empty($post['shpjxx'])?0:$post['shpjxx'],
|
|
"create_time"=>$time,
|
|
"create_time"=>$time,
|
|
"update_time"=>$time
|
|
"update_time"=>$time
|
|
];
|
|
];
|
|
@@ -219,6 +227,8 @@ class Returngoods extends Start_Controller {
|
|
$this->data['status_list'] = $this->returngoods->getStatus();
|
|
$this->data['status_list'] = $this->returngoods->getStatus();
|
|
$this->data['cate_one_list'] = $this->returngoods->getCateOne();
|
|
$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());
|
|
|
|
+ $this->data['jjcd'] = $this->returngoods->getJinJiChengDu();
|
|
|
|
+ $this->data['shpjxx'] = $this->returngoods->getShouHouPingJiaXuanXian();
|
|
$this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
$this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
$this->_Template('returngoods_add',$this->data);
|
|
$this->_Template('returngoods_add',$this->data);
|
|
}
|
|
}
|
|
@@ -251,13 +261,24 @@ class Returngoods extends Start_Controller {
|
|
echo json_encode(array('msg'=>'登记人名字必须填写!请填写','success'=>false));exit;
|
|
echo json_encode(array('msg'=>'登记人名字必须填写!请填写','success'=>false));exit;
|
|
}
|
|
}
|
|
$time = date("Y-m-d H:i:s",time());
|
|
$time = date("Y-m-d H:i:s",time());
|
|
|
|
+ $type = $post['table_type'];
|
|
|
|
+ //如果是tiktok的平台 需要添加紧急程度 和售后评价等级
|
|
|
|
+ if($type ==2){
|
|
|
|
+ if(empty($post['jjcd'])){
|
|
|
|
+ echo json_encode(array('msg'=>'紧急程度必须选择!请选择','success'=>false));exit;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$insert_data =[
|
|
$insert_data =[
|
|
'recorder'=>$post['recorder'],
|
|
'recorder'=>$post['recorder'],
|
|
"cate_one"=> $post['cate_one'],
|
|
"cate_one"=> $post['cate_one'],
|
|
"cate_two"=> empty($post['cate_two'])?0:$post['cate_two'],
|
|
"cate_two"=> empty($post['cate_two'])?0:$post['cate_two'],
|
|
"remark"=> $post['remark'],
|
|
"remark"=> $post['remark'],
|
|
|
|
+ 'jjcd'=>empty($post['jjcd'])?0:$post['jjcd'],
|
|
|
|
+ 'shpjxx'=>empty($post['shpjxx'])?0:$post['shpjxx'],
|
|
"update_time"=>$time
|
|
"update_time"=>$time
|
|
];
|
|
];
|
|
|
|
+
|
|
|
|
+
|
|
if($this->returngoods->save($insert_data,$post['id']))
|
|
if($this->returngoods->save($insert_data,$post['id']))
|
|
{
|
|
{
|
|
$user = $this->user->get_api($_SESSION['api']);
|
|
$user = $this->user->get_api($_SESSION['api']);
|
|
@@ -291,6 +312,8 @@ class Returngoods extends Start_Controller {
|
|
$this->data['cate_two_list'] = json_encode($cate_list);
|
|
$this->data['cate_two_list'] = json_encode($cate_list);
|
|
$this->data['cate_two_show'] = $cate_list[$info['cate_one']];
|
|
$this->data['cate_two_show'] = $cate_list[$info['cate_one']];
|
|
$this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
$this->data['shop_info'] = $this->shop->read($order_info['shop']);
|
|
|
|
+ $this->data['jjcd'] = $this->returngoods->getJinJiChengDu();
|
|
|
|
+ $this->data['shpjxx'] = $this->returngoods->getShouHouPingJiaXuanXian();
|
|
$this->data['info'] = $info;
|
|
$this->data['info'] = $info;
|
|
$this->_Template('returngoods_edit',$this->data);
|
|
$this->_Template('returngoods_edit',$this->data);
|
|
}
|
|
}
|
|
@@ -599,6 +622,7 @@ class Returngoods extends Start_Controller {
|
|
$cate_one_show = $this->returngoods->getCateOne();
|
|
$cate_one_show = $this->returngoods->getCateOne();
|
|
$cate_two_show = $this->returngoods->getCateTwo();
|
|
$cate_two_show = $this->returngoods->getCateTwo();
|
|
$back_status_show = $this->returngoods->getBackStatus();
|
|
$back_status_show = $this->returngoods->getBackStatus();
|
|
|
|
+ $jjcd_list = $this->returngoods->getJinJiChengDu();
|
|
//格式化数据
|
|
//格式化数据
|
|
foreach ($info_list as $key=>$value)
|
|
foreach ($info_list as $key=>$value)
|
|
{
|
|
{
|
|
@@ -626,6 +650,11 @@ class Returngoods extends Start_Controller {
|
|
}else{
|
|
}else{
|
|
$tmp['cate_show'] = $cate_one_show[$value['cate_one']]."-".$cate_two_show[$value['cate_one']][$value['cate_two']];
|
|
$tmp['cate_show'] = $cate_one_show[$value['cate_one']]."-".$cate_two_show[$value['cate_one']][$value['cate_two']];
|
|
}
|
|
}
|
|
|
|
+ if($value['table_type'] == 2){
|
|
|
|
+ $tmp['jjcd'] = isset($jjcd_list[$value['jjcd']])?$jjcd_list[$value['jjcd']]:"异常";
|
|
|
|
+ }else{
|
|
|
|
+ $tmp['jjcd'] =" -- ";
|
|
|
|
+ }
|
|
if(empty($forder_info['orderremarks'])){
|
|
if(empty($forder_info['orderremarks'])){
|
|
$tmp['remark'] = $value['remark'];
|
|
$tmp['remark'] = $value['remark'];
|
|
}else{
|
|
}else{
|