diff --git a/src/views/details/approval/index.vue b/src/views/details/approval/index.vue index 5cedb7b..963cee8 100644 --- a/src/views/details/approval/index.vue +++ b/src/views/details/approval/index.vue @@ -80,7 +80,7 @@ const previewModal = ref(false); const questions = ref([ { question_id: 1, - name: "1. 设备影响", + name: "1. 设备影响", note: "不合适的材质将会导致", score: 0, options: [ @@ -92,7 +92,7 @@ const questions = ref([ }, { question_id: 2, - name: "2. 财务影响", + name: "2. 财务影响", note: "工艺设计错误将会导致", score: 0, options: [ @@ -104,7 +104,7 @@ const questions = ref([ }, { question_id: 3, - name: "3. 质量影响", + name: "3. 质量影响", note: "", score: 0, options: [ @@ -116,7 +116,7 @@ const questions = ref([ }, { question_id: 4, - name: "4. 设计的复杂程度", + name: "4. 设计的复杂程度", note: "工艺设计包含了", score: 0, options: [ @@ -128,7 +128,7 @@ const questions = ref([ }, { question_id: 5, - name: "5. 工艺设计的成熟度", + name: "5. 工艺设计的成熟度", note: "", score: 0, options: [ @@ -140,7 +140,7 @@ const questions = ref([ }, { question_id: 6, - name: "6. 工艺危害", + name: "6. 工艺危害", note: "物料性质和工艺条件", score: 0, options: [ @@ -162,7 +162,7 @@ const levelDrawer = ref(false); const aiDrawer = ref(false); const mandClosed = ref(false); const confirmClose = () => { - mandClosed.value = true; + mandClosed.value = true; window.$message?.success('强制合规项已确认闭环,操作已留痕'); } const conflictHide = ref(false); @@ -185,17 +185,17 @@ const opinion = ref(""); // 已阅 AI 建议 const readSuggest = () => { aiRead.value = true; - window.$message?.success(`${roleName} 已阅 AI 建议,时间与操作已写入审批留痕`); + window.$message?.success(`${roleName.value} 已阅 AI 建议,时间与操作已写入审批留痕`); } // 采纳为行动项 const acceptSuggest = (s: any) => { - suggs.value = suggs.value.map((x:any) => (x.id === s.id ? { ...x, st: '已采纳' } : x)); - opinion.value = (opinion.value ? `${opinion.value}\n` : '') + `采纳 AI 建议:${s.text}`; + suggs.value = suggs.value.map((x:any) => (x.id === s.id ? { ...x, st: '已采纳' } : x)); + opinion.value = (opinion.value ? `${opinion.value}\n` : '') + `采纳 AI 建议:${s.text}`; window.$message?.success('已采纳,自动生成 PSSR 行动项(来源:AI 建议),并纳入审批意见'); } // 不采纳 AI 建议 const rejectSuggest = (s: any) => { - suggs.value = suggs.value.map((x:any) => (x.id === s.id ? { ...x, st: '不采纳' } : x)); + suggs.value = suggs.value.map((x:any) => (x.id === s.id ? { ...x, st: '不采纳' } : x)); window.$message?.info('不采纳理由「现有分析频次已覆盖风险」已记录留痕'); } // 查看归档包 @@ -426,623 +426,645 @@ onMounted(() => {