|
@@ -131,6 +131,9 @@ class Whlabel_bh extends Start_Controller {
|
|
else if($arg == 'wdyindex'){
|
|
else if($arg == 'wdyindex'){
|
|
$this->_wdyindex();
|
|
$this->_wdyindex();
|
|
}
|
|
}
|
|
|
|
+ else if($arg == 'edit_jgtime'){
|
|
|
|
+ $this->_edit_jgtime();
|
|
|
|
+ }
|
|
else
|
|
else
|
|
{
|
|
{
|
|
$this->_index();
|
|
$this->_index();
|
|
@@ -2205,7 +2208,7 @@ class Whlabel_bh extends Start_Controller {
|
|
{
|
|
{
|
|
$start = ($page - 1)*$perpage;
|
|
$start = ($page - 1)*$perpage;
|
|
}
|
|
}
|
|
- $list = $this->whlabel_bh->find_pc($where,'orderinfo',"id,orderinfo",'id desc',$start,$perpage);
|
|
|
|
|
|
+ $list = $this->whlabel_bh->find_pc($where,'orderinfo',"id,orderinfo,jgtime",'id desc',$start,$perpage);
|
|
|
|
|
|
|
|
|
|
$rows = [];
|
|
$rows = [];
|
|
@@ -2243,6 +2246,7 @@ class Whlabel_bh extends Start_Controller {
|
|
$rows[$k]['yphsl'] = $yphsl; //已配货数量
|
|
$rows[$k]['yphsl'] = $yphsl; //已配货数量
|
|
$rows[$k]['yjgsj'] = $yjgsj; //已完工数量
|
|
$rows[$k]['yjgsj'] = $yjgsj; //已完工数量
|
|
$rows[$k]['wwgsl'] = $tmp_bhnum - $yjgsj; //未完工数量
|
|
$rows[$k]['wwgsl'] = $tmp_bhnum - $yjgsj; //未完工数量
|
|
|
|
+ $rows[$k]['jgtime'] = empty($v['jgtime'])?'<i class="method fa fa-edit" data-id="'.$v['id'].'" onclick="edit_jgtime(this)"></i>':date("Y-m-d H:i:s",$v['jgtime']).' <i class="method fa fa-edit" data-id="'.$v['id'].'" onclick="edit_jgtime(this)"></i>';
|
|
}
|
|
}
|
|
|
|
|
|
$total = $this->whlabel_bh->find_count($where);
|
|
$total = $this->whlabel_bh->find_count($where);
|
|
@@ -2274,6 +2278,22 @@ class Whlabel_bh extends Start_Controller {
|
|
$this->_Template('whlabel_bh_transfer_log',$this->data);
|
|
$this->_Template('whlabel_bh_transfer_log',$this->data);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function _edit_jgtime(){
|
|
|
|
+ $post = $this->input->post(NULL, TRUE);
|
|
|
|
+ $info = $this->whlabel_bh->read($post['id']);
|
|
|
|
+
|
|
|
|
+ if(empty($info)){
|
|
|
|
+ echo json_encode(['code'=>-1,'msg'=>'信息异常']);exit;
|
|
|
|
+ }
|
|
|
|
+ $jgtime = strtotime($post['jgtime']);
|
|
|
|
+
|
|
|
|
+ $list = $this->whlabel_bh->find_all(" orderinfo = '".$info['orderinfo']."'");
|
|
|
|
+ foreach($list as $k=>$v){
|
|
|
|
+ $this->whlabel_bh->save(['jgtime'=>$jgtime],$v['id']);
|
|
|
|
+ }
|
|
|
|
+ echo json_encode(['code'=>1,'msg'=>'操作成功']);exit;
|
|
|
|
+ }
|
|
|
|
+
|
|
public function _transfer_detail($arg_array){
|
|
public function _transfer_detail($arg_array){
|
|
$id = $arg_array[0];
|
|
$id = $arg_array[0];
|
|
$transfer_list = $this->transfer->find_all();
|
|
$transfer_list = $this->transfer->find_all();
|