瀏覽代碼

添加订单的超时打印tt和独立站

lvhao 3 月之前
父節點
當前提交
8efc2a9339

+ 1 - 1
core/CoreApp/controllers/Fullorder.php

@@ -757,7 +757,7 @@ class Fullorder extends Start_Controller {
 		$this->data['fullorderexcel'] = $fullorderexcel;
 		$error = $this->fullorder->find_count("failed !='' and mergeid = 0 and print != 3 and (".rtrim($fgshop,'or').") and dtime > '".(time()-90*24*3600)."'");
 		$this->data['error'] = $error;
-		$cs_num = $this->fullordererrors->find_count( " error_type = 1 and (".rtrim($fgshop,'or'). " ) and error_time > '".(time()-90*24*3600)."'");
+		$cs_num = $this->fullordererrors->find_count( " plat = 'fullorder' and error_type = 1 and (".rtrim($fgshop,'or'). " ) and error_time > '".(time()-90*24*3600)."'");
 		$this->data['cs_num'] = $cs_num;
 		$this->data['power'] = $vip;
 		$this->_Template('fullorder',$this->data);

+ 4 - 2
core/CoreApp/controllers/Fullordererror.php

@@ -40,13 +40,13 @@ class Fullordererror extends Start_Controller {
 		{
 		    $page = $this->input->post('page',true);
 		    $perpage = $this->input->post('perpage',true);
-
+			$plat = $this->input->post('plat',true);
 			$number = $this->input->post('number',true);
 			$timetk = $this->input->post('timetk',true);
 			$timetj = $this->input->post('timetj',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
-			$where = "error_type = 1 and (".rtrim($fgshop,'or').")";
+			$where = "plat = '".$plat."' and error_type = 1 and (".rtrim($fgshop,'or').") ";
 			
 			if($number)
             {
@@ -75,6 +75,7 @@ class Fullordererror extends Start_Controller {
 				//$ud = $this->fullorder->read($value['id']);
 				$shop = $this->shop->read($value['shop']);
 				$info_list[$key]['shop'] = $shop['shopname'];
+				$info_list[$key]['error_time'] = date("Y-m-d H:i:s",$value['error_time']);
 				// $info_list[$key]['orderinfo'] = "<h9 class='window' data-h='/fullorder/edit/".$value['id']."' data-t='订单号:".$value['orderinfo']."'>".$value['orderinfo']."<p>";
 				// $warehouse = $this->warehouse->read($value['type']);
 				// $warehousetitle = $warehouse['title'];
@@ -110,6 +111,7 @@ class Fullordererror extends Start_Controller {
 		}
 		$wlshop = $this->shop->find_all('1=1 and '.rtrim($sid,'or'));
 		$this->data['wlshop'] = $wlshop;
+		$this->data['plat'] = $this->input->get('plat');
 		$this->_Template('fullordererror_errshow',$this->data);
 	}
 

+ 5 - 0
core/CoreApp/controllers/Fullordertt.php

@@ -44,6 +44,7 @@ class Fullordertt extends Start_Controller {
 		$this->load->_model('Model_returngoods','returngoods');
 		$this->load->_model("Model_logic_order","logic_order");
 		$this->load->_model("Model_excelnew",'excelnew');
+		$this->load->_model("Model_fullordererrors","fullordererrors");
 	}
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
@@ -749,6 +750,10 @@ class Fullordertt extends Start_Controller {
 		$this->data['error'] = $error;
 		$yc = $this->fullordertt->find_count("library = 2 and state = 214 and (".rtrim($fgshop,'or').")");
 		$this->data['yc'] = $yc;
+		
+		$cs_num = $this->fullordererrors->find_count( "plat = 'fullordertt' and error_type = 1 and (".rtrim($fgshop,'or'). " ) and error_time > '".(time()-90*24*3600)."'");
+		$this->data['cs_num'] = $cs_num;
+
 		$this->data['power'] = $vip;
 		$this->_Template('fullordertt',$this->data);
 	}

+ 1 - 1
template/erp/fullorder.html

@@ -152,7 +152,7 @@
 
 
 {if $cs_num > 0}
-<a href="/fullordererror/outtime/" style="background-color:#33CCFF">超时打印订单({$cs_num })</a>
+<a href="/fullordererror/outtime?plat=fullorder" style="background-color:#33CCFF">超时打印订单({$cs_num })</a>
 {/if}
 {if $power ==1}<a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
 <a href="javascript:void(0);" class="thxz">导出退货订单</a>

+ 2 - 1
template/erp/fullordererror_errshow.html

@@ -14,6 +14,7 @@
 
 
 <li>编号:<input value="" name="number" type="text" ></li>
+<input type="hidden" name="plat" value="{$plat}">
 
 <!-- <li>订单时间:<input id="timetk"  value="{date('Y-m-d',time()-30*24*3600)}" name="timetk" type="text" >
 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time())}" name="timetj" type="text" ></li>
@@ -25,7 +26,7 @@
 <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
 <td>店铺名称</td>
 <td>编号</td>
-
+<td>记录时间</td>
 </tr>
 </table>
 </div>

+ 4 - 0
template/erp/fullordertt.html

@@ -133,6 +133,10 @@
 {if $error > 0}
 <a href="/fullordertt/error/" style="background-color:#F00">打印错误订单({$error})</a>
 {/if}
+
+{if $cs_num > 0}
+<a href="/fullordererror/outtime?plat=fullordertt" style="background-color:#33CCFF">超时打印订单({$cs_num })</a>
+{/if}
 {if $yc > 0}
 <a href="/fullordertt/yc/" style="background-color:#F00">异常取消订单({$yc})</a>
 {/if}