ソースを参照

修改特殊仓库存信息

lvhao 5 日 前
コミット
edf00bdcf6

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

@@ -732,6 +732,7 @@ class Specialstock extends Start_Controller {
 			$sku = $this->input->post('sku');
 			$title = $this->input->post('title');
 			$warehouse = $this->input->post('warehouse',true);
+			$hairnumber = $this->input->post('hairnumber',true);
 			$usa = $this->input->post('usa',true);
 			$purchase = $this->input->post('purchase',true);
 			$lacetype = $this->input->post('lacetype',true);
@@ -801,6 +802,19 @@ class Specialstock extends Start_Controller {
 					$where  .= " and state = '$state'";
 				}
             }
+
+			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($ktime && $jtime)
             {
                 $gj  = " and enter > '$ktime' and enter < '$jtime'";

+ 9 - 0
template/erp/specialstock_typedy.html

@@ -29,6 +29,15 @@
 <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>人发头套编号:<select name="hairnumber" class="select">
+    <option value="">请选择</option>
+    <option value="-1">无编号</option>
+    {loop typeclassyc(43) as $val}
+    
+    <option value="{$val['id']}">{$val['title']}</option>
+    {/loop}
+    </select>
+</li>
 <!-- <li class="none">统计时间:<input id="timetk"  value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="ktime" 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="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>-->
 <li>SKU:<input value="" name="sku" type="text" style="width:400px"></li>