shish пре 4 година
родитељ
комит
9be8e54a69
3 измењених фајлова са 19 додато и 10 уклоњено
  1. 5 5
      ghsApp/src/admin/home/apply.vue
  2. 4 0
      ghsApp/src/admin/home/me.vue
  3. 10 5
      ghsApp/src/admin/home/workbench.vue

+ 5 - 5
ghsApp/src/admin/home/apply.vue

@@ -66,12 +66,10 @@ export default {
                     ]
                     ]
                 },
                 },
                 {
                 {
-                    title:'客户与门店',
+                    title:'门店与员工',
                     list:[
                     list:[
-                        {name: "门店",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/shop/list"},
                         {name: "员工",img: `${this.$constant.imgUrl}/ghs/home/yggl.png`,url: "/admin/staff/list"},
                         {name: "员工",img: `${this.$constant.imgUrl}/ghs/home/yggl.png`,url: "/admin/staff/list"},
-                        {name: "出库记录",img: `${this.$constant.imgUrl}/ghs/home/dbck.png`,url: "/pagesStorehouse/allot/allotEx"},
-                        {name: "入库记录",img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`,url: "/pagesStorehouse/allot/allotPut"}
+                        {name: "门店",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/shop/list"}
                     ]
                     ]
                 },
                 },
                 {
                 {
@@ -85,9 +83,11 @@ export default {
                 {
                 {
                     title:'库存管理',
                     title:'库存管理',
                     list:[
                     list:[
+                        {name: "出库记录",img: `${this.$constant.imgUrl}/ghs/home/dbck.png`,url: "/pagesStorehouse/allot/allotEx"},
+                        {name: "入库记录",img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`,url: "/pagesStorehouse/allot/allotPut"},
                         {name: "库存预警",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/pagesStorehouse/stockWarn/manage"},
                         {name: "库存预警",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/pagesStorehouse/stockWarn/manage"},
                         {name: "盘点",img: `${this.$constant.imgUrl}/ghs/home/pandian.png`,url: "/pagesStorehouse/inventory/list"},
                         {name: "盘点",img: `${this.$constant.imgUrl}/ghs/home/pandian.png`,url: "/pagesStorehouse/inventory/list"},
-                        {name: "报损单",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/breakage/list"},
+                        {name: "报损单",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/breakage/list"}
                     ]
                     ]
                 }
                 }
                 //注释邀请开店,避免苹果审核不通过
                 //注释邀请开店,避免苹果审核不通过

+ 4 - 0
ghsApp/src/admin/home/me.vue

@@ -30,6 +30,8 @@
           </view>
           </view>
           <view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
           <view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
         </view>
         </view>
+
+<template v-if="(getLoginInfo.staff && getLoginInfo.staff.super && getLoginInfo.staff.super == 1) || (getLoginInfo.staff && getLoginInfo.staff.lookStat && getLoginInfo.staff.lookStat ==1)">
         <view class="account-info_box content_box">
         <view class="account-info_box content_box">
           <view class="info-lf_box">
           <view class="info-lf_box">
             <view> 账户余额(元) </view>
             <view> 账户余额(元) </view>
@@ -40,6 +42,8 @@
             </view>
             </view>
           </view>
           </view>
         </view>
         </view>
+</template>
+
         <view class="module-com content_box user-open_bx">
         <view class="module-com content_box user-open_bx">
           <view class="input-line-wrap">
           <view class="input-line-wrap">
 
 

+ 10 - 5
ghsApp/src/admin/home/workbench.vue

@@ -1,6 +1,8 @@
 <template>
 <template>
 	<view class="app-main app-content">
 	<view class="app-main app-content">
-		<!-- 今日概况 -->
+
+<template v-if="(loginInfo.staff && loginInfo.staff.super && loginInfo.staff.super == 1) || (loginInfo.staff && loginInfo.staff.lookStat && loginInfo.staff.lookStat ==1)">
+
 		<div class="user-wrap">
 		<div class="user-wrap">
 			<div class="user-top">
 			<div class="user-top">
 				<div class="app-size-28">今日概况</div>
 				<div class="app-size-28">今日概况</div>
@@ -45,6 +47,8 @@
 			</div>
 			</div>
 		</div>
 		</div>
 
 
+</template>
+
 		<!-- 消息 -->
 		<!-- 消息 -->
 		<div class="module-com news-wrap">
 		<div class="module-com news-wrap">
 			<div class="news-list" v-for="(item, index) in data.notice" :key="index" @click="pageToFn(item)" >
 			<div class="news-list" v-for="(item, index) in data.notice" :key="index" @click="pageToFn(item)" >
@@ -87,7 +91,7 @@
 
 
 		</view>
 		</view>
 
 
-		<!-- 总览 -->
+<template v-if="(loginInfo.staff && loginInfo.staff.super && loginInfo.staff.super == 1) || (loginInfo.staff && loginInfo.staff.lookStat && loginInfo.staff.lookStat ==1)">
 		<div class="module-com total-wrap">
 		<div class="module-com total-wrap">
 			<div class="total-tit">总览</div>
 			<div class="total-tit">总览</div>
 			<div class="total-blo">
 			<div class="total-blo">
@@ -97,6 +101,7 @@
 				</div>
 				</div>
 			</div>
 			</div>
 		</div>
 		</div>
+</template>
 
 
 		<NotLogin></NotLogin>
 		<NotLogin></NotLogin>
 
 
@@ -242,9 +247,9 @@ export default {
 			let that = this
 			let that = this
 			getStat().then(res=>{
 			getStat().then(res=>{
 				if(res.code == 1){
 				if(res.code == 1){
-					that.todayDebt = res.data.todayDebt || 0
-					that.totalDebt = res.data.totalDebt || 0
-					that.todayActIncome = res.data.todayActIncome || 0
+					that.todayDebt = res.data.todayDebt ? parseFloat(res.data.todayDebt) : 0
+					that.totalDebt = res.data.totalDebt ? parseFloat(res.data.totalDebt) : 0
+					that.todayActIncome = res.data.todayActIncome ? parseFloat(res.data.todayActIncome) : 0
 				}
 				}
 			})
 			})