chengwl 4 年 前
コミット
38e8381f34
1 ファイル変更29 行追加20 行削除
  1. 29 20
      public/script/common_wigsout.js

+ 29 - 20
public/script/common_wigsout.js

@@ -13,7 +13,33 @@ window.onload = function(){
 	$(".top_end").html(today);
 	getOrdersInit();
 	$(".code_input_in").focus();
+	
 };
+function searchOrder(){
+	var code = $('.search_code').val();
+		if(code.length == 0){
+			alert('请输入所查找编号!');
+			return false;
+		}
+		var key = getUrlParam();
+		$.ajax({
+			type: 'get',
+			url: 'application/main.php',
+			data: 'c=wigsOut&m=searchOrders&code=' + code + '&key=' + key,
+			success: function(rs){
+				if(rs == '-1'){
+					alert('查无此编号!');
+				}else{
+					$("#list").html(rs);
+				}
+				$('.search_code').val("");
+				$('.search_code').focus();
+				
+			},
+		});
+		return false;
+}
+
 
 /**
  * get any date
@@ -109,25 +135,9 @@ $(document).ready(function(){
 			},
 		});
 	});
-	
-	$('.export_btn').click(function(){
-		var shop = $("#shop").val();
-		var status = $("#orders_status").val();
-		var type = $('#type').val();
-		var start_date = $(".start_date").val();
-		var end_date = $(".end_date").val();
-		var time_type= $(".time_type").val();
-		
-		if(!start_date || !end_date){
-			alert("请选择查询日期");
-			return false;
-		}else if(start_date > end_date){
-			alert("结束日期不得小于起始日期");
-			return false;
-		}
-		
-		window.location.href = 'application/main.php?c=wigsOut&m=exportExcel&shop='+shop+'&status='+status+'&startDate='+start_date+'&endDate='+end_date+'&type='+type+'&time_type='+time_type;
-	});
+
+
+
 	
 	$('.export_yesterday_btn').click(function(){
 		eyb();
@@ -284,7 +294,6 @@ $(document).ready(function(){
 						// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
 						// LODOP.PRINTA();
 						LODOP.PRINT();
-						sleep(2000);
 					}
 					$('.barcode>.box').html('');
 					$('.yp').html('').hide();