Browse Source

提交数据

lvhao 1 ngày trước cách đây
mục cha
commit
9d6ad9e86b
1 tập tin đã thay đổi với 38 bổ sung38 xóa
  1. 38 38
      core/CoreApp/controllers/Zzququeu9.php

+ 38 - 38
core/CoreApp/controllers/Zzququeu9.php

@@ -1179,59 +1179,59 @@ class Zzququeu9 extends Start_Controller {
                $type_list = $this->zzquque_u9->getType();
                $list = [];
                foreach($info_list as $k=>$v){
-                    $bzsh_no = $v['bzsh_no'];
-                    if($v['bzsh_status'] == 0){
+                    $bzsh_no = empty($v['bzsh_no'])?"":$v['bzsh_no'];
+                    // if($v['bzsh_status'] == 0){
                     
-                         $bzsh_no = "<span  data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
+                    //      $bzsh_no = "<span  data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
                     
                     
-                    }elseif($v['bzsh_status'] == -1){
-                         $error = $this->zzququeu9_logs->find_all("oid = ".$v['id']." and one_type = 20 and two_type = 1 ","*",'id desc',0,1);
+                    // }elseif($v['bzsh_status'] == -1){
+                    //      $error = $this->zzququeu9_logs->find_all("oid = ".$v['id']." and one_type = 20 and two_type = 1 ","*",'id desc',0,1);
                     
-                         $tmp_str= "";
-                         if(isset($error[0]['ret_data'])){
-                              $ret_data = json_decode($error[0]['ret_data'],true);
-                              if(isset($ret_data[0]["ResMsg"])){
-                                        $tmp_str = $ret_data[0]["ResMsg"];
-                              }elseif(isset($ret_data['msg'])){
-                                   $tmp_str = $ret_data['msg'];
-                              }elseif(isset($ret_data['Data'])){
-                                   foreach($ret_data['Data'] as $iit){
-                                        if(!$iit['m_isSucess']){
-                                             $tmp_str .= $iit['m_errorMsg']."<br>";
-                                        }
+                    //      $tmp_str= "";
+                    //      if(isset($error[0]['ret_data'])){
+                    //           $ret_data = json_decode($error[0]['ret_data'],true);
+                    //           if(isset($ret_data[0]["ResMsg"])){
+                    //                     $tmp_str = $ret_data[0]["ResMsg"];
+                    //           }elseif(isset($ret_data['msg'])){
+                    //                $tmp_str = $ret_data['msg'];
+                    //           }elseif(isset($ret_data['Data'])){
+                    //                foreach($ret_data['Data'] as $iit){
+                    //                     if(!$iit['m_isSucess']){
+                    //                          $tmp_str .= $iit['m_errorMsg']."<br>";
+                    //                     }
                                         
-                                   }
+                    //                }
                                    
-                              }else{
-                                        $tmp_str = "系统执行失败,请重试";
-                              }
+                    //           }else{
+                    //                     $tmp_str = "系统执行失败,请重试";
+                    //           }
                               
-                         }else{
-                              $tmp_str = "";
-                         }
+                    //      }else{
+                    //           $tmp_str = "";
+                    //      }
                     
-                         $bzsh_no = "<span data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>".'<p style="color:blue"><i  class="method fa fa-exclamation-circle" data-t="'.$tmp_str.'"></i><p>';
-                    }elseif($v['bzsh_status'] == 1){
-                         $bzsh_no = $v['bzsh_no']."<br/><span data-action='wxcprksh' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
-                    }
+                    //      $bzsh_no = "<span data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>".'<p style="color:blue"><i  class="method fa fa-exclamation-circle" data-t="'.$tmp_str.'"></i><p>';
+                    // }elseif($v['bzsh_status'] == 1){
+                    //      $bzsh_no = $v['bzsh_no']."<br/><span data-action='wxcprksh' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";
+                    // }
 
                     
-                    $xs_no = " ";
-                    if($v['xs_status'] == -1){
-                         $xs_no .= "<span data-action='wxxs' data-process='1'  onclick='doAction(this)'  data-id='".$v['id']."' >创建销售单</span>";
-                    }elseif($v['xs_status'] == 0){
-                         $xs_no .= "<span data-action='wxxs' data-process='1' onclick='doAction(this)' data-id='".$v['id']."' >创建销售单</span>";
-                    }
-                    if(!empty($v['xs_no'])){
-                         $xs_no = $v['xs_no']."<br/>".$xs_no;
-                    }
+                    $xs_no =$v['xs_no'];
+                    // if($v['xs_status'] == -1){
+                    //      $xs_no .= "<span data-action='wxxs' data-process='1'  onclick='doAction(this)'  data-id='".$v['id']."' >创建销售单</span>";
+                    // }elseif($v['xs_status'] == 0){
+                    //      $xs_no .= "<span data-action='wxxs' data-process='1' onclick='doAction(this)' data-id='".$v['id']."' >创建销售单</span>";
+                    // }
+                    // if(!empty($v['xs_no'])){
+                    //      $xs_no = $v['xs_no']."<br/>".$xs_no;
+                    // }
                     $bzch_no = empty($v['bzch_no'])?"":$v['bzch_no'];               
                     
                     $list[] = [
                          'id'=>$v['id'],
                          'order_no'=>$v['order_no'],
-                         'type'=>"工厂外销单",
+                         'type'=>"美店备货",
                          'bzsh_no'=> $bzsh_no,
                          'xs_no'=>$xs_no,
                          'bzch_no'=>$bzch_no,