发起变更审批流程弹框板块修改
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user