This commit is contained in:
4
src/types/auto-imports.d.ts
vendored
4
src/types/auto-imports.d.ts
vendored
@@ -7,9 +7,7 @@
|
|||||||
export {}
|
export {}
|
||||||
declare global {
|
declare global {
|
||||||
const EffectScope: typeof import('vue')['EffectScope']
|
const EffectScope: typeof import('vue')['EffectScope']
|
||||||
const ElButton: (typeof import('element-plus/es'))['ElButton']
|
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||||
const ElMessage: (typeof import('element-plus/es'))['ElMessage']
|
|
||||||
const ElMessageBox: (typeof import('element-plus/es'))['ElMessageBox']
|
|
||||||
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
|
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
|
||||||
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
||||||
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
|
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
|
||||||
|
|||||||
@@ -790,19 +790,19 @@
|
|||||||
const getActions = (row: Refund) => {
|
const getActions = (row: Refund) => {
|
||||||
const actions: any[] = []
|
const actions: any[] = []
|
||||||
|
|
||||||
|
const voucherKeys = getRefundAttachmentKeys(row)
|
||||||
|
if (voucherKeys.length && hasAuth('refund:view_voucher')) {
|
||||||
|
actions.push({
|
||||||
|
label: '退款凭证',
|
||||||
|
handler: () => handleViewRefundVoucher(row),
|
||||||
|
type: 'primary'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
[1, 2].includes(userStore.getUserInfo.user_type || 0) &&
|
[1, 2].includes(userStore.getUserInfo.user_type || 0) &&
|
||||||
hasAuth(AUDIT_PERMISSIONS.refundEntry)
|
hasAuth(AUDIT_PERMISSIONS.refundEntry)
|
||||||
) {
|
) {
|
||||||
const voucherKeys = getRefundAttachmentKeys(row)
|
|
||||||
if (voucherKeys.length && hasAuth('refund:view_voucher')) {
|
|
||||||
actions.push({
|
|
||||||
label: '退款凭证',
|
|
||||||
handler: () => handleViewRefundVoucher(row),
|
|
||||||
type: 'primary'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const auditTarget = resolveAuditResourceTarget({
|
const auditTarget = resolveAuditResourceTarget({
|
||||||
userType: userStore.getUserInfo.user_type,
|
userType: userStore.getUserInfo.user_type,
|
||||||
resourceType: 'refund',
|
resourceType: 'refund',
|
||||||
|
|||||||
@@ -529,7 +529,9 @@
|
|||||||
: []),
|
: []),
|
||||||
{
|
{
|
||||||
prop: 'role_desc',
|
prop: 'role_desc',
|
||||||
label: '角色描述'
|
label: '角色描述',
|
||||||
|
width: 240,
|
||||||
|
showOverflowTooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'created_at',
|
prop: 'created_at',
|
||||||
|
|||||||
Reference in New Issue
Block a user