Kaynağa Gözat

测试提交

lvhao 12 saat önce
ebeveyn
işleme
17f9b46605

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

@@ -2006,6 +2006,7 @@ class Whlabel_bh extends Start_Controller {
 			$purchase = $this->input->post('purchase',true);
 			$transfer = $this->input->post('transfer',true);
 			$lx = $this->input->post('lx',true);
+			$crk_select = $this->input->post('crk',true);
 			$timetk = $this->input->post('timetk',true);
 			$timetj = $this->input->post('timetj',true);
 			$timetk = strtotime($timetk);
@@ -2040,6 +2041,14 @@ class Whlabel_bh extends Start_Controller {
             {
                 $where  .= " and fpdata like '%-".$color."-%'";
             }
+			if(!empty($crk_select)){
+				if($crk_select == 1){
+					$where .=" and  rk != ck ";
+				}
+				if($crk_select == 2){
+					$where .=" and  rk = ck  ";
+				}
+			}
             //数据排序
             $order_str = "id desc";
             if(empty($page))

+ 6 - 0
template/erp/whlabel_bh_operate.html

@@ -26,6 +26,12 @@
 <option value="">请选择</option>{loop typeclassyc(8) as $val}
 <option value="{$val['id']}">{$val['title']}</option>{/loop}</select>
 </li>
+<li>出入库:<select name="crk" class="select">
+    <option value="">请选择</option>
+    <option value="1">入库</option>
+    <option value="2">出库</option>
+    </select>
+    </li>
 <li>编号:<input value="" name="number" type="text"></li>
 <li>品名:<input value="" name="pm" type="text" style="width:200px"></li>
 <li>扫描时间:<input id="timetk"  value="{date('Y-m-d',time()-14*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">