|
@@ -844,7 +844,7 @@ class Transfer extends Start_Controller {
|
|
|
$is_jiaji = "常规";
|
|
$is_jiaji = "常规";
|
|
|
}
|
|
}
|
|
|
if(empty($value['ycrk_type'])){
|
|
if(empty($value['ycrk_type'])){
|
|
|
- $is_jiaji .= "<p onclick='addYcrk(".$value['id'].")'><b >异常入库</b></p>";
|
|
|
|
|
|
|
+ $is_jiaji .= "<br/><a href='javascript:void(0)' onclick='addYcrk(".$value['id'].")'><l style='color:#000' >异常入库</l></a>";
|
|
|
}else{
|
|
}else{
|
|
|
$is_jiaji .= "";
|
|
$is_jiaji .= "";
|
|
|
}
|
|
}
|
|
@@ -3345,6 +3345,10 @@ class Transfer extends Start_Controller {
|
|
|
echo json_encode(array('msg'=>'请求方式不正确','success'=>false));exit;
|
|
echo json_encode(array('msg'=>'请求方式不正确','success'=>false));exit;
|
|
|
}
|
|
}
|
|
|
$id = $this->input->post('id',true);
|
|
$id = $this->input->post('id',true);
|
|
|
|
|
+ $type = $this->input->post('type',true);
|
|
|
|
|
+ if(!in_array($type,[1,2,3])){
|
|
|
|
|
+ echo json_encode(array('msg'=>'入库类别异常,联系技术','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
$info = $this->systemtransfer->read($id);
|
|
$info = $this->systemtransfer->read($id);
|
|
|
if(empty($info)){
|
|
if(empty($info)){
|
|
|
echo json_encode(array('msg'=>'数据不存在','success'=>false));exit;
|
|
echo json_encode(array('msg'=>'数据不存在','success'=>false));exit;
|
|
@@ -3355,16 +3359,16 @@ class Transfer extends Start_Controller {
|
|
|
|
|
|
|
|
//更新数据
|
|
//更新数据
|
|
|
$this->systemtransfer->save([
|
|
$this->systemtransfer->save([
|
|
|
- 'ycrk_type'=>1,
|
|
|
|
|
|
|
+ 'ycrk_type'=>$type,
|
|
|
],$id);
|
|
],$id);
|
|
|
$list = $this->systemtransfer_cr->find_all('fid = '.$id,'*','id desc');
|
|
$list = $this->systemtransfer_cr->find_all('fid = '.$id,'*','id desc');
|
|
|
foreach ($list as $key=>$value) {
|
|
foreach ($list as $key=>$value) {
|
|
|
$this->systemtransfer_cr->save([
|
|
$this->systemtransfer_cr->save([
|
|
|
- 'ycrk_type'=>1,
|
|
|
|
|
|
|
+ 'ycrk_type'=>$type,
|
|
|
],$value['id']);
|
|
],$value['id']);
|
|
|
}
|
|
}
|
|
|
$this->systemtransfer_cr->insert([
|
|
$this->systemtransfer_cr->insert([
|
|
|
- 'fid'=>$id,'lx'=>0,'type'=>1,'time'=>time(),'is_over'=>0,'over_flag'=>0,
|
|
|
|
|
|
|
+ 'fid'=>$id,'lx'=>0,'type'=>$type,'time'=>time(),'is_over'=>0,'over_flag'=>0,
|
|
|
'extra_status'=>0,'ycrk_type'=>1,
|
|
'extra_status'=>0,'ycrk_type'=>1,
|
|
|
]);
|
|
]);
|
|
|
echo json_encode(array('msg'=>'添加成功','success'=>true));exit;
|
|
echo json_encode(array('msg'=>'添加成功','success'=>true));exit;
|