lvhao 6 dienas atpakaļ
vecāks
revīzija
41145ab691

+ 12 - 0
core/CoreApp/controllers/Specialstock.php

@@ -914,6 +914,7 @@ class Specialstock extends Start_Controller {
 			$state = $this->input->post('state',true);
 			$ktime = $this->input->post('ktime',true);
 			$jtime = $this->input->post('jtime',true);
+			$hairnumber = $this->input->post('hairnumber',true);
 			$ktime = strtotime($ktime);
 			$jtime = strtotime($jtime);
 			$where = "1=1";$gj = "";$ck = "";
@@ -945,6 +946,17 @@ class Specialstock extends Start_Controller {
             {
                 $where  .= " and features like '%-$haircap-%'";
             }
+			if (!empty($hairnumber)) {
+				$where  .= " and  features like '%-128-%' ";
+				if ($hairnumber < 0) {
+					$class_list = $this->typeclass->find_all('classid = 43');
+					foreach ($class_list as $v) {
+						$where .= " and  features not like '%-" . $v['id'] . "-%'";
+					}
+				} else {
+					$where  .= " and features like '%-$hairnumber-%'";
+				}
+			}
 			if($density)
             {
                 $where  .= " and features like '%-$density-%'";

+ 14 - 0
template/erp/specialstock_type.html

@@ -32,6 +32,20 @@
 <li>头套大小:<select name="haircap" class="select">
 <option value="">请选择</option>{loop typeclassyc(6) as $val}
 <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
+
+<li></li>
+
+人发头套编号  :<select name="hairnumber" class="select"  style="width: 150px !important;">
+    <option value="">请选择</option>
+    <option value="-1">无编号</option>
+    {loop typeclassyc(43) as $val}
+    <option value="{$val['id']}">{$val['title']}</option>
+    {/loop}
+    </select>
+</li>
+
+
+
 <li>仓库:<select name="warehouse" class="select">
 <option value="">请选择</option>{loop warehouse(10) as $val}
 <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>