Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

del(file): Delete extra files

ModernWMS29b5ce4fda89
diff --git a/frontend/src/view/Home/home.vue b/frontend/src/view/Home/home.vue
deleted file mode 100644
index 7a11ce2..0000000
--- a/frontend/src/view/Home/home.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-<template>
- <div class="HomeContainer">
- <HomeSideBar />
- <div class="homeRight">
- <HomeHeader />
- <div class="homeRouterContainer pt-2">
- <RouterView v-slot="{ Component }">
- <keep-alive :include="openedMenus">
- <component :is="Component"></component>
- </keep-alive>
- </RouterView>
- </div>
- </div>
- </div>
-</template>
-
-<script lang="ts" setup>
-import { computed } from 'vue'
-import { store } from '@/store'
-import HomeHeader from './homeHeader.vue'
-import HomeSideBar from './homeSideBar.vue'
-
-const openedMenus = computed(() => store.getters['system/openedMenus'])
-</script>
-
-<style scoped lang="less">
-@headerHeight: 60px;
-@sideBarWidth: 300px;
-@sideBarTitleHeight: 80px;
-
-.HomeContainer {
- width: 100vw;
- height: 100vh;
- display: flex;
- flex-wrap: wrap;
-
- .homeRight {
- width: calc(100% - @sideBarWidth);
- padding: 0 5%;
-
- .homeRouterContainer {
- height: calc(100% - @headerHeight);
- box-sizing: border-box;
- }
- }
-}
-</style>
diff --git a/frontend/src/view/Home/homeHeader.vue b/frontend/src/view/Home/homeHeader.vue
deleted file mode 100644
index fc05968..0000000
--- a/frontend/src/view/Home/homeHeader.vue
+++ /dev/null
@@ -1,224 +0,0 @@
-<template>
- <div class="homeHeader">
- <div class="menuTitle">
- <v-breadcrumbs :items="data.breadcrumbItems">
- <template #prepend>
- <v-icon :color="lightGrey" size="small" icon="mdi-form-select"></v-icon>
- </template>
- </v-breadcrumbs>
- </div>
- <div class="toolsBar">
- <div class="gitSrc mr-4">
- <img src="@/assets/img/gitee.png" alt="Gitee" @click="method.toGit('gitee')">
- </div>
- <div class="gitSrc mr-4">
- <img src="@/assets/img/github.png" alt="Gitee" @click="method.toGit('github')">
- </div>
- <LanguagesSwitch />
- <v-menu>
- <template #activator="{ props }">
- <div class="toolItems headPortrait ml-4" v-bind="props">
- <p class="firstName">{{ firstName }}</p>
- <div class="alive"></div>
- </div>
- </template>
- <v-list>
- <v-list-item v-for="(item, index) in data.userOperationMenu" :key="index" :value="index" @click="method.operation(item.value)">
- <v-list-item-title>{{ item.title }}</v-list-item-title>
- </v-list-item>
- </v-list>
- </v-menu>
- </div>
- </div>
-</template>
-
-<script lang="ts" setup>
-import { reactive, watch, computed } from 'vue'
-import { useRouter } from 'vue-router'
-import LanguagesSwitch from '@/components/system/languages.vue'
-import { lightGrey } from '@/constant/style'
-import i18n from '@/languages/i18n'
-import { router } from '@/router'
-import { store } from '@/store'
-import { DataProps } from '@/types/Home/HomeHeader'
-
-const routerInfo = useRouter()
-
-const data: DataProps = reactive({
- breadcrumbItems: [],
- // User Action List
- userOperationMenu: [
- {
- title: i18n.global.t('system.homeHeader.logout'),
- value: 'logout'
- }
- ]
-})
-
-// Get current page route info
-watch(
- () => routerInfo,
- (newValue) => {
- const MODULE = i18n.global.t(`router.sideBar.${ newValue.currentRoute.value.meta.menuModule }`)
- const PATH = i18n.global.t(`router.sideBar.${ newValue.currentRoute.value.meta.menuPath }`)
-
- data.breadcrumbItems = [
- {
- title: PATH,
- disabled: true
- }
- ]
-
- if (newValue.currentRoute.value.meta.menuModule) {
- data.breadcrumbItems.unshift({
- title: MODULE,
- disabled: true
- })
- }
- },
- { immediate: true, deep: true }
-)
-
-const method = reactive({
- // User operation method
- operation: (value: string) => {
- if (value === 'logout') {
- store.commit('system/clearOpenedMenu')
- store.commit('system/setCurrentRouterPath', '')
-
- router.push('/login')
- }
- },
- toGit: (type: string) => {
- if (type === 'gitee') {
- window.open('https://gitee.com/modernwms/ModernWMS', '_blank')
- } else if (type === 'github') {
- window.open('https://github.com/fjykTec/ModernWMS', '_blank')
- }
- }
-})
-
-const firstName = computed(() => {
- const userInfo = store.getters['user/userInfo']
- return userInfo?.user_name?.charAt(0) || ''
-})
-</script>
-
-<style scoped lang="less">
-@headerHeight: 60px;
-
-.homeHeader {
- width: 100%;
- height: @headerHeight;
- position: relative;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
- box-sizing: border-box;
- border-radius: 0 0 10px 10px;
- transition: all 0.5s;
-
- box-shadow: 0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)),
- 0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0 1px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
- background-color: rgba(255, 255, 255, 0.5);
-
- .menuTitle {
- display: flex;
-
- .v-icon {
- margin-right: 10px;
- }
-
- span {
- color: #b9b8bc;
- }
- }
-
- .gitSrc {
- display: flex;
- align-items: center;
- justify-content: flex-end;
-
- > img {
- width: 24px;
- height: 24px;
- opacity: 0.5;
- }
-
- :hover {
- cursor: pointer;
- opacity: 1;
- scale: 1.1;
- transition: all ease-in-out 0.2s;
- }
- }
- .toolsBar {
- display: flex;
- align-items: center;
- justify-content: flex-end;
-
- .toolItems {
- height: 40px;
- width: 40px;
- font-size: 16px;
- display: flex;
- justify-content: center;
- align-items: center;
- transition: all 0.5s;
- border-radius: 40px;
- margin-right: 10px;
- cursor: pointer;
-
- &:hover {
- background-color: #e4e5ea;
- }
-
- &:active {
- background-color: #cdced3;
- }
- }
-
- .bell {
- position: relative;
-
- .hasNotify {
- margin: 0;
- width: 11px;
- height: 11px;
- border-radius: 11px;
- background-color: #ff4c51;
- border: 1px solid #fff;
- position: absolute;
- top: 5px;
- right: 7px;
- }
- }
-
- .headPortrait {
- border-radius: 40px;
- width: 40px;
- height: 40px;
- background-color: #e8e2fb;
- position: relative;
-
- .alive {
- margin: 0;
- width: 11px;
- height: 11px;
- border-radius: 11px;
- background-color: #56ca00;
- border: 1px solid #fff;
- position: absolute;
- bottom: 1px;
- right: 1px;
- }
- }
- }
-}
-
-.firstName{
- font-weight: 600;
- color: #9c27b0;
-}
-</style>
diff --git a/frontend/src/view/Home/homeSideBar.vue b/frontend/src/view/Home/homeSideBar.vue
deleted file mode 100644
index 71d59ff..0000000
--- a/frontend/src/view/Home/homeSideBar.vue
+++ /dev/null
@@ -1,180 +0,0 @@
-<template>
- <div style="height: 100%">
- <div class="homeSidebar">
- <div class="sideBarTitle">
- <Logo :height="50" :top="15" :left="5" />
- </div>
- <!-- 测试数据 -->
- <div class="sideBarMenus">
- <div v-for="(item, index) in data.menuList" :key="index">
- <div class="menuItems" :class="method.getItemClass(item)" @click="method.openMenu(item)">
- <div style="display: flex; align-items: center; height: 100%">
- <div class="menuIcon">
- <v-icon
- :icon="item.icon ? 'mdi-' + item.icon : 'mdi-checkbox-blank-circle-outline'"
- :size="18"
- :color="currentRouterPath === item.routerPath ? '#fff' : '#524e59'"
- ></v-icon>
- </div>
- <div class="menuLabel">{{ item.lable }}</div>
- </div>
- <div v-if="item.children && item.children.length > 0" :class="item.showDetail && 'rotate90'">
- <v-icon icon="mdi-chevron-right" color="#524e59" :size="22"></v-icon>
- </div>
- </div>
- <!-- <Transition name="menu"> -->
- <v-expand-transition>
- <div v-show="item.showDetail">
- <div
- v-for="(detailItem, detailIndex) in item.children"
- :key="detailIndex"
- class="menuItems padding-l"
- :class="method.getItemClass(detailItem)"
- @click="method.openMenu(detailItem)"
- >
- <div style="display: flex; align-items: center; height: 100%">
- <div class="menuIcon">
- <v-icon
- :icon="detailItem.icon ? `mdi-${detailItem.icon}` : 'mdi-checkbox-blank-circle-outline'"
- :size="14"
- :color="currentRouterPath === detailItem.routerPath ? '#fff' : '#524e59'"
- ></v-icon>
- </div>
- <div class="menuLabel">{{ detailItem.lable }}</div>
- </div>
- </div>
- </div>
- </v-expand-transition>
- <!-- </Transition> -->
- </div>
- </div>
- </div>
- </div>
-</template>
-
-<script lang="ts" setup>
-import { reactive, onMounted, computed } from 'vue'
-import Logo from '@/components/system/logo.vue'
-import { SideBarMenu, SideBarDataProps } from '@/types/Home/Home'
-import { menusToSideBar } from '@/utils/router'
-import { store } from '@/store'
-import { router } from '@/router'
-
-const data: SideBarDataProps = reactive({
- menuList: []
-})
-
-const method = reactive({
- // Open menu
- openMenu: (item: SideBarMenu) => {
- if (item.children && item.children.length > 0) {
- item.showDetail = !item.showDetail
- } else if (item.routerPath && currentRouterPath.value !== item.routerPath) {
- // If the selected menu is skipped, no action will be taken
- store.commit('system/setCurrentRouterPath', item.routerPath)
- store.commit('system/addOpenedMenu', item.routerPath)
- router.push(item.routerPath)
- }
- // if (menuName === 'login') {
- // store.commit('system/clearOpenedMenu', menuName)
- // } else {
- // store.commit('system/addOpenedMenu', menuName)
- // }
- // router.push(menuName)
- },
- // Get item class
- getItemClass: (item: SideBarMenu) => {
- if (item.children && item.children.length > 0 && item.showDetail) {
- return 'openedMenuItems'
- }
- if (currentRouterPath.value === item.routerPath) {
- return 'activeMenuItems'
- }
- return ''
- }
-})
-
-// Currently selected menu
-const currentRouterPath = computed(() => store.getters['system/currentRouterPath'])
-
-onMounted(() => {
- data.menuList = menusToSideBar()
-})
-</script>
-
-<style scoped lang="less">
-@headerHeight: 60px;
-@sideBarWidth: 300px;
-@sideBarTitleHeight: 70px;
-.homeSidebar {
- width: @sideBarWidth;
- box-shadow: 5px 5px 5px #dbdce2;
- height: 100%;
- .sideBarTitle {
- height: @sideBarTitleHeight;
- position: relative;
- }
- .sideBarMenus {
- height: calc(100% - @sideBarTitleHeight);
- overflow: auto;
- .menuItems {
- // height: 42px;
- width: calc(100% - 20px);
- box-sizing: border-box;
- padding: 10px 0;
- padding-left: 22px;
- padding-right: 8px;
- border-radius: 0 50px 50px 0;
- margin-bottom: 7px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: #696671;
- cursor: pointer;
- .menuIcon {
- height: 100%;
- width: 20px;
- margin-right: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- .v-icon {
- width: 10px;
- height: 10px;
- }
- }
- &:hover {
- background-color: #edeef3;
- }
- }
-
- .openedMenuItems {
- background-color: #e8e9ed;
- }
- .activeMenuItems {
- background: linear-gradient(to right, #af85fc, #9155fd);
- color: #fff;
- &:hover {
- background: linear-gradient(to right, #af85fc, #9155fd);
- }
- }
-
- &::-webkit-scrollbar {
- width: 7px;
- }
-
- &::-webkit-scrollbar-thumb {
- border-radius: 20px;
- background-color: #e5e5e9;
- }
- }
-}
-
-.rotate90 {
- transform: rotate(90deg);
-}
-
-.padding-l{
- padding-left: 44px !important;
-}
-</style>
diff --git a/frontend/src/view/Home/homepage/homepage.vue b/frontend/src/view/Home/homepage/homepage.vue
deleted file mode 100644
index 46e7f8e..0000000
--- a/frontend/src/view/Home/homepage/homepage.vue
+++ /dev/null
@@ -1,68 +0,0 @@
-<template>
- <div class="container">
- <div class="textBox">
- <div class="mainTitle">ModernWMS</div>
- <div class="subTitle">{{ i18n.global.t('homepage.subTitle') }}</div>
- </div>
- <div class="content">
- <div class="lottieBox">
- <lottie :src="dataJson"></lottie>
- </div>
- </div>
- </div>
-</template>
-
-<script lang="ts" setup>
-import lottie from '@/components/lottie.vue'
-import dataJson from '@/assets/warehouse.json'
-import i18n from '@/languages/i18n'
-</script>
-
-<style scoped lang="less">
-.container {
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: center;
- position: relative;
- align-items: center;
-}
-
-.content {
- width: 60%;
-}
-
-.textBox {
- width: 100%;
- position: absolute;
- left: 50%;
- top: 5%;
- transform: translate(-50%, 0);
- letter-spacing: 5px;
- z-index: 999;
- font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
-}
-
-.mainTitle {
- display: flex;
- justify-content: center;
- width: 100%;
- color: #9c27b0;
- font-weight: bold;
- font-size: 120px;
-}
-
-.subTitle {
- display: flex;
- justify-content: center;
- width: 100%;
- font-size: 30px;
- letter-spacing: 5px;
- color: #c9a7cf;
-}
-
-.lottieBox {
- min-width: 100%;
- max-width: 100%;
-}
-</style>