更新任务审批

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