|
|
@@ -64,7 +64,8 @@
|
|
|
</div>
|
|
|
<div class="common-text">
|
|
|
<el-text>电 话:</el-text>
|
|
|
- <el-text>{{ formatPhone(detail.sendMobile) }}</el-text>
|
|
|
+ <el-text v-if="!isShowPhone">{{ formatPhone(detail.sendMobile) }}</el-text>
|
|
|
+ <el-text v-else>{{ detail.sendMobile }}</el-text>
|
|
|
</div>
|
|
|
<div class="common-text">
|
|
|
<el-text>地 址:</el-text>
|
|
|
@@ -102,6 +103,13 @@
|
|
|
<script setup>
|
|
|
import { formatName, formatPhone } from '@/utils/common';
|
|
|
import { ref, reactive, watch } from 'vue';
|
|
|
+ import { usePermission } from '@/utils/use-permission';
|
|
|
+
|
|
|
+ const { hasPermission } = usePermission();
|
|
|
+ const isShowPhone = computed(() => {
|
|
|
+ return hasPermission('recycleOrder:search:viewPhone');
|
|
|
+ });
|
|
|
+
|
|
|
const props = defineProps({
|
|
|
detail: { type: Object, default: () => ({}) }
|
|
|
});
|