Browse Source

提交数据

lvhao 19 hours ago
parent
commit
0b43d2e502
2 changed files with 14 additions and 0 deletions
  1. 13 0
      core/CoreApp/controllers/Whlabel_bh.php
  2. 1 0
      template/erp/whlabel_bh.html

+ 13 - 0
core/CoreApp/controllers/Whlabel_bh.php

@@ -296,6 +296,19 @@ class Whlabel_bh extends Start_Controller {
 		    }
 			**/
 		}
+
+		$start_time = time() - 3600*24*29;
+		$end_time = time() + 3600*24;
+
+
+
+
+		$count_list = $this->whlabel_bh->find_all("extra_type = 1 and time > ".$start_time." and time < ".$end_time);
+		$wdysl = 0;
+		foreach($count_list as $k=>$v){
+			$wdysl = $wdysl + ($v['bhnum'] - $v['printsl']);
+		}
+		$this->data['wdysl'] = $wdysl;
 		if(isset($_SESSION['api']))
 		{
 			$user = $this->user->get_api($_SESSION['api']);

+ 1 - 0
template/erp/whlabel_bh.html

@@ -51,6 +51,7 @@
 {if $vip == 1} <a href="javascript:void(0);" class="check">删 除</a>{/if}
 <a href="javascript:void(0);" data-url="excel" data-id="3" class="whlabelexcel">导出条件检索</a>
 <a href="javascript:void(0);" class="pldrlh">批量导入简码传输料号</a>
+<a href="javascript:void(0);" class="pldrlh">(测试中)未打印 <font id="wdysl" style="color:#fff">{$wdysl}</font></a>
 </div>
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <tr>