diff --git a/App.vue b/App.vue index 09d3153..6efffeb 100644 --- a/App.vue +++ b/App.vue @@ -1,63 +1,119 @@ \ No newline at end of file diff --git a/components/material-item/material-item.vue b/components/material-item/material-item.vue index 1fc7441..b87d7ee 100644 --- a/components/material-item/material-item.vue +++ b/components/material-item/material-item.vue @@ -1,50 +1,53 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index b22c19a..310d015 100644 --- a/pages.json +++ b/pages.json @@ -1,13 +1,12 @@ { "globalStyle": { - "navigationBarTextStyle": "black", + "navigationBarTextStyle": "white", "navigationBarTitleText": "DOAN", - "navigationBarBackgroundColor": "#FFFFFF" - + "navigationBarBackgroundColor": "#2b85e4" }, "tabBar": { - "color": "#7A7E83", - "selectedColor": "#3cc51f", + "color": "#8a8a8a", + "selectedColor": "#409eff", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [{ @@ -17,10 +16,10 @@ "text": "仓库" }, { - "pagePath": "pages/agv/agv", - "iconPath": "static/images/tabbar/work.png", - "selectedIconPath": "static/images/tabbar/work_.png", - "text": "AGV" + "pagePath": "pages/user/user", + "iconPath": "static/images/tabbar/mine.png", + "selectedIconPath": "static/images/tabbar/mine_.png", + "text": "用户" } ] }, @@ -33,8 +32,8 @@ }, { "path": "pages/index/index", "style": { - "navigationBarTitleText": "DOAN", - "navigationStyle": "custom" + "navigationBarTitleText": "DOAN" + // "navigationStyle": "custom" } }, { @@ -138,6 +137,31 @@ "navigationBarTitleText" : "货物详情", "enablePullDownRefresh" : false } + }, + { + "path" : "pages/consolidation/consolidation", + "style" : + { + "navigationBarTitleText" : "拼箱", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/menuChouse/menuChouse", + "style" : + { + "navigationBarTitleText" : "功能选择", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/user/user", + "style" : + { + "navigationBarTitleText" : "用户中心", + "navigationStyle": "custom", + "enablePullDownRefresh" : false + } } ] diff --git a/pages/agv/agv.vue b/pages/agv/agv.vue index f8d23c9..a3f0b94 100644 --- a/pages/agv/agv.vue +++ b/pages/agv/agv.vue @@ -25,6 +25,10 @@ name: '出料', icon: 'upload-filled' }, + // { + // name: '出料', + // icon: 'upload-filled' + // }, ] } diff --git a/pages/consolidation/consolidation.vue b/pages/consolidation/consolidation.vue new file mode 100644 index 0000000..c110b21 --- /dev/null +++ b/pages/consolidation/consolidation.vue @@ -0,0 +1,304 @@ + + + + + diff --git a/pages/demo/demo.vue b/pages/demo/demo.vue index e0dbc6e..727aaf2 100644 --- a/pages/demo/demo.vue +++ b/pages/demo/demo.vue @@ -6,15 +6,19 @@ - + \ No newline at end of file diff --git a/pages/inWarehouse/inWarehouse.vue b/pages/inWarehouse/inWarehouse.vue index f47f7b8..ac0d8b6 100644 --- a/pages/inWarehouse/inWarehouse.vue +++ b/pages/inWarehouse/inWarehouse.vue @@ -13,8 +13,8 @@ 总箱数:{{ newMaterialList.length }} - 操作指示-请扫仓库码 - 操作指示-请扫货物码 + 请扫仓库码 + 请扫箱码 diff --git a/pages/index/index-backups.vue b/pages/index/index-backups.vue new file mode 100644 index 0000000..31c520d --- /dev/null +++ b/pages/index/index-backups.vue @@ -0,0 +1,207 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.scss b/pages/index/index.scss new file mode 100644 index 0000000..62959bc --- /dev/null +++ b/pages/index/index.scss @@ -0,0 +1,34 @@ +.gap{ + border-radius: ; +} +.home-container { + width: 360px; + height: 594px; + background-color: white; +} +.home-banner-box { + width: 360px; + height: 180px; +} +.home-button-box{ + padding: 20px; + width: 360px; + height: 310px; +} +.home-button-action:active{ + border: 1px solid #b6b6b6; + opacity: .70; +} +.box-1{ + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + +} +.box-2{ + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 538402e..723444d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,212 +1,179 @@ - + \ No newline at end of file diff --git a/pages/login/login-backups.vue b/pages/login/login-backups.vue new file mode 100644 index 0000000..4736cfe --- /dev/null +++ b/pages/login/login-backups.vue @@ -0,0 +1,272 @@ + + + + + \ No newline at end of file diff --git a/pages/login/login.scss b/pages/login/login.scss new file mode 100644 index 0000000..fdca680 --- /dev/null +++ b/pages/login/login.scss @@ -0,0 +1,9 @@ +.login-banner-box { + width: 360px; + height: 240px; +} + +.login-form-box { + padding-left: 40px; + padding-right: 40px; +} diff --git a/pages/login/login.vue b/pages/login/login.vue index 48802be..c18a319 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,256 +1,166 @@ + @import url("login.scss"); + \ No newline at end of file diff --git a/pages/menuChouse/menuChouse.vue b/pages/menuChouse/menuChouse.vue new file mode 100644 index 0000000..64bf097 --- /dev/null +++ b/pages/menuChouse/menuChouse.vue @@ -0,0 +1,237 @@ + + + + + \ No newline at end of file diff --git a/pages/outWarehouse/outWarehouse.vue b/pages/outWarehouse/outWarehouse.vue index be04b61..933c328 100644 --- a/pages/outWarehouse/outWarehouse.vue +++ b/pages/outWarehouse/outWarehouse.vue @@ -12,8 +12,8 @@ 已扫箱数:{{ newMaterialList.length }} - 操作指示-请扫出库单 - 操作指示-请扫货物码 + 请扫出库单 + 请扫箱码 diff --git a/pages/user/user.css b/pages/user/user.css new file mode 100644 index 0000000..4b448de --- /dev/null +++ b/pages/user/user.css @@ -0,0 +1,824 @@ +/************************************************************ +** 请将全局样式拷贝到项目的全局 CSS 文件或者当前页面的顶部 ** +** 否则页面将无法正常显示 ** +************************************************************/ +/* 无顶部nav有tab通用主容器 可使用高度 */ +.user-container { + width: 360px; + height: 662px; + background-color: white; +} + +html { + font-size: 16px; +} + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', + 'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +view, +image, +text { + box-sizing: border-box; + flex-shrink: 0; +} + +#app { + width: 100vw; + /* height: 100vh; */ +} + +.flex-row { + display: flex; + flex-direction: row; +} + +.flex-col { + display: flex; + flex-direction: column; +} + +.justify-start { + justify-content: flex-start; +} + +.justify-end { + justify-content: flex-end; +} + +.justify-center { + justify-content: center; +} + +.justify-between { + justify-content: space-between; +} + +.justify-around { + justify-content: space-around; +} + +.justify-evenly { + justify-content: space-evenly; +} + +.items-start { + align-items: flex-start; +} + +.items-end { + align-items: flex-end; +} + +.items-center { + align-items: center; +} + +.items-baseline { + align-items: baseline; +} + +.items-stretch { + align-items: stretch; +} + +.self-start { + align-self: flex-start; +} + +.self-end { + align-self: flex-end; +} + +.self-center { + align-self: center; +} + +.self-baseline { + align-self: baseline; +} + +.self-stretch { + align-self: stretch; +} + +.flex-1 { + flex: 1 1 0%; +} + +.flex-auto { + flex: 1 1 auto; +} + +.grow { + flex-grow: 1; +} + +.grow-0 { + flex-grow: 0; +} + +.shrink { + flex-shrink: 1; +} + +.shrink-0 { + flex-shrink: 0; +} + +.relative { + position: relative; +} + +.ml-2 { + margin-left: 2px; +} + +.mt-2 { + margin-top: 2px; +} + +.ml-4 { + margin-left: 4px; +} + +.mt-4 { + margin-top: 4px; +} + +.ml-6 { + margin-left: 6px; +} + +.mt-6 { + margin-top: 6px; +} + +.ml-8 { + margin-left: 8px; +} + +.mt-8 { + margin-top: 8px; +} + +.ml-10 { + margin-left: 10px; +} + +.mt-10 { + margin-top: 10px; +} + +.ml-12 { + margin-left: 12px; +} + +.mt-12 { + margin-top: 12px; +} + +.ml-14 { + margin-left: 14px; +} + +.mt-14 { + margin-top: 14px; +} + +.ml-16 { + margin-left: 16px; +} + +.mt-16 { + margin-top: 16px; +} + +.ml-18 { + margin-left: 18px; +} + +.mt-18 { + margin-top: 18px; +} + +.ml-20 { + margin-left: 20px; +} + +.mt-20 { + margin-top: 20px; +} + +.ml-22 { + margin-left: 22px; +} + +.mt-22 { + margin-top: 22px; +} + +.ml-24 { + margin-left: 24px; +} + +.mt-24 { + margin-top: 24px; +} + +.ml-26 { + margin-left: 26px; +} + +.mt-26 { + margin-top: 26px; +} + +.ml-28 { + margin-left: 28px; +} + +.mt-28 { + margin-top: 28px; +} + +.ml-30 { + margin-left: 30px; +} + +.mt-30 { + margin-top: 30px; +} + +.ml-32 { + margin-left: 32px; +} + +.mt-32 { + margin-top: 32px; +} + +.ml-34 { + margin-left: 34px; +} + +.mt-34 { + margin-top: 34px; +} + +.ml-36 { + margin-left: 36px; +} + +.mt-36 { + margin-top: 36px; +} + +.ml-38 { + margin-left: 38px; +} + +.mt-38 { + margin-top: 38px; +} + +.ml-40 { + margin-left: 40px; +} + +.mt-40 { + margin-top: 40px; +} + +.ml-42 { + margin-left: 42px; +} + +.mt-42 { + margin-top: 42px; +} + +.ml-44 { + margin-left: 44px; +} + +.mt-44 { + margin-top: 44px; +} + +.ml-46 { + margin-left: 46px; +} + +.mt-46 { + margin-top: 46px; +} + +.ml-48 { + margin-left: 48px; +} + +.mt-48 { + margin-top: 48px; +} + +.ml-50 { + margin-left: 50px; +} + +.mt-50 { + margin-top: 50px; +} + +.ml-52 { + margin-left: 52px; +} + +.mt-52 { + margin-top: 52px; +} + +.ml-54 { + margin-left: 54px; +} + +.mt-54 { + margin-top: 54px; +} + +.ml-56 { + margin-left: 56px; +} + +.mt-56 { + margin-top: 56px; +} + +.ml-58 { + margin-left: 58px; +} + +.mt-58 { + margin-top: 58px; +} + +.ml-60 { + margin-left: 60px; +} + +.mt-60 { + margin-top: 60px; +} + +.ml-62 { + margin-left: 62px; +} + +.mt-62 { + margin-top: 62px; +} + +.ml-64 { + margin-left: 64px; +} + +.mt-64 { + margin-top: 64px; +} + +.ml-66 { + margin-left: 66px; +} + +.mt-66 { + margin-top: 66px; +} + +.ml-68 { + margin-left: 68px; +} + +.mt-68 { + margin-top: 68px; +} + +.ml-70 { + margin-left: 70px; +} + +.mt-70 { + margin-top: 70px; +} + +.ml-72 { + margin-left: 72px; +} + +.mt-72 { + margin-top: 72px; +} + +.ml-74 { + margin-left: 74px; +} + +.mt-74 { + margin-top: 74px; +} + +.ml-76 { + margin-left: 76px; +} + +.mt-76 { + margin-top: 76px; +} + +.ml-78 { + margin-left: 78px; +} + +.mt-78 { + margin-top: 78px; +} + +.ml-80 { + margin-left: 80px; +} + +.mt-80 { + margin-top: 80px; +} + +.ml-82 { + margin-left: 82px; +} + +.mt-82 { + margin-top: 82px; +} + +.ml-84 { + margin-left: 84px; +} + +.mt-84 { + margin-top: 84px; +} + +.ml-86 { + margin-left: 86px; +} + +.mt-86 { + margin-top: 86px; +} + +.ml-88 { + margin-left: 88px; +} + +.mt-88 { + margin-top: 88px; +} + +.ml-90 { + margin-left: 90px; +} + +.mt-90 { + margin-top: 90px; +} + +.ml-92 { + margin-left: 92px; +} + +.mt-92 { + margin-top: 92px; +} + +.ml-94 { + margin-left: 94px; +} + +.mt-94 { + margin-top: 94px; +} + +.ml-96 { + margin-left: 96px; +} + +.mt-96 { + margin-top: 96px; +} + +.ml-98 { + margin-left: 98px; +} + +.mt-98 { + margin-top: 98px; +} + +.ml-100 { + margin-left: 100px; +} + +.mt-100 { + margin-top: 100px; +} + +.mt-7 { + margin-top: 7px; +} + +.mt-29 { + margin-top: 29px; +} + +.ml-3 { + margin-left: 3px; +} + +.mt-138 { + margin-top: 138px; +} + +.mt-19 { + margin-top: 19px; +} + +.page { + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} + +.section { + overflow: hidden; + background-image: url('https://ide.code.fun/api/image?token=661f6554a17dbc0011549df2&name=ad157cc0204af4f71837e19bb893c054.png'); + background-size: 100% 100%; + background-repeat: no-repeat; +} + +.section_2 { + background-image: url('https://ide.code.fun/api/image?token=661f6554a17dbc0011549df2&name=ad157cc0204af4f71837e19bb893c054.png'); + background-size: 100% 100%; + background-repeat: no-repeat; + height: 216px; +} + +.image { + border-radius: 50%; + width: 60px; + height: 60px; +} + +.pos { + position: absolute; + left: 50%; + top: 35px; + transform: translateX(-50%); +} + +.text { + color: #ffffff; + font-size: 18px; + font-family: Roboto; +} + +.pos_2 { + position: absolute; + left: 50%; + top: 98px; + transform: translateX(-50%); +} + +.section_3 { + padding: 3.5px 6.5px 5px 9px; + background-color: #ffffff4d; + border-radius: 23px; + width: 80px; +} + +.pos_3 { + position: absolute; + left: 50%; + top: 120px; + transform: translateX(-50%); +} + +.image_2 { + width: 11px; + height: 11px; +} + +.text_2 { + color: #ffffff; + font-size: 12px; + font-family: Roboto; +} + +.section_4 { + padding: 26.5px 22px 52px 32px; + background-color: #ffffff2b; + border-radius: 12px; + box-shadow: 0px 2px 37px #00000017; + backdrop-filter: blur(12.5px); +} + +.pos_4 { + position: absolute; + left: 5px; + right: 5px; + top: 147px; +} + +.font { + font-size: 20px; + font-family: SourceHanSansCN; + color: #ffffff; +} + +.group { + padding: 9px 0 15px 5px; +} + +.section_5 { + margin-left: 1px; + margin-right: 4px; + padding: 8px 0 69px; + background-color: #ffffff; + box-shadow: 0px 8.5px 25.5px #e9eff5; +} + +.font_2 { + font-size: 14px; + font-family: Roboto; + color: #ffffff; +} + +.equal-division { + position: absolute; + left: 0; + right: 0; + top: 0; +} + +.group_2 { + padding: 3.5px 16px 0; +} + +.equal-division-item { + flex: 1 1 79px; +} + +.group_3 { + padding: 5px 0 5px 8.5px; +} + +.group_16 { + padding-bottom: 35.5px; +} + +.image_3 { + width: 46px; + height: 46px; +} + +.pos_5 { + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); +} + +.font_3 { + font-size: 14px; + font-family: Roboto; + color: #6f7278; +} + +.text_6 { + margin-left: 10px; + font-size: 13px; +} + +.group_1 { + padding: 7px 0 5px; +} + +.text_7 { + font-size: 13px; +} + +.group_5 { + padding: 7px 0 5px; +} + +.text_8 { + font-size: 13px; +} + +.group_4 { + padding: 5px 6.5px 5px 15px; +} + +.group_15 { + padding-bottom: 35.5px; +} + +.pos_6 { + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); +} + +.text_9 { + font-size: 13px; +} + +.group_6 { + overflow-x: hidden; +} + +.section_6 { + padding-left: 30px; + padding-bottom: 16px; + background-color: #ffffff; + box-shadow: 0px 8.5px 25.5px #e9eff5; + width: 350px; + height: 218px; +} + +.group_7 { + margin-left: 1px; + padding: 22px 0 17px; + width: 73.5px; +} + +.image_4 { + width: 18px; + height: 16px; +} + +.group_9 { + padding: 14px 0 16px; + width: 291.5px; +} + +.image_6 { + width: 18px; + height: 19px; +} + +.image_7 { + width: 8px; + height: 14px; +} + +.group_11 { + padding: 12px 0 12px; +} + +.image_10 { + width: 18px; + height: 17px; +} + +.font_4 { + font-size: 14px; + font-family: Roboto; + color: #363b47; +} + +.group_8 { + overflow-x: hidden; + width: 2px; +} + +.image_5 { + width: 6px; + height: 12px; +} + +.text-wrapper { + margin-right: 5px; + padding: 15px 0 20px; + background-image: linear-gradient(123.7deg, #7ad7ff -275.3%, #347bf1 358.8%); + box-shadow: 0px 8.5px 25.5px #e9eff5; +} + +.out-button-box{ + padding: 10px; +} \ No newline at end of file diff --git a/pages/user/user.vue b/pages/user/user.vue new file mode 100644 index 0000000..40b055e --- /dev/null +++ b/pages/user/user.vue @@ -0,0 +1,113 @@ + + + + + \ No newline at end of file diff --git a/static/images/icon/user-update.png b/static/images/icon/user-update.png new file mode 100644 index 0000000..a96b117 Binary files /dev/null and b/static/images/icon/user-update.png differ diff --git a/static/images/icon/仓库管理.svg b/static/images/icon/仓库管理.svg new file mode 100644 index 0000000..72a7696 --- /dev/null +++ b/static/images/icon/仓库管理.svg @@ -0,0 +1,51 @@ + +Qt SVG Document +Generated with Qt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/images/icon/入库.svg b/static/images/icon/入库.svg new file mode 100644 index 0000000..5a02958 --- /dev/null +++ b/static/images/icon/入库.svg @@ -0,0 +1,11 @@ + + + 入库 + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/static/images/icon/出库.svg b/static/images/icon/出库.svg new file mode 100644 index 0000000..1f13725 --- /dev/null +++ b/static/images/icon/出库.svg @@ -0,0 +1,55 @@ + +Qt SVG Document +Generated with Qt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/images/icon/盘点.svg b/static/images/icon/盘点.svg new file mode 100644 index 0000000..cf1b51a --- /dev/null +++ b/static/images/icon/盘点.svg @@ -0,0 +1,15 @@ + + + 验货 + Created with Sketch. + + + + + + + + + + + \ No newline at end of file diff --git a/static/images/icon/移库.svg b/static/images/icon/移库.svg new file mode 100644 index 0000000..aef8e4d --- /dev/null +++ b/static/images/icon/移库.svg @@ -0,0 +1,51 @@ + +Qt SVG Document +Generated with Qt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/images/ui/home-banner.png b/static/images/ui/home-banner.png new file mode 100644 index 0000000..7c24f33 Binary files /dev/null and b/static/images/ui/home-banner.png differ diff --git a/static/images/ui/login.png b/static/images/ui/login.png new file mode 100644 index 0000000..becd180 Binary files /dev/null and b/static/images/ui/login.png differ diff --git a/static/images/ui/user.png b/static/images/ui/user.png new file mode 100644 index 0000000..0414438 Binary files /dev/null and b/static/images/ui/user.png differ diff --git a/static/images/ui/入库.jpg b/static/images/ui/入库.jpg new file mode 100644 index 0000000..d2402f5 Binary files /dev/null and b/static/images/ui/入库.jpg differ diff --git a/static/images/ui/运货.jpg b/static/images/ui/运货.jpg new file mode 100644 index 0000000..9cb0131 Binary files /dev/null and b/static/images/ui/运货.jpg differ diff --git a/static/scss/global.scss b/static/scss/global.scss index ac636bd..7e58368 100644 --- a/static/scss/global.scss +++ b/static/scss/global.scss @@ -1,3 +1,4 @@ + .text-center { text-align: center; } @@ -87,4 +88,4 @@ color: #999; } } - } + } \ No newline at end of file diff --git a/store/index.js b/store/index.js index 83a9db5..94be1f0 100644 --- a/store/index.js +++ b/store/index.js @@ -6,10 +6,10 @@ import getters from './getters' Vue.use(Vuex) const store = new Vuex.Store({ - modules: { - user - }, - getters + modules: { + user + }, + getters }) -export default store +export default store \ No newline at end of file diff --git a/store/modules/user.js b/store/modules/user.js index a1eb26e..998f595 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -83,6 +83,7 @@ const user = { } else { commit('SET_ROLES', ['ROLE_DEFAULT']) } + console.log(res); commit('SET_NAME', username) commit('SET_AVATAR', avatar) resolve(res)