|
@@ -1,9 +1,11 @@
|
|
|
<script setup name="reportEnDetail">
|
|
|
-import {ref} from 'vue'
|
|
|
+import {ref,computed} from 'vue'
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
import apiReportEn from '@/api/reportEn'
|
|
|
import { showToast,showDialog } from 'vant';
|
|
|
import {enReportManageBtn,useAuthBtn} from '@/hooks/useAuthBtn'
|
|
|
+import { useConfigSettingStore } from '@/store/modules/etaConfig'
|
|
|
+import { storeToRefs } from 'pinia'
|
|
|
const {checkAuthBtn} = useAuthBtn()
|
|
|
|
|
|
const route=useRoute()
|
|
@@ -58,10 +60,21 @@ async function goEdit(){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const configStore = useConfigSettingStore()
|
|
|
+const { etaConfigInfo } = storeToRefs(configStore)
|
|
|
+ //获取基本配置,判断是否走审批流
|
|
|
+async function getEtaConfig(){
|
|
|
+ await configStore.getBaseConfigSetting()
|
|
|
+}
|
|
|
+getEtaConfig()
|
|
|
+const dynamicClassName = computed(() => {
|
|
|
+ return etaConfigInfo.value.IsOpenChartExpired==='true'?'select-text-disabled':'';
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="report-detail-page" v-if="reportInfo">
|
|
|
+ <div class="report-detail-page" :class="dynamicClassName" v-if="reportInfo">
|
|
|
<div class="top-stage-box" v-if="route.query.id>0">
|
|
|
<span class="stage">第{{reportInfo.Stage}}期 / {{reportInfo.Frequency}}</span>
|
|
|
<img v-if="reportInfo.State==1&&checkAuthBtn(enReportManageBtn.enReport_reportEdit)" class="edit-icon" src="@/assets/imgs/report/icon_edit2.png" alt="" @click="goEdit">
|