handleAutoRun(row) {
const loading = this.$loading({
lock: true,
text: '数据比对中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
var that = this;
const ids = row.id || this.ids;
console.log(ids)
this.$confirm('是否批量对选中订单自动计算?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function () {
return autoRun(ids);
}).then((response) => {
this.getList();
var url = "/common/download?fileName=" + encodeURI(response.msg) + "&delete=" + true;
that.down(url, {}, "自动跑单数据比对结果.xlsx");
this.msgSuccess("数据比对完成,正在导出比对结果...");
}).finally(() => {
loading.close();
})
},