From a0a1c206612de9a3e9d64f3d45564c0ff03f93f6 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 02 一月 2025 15:22:13 +0800
Subject: [PATCH] 环境

---
 h5/pages/workOrder/detail.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/h5/pages/workOrder/detail.vue b/h5/pages/workOrder/detail.vue
index 6e74b6a..f26e85c 100644
--- a/h5/pages/workOrder/detail.vue
+++ b/h5/pages/workOrder/detail.vue
@@ -4,7 +4,7 @@
 			<view class="title">
 				<text>{{ info.projectName }}/{{ info.buildingName }}/{{info.roomNum || info.floorName}}</text>
 				<text class="status" v-if="info.dealStatus == 0">寰呭鐞�</text>
-				<text class="status" v-if="info.dealStatus == 1">宸叉寚娲�</text>
+				<text class="status" v-if="info.dealStatus == 1">寰呭鐞�</text>
 				<text class="status gray" v-if="info.dealStatus == 2">宸插鐞�</text>
 			</view>
 			<view class="desc">{{ info.content }}</view>
@@ -23,9 +23,9 @@
 					<view class="la">涓婃姤浜猴細</view>
 					<view class="val">{{ info.creatorName }}{{info.creatorCompany ? '-' + info.creatorCompany : ''}}</view>
 				</view>
-				<view class="line"  v-if="info.creatorPhone">
+				<view class="line"  v-if="info.creatorPhone || info.creatorMobile">
 					<view class="la">鑱旂郴鐢佃瘽锛�</view>
-					<view class="val">{{ info.creatorPhone }}</view>
+					<view class="val">{{ info.creatorMobile || info.creatorPhone }}</view>
 				</view>
 				<view class="line">
 					<view class="la">涓婃姤鏃堕棿锛�</view>
@@ -58,8 +58,8 @@
 			</view>
 		</view>
 		<!--  -->
-		<view class="btns" v-if="info.dealStatus == 0">
-			<view class="btn">
+		<view class="btns" v-if="info.dealStatus == 0 || (info.dealUserId === userInfo.id && info.dealStatus == 1)">
+			<view class="btn" @click="handleCall">
 				<image src="@/static/side/phoneed.png" class="icon"></image>
 				<text>涓婃姤浜�</text>
 			</view>
@@ -135,7 +135,8 @@
 				info: {},
 				showUpload: false,
 				isShowHandle: false,
-				isShowHandleDate: false,
+				isShowHandleDate: false,
+				userInfo: uni.getStorageSync('userInfo') || {},
 				handleParam: {},
 				dealFileList: []
 			};
@@ -159,6 +160,12 @@
 						uni.navigateBack()
 					}
 				})
+			},
+			handleCall() {
+				const { info } = this
+				uni.makePhoneCall({
+					phoneNumber: info.creatorMobile
+				});
 			},
 			getDetail() {
 				ywWorkorderD(this.id).then(res => {

--
Gitblit v1.9.3