|
@@ -128,6 +128,9 @@ class Whlabel_bh extends Start_Controller {
|
|
|
else if($arg == 'cj_transfer_log_count'){
|
|
|
$this->_cj_transfer_log_count();
|
|
|
}
|
|
|
+ else if($arg == 'cj_transfer_log_zkcount'){
|
|
|
+ $this->_cj_transfer_log_zkcount();
|
|
|
+ }
|
|
|
else if($arg == 'excelwchz'){
|
|
|
$this->_excelwchz();
|
|
|
}
|
|
@@ -2664,6 +2667,22 @@ class Whlabel_bh extends Start_Controller {
|
|
|
exit(json_encode(['code'=>1,'msg'=>'ok', 'data'=>['wwcsl' => $wwcsl,'jszs'=>$jszs,'wgzs'=>$wgzs]]));
|
|
|
}
|
|
|
|
|
|
+ //针对车间的变动筛选条件的
|
|
|
+ public function _cj_transfer_log_zkcount(){
|
|
|
+
|
|
|
+ $tid = $this->input->post('tid',true);
|
|
|
+
|
|
|
+ $timetk = $this->input->post('timetk',true);
|
|
|
+ $timetj = $this->input->post('timetj',true);
|
|
|
+ $timetk = strtotime($timetk);
|
|
|
+ $timetj = strtotime($timetj);
|
|
|
+ $where = " time > '$timetk' and time < '$timetj' and lx = ".$tid." and type = 1 and is_over = 0 ";
|
|
|
+ $count = $this->whlabel_bh_transfer_cr->find_all($where,'COUNT(*) as total');
|
|
|
+ $total = $count[0]['total'];
|
|
|
+ exit(json_encode(['code'=>1,'msg'=>'ok', 'data'=>['wwcsl' => $total]]));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public function _cj_transfer_detail($arg_array){
|
|
|
$number = $arg_array[0];
|
|
|
$tid = $arg_array[1];
|