|
@@ -27,6 +27,8 @@ class Workshopshow extends Start_Controller
|
|
|
$this->_mgbhorders();
|
|
$this->_mgbhorders();
|
|
|
}elseif($arg == 'mgbhgcjnum'){
|
|
}elseif($arg == 'mgbhgcjnum'){
|
|
|
$this->_mgbhgcjnum();
|
|
$this->_mgbhgcjnum();
|
|
|
|
|
+ }elseif($arg == 'zcwjgshow'){
|
|
|
|
|
+ $this->_zcwjgshow();
|
|
|
}else {
|
|
}else {
|
|
|
$this->_index();
|
|
$this->_index();
|
|
|
}
|
|
}
|
|
@@ -364,4 +366,75 @@ class Workshopshow extends Start_Controller
|
|
|
],JSON_UNESCAPED_UNICODE);
|
|
],JSON_UNESCAPED_UNICODE);
|
|
|
die;
|
|
die;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //在产未交公单 展示
|
|
|
|
|
+ private function _zcwjgshow(){
|
|
|
|
|
+ if($this->input->method() == 'post'){
|
|
|
|
|
+ $page = $this->input->post('page',true);
|
|
|
|
|
+ $perpage = $this->input->post('perpage',true);
|
|
|
|
|
+
|
|
|
|
|
+ $month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
|
|
+
|
|
|
|
|
+ if(empty($page))
|
|
|
|
|
+ {
|
|
|
|
|
+ $start = 0;
|
|
|
|
|
+ $perpage = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ $start = ($page - 1)*$perpage;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
|
|
+ $this->db->not_like('rk', '|11|','before');
|
|
|
|
|
+ $this->db->where("ycrk_type",0);
|
|
|
|
|
+ $info_list = $this->db->get('systemtransfer');
|
|
|
|
|
+ $info_list = $info_list->result_array();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
|
|
+ $this->db->not_like('rk', '|11|','before');
|
|
|
|
|
+ $this->db->where("ycrk_type",0);
|
|
|
|
|
+ $total = $this->db->count_all_results('systemtransfer');
|
|
|
|
|
+
|
|
|
|
|
+ $pagenum = ceil($total/$perpage);
|
|
|
|
|
+ $over = $total-($start+$perpage);
|
|
|
|
|
+ $rows = array('total'=>$total,'over'=>$over,'pagenum'=>$pagenum,'rows'=>($info_list));
|
|
|
|
|
+ echo json_encode($rows);exit;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $this->_Template('workshopshow_zcwjgshow', $this->data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 未开始生产单
|
|
|
|
|
+ private function _wksscshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 已超时单
|
|
|
|
|
+ private function _ycsshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 工序流转超3天单
|
|
|
|
|
+ private function _gxlzc3show(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 下道工序未及时入库单
|
|
|
|
|
+ private function _xdgxwjsrkshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 打印超7天未出货单
|
|
|
|
|
+ private function _dyc7twchshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 未发货单
|
|
|
|
|
+ private function _wfhshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ // 各车间生产条数
|
|
|
|
|
+ private function _gcjscsshow(){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|