From 98494fda33f6dd116ef3ce641b32937b7d83b4c1 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 12 三月 2025 17:15:07 +0800
Subject: [PATCH] -

---
 src/pages/mine/index.vue |  303 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 280 insertions(+), 23 deletions(-)

diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 06dea60..dea958c 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -61,6 +61,90 @@
 				</view>
 			</view>
 		</view>
+		<view class="money_bag" v-if="identity=='enterprise'&&isWorker">
+			<view class="tool_wrap">
+				<view class="tool_title">
+					璐圭敤鎶ラ攢
+				</view>
+				<view class="tool_content">
+					<view class="tool_item" @click="toReimbursement" v-if="isWorker">
+						<image src="@/static/image/baoxiao.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							鎶ラ攢鐢宠
+						</view>
+					</view>
+					<view class="tool_item" @click="toMyList" v-if="isWorker">
+						<image src="@/static/image/mybaoxiao.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							鎴戠殑鎶ラ攢
+						</view>
+					</view>
+					<view class="tool_item" @click="toCaiwu" v-if="IsCaiWu">
+						<image src="@/static/image/caiwu.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							璐圭敤鎶ラ攢
+						</view>
+					</view>
+					<view class="tool_item" @click="toZhuguan" v-if="IsBaoxiaozhuguan">
+						<image src="@/static/image/zshenpi.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							涓荤瀹℃壒
+						</view>
+					</view>
+					<view class="tool_item" @click="toJingli" v-if="Isbaoxiaojingli">
+						<image src="@/static/image/Jshenpi.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							鎶ラ攢瀹℃壒
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="money_bag" v-if="identity=='enterprise'&&isWorker">
+			<view class="tool_wrap">
+				<view class="tool_title">
+					鐗╂祦绠$悊
+				</view>
+				<view class="tool_content">
+					<view class="tool_item" @click="toDelivergoods('reservationWorker')" v-if="isWorker">
+						<image src="@/static/image/reservation.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							棰勭害閫佽揣
+						</view>
+					</view>
+					<view class="tool_item" @click="toDelivergoods('reservation')" v-if="isDeliverManage">
+						<image src="@/static/image/drivershouli.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							閫佽揣鍙楃悊
+						</view>
+					</view>
+					<view class="tool_item" @click="toDelivergoods('arrange')" v-if="isDeliverManage">
+						<image src="@/static/image/arrange.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							閫佽揣瀹夋帓
+						</view>
+					</view>
+					<view class="tool_item" @click="toDelivergoods('query')" v-if="isDeliverManage||isWorker">
+						<image src="@/static/image/query.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							閫佽揣鏌ヨ
+						</view>
+					</view>
+					<view class="tool_item" @click="toDelivergoods('feedback')" v-if="isDriver">
+						<image src="@/static/image/feedback.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							閫佽揣鍙嶉
+						</view>
+					</view>
+					<view class="tool_item" @click="toDelivergoods('clockIn')" v-if="isDriver">
+						<image src="@/static/image/daka.png" mode="aspectFit" class="item_img"></image>
+						<view class="tool_label">
+							鍙告満鎵撳崱
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
 		<!-- <view class="job-box">
             <view @tap="gotoMyJob" class="job-item jobr" data-index="0" data-ptpid="0d7e-1bd6-8311-5701">
                 <view class="num">{{ userApplyStatistics.allCount }}</view>
@@ -94,7 +178,62 @@
 					</view>
 				</view>
 			</view>
+			<!-- <view class="" v-if="isWorker">
+				<view @tap="item.cb" class="nav-item" :data-index="index" data-ptpid="58ac-1481-a7d3-b98e"
+					v-for="(item, index) in workerList" :key="item.name">
+					<view class="nav-title">
+						<view :class="'iconfont ' + item.icon"></view>
+						{{ item.name }}
+					</view>
 
+					<view class="nav-icon">
+						<view v-if="item.num || item.num === 0">{{ item.num }}</view>
+						<view class="iconfont iconarrow"></view>
+					</view>
+				</view>
+			</view> -->
+			<!-- <view class="" v-if="Isbaoxiaojingli">
+				<view @tap="item.cb" class="nav-item" :data-index="index" data-ptpid="58ac-1481-a7d3-b98e"
+					v-for="(item, index) in jingLiList" :key="item.name">
+					<view class="nav-title">
+						<view :class="'iconfont ' + item.icon"></view>
+						{{ item.name }}
+					</view>
+
+					<view class="nav-icon">
+						<view v-if="item.num || item.num === 0">{{ item.num }}</view>
+						<view class="iconfont iconarrow"></view>
+					</view>
+				</view>
+			</view> -->
+			<!-- <view class="" v-if="IsBaoxiaozhuguan">
+				<view @tap="item.cb" class="nav-item" :data-index="index" data-ptpid="58ac-1481-a7d3-b98e"
+					v-for="(item, index) in zhuGuanList" :key="item.name">
+					<view class="nav-title">
+						<view :class="'iconfont ' + item.icon"></view>
+						{{ item.name }}
+					</view>
+
+					<view class="nav-icon">
+						<view v-if="item.num || item.num === 0">{{ item.num }}</view>
+						<view class="iconfont iconarrow"></view>
+					</view>
+				</view>
+			</view> -->
+			<!-- <view class="" v-if="IsCaiWu">
+				<view @tap="item.cb" class="nav-item" :data-index="index" data-ptpid="58ac-1481-a7d3-b98e"
+					v-for="(item, index) in CaiWuList" :key="item.name">
+					<view class="nav-title">
+						<view :class="'iconfont ' + item.icon"></view>
+						{{ item.name }}
+					</view>
+
+					<view class="nav-icon">
+						<view v-if="item.num || item.num === 0">{{ item.num }}</view>
+						<view class="iconfont iconarrow"></view>
+					</view>
+				</view>
+			</view> -->
 		</view>
 		<view class="nav-box" v-else>
 			<view @tap="item.cb" class="nav-item" :data-index="index" data-ptpid="58ac-1481-a7d3-b98e"
@@ -132,8 +271,62 @@
 							url: '/pages/company/staff'
 						});
 					}
-				}, ],
+				}],
+				workerList: [{
+					icon: 'icon-baoxiaoshenqing',
+					name: '璐圭敤鎶ラ攢鐢宠',
+					cb: function() {
+						uni.navigateTo({
+							url: '/pages/reimbursement/index'
+						});
+					}
+				}, {
+					icon: 'icon-baoxiao',
+					name: '鎴戠殑璐圭敤鎶ラ攢',
+					cb: function() {
+						uni.navigateTo({
+							url: '/pages/reimbursement/myreim'
+						});
+					}
+				}],
+				CaiWuList: [{
+					icon: 'icon-baoxiaodan',
+					name: '璐圭敤鎶ラ攢',
+					cb: function() {
+						uni.navigateTo({
+							url: '/pages/reimbursement/reimbursement'
+						});
+					}
+				}],
+				zhuGuanList: [{
+					icon: 'icon-shenpicaigoudan',
+					name: '涓荤鍒楄〃',
+					cb: function() {
+						uni.navigateTo({
+							url: '/pages/reimbursement/examine?role=zhuGuan'
+						});
+					}
+				}],
+				jingLiList: [{
+					icon: 'icon-shenpi',
+					name: '缁忕悊鍒楄〃',
+					cb: function() {
+						uni.navigateTo({
+							url: '/pages/reimbursement/examine?role=jingLi'
+						});
+					}
+				}],
 				navList2: [{
+						icon: 'icon-dingdan',
+						name: '涓婄彮鎵撳崱',
+						cb: this.toMyWork
+					},
+					{
+						icon: 'icon-fuwutuandui',
+						name: '宸ヤ綔璁板綍',
+						cb: this.toMyRecord
+					},
+					{
 						icon: 'icon-wanshanxinxi',
 						name: '瀹屽杽璧勬枡',
 						cb: function() {
@@ -142,18 +335,18 @@
 							});
 						}
 					},
-					{
+				],
+				navList3: [{
 						icon: 'icon-dingdan',
-						name: '鎴戠殑宸ヤ綔',
+						name: '涓婄彮鎵撳崱',
 						cb: this.toMyWork
 					},
 					{
 						icon: 'icon-fuwutuandui',
-						name: '鎵撳崱璁板綍',
+						name: '宸ヤ綔璁板綍',
 						cb: this.toMyRecord
 					},
-				],
-				navList3: [{
+					{
 						icon: 'icon-wanshanxinxi',
 						name: '淇敼璧勬枡',
 						cb: function() {
@@ -161,16 +354,6 @@
 								url: '/pages/mine/apply'
 							});
 						}
-					},
-					{
-						icon: 'icon-dingdan',
-						name: '鎴戠殑宸ヤ綔',
-						cb: this.toMyWork
-					},
-					{
-						icon: 'icon-fuwutuandui',
-						name: '鎵撳崱璁板綍',
-						cb: this.toMyRecord
 					},
 				],
 				token: this.$db.get('userToken') || ''
@@ -186,6 +369,48 @@
 			...mapGetters(['userInfo', 'identity']),
 			isAdmin() {
 				return this.userInfo.userCompany ? this.userInfo.userCompany.isAdmin : false
+			},
+			// 鏄惁鏄憳宸�
+			isWorker() {
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.memberId ? true : false
+				}
+				return false
+			},
+			//鏄惁鏄�佽揣绠$悊绠$悊鍛�
+			isDeliverManage(){
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.bF_IsDeliverManage ? true : false
+				}
+				return false
+			},
+			// 鏄惁涓烘姤閿�涓荤
+			IsBaoxiaozhuguan() {
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.bF_IsBaoxiaozhuguan ? true : false
+				}
+				return false
+			},
+			// 鏄惁涓烘姤閿�缁忕悊
+			Isbaoxiaojingli() {
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.bF_Isbaoxiaojingli ? true : false
+				}
+				return false
+			},
+			// 璐㈠姟
+			IsCaiWu() {
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.bF_IsCaiWu ? true : false
+				}
+				return false
+			},
+			// 鏄惁鏄徃鏈�
+			isDriver() {
+				if (this.userInfo.oaPermissions) {
+					return this.userInfo.oaPermissions.bF_IsDriver ? true : false
+				}
+				return false
 			},
 			navList1() {
 				return this.userInfo.userWorker ? this.navList3 : this.navList2
@@ -347,6 +572,37 @@
 					}
 				});
 			},
+			toReimbursement() {
+				uni.navigateTo({
+					url: '/pages/reimbursement/index'
+				});
+			},
+			toMyList() {
+				uni.navigateTo({
+					url: '/pages/reimbursement/myreim'
+				});
+			},
+			toCaiwu() {
+				uni.navigateTo({
+					url: '/pages/reimbursement/reimbursement'
+				});
+			},
+			toZhuguan() {
+				uni.navigateTo({
+					url: '/pages/reimbursement/examine?role=zhuGuan'
+				});
+			},
+			toJingli() {
+				uni.navigateTo({
+					url: '/pages/reimbursement/examine?role=jingLi'
+				});
+			},
+			toDelivergoods(val) {
+				uni.navigateTo({
+					url: `/pages/delivergoods/${val}?isAdmin=${this.isDeliverManage}`
+				});
+			}
+
 		}
 	};
 </script>
@@ -356,8 +612,8 @@
 	.money_bag {
 		background: #fff;
 		border-radius: 16rpx;
-		margin: 20rpx 30rpx;
-		padding: 20rpx 30rpx;
+		margin: 18rpx 26rpx;
+		padding: 16rpx 26rpx;
 		position: relative;
 		// top: 25rpx;
 		z-index: 2;
@@ -513,23 +769,24 @@
 				color: #333;
 				font-size: 32rpx;
 				font-weight: 700;
-				padding: 30rpx 0;
+				padding: 20rpx 0;
 				border-bottom: 2rpx solid #eee;
 			}
 
 			.tool_content {
 				display: flex;
-				justify-content: space-between;
-				padding: 30rpx 0;
+				// justify-content: space-between;
+				padding: 20rpx 0;
+				flex-wrap: wrap;
 
 				.tool_item {
 					align-items: center;
 					display: flex;
 					flex-direction: column;
-					height: 120rpx;
+					height: 128rpx;
 					justify-content: center;
 					// margin: 0 50rpx 0 0;
-					width: 120rpx;
+					width: 128rpx;
 
 					&:nth-child(4n) {
 						margin-right: 0;

--
Gitblit v1.9.1