|
@@ -3,7 +3,7 @@ import { reactive, ref, computed, onMounted } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { View, Check, Close, Download, ZoomIn, Document } from '@element-plus/icons-vue'
|
|
import { View, Check, Close, Download, ZoomIn, Document } from '@element-plus/icons-vue'
|
|
|
import { reimburseApi, attachmentApi } from '../../api'
|
|
import { reimburseApi, attachmentApi } from '../../api'
|
|
|
-import { statusLabel, statusTone, formatSumMoney } from '../../utils/format'
|
|
|
|
|
|
|
+import { statusLabel, statusTone, formatSumMoney, hasWorkflowNode } from '../../utils/format'
|
|
|
import { useServerPaged } from '../../hooks/useServerPaged'
|
|
import { useServerPaged } from '../../hooks/useServerPaged'
|
|
|
import { useExpenseItemTree } from '../../hooks/useExpenseItemTree'
|
|
import { useExpenseItemTree } from '../../hooks/useExpenseItemTree'
|
|
|
import { useApplicantOptions } from '../../hooks/useApplicantOptions'
|
|
import { useApplicantOptions } from '../../hooks/useApplicantOptions'
|
|
@@ -434,9 +434,16 @@ function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
|
|
<el-table-column prop="title" label="报销标题" min-width="180" />
|
|
<el-table-column prop="title" label="报销标题" min-width="180" />
|
|
|
<el-table-column prop="expenseName" label="费用项目" min-width="140" />
|
|
<el-table-column prop="expenseName" label="费用项目" min-width="140" />
|
|
|
<el-table-column prop="amount" label="报销金额(元)" class-name="col-money" min-width="120" />
|
|
<el-table-column prop="amount" label="报销金额(元)" class-name="col-money" min-width="120" />
|
|
|
- <el-table-column prop="currentNode" label="当前节点" min-width="130" />
|
|
|
|
|
|
|
+ <el-table-column prop="currentNode" label="当前节点" min-width="130">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <BaseTag v-if="hasWorkflowNode(row.currentNode)" :tone="statusTone(row.currentNode)">
|
|
|
|
|
+ {{ statusLabel(row.currentNode) }}
|
|
|
|
|
+ </BaseTag>
|
|
|
|
|
+ <span v-else class="node-current-empty">-</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="applyTime" label="申请时间" min-width="150" />
|
|
<el-table-column prop="applyTime" label="申请时间" min-width="150" />
|
|
|
- <el-table-column label="操作" width="280" fixed="right" class-name="col-actions">
|
|
|
|
|
|
|
+ <el-table-column label="操作" :min-width="340" fixed="right" class-name="col-actions">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<BaseOpButton primary :icon="View" @click="openView(row)">查看</BaseOpButton>
|
|
<BaseOpButton primary :icon="View" @click="openView(row)">查看</BaseOpButton>
|
|
|
<BaseOpButton :icon="Check" @click="openApproveDialog([row], 'approve')">通过</BaseOpButton>
|
|
<BaseOpButton :icon="Check" @click="openApproveDialog([row], 'approve')">通过</BaseOpButton>
|
|
@@ -542,9 +549,16 @@ function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
|
|
<BaseTag :tone="statusTone(row.status)">{{ statusLabel(row.status) }}</BaseTag>
|
|
<BaseTag :tone="statusTone(row.status)">{{ statusLabel(row.status) }}</BaseTag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="currentNode" label="当前节点" min-width="130" />
|
|
|
|
|
|
|
+ <el-table-column prop="currentNode" label="当前节点" min-width="130">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <BaseTag v-if="hasWorkflowNode(row.currentNode)" :tone="statusTone(row.currentNode)">
|
|
|
|
|
+ {{ statusLabel(row.currentNode) }}
|
|
|
|
|
+ </BaseTag>
|
|
|
|
|
+ <span v-else class="node-current-empty">-</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="applyTime" label="申请时间" min-width="150" />
|
|
<el-table-column prop="applyTime" label="申请时间" min-width="150" />
|
|
|
- <el-table-column label="操作" width="120" fixed="right" class-name="col-actions">
|
|
|
|
|
|
|
+ <el-table-column label="操作" :min-width="120" fixed="right" class-name="col-actions">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<BaseOpButton primary :icon="View" @click="openView(row)">查看</BaseOpButton>
|
|
<BaseOpButton primary :icon="View" @click="openView(row)">查看</BaseOpButton>
|
|
|
</template>
|
|
</template>
|