修改文件查看只有冀北可行
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="报告文件">
|
||||
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
|
||||
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName &&VITE_FLAG">
|
||||
<View @click="openFile(detailData?.reportPaths?.fileName)" />
|
||||
</el-icon>
|
||||
<a class="aLoad" @click="download(detailData.reportPaths?.keyName)">
|
||||
@@ -52,6 +52,7 @@ const { query } = useRoute() // 查询参数
|
||||
const openFile = (name: any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||
}
|
||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||
const props = defineProps({
|
||||
id: propTypes.string.def(undefined)
|
||||
})
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
</el-descriptions-item>
|
||||
<!--文件地址-->
|
||||
<el-descriptions-item label="主接线图" v-if="detailData?.mainWiringDiagram">
|
||||
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name">
|
||||
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
|
||||
</el-icon>
|
||||
<a target="_blank" class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
|
||||
@@ -136,7 +136,7 @@ const openFile = (name: any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||
}
|
||||
defineOptions({ name: 'BpmUserReportDetail' })
|
||||
|
||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||
const { query } = useRoute() // 查询参数
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@@ -969,7 +969,7 @@ const rules = ref({
|
||||
electroplatingFunction: [
|
||||
{
|
||||
required: false,
|
||||
message: '请选择电镀功能',
|
||||
message: '请选择电度功能',
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
: '-'
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="电镀功能">
|
||||
<el-descriptions-item label="电度功能">
|
||||
{{
|
||||
detailData.supervisionTempDeviceReport?.electroplatingFunction == '0'
|
||||
? '否'
|
||||
@@ -198,7 +198,7 @@
|
||||
{{ detailData.supervisionTempDeviceReport?.contractNumber }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="信息安全检测报告">
|
||||
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport?.name">
|
||||
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.informationSecurityTestReport?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -210,7 +210,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="验收检验报告单">
|
||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReportSingle?.name">
|
||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReportSingle?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.acceptanceInspectionReportSingle?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -222,7 +222,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="验收检验报告">
|
||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReport?.name">
|
||||
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReport?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.acceptanceInspectionReport?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -234,7 +234,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="型式实验报告">
|
||||
<el-icon class="elView" v-if="detailData?.typeExperimentReport?.name">
|
||||
<el-icon class="elView" v-if="detailData?.typeExperimentReport?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.typeExperimentReport?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -246,7 +246,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="出厂检验报告">
|
||||
<el-icon class="elView" v-if="detailData?.factoryInspectionReport?.name">
|
||||
<el-icon class="elView" v-if="detailData?.factoryInspectionReport?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.factoryInspectionReport?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -258,7 +258,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="性能检测报告">
|
||||
<el-icon class="elView" v-if="detailData?.performanceTestReport?.name">
|
||||
<el-icon class="elView" v-if="detailData?.performanceTestReport?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.performanceTestReport?.name)" />
|
||||
</el-icon>
|
||||
<a
|
||||
@@ -270,7 +270,7 @@
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="其他附件">
|
||||
<el-icon class="elView" v-if="detailData?.otherAttachments?.name">
|
||||
<el-icon class="elView" v-if="detailData?.otherAttachments?.name && VITE_FLAG">
|
||||
<View @click="openFile(detailData?.otherAttachments?.name)" />
|
||||
</el-icon>
|
||||
<a target="_blank" class="aLoad" @click="download(detailData?.otherAttachments.keyName)" v-if="detailData?.otherAttachments?.name">
|
||||
@@ -300,7 +300,7 @@ const { query } = useRoute() // 查询参数
|
||||
const props = defineProps({
|
||||
id: propTypes.string.def(undefined)
|
||||
})
|
||||
|
||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref<any>({}) // 详情数据
|
||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||
|
||||
Reference in New Issue
Block a user