|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div class="hc-task-form-body">
|
|
|
<el-tabs v-if="taskInfo.meterType <= 3" v-model="taskTabsKey" type="border-card" @tab-change="taskTabsClick">
|
|
|
- <el-tab-pane name="key1" label="计量信息">
|
|
|
+ <el-tab-pane v-if="taskInfo.meterType === 1" name="key1" label="计量信息">
|
|
|
<HcMiddlepayForm :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="质保资料" name="key2" disabled>
|
|
|
+ <el-tab-pane v-if="taskInfo.meterType === 1" label="质保资料" name="key2" disabled>
|
|
|
<HcMassForm :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
|
|
|
</el-tab-pane>
|
|
|
<template v-if="!isNullES(detailInfo.opinionType)">
|
|
@@ -100,8 +100,9 @@ watch(() => [props.table, props.info, props.detail], ([table, row, detail]) => {
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
- const { status, repealDesc } = tableInfo.value
|
|
|
+ const { status, repealDesc, meterType } = tableInfo.value
|
|
|
taskForm.value = { auditStatus: status ?? 0, repealDesc: repealDesc ?? '' }
|
|
|
+ taskTabsKey.value = meterType !== 1 ? 'key3' : 'key1'
|
|
|
})
|
|
|
|
|
|
//审批表单
|