更新任务审批
This commit is contained in:
parent
bf64e4d08b
commit
09cb9a43df
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user