发起变更审批流程弹框板块修改

This commit is contained in:
2026-10-09 15:12:01 +08:00
parent 5b981d4fa6
commit a5282019c0
8 changed files with 296 additions and 152 deletions
+8 -2
View File
@@ -8,8 +8,8 @@ import { AiError, aiPssr } from "@/service/api/ai";
import { uploadFileApi } from "@/service/api/file";
const themeStore = useThemeStore();
const props = defineProps(['type','isAiOpen','title','currentId','formInfo','changeType','currentForm','confirmed','members'])
const emit = defineEmits(['save','submit','confirmTab']);
const props = defineProps(['type','isAiOpen','title','currentId','formInfo','changeType','currentForm','confirmed','members','steps'])
const emit = defineEmits(['save','submit','confirmTab','update:steps']);
watch(() => props.currentForm, (newVal:any) => {
// 1. 按 group_type 分组
@@ -141,6 +141,10 @@ const submitConfirm = () => {
const confirmTab = (tab:string, val:boolean) => {
emit('confirmTab', tab, val);
}
// 更新审批流程
const updateSteps = (steps:any[]) => {
emit('update:steps', steps);
}
defineExpose({list, onRegenerate})
</script>
@@ -245,10 +249,12 @@ defineExpose({list, onRegenerate})
:isAiOpen="props.isAiOpen"
:confirmed="props.confirmed"
:members="props.members"
:steps="props.steps"
@save="saveDraft"
@submit="submitConfirm"
@confirmTab="confirmTab"
@regenerate="onRegenerate"
@update:steps="updateSteps"
/>
</template>
<style scoped lang="scss">