浏览代码

no message

linwenxin 1 年之前
父节点
当前提交
031805fd48

+ 1 - 1
src/components/Common/print-common.vue

@@ -130,7 +130,7 @@ export default {
       if (this.detailData && this.detailData.invoicePickBeans) {
         for (var i = 0; i < this.detailData.invoicePickBeans.length; i += 5) {
           let obj = JSON.parse(JSON.stringify(this.detailData))
-          obj.userName = JSON.parse(localStorage.getItem('supply_user')).nickName
+          obj.userName = JSON.parse(localStorage.getItem('greemall_user')).nickName
           obj.invoicePickBeans = this.detailData.invoicePickBeans.slice(i, i + 5)
           obj.total_num = 0
           obj.total_price = 0

+ 1 - 1
src/components/Common/print-guangzhou.vue

@@ -170,7 +170,7 @@ export default {
       if (this.detailData && this.detailData.invoicePickBeans) {
         for (var i = 0; i < this.detailData.invoicePickBeans.length; i += 5) {
           let obj = JSON.parse(JSON.stringify(this.detailData))
-          obj.userName = JSON.parse(localStorage.getItem('supply_user')).nickName
+          obj.userName = JSON.parse(localStorage.getItem('greemall_user')).nickName
           obj.invoicePickBeans = this.detailData.invoicePickBeans.slice(i, i + 5)
           obj.total_num = 0
           obj.total_price = 0

+ 1 - 1
src/components/Common/print-shaoguan.vue

@@ -161,7 +161,7 @@ export default {
       if (this.detailData && this.detailData.invoicePickBeans) {
         for (var i = 0; i < this.detailData.invoicePickBeans.length; i += 5) {
           let obj = JSON.parse(JSON.stringify(this.detailData))
-          obj.userName = JSON.parse(localStorage.getItem('supply_user')).nickName
+          obj.userName = JSON.parse(localStorage.getItem('greemall_user')).nickName
           obj.invoicePickBeans = this.detailData.invoicePickBeans.slice(i, i + 5)
           obj.total_num = 0
           obj.total_price = 0

+ 1 - 1
src/components/WarehousingHeader/WarehousingHeader.vue

@@ -95,7 +95,7 @@ export default {
     return {
       screenForm: {
         changeTime: '' || this.nowDate(),
-        createBy: JSON.parse(localStorage.getItem('supply_user')).nickName || '',
+        createBy: JSON.parse(localStorage.getItem('greemall_user')).nickName || '',
         createTime: ''|| this.nowDate(),
         customerName: '',
         customerNumber: '',

+ 1 - 1
src/store/getters.js

@@ -29,6 +29,6 @@ const getters = {
   isSettlementGroup: state => state.user.isSettlementGroup,
   roleList: state => state.user.roleList,
   websitId: state => state.user.websitId,
-  supply_user: state => state.user.supply_user
+  greemall_user: state => state.user.greemall_user
 }
 export default getters

+ 4 - 4
src/store/modules/user.js

@@ -37,7 +37,7 @@ const getDefaultState = () => {
     isSettlementGroup: false,
     roleList: [],
     websitId: null,
-    supply_user: null
+    greemall_user: null
   }
 }
 
@@ -100,8 +100,8 @@ const mutations = {
       state.isNotice = true
     }
   },
-  set_supply_user: (state, value) => {
-    state.supply_user = value
+  set_greemall_user: (state, value) => {
+    state.greemall_user = value
   },
   SET_ROLELIST: (state, roleList) => {
     roleList.find(v => {
@@ -233,7 +233,7 @@ const actions = {
           commit('SET_NAME', nickName)
           commit('SET_PHONE', userName)
 
-          localStorage.setItem('supply_user', JSON.stringify(data))
+          localStorage.setItem('greemall_user', JSON.stringify(data))
 
           resolve(data)
 

+ 2 - 2
src/utils/auth.js

@@ -1,8 +1,8 @@
 import Cookies from 'js-cookie'
 
-const TokenKey = 'supply_token'
+const TokenKey = 'greemall_token'
 const FanruanToken = 'fanruan_token'
-const UseridKey = 'supply_userid'
+const UseridKey = 'greemall_userid'
 
 export function getFanruanToken() {
   return Cookies.get(FanruanToken)

+ 1 - 1
src/views/setting/menu/index.vue

@@ -331,7 +331,7 @@ export default {
   computed: {
     ...mapGetters(['userid', 'name']),
     isAdmin() {
-      const type = JSON.parse(localStorage.getItem('supply_user')).type
+      const type = JSON.parse(localStorage.getItem('greemall_user')).type
       return type === 2
     },
   },