|
@@ -1176,45 +1176,45 @@ class Zzququeu9 extends Start_Controller {
|
|
}
|
|
}
|
|
|
|
|
|
$info_list = $this->zzquque_u9->find_all($where,'*','id desc',$start,$perpage);
|
|
$info_list = $this->zzquque_u9->find_all($where,'*','id desc',$start,$perpage);
|
|
- $type_list = $this->zzquque_u9->getType();
|
|
|
|
|
|
+ // $type_list = $this->zzquque_u9->getType();
|
|
$list = [];
|
|
$list = [];
|
|
foreach($info_list as $k=>$v){
|
|
foreach($info_list as $k=>$v){
|
|
$bzsh_no = empty($v['bzsh_no'])?"":$v['bzsh_no'];
|
|
$bzsh_no = empty($v['bzsh_no'])?"":$v['bzsh_no'];
|
|
- // if($v['bzsh_status'] == 0){
|
|
|
|
|
|
+ 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>";
|
|
|
|
+ }
|
|
|
|
|
|
$dc_no = empty($v['dc_no'])?" ":$v['dc_no'];
|
|
$dc_no = empty($v['dc_no'])?" ":$v['dc_no'];
|
|
// if($v['xs_status'] == -1){
|
|
// if($v['xs_status'] == -1){
|