Merge remote-tracking branch 'origin/master'

This commit is contained in:
XaoLi717 2024-11-19 10:04:55 +08:00
commit b5040cf42c
3 changed files with 12 additions and 4 deletions

View File

@ -133,7 +133,7 @@ const getUserInfo = async () => {
}
//flow begin++++++++++++++++++++
//
const processDefineKey = 'pch-qjgl-001' // Key
const processDefineKey = 'pch-test-001' // Key
const startUserSelectTasks = ref([]) //
const startUserSelectAssignees = ref({}) //
const startUserSelectAssigneesFormRef = ref() // Ref

View File

@ -319,7 +319,7 @@ const star = async () => {
defineExpose({ open }) // open
//flow begin++++++++++++++++++++
//
const processDefineKey = 'pch-qjgl-001' // Key
const processDefineKey = 'pch-test-001' // Key
const startUserSelectTasks = ref([]) //
const startUserSelectAssignees = ref({}) //
const startUserSelectAssigneesFormRef = ref() // Ref

View File

@ -278,15 +278,17 @@ const BusinessFormComponent = ref(null) // 异步组件
const getProcessInstance = async () => {
try {
processInstanceLoading.value = true
console.log(id,"getProcessInstance_id")
const data = await ProcessInstanceApi.getProcessInstance(id)
if (!data) {
message.error('查询不到流程信息!')
return
}
processInstance.value = data
console.log(data,"processInstance_data")
//
const processDefinition = data.processDefinition
console.log(processDefinition.formType,"processDefinition.formType")
if (processDefinition.formType === 10) {
setConfAndFields2(
detailForm,
@ -301,7 +303,13 @@ const getProcessInstance = async () => {
})
} else {
// data.processDefinition.formCustomViewPath /crm/contract/detail/index.vue
BusinessFormComponent.value = registerComponent(data.processDefinition.formCustomViewPath)
//console.log(data.processDefinition.formCustomViewPath,"formCustomViewPath")
if ( data.processDefinition.formCustomViewPath == "") {
const process_key = data.processDefinition.key
console.log(process_key,"process_key")
} else {
BusinessFormComponent.value = registerComponent(data.processDefinition.formCustomViewPath)
}
}
//