| 
															
																@@ -122,6 +122,9 @@ class Whlabel_bh extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		else if($arg == 'cj_transfer_detail'){ 
															 | 
															
															 | 
															
																 		else if($arg == 'cj_transfer_detail'){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			$this->_cj_transfer_detail($arg_array); 
															 | 
															
															 | 
															
																 			$this->_cj_transfer_detail($arg_array); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		} 
															 | 
															
															 | 
															
																 		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		else if($arg == 'cj_transfer_log_count'){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$this->_cj_transfer_log_count(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		else 
															 | 
															
															 | 
															
																 		else 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		{ 
															 | 
															
															 | 
															
																 		{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			 $this->_index(); 
															 | 
															
															 | 
															
																 			 $this->_index(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -2282,6 +2285,26 @@ class Whlabel_bh extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	} 
															 | 
															
															 | 
															
																 	} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	//针对车间的变动筛选条件的 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	public function _cj_transfer_log_count(){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$orderinfo = $this->input->post('orderinfo',true); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$tid = $this->input->post('tid',true); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$timetk = $this->input->post('timetk',true); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$timetj = $this->input->post('timetj',true); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$start_time = strtotime($timetk); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$end_time = strtotime($timetj); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$where = " lx = ".$tid." and type = 1 and is_over = 0 and time >= ".$start_time." and time <= ".$end_time; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		if($orderinfo){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$number_list  = $this->whlabel_bh->find_all(" orderinfo = '$orderinfo'","orderinfo,number"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$numbers = array_column($number_list,'number'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$where.= " and number in (".implode(",",$numbers).") "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$wwcsl = $this->whlabel_bh_transfer_cr->find_count($where); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		exit(json_encode(['code'=>1,'msg'=>'ok', 'data'=>['wwcsl' => $wwcsl]])); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	public function _cj_transfer_detail($arg_array){ 
															 | 
															
															 | 
															
																 	public function _cj_transfer_detail($arg_array){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		$number = $arg_array[0]; 
															 | 
															
															 | 
															
																 		$number = $arg_array[0]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		$tid = $arg_array[1]; 
															 | 
															
															 | 
															
																 		$tid = $arg_array[1]; 
															 |