Bladeren bron

提交速卖通的数据

lvhao 3 maanden geleden
bovenliggende
commit
26ed4d2283
2 gewijzigde bestanden met toevoegingen van 8 en 0 verwijderingen
  1. 3 0
      core/CoreApp/controllers/Fullordersmt.php
  2. 5 0
      template/erp/fullordersmt.html

+ 3 - 0
core/CoreApp/controllers/Fullordersmt.php

@@ -41,6 +41,7 @@ class Fullordersmt extends Start_Controller {
 		$this->load->_model('Model_setting','setting');
 		$this->load->_model('Model_returngoods','returngoods');
 		$this->load->_model("Model_logic_order","logic_order");
+		$this->load->_model("Model_fullordererrors","fullordererrors");
 	}
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
@@ -610,6 +611,8 @@ class Fullordersmt extends Start_Controller {
 		$country = $this->country->find_all('1=1','id,name','name asc');//所有国家信息
 		$this->data['country'] = $country;
 		$this->data['user'] = $user;
+		$cs_num = $this->fullordererrors->find_count( "plat = 'fullordersmt' and error_type = 1 and (".rtrim($fgshop,'or'). " ) and error_time > '".(time()-90*24*3600)."'");
+		$this->data['cs_num'] = $cs_num;
 		$this->_Template('fullordersmt',$this->data);
 	}
 	

+ 5 - 0
template/erp/fullordersmt.html

@@ -138,6 +138,11 @@
 {if $error > 0}
 <a href="/fullordersmt/error/" style="background-color:#F00">打印异常订单({$error})</a>
 {/if}
+
+
+{if $cs_num > 0}
+<a href="/fullordererror/outtime?plat=fullordersmt" style="background-color:#33CCFF">超时打印订单({$cs_num })</a>
+{/if}
 <a href="javascript:void(0);" class="xxpl">QM批量导入</a>
 </div>
 <table class="datatitle data" border="0" style="border-collapse:collapse;">