减免审核页面初步完善

This commit is contained in:
BianLzhaoMin 2025-02-20 23:10:05 +08:00
parent 65f1f6e17d
commit c536630a1b
6 changed files with 1903 additions and 568 deletions

View File

@ -0,0 +1,34 @@
import request from '@/utils/request'
// 获取减免申请审核列表
export function getReceiveApplyApi(query) {
return request({
url: '/material/leaseTask/auditList',
method: 'get',
params: query
})
}
// 获取减免申请详情
export function getReceiveApplyDetailsApi(query) {
return request({
url: '/material/ma_type/getMaTypeTreeSelect',
method: 'get',
params: query
})
}
// 获取减免申请记录详情
export function getAuditingDetailsApi(query) {
return request({
url: '/material//sysWorkflowNode/listByTaskId',
method: 'get',
params: query
})
}
// 减免申请审核提交接口
export function submitAuditingApi(query) {
return request({
url: '/material/ma_type/getMaTypeTreeSelect',
method: 'get',
params: query
})
}

View File

@ -30,204 +30,204 @@ import Layout from '@/layout'
// 公共路由 // 公共路由
export const constantRoutes = [ export const constantRoutes = [
{ {
path: '/redirect', path: '/redirect',
component: Layout, component: Layout,
hidden: true, hidden: true,
children: [ children: [
{ {
path: '/redirect/:path(.*)', path: '/redirect/:path(.*)',
component: () => import('@/views/redirect') component: () => import('@/views/redirect')
} }
] ]
}, },
{ {
path: '/login', path: '/login',
component: () => import('@/views/login1'), component: () => import('@/views/login1'),
hidden: true hidden: true
}, },
{ {
path: '/register', path: '/register',
component: () => import('@/views/register1'), component: () => import('@/views/register1'),
hidden: true hidden: true
}, },
{ {
path: '/404', path: '/404',
component: () => import('@/views/error/404'), component: () => import('@/views/error/404'),
hidden: true hidden: true
}, },
{ {
path: '/401', path: '/401',
component: () => import('@/views/error/401'), component: () => import('@/views/error/401'),
hidden: true hidden: true
}, },
{ {
path: '', path: '',
component: Layout, component: Layout,
redirect: 'index', redirect: 'index',
children: [ children: [
{ {
path: 'index', path: 'index',
component: () => import('@/views/index'), component: () => import('@/views/index'),
name: 'Index', name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true } meta: { title: '首页', icon: 'dashboard', affix: true }
} }
] ]
}, },
{ {
path: '/qrCode/qrCodePage', path: '/qrCode/qrCodePage',
component: () => import('@/views/qrCode/qrCode'), component: () => import('@/views/qrCode/qrCode'),
hidden: true hidden: true
}, },
{ {
path: '/user', path: '/user',
component: Layout, component: Layout,
hidden: true, hidden: true,
redirect: 'noredirect', redirect: 'noredirect',
children: [ children: [
{ {
path: 'profile', path: 'profile',
component: () => import('@/views/system/user/profile/index'), component: () => import('@/views/system/user/profile/index'),
name: 'Profile', name: 'Profile',
meta: { title: '个人中心', icon: 'user' } meta: { title: '个人中心', icon: 'user' }
} }
] ]
} }
] ]
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [ export const dynamicRoutes = [
{ {
path: '/system/user-auth', path: '/system/user-auth',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:user:edit'], permissions: ['system:user:edit'],
children: [ children: [
{ {
path: 'role/:userId(\\d+)', path: 'role/:userId(\\d+)',
component: () => import('@/views/system/user/authRole'), component: () => import('@/views/system/user/authRole'),
name: 'AuthRole', name: 'AuthRole',
meta: { title: '分配角色', activeMenu: '/system/user' } meta: { title: '分配角色', activeMenu: '/system/user' }
} }
] ]
}, },
{ {
path: '/system/role-auth', path: '/system/role-auth',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:role:edit'], permissions: ['system:role:edit'],
children: [ children: [
{ {
path: 'user/:roleId(\\d+)', path: 'user/:roleId(\\d+)',
component: () => import('@/views/system/role/authUser'), component: () => import('@/views/system/role/authUser'),
name: 'AuthUser', name: 'AuthUser',
meta: { title: '分配用户', activeMenu: '/system/role' } meta: { title: '分配用户', activeMenu: '/system/role' }
} }
] ]
}, },
{ {
path: '/system/dict-data', path: '/system/dict-data',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:dict:list'], permissions: ['system:dict:list'],
children: [ children: [
{ {
path: 'index/:dictId(\\d+)', path: 'index/:dictId(\\d+)',
component: () => import('@/views/system/dict/data'), component: () => import('@/views/system/dict/data'),
name: 'Data', name: 'Data',
meta: { title: '字典数据', activeMenu: '/system/dict' } meta: { title: '字典数据', activeMenu: '/system/dict' }
} }
] ]
}, },
{ {
path: '/monitor/job-log', path: '/monitor/job-log',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['monitor:job:list'], permissions: ['monitor:job:list'],
children: [ children: [
{ {
path: 'index/:jobId(\\d+)', path: 'index/:jobId(\\d+)',
component: () => import('@/views/monitor/job/log'), component: () => import('@/views/monitor/job/log'),
name: 'JobLog', name: 'JobLog',
meta: { title: '调度日志', activeMenu: '/monitor/job' } meta: { title: '调度日志', activeMenu: '/monitor/job' }
} }
] ]
}, },
{ {
path: '/tool/gen-edit', path: '/tool/gen-edit',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['tool:gen:edit'], permissions: ['tool:gen:edit'],
children: [ children: [
{ {
path: 'index/:tableId(\\d+)', path: 'index/:tableId(\\d+)',
component: () => import('@/views/tool/gen/editTable'), component: () => import('@/views/tool/gen/editTable'),
name: 'GenEdit', name: 'GenEdit',
meta: { title: '修改生成配置', activeMenu: '/tool/gen' } meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
} }
] ]
}, },
// 会签配置 // 会签配置
{ {
path: '/countersign/config-data', path: '/countersign/config-data',
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:dict:list'], // 权限字符 permissions: ['system:dict:list'], // 权限字符
children: [ children: [
{ {
path: 'index/:processName(.*)/:id(.*)', path: 'index/:processName(.*)/:id(.*)',
component: () => import('@/views/material/countersign/config/config-data.vue'), component: () => import('@/views/material/countersign/config/config-data.vue'),
name: 'config-data', name: 'config-data',
meta: { title: '流程配置', activeMenu: '/countersign/config' } meta: { title: '流程配置', activeMenu: '/countersign/config' }
} }
] ]
}, },
// 领料审核 业务详情 // 领料审核 业务详情
{ {
path: '/business-details/receive-apply', path: '/business-details/receive-apply',
component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可
hidden: true, hidden: true,
permissions: ['receive-apply:list'], // 权限字符 permissions: ['receive-apply:list'], // 权限字符
children: [ children: [
{ {
path: 'index', path: 'index',
name: 'receive-apply-details', name: 'receive-apply-details',
meta: { title: '领料详情', activeMenu: '/business-examine/receive-apply' }, meta: { title: '领料详情', activeMenu: '/business-examine/receive-apply' },
component: () => import('@/views/business-examine/receive-apply/business-details.vue') component: () => import('@/views/business-examine/receive-apply/business-details.vue')
} }
] ]
}, },
// 直转审核 业务详情 // 直转审核 业务详情
{ {
path: '/business-details/direct-rotation-apply', path: '/business-details/direct-rotation-apply',
component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可
hidden: true, hidden: true,
permissions: ['*'], // 权限字符 permissions: ['*'], // 权限字符
children: [ children: [
{ {
path: 'index', path: 'index',
name: 'direct-rotation-apply', name: 'direct-rotation-apply',
meta: { title: '直转详情', activeMenu: '/business-examine/direct-rotation-apply' }, meta: { title: '直转详情', activeMenu: '/business-examine/direct-rotation-apply' },
component: () => import('@/views/business-examine/direct-rotation-apply/business-details.vue') component: () => import('@/views/business-examine/direct-rotation-apply/business-details.vue')
} }
] ]
}, },
// 减免审核 业务详情 // 减免审核 业务详情
{ {
path: '/business-details/reduction-apply', path: '/business-details/reduction-apply',
component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可
hidden: true, hidden: true,
permissions: ['system:dict:list'], // 权限字符 permissions: ['reduction-apply:list'], // 权限字符
children: [ children: [
{ {
path: 'index', path: 'index',
name: 'reduction-apply', name: 'reduction-apply',
meta: { title: '减免详情', activeMenu: '/business-examine/reduction-apply' }, meta: { title: '减免详情', activeMenu: '/business-examine/reduction-apply' },
component: () => import('@/views/business-examine/reduction-apply/business-details.vue') component: () => import('@/views/business-examine/reduction-apply/business-details.vue')
} }
] ]
} }
] ]
// 防止连续点击多次路由报错 // 防止连续点击多次路由报错
@ -235,15 +235,15 @@ let routerPush = Router.prototype.push
let routerReplace = Router.prototype.replace let routerReplace = Router.prototype.replace
// push // push
Router.prototype.push = function push(location) { Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(err => err) return routerPush.call(this, location).catch(err => err)
} }
// replace // replace
Router.prototype.replace = function push(location) { Router.prototype.replace = function push(location) {
return routerReplace.call(this, location).catch(err => err) return routerReplace.call(this, location).catch(err => err)
} }
export default new Router({ export default new Router({
mode: 'history', // 去掉url中的# mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })

View File

@ -1,113 +1,113 @@
<template> <template>
<div class="business-details-container"> <div class="business-details-container">
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<div class="left-container"> <div class="left-container">
<div class="pages-title">领用申请详情</div> <div class="pages-title">领用申请详情</div>
<TitleTip :title="`基本信息`" /> <TitleTip :title="`基本信息`" />
<el-form size="small" style="padding: 20px" disabled label-width="120px" :model="detailsInfo"> <el-form size="small" style="padding: 20px" disabled label-width="120px" :model="detailsInfo">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="领用单位"> <el-form-item label="领用单位">
<el-input v-model="detailsInfo.leaseUnit" /> <el-input v-model="detailsInfo.leaseUnit" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="领用工程"> <el-form-item label="领用工程">
<el-input v-model="detailsInfo.leaseProject" /> <el-input v-model="detailsInfo.leaseProject" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="领料人"> <el-form-item label="领料人">
<el-input v-model="detailsInfo.leasePerson" /> <el-input v-model="detailsInfo.leasePerson" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="采购申请编号"> <el-form-item label="采购申请编号">
<el-input v-model="detailsInfo.applyCode" /> <el-input v-model="detailsInfo.applyCode" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="标准配置"> <el-form-item label="标准配置">
<el-input v-model="detailsInfo.leaseUnit" /> <el-input v-model="detailsInfo.leaseUnit" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="联系电话"> <el-form-item label="联系电话">
<el-input v-model="detailsInfo.phone" /> <el-input v-model="detailsInfo.phone" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="类型规格"> <el-form-item label="类型规格">
<el-input v-model="detailsInfo.maTypeNames" /> <el-input v-model="detailsInfo.maTypeNames" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<TitleTip :title="`明细信息`" /> <TitleTip :title="`明细信息`" />
<el-table style="margin-top: 20px" :data="detailsList"> <el-table style="margin-top: 20px" :data="detailsList">
<el-table-column label="序号" align="center" width="80" type="index" /> <el-table-column label="序号" align="center" width="80" type="index" />
<el-table-column prop="maTypeName" label="类型名称" align="center" show-overflow-tooltip /> <el-table-column prop="maTypeName" label="类型名称" align="center" show-overflow-tooltip />
<el-table-column prop="typeName" label="规格型号" align="center" show-overflow-tooltip /> <el-table-column prop="typeName" label="规格型号" align="center" show-overflow-tooltip />
<el-table-column prop="unitName" label="计量单位" align="center" show-overflow-tooltip /> <el-table-column prop="unitName" label="计量单位" align="center" show-overflow-tooltip />
<el-table-column prop="preNum" label="预领数量" align="center" show-overflow-tooltip /> <el-table-column prop="preNum" label="预领数量" align="center" show-overflow-tooltip />
<el-table-column prop="remark" label="备注" align="center" show-overflow-tooltip /> <el-table-column prop="remark" label="备注" align="center" show-overflow-tooltip />
</el-table> </el-table>
<TitleTip :title="`附件信息`" /> <TitleTip :title="`附件信息`" />
<div class="file-box"> <div class="file-box">
<div v-for="i in 2" :key="i">附件{{ i }}</div> <div v-for="i in 2" :key="i">附件{{ i }}</div>
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="right-container"> <div class="right-container">
<div class="right-title"> <div class="right-title">
<div></div> <div></div>
<div></div> <div></div>
<div>流程记录</div> <div>流程记录</div>
</div> </div>
<div class="process-record"> <div class="process-record">
<el-steps :active="active" :space="120" direction="vertical"> <el-steps :active="active" :space="120" direction="vertical">
<el-step v-for="step in auditingList" :key="step.id" :title="step.nodeName"> <el-step v-for="step in auditingList" :key="step.id" :title="step.nodeName">
<template slot="description"> <template slot="description">
<div class="custom-description"> <div class="custom-description">
<!-- {{ step.description }} --> <!-- {{ step.description }} -->
<el-tag size="mini" type="primary" v-if="step.isAccept === null">待审批</el-tag> <el-tag size="mini" type="primary" v-if="step.isAccept === 0">待审批</el-tag>
<el-tag size="mini" type="success" v-if="step.isAccept === 0">已通过</el-tag> <el-tag size="mini" type="success" v-if="step.isAccept === 1">已通过</el-tag>
<el-tag size="mini" type="danger" v-if="step.isAccept === 1">已驳回</el-tag> <el-tag size="mini" type="danger" v-if="step.isAccept === 2">已驳回</el-tag>
</div> </div>
</template> </template>
</el-step> </el-step>
</el-steps> </el-steps>
</div> </div>
<div class="auditing-container"> <div class="auditing-container">
<el-input <el-input
type="textarea" type="textarea"
v-model="opinion" v-model="opinion"
placeholder="请输入审核意见" placeholder="请输入审核意见"
:autosize="{ minRows: 2, maxRows: 6 }" :autosize="{ minRows: 2, maxRows: 6 }"
/> />
<el-row class="btn-container"> <el-row class="btn-container">
<el-button type="success" size="mini" @click="onSubmitPass">通过</el-button> <el-button type="success" size="mini" @click="onSubmitPass">通过</el-button>
<el-button type="danger" size="mini" @click="onSubmitReject">驳回</el-button> <el-button type="danger" size="mini" @click="onSubmitReject">驳回</el-button>
</el-row> </el-row>
</div> </div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</template> </template>
<script> <script>
@ -115,144 +115,144 @@ import TitleTip from './components/title-tip.vue'
import { submitAuditingApi, getAuditingDetailsApi } from '@/api/receive-apply/index.js' import { submitAuditingApi, getAuditingDetailsApi } from '@/api/receive-apply/index.js'
import { getLeaseTaskDetail } from '@/api/business/index' import { getLeaseTaskDetail } from '@/api/business/index'
export default { export default {
components: { components: {
TitleTip TitleTip
}, },
data() { data() {
return { return {
opinion: '', opinion: '',
detailsInfo: {}, detailsInfo: {},
content: `<span style="color:red">测试996</span>`, content: `<span style="color:red">测试996</span>`,
steps: [ steps: [
{ title: '步骤 1', description: '描述信息 1', color: 'red' }, { title: '步骤 1', description: '描述信息 1', color: 'red' },
{ title: '步骤 2', description: '描述信息 2', color: 'blue' }, { title: '步骤 2', description: '描述信息 2', color: 'blue' },
{ title: '步骤 3', description: '描述信息 3', color: 'green' } { title: '步骤 3', description: '描述信息 3', color: 'green' }
], ],
active: 1, active: 1,
detailsList: [], detailsList: [],
auditingList: [] auditingList: []
}
},
created() {
//
if (this.$route.query) {
const { id, taskId } = this.$route.query
this.getLeaseTaskDetailFun(id, taskId)
}
},
methods: {
//
onSubmitPass() {},
//
onSubmitReject() {},
//
async getLeaseTaskDetailFun(id, taskId) {
const { data: res } = await getLeaseTaskDetail(id)
this.detailsInfo = res.leaseApplyInfo
this.detailsList = res.leaseApplyDetailsList
const { rows: result } = await getAuditingDetailsApi({ taskId })
this.auditingList = result
console.log('result审核记录详情', result)
}
} }
},
created() {
//
if (this.$route.query) {
const { id, taskId } = this.$route.query
this.getLeaseTaskDetailFun(id, taskId)
}
},
methods: {
//
onSubmitPass() {},
//
onSubmitReject() {},
//
async getLeaseTaskDetailFun(id, taskId) {
const { data: res } = await getLeaseTaskDetail(id)
this.detailsInfo = res.leaseApplyInfo
this.detailsList = res.leaseApplyDetailsList
const { rows: result } = await getAuditingDetailsApi({ taskId })
this.auditingList = result
console.log('result审核记录详情', result)
}
}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.business-details-container { .business-details-container {
padding: 20px; padding: 20px;
} }
.pages-title { .pages-title {
padding: 10px 0 30px 0; padding: 10px 0 30px 0;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
letter-spacing: 2px; letter-spacing: 2px;
text-align: center; text-align: center;
color: #19a4a0; color: #19a4a0;
} }
.file-box { .file-box {
padding: 10px; padding: 10px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
box-sizing: border-box; box-sizing: border-box;
div { div {
width: calc((100% - 110px) / 12); width: calc((100% - 110px) / 12);
height: 60px; height: 60px;
margin-right: 10px; margin-right: 10px;
margin-top: 10px; margin-top: 10px;
text-align: center; text-align: center;
line-height: 60px; line-height: 60px;
background-color: #19a4a0; background-color: #19a4a0;
} }
& div:nth-child(12n) { & div:nth-child(12n) {
margin-right: 0; margin-right: 0;
} }
} }
.right-container { .right-container {
padding: 0 20px; padding: 0 20px;
} }
.right-title { .right-title {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
& div:first-child { & div:first-child {
width: 16px; width: 16px;
height: 16px; height: 16px;
border-radius: 50%; border-radius: 50%;
background-color: #19a4a0; background-color: #19a4a0;
z-index: 9; z-index: 9;
} }
& div:nth-child(2) { & div:nth-child(2) {
width: 16px; width: 16px;
height: 16px; height: 16px;
border-radius: 50%; border-radius: 50%;
background-color: #b2e1e0; background-color: #b2e1e0;
transform: translateX(-50%); transform: translateX(-50%);
} }
} }
.process-record { .process-record {
margin-top: 20px; margin-top: 20px;
// height: 60vh; // height: 60vh;
} }
.btn-container { .btn-container {
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
} }
::v-deep .el-step__icon.is-text { ::v-deep .el-step__icon.is-text {
background-color: #19a4a0; background-color: #19a4a0;
color: #19a4a0; color: #19a4a0;
border: none; border: none;
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
::v-deep .el-step.is-vertical .el-step__line { ::v-deep .el-step.is-vertical .el-step__line {
width: 2px; width: 2px;
top: 26px; top: 26px;
bottom: 8px; bottom: 8px;
left: 7px; left: 7px;
} }
::v-deep .el-step__title.is-finish { ::v-deep .el-step__title.is-finish {
font-weight: bold; font-weight: bold;
color: #303133; color: #303133;
font-size: 16px; font-size: 16px;
} }
::v-deep .el-step__title.is-wait { ::v-deep .el-step__title.is-wait {
font-weight: bold; font-weight: bold;
color: #303133; color: #303133;
font-size: 16px; font-size: 16px;
} }
</style> </style>

View File

@ -2,21 +2,290 @@
<div class="business-details-container"> <div class="business-details-container">
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<div class="left-container">左侧</div> <div class="left-container">
<div class="pages-title">减免申请详情</div>
<TitleTip :title="`基本信息`" />
<el-form size="small" style="padding: 20px" disabled label-width="120px" :model="detailsInfo">
<el-row>
<el-col :span="12">
<el-form-item label="减免开始日期">
<el-input v-model="detailsInfo.reduceStartTime" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="减免结束日期">
<el-input v-model="detailsInfo.reduceEndTime" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="减免原因">
<el-input
type="textarea"
v-model="detailsInfo.remark"
:autosize="{ minRows: 2, maxRows: 4 }"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<TitleTip :title="`明细信息`" />
<el-table style="margin: 20px 0" :data="detailsList">
<el-table-column prop="num" label="减免数量" align="center" show-overflow-tooltip />
<el-table-column prop="maName" label="机具名称" align="center" show-overflow-tooltip />
<el-table-column prop="maModel" label="规格型号" align="center" show-overflow-tooltip />
<el-table-column prop="reduceNum" label="领料数量" align="center" show-overflow-tooltip />
<el-table-column prop="startTime" label="领料日期" align="center" show-overflow-tooltip />
<el-table-column prop="endTime" label="退料日期" align="center" show-overflow-tooltip />
<el-table-column
prop="reduceStartTime"
label="减免开始时间"
align="center"
show-overflow-tooltip
/>
<el-table-column
prop="reduceEndTime"
label="减免结束时间"
align="center"
show-overflow-tooltip
/>
<el-table-column
prop="leasePrice"
label="租赁单价(元/天)"
align="center"
show-overflow-tooltip
/>
<el-table-column prop="reduceDays" label="减免天数" align="center" show-overflow-tooltip />
<el-table-column
prop="reduceLeaseMoney"
label="减免费用(元)"
align="center"
show-overflow-tooltip
/>
</el-table>
<div class="total-amount">
<span>合计:</span>
<span>{{ totalAmount }} / </span>
</div>
<TitleTip :title="`附件信息`" />
<div class="file-box">
<div v-for="img in fileList" :key="img.id">
<el-image style="width: 100%; height: 100%" :src="img.url" fit="cover"></el-image>
</div>
</div>
</div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div class="right-container">右侧</div> <div class="right-container">
<div class="right-title">
<div></div>
<div></div>
<div>流程记录</div>
</div>
<div class="process-record">
<el-steps :active="active" :space="120" direction="vertical">
<el-step v-for="step in auditingList" :key="step.id" :title="step.nodeName">
<template slot="description">
<div class="custom-description">
<!-- {{ step.description }} -->
<el-tag size="mini" type="primary" v-if="step.isAccept === 0">待审批</el-tag>
<el-tag size="mini" type="success" v-if="step.isAccept === 1">已通过</el-tag>
<el-tag size="mini" type="danger" v-if="step.isAccept === 2">已驳回</el-tag>
</div>
</template>
</el-step>
</el-steps>
</div>
<div class="auditing-container">
<el-input
type="textarea"
v-model="opinion"
placeholder="请输入审核意见"
:autosize="{ minRows: 2, maxRows: 6 }"
/>
<el-row class="btn-container">
<el-button type="success" size="mini" @click="onSubmitPass">通过</el-button>
<el-button type="danger" size="mini" @click="onSubmitReject">驳回</el-button>
</el-row>
</div>
</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</template> </template>
<script> <script>
export default {} import TitleTip from './components/title-tip.vue'
import { submitAuditingApi, getAuditingDetailsApi } from '@/api/reduction-apply/index.js'
import { getDiscountViewList } from '@/api/cost/cost'
export default {
components: {
TitleTip
},
data() {
return {
opinion: '',
detailsInfo: {},
content: `<span style="color:red">测试996</span>`,
steps: [
{ title: '步骤 1', description: '描述信息 1', color: 'red' },
{ title: '步骤 2', description: '描述信息 2', color: 'blue' },
{ title: '步骤 3', description: '描述信息 3', color: 'green' }
],
active: 1,
detailsList: [],
auditingList: [],
fileList: [],
totalAmount: 0
}
},
created() {
//
if (this.$route.query) {
const { id, taskId } = this.$route.query
this.getLeaseTaskDetailFun(id, taskId)
}
},
methods: {
//
onSubmitPass() {},
//
onSubmitReject() {},
//
async getLeaseTaskDetailFun(id, taskId) {
const { data: res } = await getDiscountViewList(id)
this.detailsInfo = res
this.detailsList = res.detailList
this.fileList = res.bmFileInfos
this.detailsList.forEach(e => {
this.totalAmount += e.reduceLeaseMoney * 1
})
const { rows: result } = await getAuditingDetailsApi({ taskId })
this.auditingList = result
console.log('result审核记录详情', result)
}
}
}
</script> </script>
<style scoped> <style scoped lang="scss">
.business-details-container { .business-details-container {
padding: 20px; padding: 20px;
} }
.pages-title {
padding: 10px 0 30px 0;
font-size: 20px;
font-weight: bold;
letter-spacing: 2px;
text-align: center;
color: #19a4a0;
}
.file-box {
padding: 10px;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
div {
width: calc((100% - 110px) / 12);
height: 60px;
margin-right: 10px;
margin-top: 10px;
text-align: center;
line-height: 60px;
background-color: #19a4a0;
}
& div:nth-child(12n) {
margin-right: 0;
}
}
.right-container {
padding: 0 20px;
}
.right-title {
display: flex;
align-items: center;
font-size: 14px;
& div:first-child {
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #19a4a0;
z-index: 9;
}
& div:nth-child(2) {
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #b2e1e0;
transform: translateX(-50%);
}
}
.process-record {
margin-top: 20px;
// height: 60vh;
}
.btn-container {
margin-top: 10px;
display: flex;
justify-content: space-around;
}
::v-deep .el-step__icon.is-text {
background-color: #19a4a0;
color: #19a4a0;
border: none;
width: 16px;
height: 16px;
}
::v-deep .el-step.is-vertical .el-step__line {
width: 2px;
top: 26px;
bottom: 8px;
left: 7px;
}
::v-deep .el-step__title.is-finish {
font-weight: bold;
color: #303133;
font-size: 16px;
}
::v-deep .el-step__title.is-wait {
font-weight: bold;
color: #303133;
font-size: 16px;
}
.total-amount {
margin-bottom: 10px;
display: flex;
justify-content: flex-end;
font-size: 14px;
align-items: center;
& span:last-child {
margin: 0 6px;
color: red;
font-weight: bold;
}
}
</style> </style>

View File

@ -0,0 +1,37 @@
<template>
<div class="title-tip">
<div class="is-green"></div>
<div class="title-child">{{ title }}</div>
</div>
</template>
<script>
export default {
props: {
title: {
type: String,
default: () => '基本信息'
}
}
}
</script>
<style scoped>
.title-tip {
display: flex;
align-items: center;
background-color: #ebeaea;
}
.is-green {
margin: 0 6px;
width: 5px;
height: 20px;
background-color: #19a4a0;
}
.title-child {
font-weight: bold;
letter-spacing: 1px;
font-size: 18px;
}
</style>

File diff suppressed because it is too large Load Diff