|
|
@@ -25,9 +25,9 @@
|
|
|
<span>状态:</span>
|
|
|
<el-select v-model="tableQuery.queryParam.statusType" placeholder="请选择状态" clearable>
|
|
|
<el-option label="全部" :value="0" />
|
|
|
- <el-option label="待审核" :value="1" />
|
|
|
- <el-option label="审核通过" :value="2" />
|
|
|
- <el-option label="审核不通过" :value="3" />
|
|
|
+ <el-option label="待提交" :value="1" />
|
|
|
+ <el-option label="待审批" :value="2" />
|
|
|
+ <el-option label="已完成" :value="3" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="select-box--item">
|
|
|
@@ -70,12 +70,14 @@
|
|
|
<!-- 审核通过(需求部门通过或安全部门通过):显示查看和入账 -->
|
|
|
<template v-else-if="scope.row.status === 2 || scope.row.status === 4">
|
|
|
<ActionButton text="查看" @click="handleView(scope.row.id)" />
|
|
|
- <ActionButton text="入账" @click="handleAccount(scope.row.id)" />
|
|
|
</template>
|
|
|
<!-- 审核不通过(需求部门驳回或安全部门驳回):显示查看 -->
|
|
|
<template v-else-if="scope.row.status === 3 || scope.row.status === 5">
|
|
|
<ActionButton text="查看" @click="handleView(scope.row.id)" />
|
|
|
</template>
|
|
|
+ <template v-else-if="scope.row.status === 3">
|
|
|
+ <ActionButton text="入账" @click="handleAccount(scope.row.id)" />
|
|
|
+ </template>
|
|
|
<!-- 其他状态:显示查看 -->
|
|
|
<template v-else>
|
|
|
<ActionButton text="查看" @click="handleView(scope.row.id)" />
|
|
|
@@ -150,11 +152,11 @@
|
|
|
return 0;
|
|
|
};
|
|
|
|
|
|
- // 根据 statusType 显示文本:1=待审核,2=审核通过,3=审核不通过
|
|
|
+ // 根据 statusType
|
|
|
const getStatusTypeName = (statusType: number): string => {
|
|
|
- if (statusType === 1) return '待审核';
|
|
|
- if (statusType === 2) return '审核通过';
|
|
|
- if (statusType === 3) return '审核不通过';
|
|
|
+ if (statusType === 1) return '待提交';
|
|
|
+ if (statusType === 2) return '待审批';
|
|
|
+ if (statusType === 3) return '已完成';
|
|
|
return '-';
|
|
|
};
|
|
|
|