| | |
| | | ref="formRef" |
| | | :model="formData" |
| | | :rules="rules" |
| | | label-width="68px" |
| | | label-width="98px" |
| | | v-loading="loading" |
| | | > |
| | | <el-row> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="结果送达方式" prop="resultConfig"> |
| | | <el-select |
| | | class="gd-select" |
| | | popper-class="gd-select-popper" |
| | | v-model="formData.resultConfig" |
| | | placeholder="请选择" |
| | | clearable |
| | | |
| | | > |
| | | <el-option v-for="item in dictObj.resultConfig" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | processDefinitionId: '', |
| | | processInstanceId: '', |
| | | materialIds: [], |
| | | resultConfig:'' |
| | | }) |
| | | |
| | | const emit = defineEmits(['success']) |
| | |
| | | const flowList = ref([]) // 流程列表 |
| | | const materialsList = ref([]) // 材料列表 |
| | | const currentRow = ref(null) // 当前操作的行 |
| | | const dictObj = inject('dictObj') |
| | | |
| | | // 表单校验规则 |
| | | const rules = { |
| | |
| | | // 设置流程定义ID |
| | | formData.value.processDefinitionId = data.processDefinitionId || '' |
| | | formData.value.processInstanceId = data.processInstanceId || '' |
| | | |
| | | formData.value.resultConfig = data.resultConfig || '' |
| | | // 从关联材料中提取材料ID列表 |
| | | if (data.thingListMaterialRels && data.thingListMaterialRels.length > 0) { |
| | | formData.value.materialIds = data.thingListMaterialRels.map(item => item.materialId) |
| | |
| | | processDefinitionId: formData.value.processDefinitionId, |
| | | processInstanceId: formData.value.processInstanceId || '', |
| | | materialIds: formData.value.materialIds || [], |
| | | resultConfig: formData.value.resultConfig || '', |
| | | } |
| | | await saveConfigApi(submitData) |
| | | ElMessage.success('配置保存成功') |