Commit 23ad5187 authored by 黄奎's avatar 黄奎

购物店修改

parent 9aeaad2c
......@@ -414,7 +414,7 @@
cursor: pointer;
}
.shoppingStore .redType span {
.shoppingStore .redType span {
color: #e95252;
}
......@@ -1179,27 +1179,46 @@
},
//导入数据
importInfo() {
// var that = this;
// this.Confirm('是否导入此数据?', function () {
// that.tabLoading = true;
// let msg = that.importData;
// that.apipost(
// "ShoppingInfo_Post_Set",
// msg,
// res => {
// that.tabLoading = false;
// if (res.data.resultCode == 1) {
// that.fillShow = false;
// that.Success("导入成功,用时【" + (res.data.data / 1000) + "秒】");
// that.getList();
// } else {
// that.Error(res.data.message);
// }
// },
// err => {}
// );
// });
this.importInfoAndExport();
},
//导入数据
importInfoAndExport() {
var that = this;
this.Confirm('是否导入此数据?', function () {
that.tabLoading = true;
let msg = that.importData;
that.apipost(
"ShoppingInfo_Post_Set",
msg,
let qMsg = {
msg: that.importData,
uid: that.getLocalStorage().EmployeeId
};
let fileName = "生成购物店数据" + that.$commonUtils.getCurrentDate() + ".xls";
that.GetLocalFile("ShoppingInfo_Post_ImportAndExport", qMsg, fileName,
res => {
that.tabLoading = false;
if (res.data.resultCode == 1) {
that.fillShow = false;
that.Success("导入成功,用时【"+(res.data.data/1000)+"秒】");
that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
that.fillShow = false;
that.Success("导入成功!");
that.getList();
});
});
},
getDownList() {
let msg = {};
......
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