lvhao 5 mesiacov pred
rodič
commit
dceebf4981
1 zmenil súbory, kde vykonal 6 pridanie a 3 odobranie
  1. 6 3
      core/CoreApp/controllers/Transfer.php

+ 6 - 3
core/CoreApp/controllers/Transfer.php

@@ -847,8 +847,10 @@ class Transfer extends Start_Controller {
 						$info_list[$key]['time'] .= "<a  href='javascript:void(0);' style='color:#000'>".$t[$v['lx']].$type.' :'.date('Y-m-d H:i',$v['time']) ."</a>";
 					}
 
-					if(in_array($v['extra_status'],[1,2])){
+					if($v['extra_status'] == 1){
 						$info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#90f'>【下道工序未及时入库】</a><br>";
+					}elseif($v['extra_status'] == 2){
+						$info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#DEB887'>【工序间流转超过3天】</a><br>";
 					}else{
 						$info_list[$key]['time'] .= "<br>";
 					}
@@ -2562,12 +2564,13 @@ class Transfer extends Start_Controller {
 					}else{
 						$info_list[$key]['time'] .= "<a  href='javascript:void(0);' style='color:#000'>".$t[$v['lx']].$type.' :'.date('Y-m-d H:i',$v['time']) ."</a>";
 					}
-					if(in_array($v['extra_status'],[1,2])){
+					if($v['extra_status'] == 1){
 						$info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#90f'>【下道工序未及时入库】</a><br>";
+					}elseif($v['extra_status'] == 2){
+						$info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#DEB887'>【工序间流转超过3天】</a><br>";
 					}else{
 						$info_list[$key]['time'] .= "<br>";
 					}
-					
 				}
 				
 				$final_list[$key]['time'] = trim($info_list[$key]['time'],'<br>');