فهرست منبع

修改由于添加筛选输入框的导致的数据未处理好

lvhao 2 ماه پیش
والد
کامیت
324796d9c7
1فایلهای تغییر یافته به همراه13 افزوده شده و 5 حذف شده
  1. 13 5
      template/erp/choice.html

+ 13 - 5
template/erp/choice.html

@@ -479,11 +479,7 @@
 
 		$(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());
@@ -513,6 +509,18 @@
 			else {
 				$(".expwp .sonbut").html("<font class='packingtj'>提 交</font> <font class='datasavegb'>关 闭</font>");
 			}
+			$('.select_two').select2({
+                placeholder: "请选择",
+                allowClear: true,
+                //tags: true // 允许输入新值
+            });
+			$('.select_two').each(function (index, item) {
+				let tmp_value = $(item).val();
+				//alert(item.name+"="+tmp_value)
+				
+				$(item).val(tmp_value).trigger('change');
+				
+			});
 		});
 
 		$("select[name='category']").on("change", function () {