项目中心-支付模块

This commit is contained in:
wangzzpeng
2026-09-30 08:04:16 +08:00
parent 6b88c3805f
commit ce8210fb3f
35 changed files with 2618 additions and 175 deletions

View File

@@ -2,6 +2,7 @@
import { computed } from 'vue'
import { ElMessage } from 'element-plus'
import { FileList } from '@/components'
import { useOssStore } from '@/stores/modules/oss'
import type { FileInfo } from '@/types/api'
import type { AfterSales, ProjectStatus } from '@/types/business/project'
@@ -19,6 +20,8 @@ const emit = defineEmits<{
cancel: []
}>()
const ossStore = useOssStore()
/**
* 售后页签的三态(设计稿便签原文):
* 1. 项目**未完成** → 不展示售后信息;
@@ -37,11 +40,8 @@ const hasTicket = computed(() => props.afterSales?.status === '处理中')
* 删除没有接口 —— 售后附件只在「申请 / 完成售后」时整体写入,不支持单独删。
*/
function previewFile(file: FileInfo): void {
if (!file.url) {
ElMessage.info('该附件没有可访问的地址')
return
}
window.open(file.url, '_blank', 'noopener')
// 同源预览:有 ossId 走后端 inline 接口,绕开 OSS 桶「强制下载」
ossStore.openPreview(file)
}
function downloadFile(file: FileInfo): void {