ZaiZai 1 year ago
parent
commit
3215a8a2d8
1 changed files with 9 additions and 5 deletions
  1. 9 5
      src/views/tasks/components/hc-data/task-form.vue

+ 9 - 5
src/views/tasks/components/hc-data/task-form.vue

@@ -7,14 +7,16 @@
             <el-tab-pane v-if="taskInfo.meterType === 1" label="质保资料" name="key2" disabled>
                 <HcMassForm :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
             </el-tab-pane>
+            <el-tab-pane v-if="taskInfo.meterType !== 1" label="详细信息" name="key4">
+                <HcMaterialForm v-if="taskInfo.meterType === 2" :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
+                <HcStartWorkForm v-if="taskInfo.meterType === 3" :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
+            </el-tab-pane>
             <template v-if="!isNullES(detailInfo.opinionType)">
-                <el-tab-pane v-if="detailInfo.opinionType != 4" name="key3" label="审计咨询意见">
+                <el-tab-pane v-if="detailInfo.opinionType !== 4" name="key3" label="审计咨询意见">
                     <HcHtmlForm ref="htmlFormRef" :detail="detailInfo" />
                 </el-tab-pane>
             </template>
         </el-tabs>
-        <HcMaterialForm v-if="taskInfo.meterType === 2" :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
-        <HcStartWorkForm v-if="taskInfo.meterType === 3" :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
         <HcAlterForm v-if="taskInfo.meterType === 4" :table="tableInfo" :info="taskInfo" :is-edit="isEdits" />
         <hc-card-item v-if="taskTabsKey !== 'key3'" class="hc-card-footer mt-3">
             <template #header>
@@ -100,9 +102,11 @@ watch(() => [props.table, props.info, props.detail], ([table, row, detail]) => {
 
 //渲染完成
 onMounted(() => {
-    const { status, repealDesc, meterType } = tableInfo.value
+    const { status, repealDesc } = tableInfo.value
+    const { meterType } = taskInfo.value
     taskForm.value = { auditStatus: status ?? 0, repealDesc: repealDesc ?? '' }
-    taskTabsKey.value = meterType !== 1 ? 'key3' : 'key1'
+    taskTabsKey.value = meterType !== 1 ? 'key4' : 'key1'
+    console.log(meterType)
 })
 
 //审批表单