|
@@ -1015,23 +1015,28 @@ class Zzququeu9 extends Start_Controller {
|
|
|
$error = $this->zzququeu9_logs->find_all("oid = ".$v['id']." and one_type = 20 and two_type = 1 ","*",'id desc',0,1);
|
|
|
|
|
|
$tmp_str= "";
|
|
|
- $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>";
|
|
|
+ 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 = "系统执行失败,请重试";
|
|
|
+ $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>";
|