|
|
@@ -1697,7 +1697,7 @@ class Beihuogl extends Start_Controller {
|
|
|
$start = ($page - 1)*$perpage;
|
|
|
}
|
|
|
|
|
|
- $list = $this->bhdcd->find_all($where,"id,bh_no,dcd_no,drd_no,status,jm,num,kw,create_time,rk_time,is_rk,szkw",$order_str,$start,$perpage);
|
|
|
+ $list = $this->bhdcd->find_all($where,"id,bh_no,dcd_no,drd_no,status,jm,num,kw,create_time,rk_time,is_rk,szkw,printnum",$order_str,$start,$perpage);
|
|
|
|
|
|
if(empty($list)){
|
|
|
$rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
|
|
|
@@ -1715,7 +1715,12 @@ class Beihuogl extends Start_Controller {
|
|
|
|
|
|
|
|
|
if(!empty($v['rk_time'])){
|
|
|
- $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color:#D2691E;padding:4px 8px;border-radius:5px;font-size:13px' onclick='dybq(this)' data-id='".$v['id']."' >打印标签</a>";
|
|
|
+ if(empty($v['printnum'])){
|
|
|
+ $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color:#D2691E;padding:4px 8px;border-radius:5px;font-size:13px' onclick='dybq(this)' data-id='".$v['id']."' >打印标签</a>";
|
|
|
+ }else{
|
|
|
+ $str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color:#D2691E;padding:4px 8px;border-radius:5px;font-size:13px' onclick='dybq(this)' data-id='".$v['id']."' >打印标签(".$v['printnum'].")</a>";
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
if($v['is_rk'] == 0){
|
|
|
$str .= "<a href='javascript:void(0)' style='margin-right:4px;color: #fff;background-color:#DC143C;padding:4px 8px;border-radius:5px;font-size:13px' onclick='dcdrk(this)' data-type='1' data-id='".$v['id']."' data-num='".$v['num']."'>禁止入库</a>";
|
|
|
@@ -1734,6 +1739,7 @@ class Beihuogl extends Start_Controller {
|
|
|
$list[$k]['rk_time'] = $str;
|
|
|
unset($list[$k]['is_rk']);
|
|
|
unset($list[$k]['szkw']);
|
|
|
+ unset($list[$k]['printnum']);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -2101,7 +2107,12 @@ class Beihuogl extends Start_Controller {
|
|
|
if(empty($info)){
|
|
|
echo json_encode(['success'=>false,'msg'=>'数据不存在']);exit;
|
|
|
}
|
|
|
-
|
|
|
+ $print_num = empty($info['printnum'])?0:(int)$info['printnum'];
|
|
|
+ $print_num = $print_num + 1;
|
|
|
+ $this->bhdcd->save([
|
|
|
+ 'printnum'=>$print_num*1
|
|
|
+ ],$id);
|
|
|
+
|
|
|
$featurespp = str_replace(array('-163-', '-164-', '-165-', '-166-'), '-', $info['features']);
|
|
|
$featurespp = explode('-', trim($featurespp, '-'));
|
|
|
if (isset($featurespp[5])) {
|