|
|
@@ -81,7 +81,11 @@ class Zzququeu9 extends Start_Controller {
|
|
|
$this->_bhcprk($arg_array);
|
|
|
}elseif($arg == 'cpkbh_index'){
|
|
|
$this->_cpkbh_index();
|
|
|
- }else
|
|
|
+ }
|
|
|
+ elseif($arg == 'checkProduct'){
|
|
|
+ $this->_checkProduct();
|
|
|
+ }
|
|
|
+ else
|
|
|
{
|
|
|
$this->_index();
|
|
|
}
|
|
|
@@ -923,7 +927,8 @@ class Zzququeu9 extends Start_Controller {
|
|
|
//'bzsh_no'=>$bzsh_no,
|
|
|
|
|
|
'create_time'=>date("Y-m-d H:i:s",$v['create_time']),
|
|
|
- 'update_time'=>date("Y-m-d H:i:s",$v['update_time'])
|
|
|
+ 'update_time'=>date("Y-m-d H:i:s",$v['update_time']),
|
|
|
+ 'operate'=>"<span onclick='checkProduct(this)' style='background-color:#FF8C00' data-id='".$v['id']."' >物料核对</span>"
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -1465,7 +1470,26 @@ class Zzququeu9 extends Start_Controller {
|
|
|
echo json_encode($rows);exit;
|
|
|
}
|
|
|
$this->_Template('zzququeu9cpkbh',$this->data);
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
+ protected function _checkProduct(){
|
|
|
+ $post = $this->input->post(NULL, TRUE);
|
|
|
+ if(empty($post)){
|
|
|
+ echo json_encode(array('msg'=>'参数错误','success'=>false,'data'=>[]));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ $info = $this->zzquque_u9->read($post['id']);
|
|
|
+ if(empty($info)){
|
|
|
+ echo json_encode(array('msg'=>'数据异常','success'=>false,'data'=>[]));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ $res = $this->logic_u9ztsd->checkProduct($info);
|
|
|
+ if($res['code'] == 1){
|
|
|
+ echo json_encode(array('msg'=>$res['msg'],'success'=>true,'data'=>$res['data']));
|
|
|
+ exit;
|
|
|
+ }else{
|
|
|
+ echo json_encode(array('msg'=>$res['msg'],'success'=>false,'data'=>[]));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
}
|
|
|
}
|