lvhao 19 часов назад
Родитель
Сommit
866ab852ea
2 измененных файлов с 5 добавлено и 0 удалено
  1. 4 0
      core/CoreApp/controllers/Amazonbarcode.php
  2. 1 0
      template/erp/amazonbarcode_see.html

+ 4 - 0
core/CoreApp/controllers/Amazonbarcode.php

@@ -59,6 +59,7 @@ class Amazonbarcode extends Start_Controller {
 			$label = $this->input->post('label',true);
 			$print = $this->input->post('print',true);
 			$xztime = $this->input->post('xztime',true);
+			$batch_no = $this->input->post('batch_no',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
 			$where = "1=1";
@@ -70,6 +71,9 @@ class Amazonbarcode extends Start_Controller {
             {
 				$where  .= " and label = '$label'";
             }
+			if($batch_no){
+				$where  .= " and batch_no = '$batch_no'";
+			}
 			if($print != '')
             {
                 $where  .= " and print = '$print'";

+ 1 - 0
template/erp/amazonbarcode_see.html

@@ -5,6 +5,7 @@
 <ul class="search">
 <li>条码:<input value="" name="number" type="text"></li>
 <li>标签:<input value="" name="label" type="text" style="width:250px;"></li>
+<li>批次:<input value="" name="batch_no" type="text" style="width:250px;"></li>
 <li>打印状态:<select name="print" class="select">
 <option value="">全部</option>
 <option value="0">未打印</option>