fix: update some files
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m44s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m44s
This commit is contained in:
@@ -10,34 +10,6 @@
|
||||
返回
|
||||
</ElButton>
|
||||
<h2 class="detail-title">{{ pageTitle }}</h2>
|
||||
<ElButton
|
||||
v-if="refund && isPlatformUser && hasAuth(AUDIT_PERMISSIONS.refundEntry)"
|
||||
type="primary"
|
||||
plain
|
||||
@click="openRefundAudit"
|
||||
>
|
||||
审计记录
|
||||
</ElButton>
|
||||
<ElButton
|
||||
v-if="refund && isPlatformUser && hasAuth(AUDIT_PERMISSIONS.refundFinanceEntry)"
|
||||
type="primary"
|
||||
plain
|
||||
@click="openRefundFinance"
|
||||
>
|
||||
资金链路
|
||||
</ElButton>
|
||||
<ElButton
|
||||
v-if="
|
||||
refund?.approval_instance_id &&
|
||||
isPlatformUser &&
|
||||
hasAuth(AUDIT_PERMISSIONS.refundApprovalEntry)
|
||||
"
|
||||
type="primary"
|
||||
plain
|
||||
@click="openApprovalAudit"
|
||||
>
|
||||
审批审计
|
||||
</ElButton>
|
||||
<ElButton
|
||||
v-if="refund && canResubmit(refund) && hasAuth('refund:resubmit')"
|
||||
type="primary"
|
||||
@@ -148,12 +120,6 @@
|
||||
import VoucherUpload from '@/components/business/VoucherUpload.vue'
|
||||
import { useAuth } from '@/composables/useAuth'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { AUDIT_PERMISSIONS } from '@/config/constants/audit'
|
||||
import {
|
||||
resolveAuditResourceTarget,
|
||||
resolveFinanceAuditTarget
|
||||
} from '@/utils/business/auditNavigation'
|
||||
import { openAuditInvestigation } from '@/components/business/audit/investigationController'
|
||||
|
||||
defineOptions({ name: 'RefundDetail' })
|
||||
|
||||
@@ -161,29 +127,11 @@
|
||||
const router = useRouter()
|
||||
const { hasAuth } = useAuth()
|
||||
const userStore = useUserStore()
|
||||
const isRestrictedCustomerRole = computed(() => [3, 4].includes(Number(userStore.info.user_type)))
|
||||
|
||||
const loading = ref(false)
|
||||
const refund = ref<Refund | null>(null)
|
||||
const refundVoucherFileKeys = ref<string[]>([])
|
||||
const isPlatformUser = computed(() => [1, 2].includes(Number(userStore.info.user_type)))
|
||||
const openRefundAudit = () => {
|
||||
const target = resolveAuditResourceTarget({
|
||||
resourceType: 'refund',
|
||||
internalId: refund.value?.id
|
||||
})
|
||||
if (target) openAuditInvestigation(target)
|
||||
}
|
||||
const openRefundFinance = () => {
|
||||
const target = resolveFinanceAuditTarget('refund_id', refund.value?.id)
|
||||
if (target) openAuditInvestigation(target)
|
||||
}
|
||||
const openApprovalAudit = () => {
|
||||
const target = resolveAuditResourceTarget({
|
||||
resourceType: 'approval_instance',
|
||||
internalId: refund.value?.approval_instance_id
|
||||
})
|
||||
if (target) openAuditInvestigation(target)
|
||||
}
|
||||
|
||||
const pageTitle = computed(() => `退款详情`)
|
||||
|
||||
@@ -291,7 +239,15 @@
|
||||
{ label: '资产标识符', prop: 'asset_identifier' },
|
||||
{ label: '资产类型', prop: 'asset_type' },
|
||||
{ label: '退款状态', prop: 'status_name', formatter: (value) => value || '-' },
|
||||
{ label: '提交人', prop: 'submitter_name', formatter: (value) => value || '-' },
|
||||
...(!isRestrictedCustomerRole.value
|
||||
? [
|
||||
{
|
||||
label: '提交人',
|
||||
prop: 'submitter_name',
|
||||
formatter: (value: string | null | undefined) => value || '-'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '申请退款金额',
|
||||
formatter: (_, data) => formatCurrency(data.requested_refund_amount)
|
||||
@@ -304,24 +260,28 @@
|
||||
label: '实收金额',
|
||||
formatter: (_, data) => formatCurrency(data.actual_received_amount)
|
||||
},
|
||||
{
|
||||
label: '退款原因',
|
||||
prop: 'refund_reason',
|
||||
formatter: (value) => value || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
{
|
||||
label: '拒绝原因',
|
||||
prop: 'reject_reason',
|
||||
formatter: (value) => value || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
{
|
||||
label: '备注',
|
||||
prop: 'remark',
|
||||
formatter: (value) => value || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
...(!isRestrictedCustomerRole.value
|
||||
? [
|
||||
{
|
||||
label: '退款原因',
|
||||
prop: 'refund_reason',
|
||||
formatter: (value: string | null | undefined) => value || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
{
|
||||
label: '拒绝原因',
|
||||
prop: 'reject_reason',
|
||||
formatter: (value: string | null | undefined) => value || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
{
|
||||
label: '备注',
|
||||
prop: 'remark',
|
||||
formatter: (value: string | null | undefined) => value || '-',
|
||||
fullWidth: true
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '退款凭证',
|
||||
fullWidth: true,
|
||||
@@ -360,7 +320,14 @@
|
||||
{
|
||||
title: '企微审批信息',
|
||||
fields: [
|
||||
{ label: '审批渠道', formatter: (_, data) => getApprovalProviderText(data) },
|
||||
...(!isRestrictedCustomerRole.value
|
||||
? [
|
||||
{
|
||||
label: '审批渠道',
|
||||
formatter: (_: unknown, data: Refund) => getApprovalProviderText(data)
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '审批来源',
|
||||
formatter: (_, data) => data.approval?.source || data.approval_source || '-'
|
||||
@@ -370,10 +337,14 @@
|
||||
label: '审批状态',
|
||||
formatter: (_, data) => getRefundApprovalStatusText(data)
|
||||
},
|
||||
{
|
||||
label: '当前审批人摘要',
|
||||
formatter: (_, data) => data.current_approver_summary || '-'
|
||||
},
|
||||
...(!isRestrictedCustomerRole.value
|
||||
? [
|
||||
{
|
||||
label: '当前审批人摘要',
|
||||
formatter: (_: unknown, data: Refund) => data.current_approver_summary || '-'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{ label: '模板版本', prop: 'approval.template_version' },
|
||||
{
|
||||
label: '申请人',
|
||||
@@ -417,10 +388,15 @@
|
||||
{
|
||||
title: '业务处理结果',
|
||||
fields: [
|
||||
{
|
||||
label: '处理状态',
|
||||
formatter: (_, data) => data.processing_status_name || data.processing_status || '-'
|
||||
},
|
||||
...(!isRestrictedCustomerRole.value
|
||||
? [
|
||||
{
|
||||
label: '处理状态',
|
||||
formatter: (_: unknown, data: Refund) =>
|
||||
data.processing_status_name || data.processing_status || '-'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
label: '失败摘要',
|
||||
formatter: (_, data) => data.processing_failure_summary || data.error_summary || '-',
|
||||
|
||||
Reference in New Issue
Block a user