diff --git a/components/pda-scan-input/index.vue b/components/pda-scan-input/index.vue
index 32a8943..5b80a6e 100644
--- a/components/pda-scan-input/index.vue
+++ b/components/pda-scan-input/index.vue
@@ -1,6 +1,7 @@
+
@@ -276,6 +277,8 @@
\ No newline at end of file
diff --git a/pages/outWarehouse/outWarehouse.vue b/pages/outWarehouse/outWarehouse.vue
index 933c328..d761068 100644
--- a/pages/outWarehouse/outWarehouse.vue
+++ b/pages/outWarehouse/outWarehouse.vue
@@ -1,16 +1,10 @@
-
+
+
+
- 出库单号:{{ outInfo.shipmentNum }}
-
- 备注:{{ outInfo.remarks }}
-
-
- 已扫货物数:{{ quantityTotal }}
- 已扫箱数:{{ newMaterialList.length }}
-
请扫出库单
请扫箱码
@@ -19,6 +13,15 @@
+ 出库单号:{{ outInfo.shipmentNum }}
+
+ 备注:{{ outInfo.remarks }}
+
+
+ 已扫货物数:{{ quantityTotal }}
+ 已扫箱数:{{ newMaterialList.length }}
+
+
@@ -34,371 +37,379 @@
-
-
+ 货物出库
+ 出库单完成
+ .title-box {
+ /* margin-top: 54px; */
+ /* margin-bottom: 20px; */
+ font-size: 26px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .warehoseInfo-box {
+ width: 100%;
+ font-size: 20px;
+ display: flex;
+ flex-direction: column;
+ }
+
+ .warehoseInfo-box .row {
+ display: flex;
+ flex-direction: row;
+ }
+
+ .warehoseInfo-box .row .col {
+ width: 50%;
+ }
+
+ .aciton-box {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .color1 {
+ color: yellowgreen;
+ }
+
+ .color2 {
+ color: orange;
+ }
+
+ .pda-search-box {
+ margin-bottom: 5px;
+ }
+
+ .list-box {
+ width: 100%;
+ }
+
+ .scroll-view-title {
+ font-size: 24px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .scroll-view-box {
+ width: 98%;
+ margin: 0 auto;
+ margin-top: 50px;
+ height: 200px;
+ padding: 10px;
+ background-color: rgba(179, 179, 179, 0.3);
+ border-radius: 5px;
+ }
+
+ .scroll-view-last {
+ width: 100%;
+ height: 60px;
+ font-size: 20px;
+ color: rgba(0, 9, 0, 0.7);
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ margin-top: 10px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border-radius: 10px;
+ background-color: white;
+ }
+
+ .button-box {
+ width: 80%;
+ margin: 10px auto;
+ display: flex;
+ flex-direction: row;
+ }
+
\ No newline at end of file
diff --git a/pages/user/user.css b/pages/user/user.css
index e98dcfc..14c4e18 100644
--- a/pages/user/user.css
+++ b/pages/user/user.css
@@ -821,4 +821,8 @@ text {
.out-button-box{
padding: 10px;
+}
+
+.card-box{
+ height: 40px !important;
}
\ No newline at end of file
diff --git a/pages/user/user.vue b/pages/user/user.vue
index f3678d4..a86a617 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -3,20 +3,15 @@
-
- {{name}}
-
-
- 编辑资料
-
+ {{nickName}}
- 部门:工程师
- 岗位:工程师
+ 部门:{{deptName}}
+
-
+
@@ -26,10 +21,9 @@
-
-
-
-
+
+
+
state.user.token,
avatar: state => state.user.avatar,
name: state => state.user.name,
+ nickName: state => state.user.nickName,
+ deptName: state => state.user.deptName,
roles: state => state.user.roles,
permissions: state => state.user.permissions
}
diff --git a/store/modules/user.js b/store/modules/user.js
index 998f595..884d920 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -20,7 +20,9 @@ const user = {
name: storage.get(constant.name),
avatar: storage.get(constant.avatar),
roles: storage.get(constant.roles),
- permissions: storage.get(constant.permissions)
+ permissions: storage.get(constant.permissions),
+ nickName: storage.get(constant.nickName),
+ deptName: storage.get(constant.deptName)
},
mutations: {
@@ -42,7 +44,15 @@ const user = {
SET_PERMISSIONS: (state, permissions) => {
state.permissions = permissions
storage.set(constant.permissions, permissions)
- }
+ },
+ SET_NICKNAME: (state, nickName) => {
+ state.nickName = nickName
+ storage.set(constant.nickName, nickName)
+ },
+ SET_DEPTNAME: (state, deptName) => {
+ state.deptName = deptName
+ storage.set(constant.deptName, deptName)
+ },
},
actions: {
@@ -72,18 +82,23 @@ const user = {
}) {
return new Promise((resolve, reject) => {
getInfo().then(res => {
- const user = res.user
+ const user = res.data.user
const avatar = (user == null || user.avatar == "" || user.avatar == null) ?
require("@/static/images/profile.jpg") : baseUrl + user.avatar
const username = (user == null || user.userName == "" || user.userName ==
null) ? "" : user.userName
- if (res.roles && res.roles.length > 0) {
- commit('SET_ROLES', res.roles)
- commit('SET_PERMISSIONS', res.permissions)
+ const nickName = (user == null || user.nickName == "" || user.nickName ==
+ null) ? "" : user.nickName
+ const deptName = (user == null || user.deptName == "" || user.deptName ==
+ null) ? "" : user.deptName
+ if (user.roles && user.roles.length > 0) {
+ commit('SET_ROLES', user.roles)
+ commit('SET_PERMISSIONS', res.roleIds)
} else {
commit('SET_ROLES', ['ROLE_DEFAULT'])
}
- console.log(res);
+ commit('SET_NICKNAME', user.nickName)
+ commit('SET_DEPTNAME', user.deptName)
commit('SET_NAME', username)
commit('SET_AVATAR', avatar)
resolve(res)
diff --git a/utils/constant.js b/utils/constant.js
index 8becd84..7d96994 100644
--- a/utils/constant.js
+++ b/utils/constant.js
@@ -2,7 +2,9 @@ const constant = {
avatar: 'vuex_avatar',
name: 'vuex_name',
roles: 'vuex_roles',
- permissions: 'vuex_permissions'
+ permissions: 'vuex_permissions',
+ nickName:'vuex_nickName',
+ deptName:'vuex_deptName'
}
export default constant