From 376f6b7cd5597d8ef88156b9c27e5bc096d0e73a Mon Sep 17 00:00:00 2001 From: "David.Chen" Date: Tue, 8 Sep 2026 12:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B5=B7=E5=8F=98=E6=9B=B4AI=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8E=A5=E7=BA=BF=EF=BC=9A=E5=8F=98=E6=9B=B4=E9=A2=84?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E7=94=9F=E6=88=90=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E3=80=81=E5=90=84=E6=A0=87=E7=AD=BE=E9=A1=B5=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E7=94=9F=E6=88=90=EF=BC=88=E7=94=B3=E8=AF=B7=E8=A1=A8/?= =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E5=86=85=E5=AE=B9/PSSR=E6=A3=80=E6=9F=A5/?= =?UTF-8?q?=E9=AA=8C=E6=94=B6=E8=AF=84=E4=BB=B7=EF=BC=89=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?ai-server=E5=B9=B6=E9=80=82=E9=85=8D=E6=96=B0=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=EF=BC=9B=E4=BF=AE=E5=A4=8D=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E8=A1=A8AI=E8=AF=84=E5=88=86=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=82=B9=E5=87=BB=E6=80=BB=E5=88=86=E7=B4=AF=E5=8A=A0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/my/initiateChange/index.vue | 23 +- .../my/initiateChange/modules/changeApply.vue | 1614 +++++++++-------- .../my/initiateChange/modules/changePre.vue | 433 +++-- .../initiateChange/modules/changeTraining.vue | 178 +- .../my/initiateChange/modules/evaluation.vue | 533 +++--- .../my/initiateChange/modules/footer.vue | 418 ++--- src/views/my/initiateChange/modules/pssr.vue | 391 ++-- 7 files changed, 1889 insertions(+), 1701 deletions(-) diff --git a/src/views/my/initiateChange/index.vue b/src/views/my/initiateChange/index.vue index 36cbedf..f9db046 100644 --- a/src/views/my/initiateChange/index.vue +++ b/src/views/my/initiateChange/index.vue @@ -59,6 +59,18 @@ const confirmed = ref<{[key: string]: boolean}>({ // 变更预分析表单数据 const changePreForm = ref(null) const changeApplyForm = ref(null) +// 当前申请表所选变更类型的文本编码(供 PSSR 等 AI 接口使用) +const applyTypeLabel = computed(() => typeList.value.find((t) => t.value === changeApplyForm.value?.change_type)?.label ?? ''); + +// AI 生成变更申请单(变更预识别页派发):回填申请表并切换标签 +const onApplyGenerated = (res: any) => { + if (res?.name) title.value = res.name; + changeApplyRef.value?.applyAiResult(res); + // 直接切 tab 不经过 tabChange,需同步捕获预识别表单供其他标签页 AI 接口使用 + changePreForm.value = changePreRef.value?.form; + tab.value = 'form'; + window.$message?.success("变更申请单已生成:AI 自动总结名称、预填内容,均可手动修改"); +} // **********************tab切换*********************** const TABS = [ @@ -289,6 +301,7 @@ onMounted(() => { :title="title" :currentId="currentId" @save="saveDraft" + @apply-generated="onApplyGenerated" /> @@ -306,7 +319,8 @@ onMounted(() => { :formInfo="changePreForm" @save="saveDraft" @submit="submitConfirm" - @confirmTab="confirmTab" + @confirmTab="confirmTab" + @update:title="(v: string) => title = v" /> @@ -330,7 +344,8 @@ onMounted(() => { :type="tab" :isAiOpen="aiEnabled" :title="title" - :currentId="currentId" + :currentId="currentId" + :formInfo="changePreForm" @save="saveDraft" @submit="submitConfirm" @confirmTab="confirmTab" @@ -343,7 +358,9 @@ onMounted(() => { :type="tab" :isAiOpen="aiEnabled" :title="title" - :currentId="currentId" + :currentId="currentId" + :formInfo="changePreForm" + :changeType="applyTypeLabel" @save="saveDraft" @submit="submitConfirm" @confirmTab="confirmTab" diff --git a/src/views/my/initiateChange/modules/changeApply.vue b/src/views/my/initiateChange/modules/changeApply.vue index eb21b47..08d49ec 100644 --- a/src/views/my/initiateChange/modules/changeApply.vue +++ b/src/views/my/initiateChange/modules/changeApply.vue @@ -1,782 +1,834 @@ - - - - - \ No newline at end of file diff --git a/src/views/my/initiateChange/modules/changePre.vue b/src/views/my/initiateChange/modules/changePre.vue index a442fd2..1f5883a 100644 --- a/src/views/my/initiateChange/modules/changePre.vue +++ b/src/views/my/initiateChange/modules/changePre.vue @@ -1,229 +1,206 @@ - - - - - \ No newline at end of file diff --git a/src/views/my/initiateChange/modules/changeTraining.vue b/src/views/my/initiateChange/modules/changeTraining.vue index 653268b..48bc4f8 100644 --- a/src/views/my/initiateChange/modules/changeTraining.vue +++ b/src/views/my/initiateChange/modules/changeTraining.vue @@ -1,74 +1,106 @@ - - - - - \ No newline at end of file diff --git a/src/views/my/initiateChange/modules/evaluation.vue b/src/views/my/initiateChange/modules/evaluation.vue index 31d0746..619201e 100644 --- a/src/views/my/initiateChange/modules/evaluation.vue +++ b/src/views/my/initiateChange/modules/evaluation.vue @@ -1,240 +1,295 @@ - - - - - \ No newline at end of file diff --git a/src/views/my/initiateChange/modules/footer.vue b/src/views/my/initiateChange/modules/footer.vue index 67e5750..8f15742 100644 --- a/src/views/my/initiateChange/modules/footer.vue +++ b/src/views/my/initiateChange/modules/footer.vue @@ -1,208 +1,212 @@ - - - -