更新任务审批

This commit is contained in:
weipengfei 2023-10-24 15:44:16 +08:00
parent bf64e4d08b
commit 09cb9a43df

View File

@ -117,7 +117,7 @@
</div>
</el-card>
<audit-other-popup
v-if="showEdit && openType == 1"
v-if="showEdit && showAuditOther"
ref="auditOtherRef"
:dict-data="dictData"
@success="getLists"
@ -172,6 +172,12 @@ const checkStatusList = ref([
},
]);
//
const showAuditTypeList = ref([1, 5, 6]);
const showAuditOther = computed(() => {
return showAuditTypeList.value.includes(openType.value);
});
//
const selectData = ref<any[]>([]);
@ -201,7 +207,7 @@ const handleEdit = async (data: any, type = "edit") => {
openType.value = data.type;
showEdit.value = true;
await nextTick();
if (data.type == 1) {
if (showAuditOther) {
auditOtherRef.value?.open(type);
auditOtherRef.value?.setFormData(data);
} else if (data.type == 4) {