Browse Source

fix:初核时间状态显示

feature/tsjb-1.0
parent
commit
e954f4a49e
  1. 24
      src/components/negative/verify-sfss.vue

24
src/components/negative/verify-sfss.vue

@ -20,7 +20,8 @@
>
</h5>
<el-form-item label="初核剩余时限" style="margin-top: 8px">
<countdown :time="initialRemainingDuration" />
<countdown :time="initialRemainingDuration" v-if="showInitialCountdown" />
<span v-else class="initial-status-text" :class="{ danger: gwf3 === '2' }">{{ initialStatusLabel }}</span>
</el-form-item>
<el-form-item
label="初核工作开展情况"
@ -240,6 +241,7 @@ watchEffect(() => {
"businessType",
"yesNo",
"handleMethodType",
"initialStatus",
]) || {},
props.extraDict || {}
);
@ -291,6 +293,18 @@ const isInitialStage = computed(() => {
const initialRemainingDuration = computed(() =>
currentRow.value?.remainingDuration
);
const gwf3 = computed(() => currentRow.value?.gwf3);
const showInitialCountdown = computed(() =>
!gwf3.value || gwf3.value === '0'
);
const initialStatusLabel = computed(() => {
if (!gwf3.value || gwf3.value === '0') return '';
const item = dict.initialStatus?.find(d => d.dictValue === gwf3.value);
return item?.dictLabel || '';
});
const showPetitionFields = computed(() =>
[
ProblemSources.GJXFPT,
@ -535,4 +549,12 @@ span {
.repeat-btn {
padding: 0;
}
.initial-status-text {
color: var(--el-color-success);
}
.initial-status-text.danger {
color: var(--el-color-danger);
}
</style>

Loading…
Cancel
Save