Browse Source

修改u9在途库存的分类

lvhao 1 month ago
parent
commit
71cf8c0658
2 changed files with 16 additions and 1 deletions
  1. 9 1
      core/CoreApp/controllers/Zzququeu9.php
  2. 7 0
      template/erp/zzququeu9zt.html

+ 9 - 1
core/CoreApp/controllers/Zzququeu9.php

@@ -748,7 +748,15 @@ class Zzququeu9 extends Start_Controller {
           $timetk = strtotime($timetk);
           $timetj = strtotime($timetj);
           $order_no = $this->input->post('order_no',true);
-          $where=' ( type = 1 or type = 2)';
+          $type = $this->input->post('type',true);
+          if($type == 1){
+               $where=' ( type = 1)';
+          }elseif($type == 2){
+               $where=' ( type = 2)';
+          }else{
+               $where=' ( type = 1 or type = 2)';
+          }
+          
           if($order_no){
               $where .= " and order_no = '".$order_no."' ";
           }

+ 7 - 0
template/erp/zzququeu9zt.html

@@ -42,6 +42,13 @@
             <ul class="search">
                 <li>
                     <li>编号:<input value="" name="order_no" type="text"></li>
+                    <li>类型:
+                        <select name="status" style="width:150px;" class="select">
+                            <option value="">请选择</option>
+                            <option value="1">备货流转-在途</option>
+                            <option value="2">备货流转-美仓</option>
+                        </select>
+                    </li>
                     <li>出库时间<input id="timetk" value="{date('Y-m-d',time()-29*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'})"></li>
                     <li><span>确 定</span></li>