Commit 102172dd authored by eddie.woo's avatar eddie.woo

modify

parent 27df02ac
...@@ -291,8 +291,9 @@ ...@@ -291,8 +291,9 @@
}, },
function (isConfirm) { function (isConfirm) {
if (isConfirm) { if (isConfirm) {
vatReportService.hasManualDataSource(vatSessionService.project.id,vatSessionService.month).then(function (hasManual) { vatReportService.hasManualDataSource(vatSessionService.project.id, vatSessionService.month).then(function (hasManual) {
if(hasManual){ if (hasManual) {
setTimeout(function () {
swal({ swal({
title: "warning!", title: "warning!",
text: "是否保留手工数据!", text: "是否保留手工数据!",
...@@ -304,24 +305,23 @@ ...@@ -304,24 +305,23 @@
closeOnConfirm: true, closeOnConfirm: true,
closeOnCancel: true closeOnCancel: true
}, },
function (isConfirm) { function (tmpConfirm) {
if (isConfirm) { if (tmpConfirm) {
doStartCaculate(true); doStartCaculate(true);
}else{ } else {
doStartCaculate(false); doStartCaculate(false);
} }
}); });
}else{ }, 500);
} else {
doStartCaculate(false); doStartCaculate(false);
} }
}); });
} } else {
else {
swal.close(); swal.close();
} }
}); });
} } else {
else {
doStartCaculate(false); doStartCaculate(false);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment