修改审核时 审核状态显示问题

This commit is contained in:
BianLzhaoMin 2025-02-13 17:11:46 +08:00
parent e197795cae
commit 4ee7ac5f93
2 changed files with 25 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<span>审批部门{{ item.section }}</span>
<span style="margin-left: 50px">审批人{{ item.name }}</span>
<p>审批时间 {{ item.time }}</p>
<p>审批状态 {{ item.status }}</p>
<p>审批状态 {{ auditingType(item) }}</p>
<p v-if="item.name.indexOf(userName) != -1 && showType == 2">
审批意见
<el-input
@ -112,6 +112,14 @@
</span>
</div>
<!-- <div :class="styleByType(item)">
{{ item.checkPerson }} (
{{ item.examineType === '0' ? '依次' : item.examineType === '1' ? '会签' : '或签' }})
<span style="margin-left: 15px; font-size: 20px; font-weight: bold">
{{ index < currentCheckIndex && item.isResult ? '√' : currentCheckIndex === index ? '?' : '?' }}
</span>
</div> -->
<div class="arrow-container">
<div class="line"></div>
<div class="arrow-down"></div>
@ -328,6 +336,20 @@ export default {
addReason() {
this.dialogVisible = true
},
//
auditingType(item) {
if (item.status === '未审核') return '未审核'
if (item.status === '已审核' && (item.agree == 1 || item.agree == 3)) return '审核通过'
if (item.status === '已审核' && item.agree == 2) return '审核驳回'
if (item.status === '已审核' && (item.agree == 4 || item.agree == null)) return '撤回'
},
//
// styleByType(item) {
// console.log('item', item)
// if (item.status === '') return 'currentLight'
// },
},
}
</script>

View File

@ -40,8 +40,8 @@ module.exports = {
// target: 'http://192.168.0.58:19090', // 杰
// target: 'http://192.168.0.14:18080', // 测试环境
// target: 'http://218.21.27.6:1999/prod-api', // 生产环境
// target: 'http://192.168.0.38:18080', // 郝志权
target: 'http://192.168.2.125:18080', // 梁超
target: 'http://192.168.0.38:18080', // 郝志权
// target: 'http://192.168.2.125:18080', // 梁超
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '',