|
|
@@ -968,10 +968,42 @@ class Workshopshow extends Start_Controller
|
|
|
$this->db->limit($perpage,$start);
|
|
|
$info_list = $this->db->get('systemtransfer');
|
|
|
$info_list = $info_list->result_array();
|
|
|
- foreach($info_list as $k=>$v){
|
|
|
- $info_list[$k]['printtime'] = date('Y-m-d H:i',$v['printtime']);
|
|
|
- $info_list[$k]['time'] = "布标打印 :".date('Y-m-d H:i',$v['ctime12']);
|
|
|
- unset($info_list[$k]['ctime12']);
|
|
|
+ $operate_list = $this->transfer->find_all(" 1 = 1 ");
|
|
|
+ $operate_list = array_column($operate_list, 'title', 'id');
|
|
|
+ foreach($info_list as $key=>$value){
|
|
|
+ $info_list[$key]['printtime'] = date('Y-m-d H:i',$value['printtime']);
|
|
|
+ $info_list[$key]['time'] = "布标打印 :".date('Y-m-d H:i',$value['ctime12']);
|
|
|
+ $cr_list = $this->systemtransfer_cr->find_all("fid = '".$value['id']."'");
|
|
|
+ foreach($cr_list as $k=>$v){
|
|
|
+ $type = ($v['type']==1)?'入库':'出库';
|
|
|
+ $operate_name = isset($operate_list[$v['lx']])?$operate_list[$v['lx']]:'';
|
|
|
+ if($v['orver_flag'] == 1){
|
|
|
+ if($v['is_over'] == 0){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#90f'>".$operate_name.$type.' :'.date('Y-m-d H:i',$v['time']) ." <l style='font-weight:900;'>即将超时 </l></a>";
|
|
|
+ // $info_list[$key]['time'] .= '<i style="padding:10px;color:#90f;font-weight:bold;"> 即将超时</i>'.'<br>';
|
|
|
+ }else{
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#000'>".$operate_name.$type.' :'.date('Y-m-d H:i',$v['time']) ."</a>";
|
|
|
+ }
|
|
|
+ }elseif($v['orver_flag'] == 2){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#f33'>".$operate_name.$type.' :'.date('Y-m-d H:i',$v['time']) ." <l font-weight:900'>超时! </l></a>";
|
|
|
+ }elseif($v['orver_flag'] == 3){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#06f'>".$operate_name.$type.' :'.date('Y-m-d H:i',$v['time']) ." <l font-weight:900'>【该单已取消】 </l></a>";
|
|
|
+ }elseif(($v['orver_flag'] == 0)&&(empty($v['lx']))){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:red'>订单已完成:".date('Y-m-d H:i',$v['time']) ."</a>";
|
|
|
+ }else{
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#000'>".$operate_name.$type.' :'.date('Y-m-d H:i',$v['time']) ."</a>";
|
|
|
+ }
|
|
|
+
|
|
|
+ if($v['extra_status'] == 1){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#90f'>【下道工序未及时入库】</a><br>";
|
|
|
+ }elseif($v['extra_status'] == 2 || $v['extra_status'] == 3){
|
|
|
+ $info_list[$key]['time'] .= "<a href='javascript:void(0);' style='color:#A52A2A'>【工序间流转超过3天】</a><br>";
|
|
|
+ }else{
|
|
|
+ $info_list[$key]['time'] .= "<br>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ unset($info_list[$key]['ctime12']);
|
|
|
}
|
|
|
$this->db->where("time >= ",strtotime($timetkk));
|
|
|
$this->db->where("time < ",strtotime($timetjj));
|