lvhao 14 часов назад
Родитель
Сommit
2873933f83
2 измененных файлов с 16 добавлено и 2 удалено
  1. 8 1
      core/CoreApp/controllers/Transfer.php
  2. 8 1
      template/erp/transfer_ycrkindex.html

+ 8 - 1
core/CoreApp/controllers/Transfer.php

@@ -3426,11 +3426,18 @@ class Transfer extends Start_Controller {
 			$timetj = $this->input->post('timetj',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
+			$ycrk_type = $this->input->post('ycrk_type',true);
 
 
 			$transfer_list = $this->transfer->find_all();
 			$t = $transfer_list = array_column($transfer_list, 'title', 'id');
-			$where = 'lx = 0 and ycrk_type != 0 ';
+
+			if(empty($ycrk_type)){
+				$where = 'lx = 0 and ycrk_type != 0 ';
+			}else{
+				$where = 'lx = 0 and ycrk_type = '.$ycrk_type;	
+			}
+			
 			
             //数据排序
             $order_str = "id desc";

+ 8 - 1
template/erp/transfer_ycrkindex.html

@@ -5,7 +5,14 @@
 
 <ul class="search">
 
-
+<li>入库类型:
+    <select name="ycrk_type">
+        <option value="">请选择</option>
+        <option value="1">配货入库</option>
+        <option value="2">成品库入库</option>
+        <option value="3">外销单入库</option>
+    </select>
+</li>
 <li><input id="timetk"  value="{date('Y-m-d',time()-21*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
 <input type="hidden" name="transfer_ids" value="{$transfer_ids}">