|
@@ -199,7 +199,7 @@ const getDemandData = () => {
|
|
|
{ id: "0", name: "胜德体育" },
|
|
|
];
|
|
|
departmentList.value = list.concat(res.rows);
|
|
|
- if (!(route.query && route.query.backupDateStr)) {
|
|
|
+ if (!(route.query && route.query.backupDate)) {
|
|
|
proxy.post("/inventory/getQuantityByDepartment", {}).then((res) => {
|
|
|
for (let i = 0; i < departmentList.value.length; i++) {
|
|
|
let list = res.filter((item) => item.departmentId === departmentList.value[i].id);
|
|
@@ -212,7 +212,7 @@ const getDemandData = () => {
|
|
|
});
|
|
|
proxy.post("/warehouse/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
warehouseList.value[0].children = res.rows;
|
|
|
- if (!(route.query && route.query.backupDateStr)) {
|
|
|
+ if (!(route.query && route.query.backupDate)) {
|
|
|
proxy.post("/inventory/getQuantityByWarehouse", { departmentId: sourceList.value.pagination.departmentId }).then((res) => {
|
|
|
if (warehouseList.value[0].children && warehouseList.value[0].children.length > 0) {
|
|
|
for (let i = 0; i < warehouseList.value[0].children.length; i++) {
|
|
@@ -237,7 +237,7 @@ const getList = async (req, status) => {
|
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
}
|
|
|
let path = "/inventory/page";
|
|
|
- if (route.query && route.query.backupDateStr) {
|
|
|
+ if (route.query && route.query.backupDate) {
|
|
|
path = "/inventoryBackup/detailPage";
|
|
|
}
|
|
|
loading.value = true;
|
|
@@ -265,7 +265,7 @@ const getTotal = (item) => {
|
|
|
};
|
|
|
const changeDepartment = () => {
|
|
|
proxy.$refs.treeCategory.setCurrentKey(null);
|
|
|
- if (!(route.query && route.query.backupDateStr)) {
|
|
|
+ if (!(route.query && route.query.backupDate)) {
|
|
|
proxy.post("/inventory/getQuantityByWarehouse", { departmentId: sourceList.value.pagination.departmentId }).then((res) => {
|
|
|
if (warehouseList.value[0].children && warehouseList.value[0].children.length > 0) {
|
|
|
for (let i = 0; i < warehouseList.value[0].children.length; i++) {
|
|
@@ -296,13 +296,13 @@ const renderContent = (h, data) => {
|
|
|
}
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
- if (route.query && route.query.backupDateStr) {
|
|
|
+ if (route.query && route.query.backupDate) {
|
|
|
useTagsViewStore().visitedViews = useTagsViewStore().visitedViews.map((item) => {
|
|
|
- if (item.query && item.query.backupDateStr === route.query.backupDateStr) {
|
|
|
+ if (item.query && item.query.backupDate === route.query.backupDate) {
|
|
|
return {
|
|
|
...item,
|
|
|
- name: "库存快照: " + route.query.backupDateStr,
|
|
|
- title: "库存快照: " + route.query.backupDateStr,
|
|
|
+ name: "库存快照: " + route.query.backupDate,
|
|
|
+ title: "库存快照: " + route.query.backupDate,
|
|
|
};
|
|
|
} else {
|
|
|
return {
|
|
@@ -310,7 +310,7 @@ onMounted(() => {
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
- getList({ backupDate: route.query.backupDateStr });
|
|
|
+ getList({ backupDate: route.query.backupDate });
|
|
|
} else {
|
|
|
getList();
|
|
|
}
|