Browse Source

给订单添加产品编辑的筛选

lvhao 2 months ago
parent
commit
d11aa33269

+ 25 - 8
template/erp/choice.html

@@ -3,8 +3,13 @@
 	.calendar {
 		POSITION: absolute;
 	}
+	.exp li b {
+		background-color: #fff !important;
+		min-height:10px;
+	}
 </style>
-
+<link href="{$theme}js/select2/select2.min.css?v={time()}" rel="stylesheet" />
+<script src="{$theme}js/select2/select2.full.min.js?v={time()}"></script>
 <body>
 	<div class="exp">
 		<div class="expwp">
@@ -48,7 +53,7 @@
 
 					<li class="Gift synthetic Accessories ycwigs Extension">
 						<em>头发颜色:</em>
-						<select name="color" class="select" id="color_one">
+						<select name="color" style="width: 60%;" class="select select_two" id="color_one">
 							{loop typeclassyc(8) as $val}
 							{if $val['id'] == 57}
 							<option value="{$val['id']}" data-ysdj="{$val['ysdj']}">{$val['title']} - {$val['zh']}
@@ -66,7 +71,7 @@
 
 					<li class="Gift synthetic Accessories ycwigs Extension">
 						<em>曲 度:</em>
-						<select name="lowe" class="select">
+						<select name="lowe" style="width: 60%;" class="select select_two">
 							{loop typeclassyc(15) as $val} <!-- 这个是不显示部分曲度 -->
 							<option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
 							{/loop}
@@ -188,7 +193,7 @@
 
 					<li class="2 none">
 						<em>人发头套编号:</em>
-						<select name="hairnumber" class="select">
+						<select name="hairnumber" style="width:60%" class="select select_two">
 							<option value="">未选择</option>
 							{loop typeclass(43) as $val}
 							<option value="{$val['id']}" data-ysdj="{$val['ysdj']}">{$val['title']} - {$val['zh']}</option>
@@ -256,7 +261,7 @@
 
 					<li class="2 3 5 6 7 none">
 						<em>头发颜色:</em>
-						<select name="color" class="select" id="color_two">
+						<select name="color" style="width: 60%;"  class="select select_two" id="color_two">
 							{loop typeclassyc(8) as $val}
 							{if $val['id'] == 57}
 							<option value="{$val['id']}" data-ysdj="{$val['ysdj']}">{$val['title']} - {$val['zh']}
@@ -274,7 +279,7 @@
 
 					<li class="2 3 5 6 7 none">
 						<em>曲 度:</em>
-						<select name="lowe" class="select">
+						<select name="lowe" style="width: 60%;" class="select select_two">
 							{loop typeclassyc(15) as $val} <!-- 这个是不显示部分曲度 -->
 							<option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
 							{/loop}
@@ -283,7 +288,7 @@
 
 					<li class="2 none">
 						<em>头套种类:</em>
-						<select name="lacetype" class="select">
+						<select name="lacetype" style="width: 60%;" class="select select_two">
 							{loop typeclassyc(18) as $val}
 							{if $val['id']==146}
 							<option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
@@ -473,6 +478,12 @@
 		});
 
 		$(document).ready(function () {
+
+			$('.select_two').select2({
+                placeholder: "请选择",
+                allowClear: true,
+                //tags: true // 允许输入新值
+            });
 			var arg = "{$arg}";
 			if (arg == 2) {
 				$(".exp input[name='money']").val($(".packing .datatext .on td:eq(2)", window.parent.document).text());
@@ -504,7 +515,13 @@
 			}
 		});
 
-		
+		$("select[name='category']").on("change", function () {
+			$('.select_two').select2("destroy");
+			$('.select_two').select2({
+                placeholder: "请选择",
+                allowClear: true,
+            });
+		})
 	
 		/**
 		

File diff suppressed because it is too large
+ 3139 - 0
template/erp/js/select2/select2.full.min.js


File diff suppressed because it is too large
+ 1 - 0
template/erp/js/select2/select2.min.css