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