Aslee 3 jaren geleden
bovenliggende
commit
f051631882

+ 8 - 7
src/main/webapp/WEB-INF/views/modules/archive/cmOrderArchiveFileList.jsp

@@ -36,15 +36,16 @@
         }
 
         function downAllFile(allFileIds) {
-            debugger
             var fileIdArr = allFileIds.toString().split(",");
             for (var i = 0; i < fileIdArr.length; i++) {
-                if (i > 0) {
-                    var fileId = fileIdArr[i];
-                    sleep(500);
-                    window.location.href = "${ctx}/archive/cmOrderArchive/downFile?fileId=" + fileId;
-                } else {
-                    window.location.href = "${ctx}/archive/cmOrderArchive/downFile?fileId=" + fileIdArr[i];
+                var fileId = fileIdArr[i];
+                if (fileId != '') {
+                    if (i > 0) {
+                        sleep(500);
+                        window.location.href = "${ctx}/archive/cmOrderArchive/downFile?fileId=" + fileId;
+                    } else {
+                        window.location.href = "${ctx}/archive/cmOrderArchive/downFile?fileId=" + fileId;
+                    }
                 }
             }
         }

+ 0 - 1
src/main/webapp/WEB-INF/views/modules/archive/cmOrderArchiveForm.jsp

@@ -9,7 +9,6 @@
 			//$("#name").focus();
 			$("#inputForm").validate({
 				submitHandler: function(form){
-					debugger
 					var orderArchiveId = $("#id").val();
 					var shopOrderId = $("#shopOrderId").val();
 					$.post("${ctx}/archive/cmOrderArchive/checkShopOrderId",{"id":orderArchiveId,"shopOrderId":shopOrderId},function (result) {