|
|
@@ -276,6 +276,16 @@ class Returns extends Start_Controller {
|
|
|
$post['edittime'] = time();
|
|
|
$post['number'] = trim($post['number']);
|
|
|
$post['u9_sku'] = trim($post['u9_sku'],";");
|
|
|
+ $post['region'] = trim($post['region'],',');
|
|
|
+ $post['cwjs'] = trim($post['cwjs'],',');
|
|
|
+ if(!empty($post['stime'])){
|
|
|
+ if(empty($post['ftime'])){
|
|
|
+ echo json_encode(array('msg'=>'请选择发货时间','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['stime'] <= $post['ftime']){
|
|
|
+ echo json_encode(array('msg'=>'收到时间必须大于发货时间','success'=>false));exit;
|
|
|
+ }
|
|
|
+ }
|
|
|
if($this->returns->get_number($post['number']) && $post['number'] != '')
|
|
|
{
|
|
|
echo json_encode(array('msg'=>'此订单编号已存在!','success'=>false));exit;
|
|
|
@@ -373,6 +383,18 @@ class Returns extends Start_Controller {
|
|
|
$post['edittime'] = time();
|
|
|
$post['number'] = trim($post['number']);
|
|
|
$post['u9_sku'] = trim($post['u9_sku'],";");
|
|
|
+ $post['region'] = trim($post['region'],',');
|
|
|
+ $post['cwjs'] = trim($post['cwjs'],',');
|
|
|
+
|
|
|
+ if(!empty($post['stime'])){
|
|
|
+ if(empty($post['ftime'])){
|
|
|
+ echo json_encode(array('msg'=>'请选择发货时间','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['stime'] <= $post['ftime']){
|
|
|
+ echo json_encode(array('msg'=>'收到时间必须大于发货时间','success'=>false));exit;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$od = $this->returns->get_torderinfo($post['torderinfo']);
|
|
|
if($od && $post['torderinfo'] != '')
|
|
|
{
|