|
@@ -56,6 +56,7 @@ import byTable from "/src/components/byTable/index";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import useTagsViewStore from "/src/store/modules/tagsView";
|
|
|
import { ElMessageBox } from "element-plus";
|
|
|
+import moment from "moment";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const props = defineProps({
|
|
@@ -390,11 +391,11 @@ const deriveExcel = () => {
|
|
|
.then(() => {
|
|
|
if (route.query && route.query.backupDate) {
|
|
|
proxy.getFile("/inventory/exportBackExcel", sourceList.value.pagination).then((res) => {
|
|
|
- proxy.downloadFile(res, "库存.xlsx");
|
|
|
+ proxy.downloadFile(res, "库存-" + moment().format("yyyy-MM-DD") + ".xlsx");
|
|
|
});
|
|
|
} else {
|
|
|
proxy.getFile("/inventory/exportExcel", sourceList.value.pagination).then((res) => {
|
|
|
- proxy.downloadFile(res, "库存.xlsx");
|
|
|
+ proxy.downloadFile(res, "库存-" + moment().format("yyyy-MM-DD") + ".xlsx");
|
|
|
});
|
|
|
}
|
|
|
})
|