|
|
|
@ -39,12 +39,12 @@ |
|
|
|
</van-tab> |
|
|
|
</van-tabs> |
|
|
|
|
|
|
|
<div v-if="activeTab === 'materials' && (Number(taskDetail.taskStatus) === 3 || (Number(taskDetail.taskStatus) === 6 && showVerifyBtn))" class="detail-footer"> |
|
|
|
<div v-if="activeTab === 'materials' && (Number(taskDetail.taskStatus) === 3 || (Number(taskDetail.taskStatus) === 6 && showVerifyBtn && showTransferBtn))" class="detail-footer"> |
|
|
|
<template v-if="Number(taskDetail.taskStatus) === 3"> |
|
|
|
<van-button class="btn-cancel" @click="onCloudRecord">云笔录</van-button> |
|
|
|
<van-button class="btn-cancel" @click="onCancel">取消</van-button> |
|
|
|
<van-button class="btn-submit" type="primary" native-type="submit">提交</van-button> |
|
|
|
<van-button class="btn-cancel">转办案</van-button> |
|
|
|
<van-button v-if="showTransferBtn" class="btn-cancel">转办案</van-button> |
|
|
|
</template> |
|
|
|
<van-button v-else class="btn-submit" type="primary">核实</van-button> |
|
|
|
</div> |
|
|
|
@ -57,6 +57,7 @@ import { showConfirmDialog, showSuccessToast, showToast } from 'vant' |
|
|
|
import NosDetailTaskTab from './components/NosDetailTaskTab.vue' |
|
|
|
import NosDetailMaterialsTab from './components/NosDetailMaterialsTab.vue' |
|
|
|
import { nosInfoApi, nosApproveApi, cloudRecordStartApi, nosVerifyCaseApi } from '@/api/nos/index' |
|
|
|
import { getSystemConfig } from '@/api/enforcement/index' |
|
|
|
import { toFullFileUrl } from '@/util/fileUrl' |
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
@ -78,6 +79,8 @@ const taskDetail = ref({}) |
|
|
|
const taskItemList = ref([]) |
|
|
|
const evaluateData = ref(null) |
|
|
|
const showVerifyBtn = ref(false) |
|
|
|
// 是否显示「转办案」按钮(系统配置控制) |
|
|
|
const showTransferBtn = ref(false) |
|
|
|
|
|
|
|
const inspectResult = ref({ |
|
|
|
checkResult: '', |
|
|
|
@ -169,6 +172,17 @@ const fetchTaskDetail = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
// 获取系统配置:是否显示「转办案」按钮 |
|
|
|
getSystemConfig('sys.show.function', (res) => { |
|
|
|
if (res && res.code === 200) { |
|
|
|
const configValue = res.data || res.configValue || res.value |
|
|
|
showTransferBtn.value = String(configValue) === '1' |
|
|
|
} |
|
|
|
}, () => { |
|
|
|
// 配置获取失败则默认不显示 |
|
|
|
showTransferBtn.value = false |
|
|
|
}) |
|
|
|
|
|
|
|
if (route.query.id) { |
|
|
|
fetchTaskDetail() |
|
|
|
} |
|
|
|
|