|
@@ -49,6 +49,8 @@ class Whlabelfz extends Start_Controller
|
|
|
$this->_whlabelscan();
|
|
$this->_whlabelscan();
|
|
|
}elseif($arg == 'whlabelscanlogexcel'){
|
|
}elseif($arg == 'whlabelscanlogexcel'){
|
|
|
$this->_whlabelscanlogexcel();
|
|
$this->_whlabelscanlogexcel();
|
|
|
|
|
+ }elseif($arg =='eidtmcinfo'){
|
|
|
|
|
+ $this->_eidtmcinfo();
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
$this->_index();
|
|
$this->_index();
|
|
@@ -1038,4 +1040,31 @@ class Whlabelfz extends Start_Controller
|
|
|
$filename = "扫描日志_".date("Ymd")."_".rand(1000,9999).".xls";
|
|
$filename = "扫描日志_".date("Ymd")."_".rand(1000,9999).".xls";
|
|
|
echo json_encode(array('msg'=>'获取数据成功','success'=>true,'data'=>$final_list,'filename'=>$filename));exit;
|
|
echo json_encode(array('msg'=>'获取数据成功','success'=>true,'data'=>$final_list,'filename'=>$filename));exit;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ private function _eidtmcinfo(){
|
|
|
|
|
+ if($this->input->method(TRUE) == 'POST'){
|
|
|
|
|
+ $data = $this->input->post(NULL,TRUE);
|
|
|
|
|
+ if(empty($data['sku'])){
|
|
|
|
|
+ echo json_encode(array('msg'=>'请输入sku','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(empty($data['sm'])){
|
|
|
|
|
+ echo json_encode(array('msg'=>'请输入负责人','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(empty($data['details'])){
|
|
|
|
|
+ echo json_encode(array('msg'=>'请输入位置','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ $info = $this->whlabel->find(" warehouse = 5 and sku = '".$data['sku']."'");
|
|
|
|
|
+ if(empty($info)){
|
|
|
|
|
+ echo json_encode(array('msg'=>'该sku未在美仓存储','success'=>false));exit;
|
|
|
|
|
+ }
|
|
|
|
|
+ $this->db->where('sku',$data['sku'])->where('warehouse',5)->update('whlabel',[
|
|
|
|
|
+ 'sm' => $data['sm'],
|
|
|
|
|
+ 'details' => $data['details'],
|
|
|
|
|
+ ]);
|
|
|
|
|
+ echo json_encode(array('msg'=>'修改成功','success'=>true));exit;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $this->_Template('whlabelfz_eidtmcinfo', $this->data);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|