diff --git a/src/api/reduction-apply/index.js b/src/api/reduction-apply/index.js new file mode 100644 index 00000000..1bb90408 --- /dev/null +++ b/src/api/reduction-apply/index.js @@ -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 + }) +} diff --git a/src/router/index.js b/src/router/index.js index 02877a62..e3146457 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -30,204 +30,204 @@ import Layout from '@/layout' // 公共路由 export const constantRoutes = [ - { - path: '/redirect', - component: Layout, - hidden: true, - children: [ - { - path: '/redirect/:path(.*)', - component: () => import('@/views/redirect') - } - ] - }, - { - path: '/login', - component: () => import('@/views/login1'), - hidden: true - }, - { - path: '/register', - component: () => import('@/views/register1'), - hidden: true - }, - { - path: '/404', - component: () => import('@/views/error/404'), - hidden: true - }, - { - path: '/401', - component: () => import('@/views/error/401'), - hidden: true - }, - { - path: '', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/index'), - name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } - } - ] - }, - { - path: '/qrCode/qrCodePage', - component: () => import('@/views/qrCode/qrCode'), - hidden: true - }, - { - path: '/user', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [ - { - path: 'profile', - component: () => import('@/views/system/user/profile/index'), - name: 'Profile', - meta: { title: '个人中心', icon: 'user' } - } - ] - } + { + path: '/redirect', + component: Layout, + hidden: true, + children: [ + { + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect') + } + ] + }, + { + path: '/login', + component: () => import('@/views/login1'), + hidden: true + }, + { + path: '/register', + component: () => import('@/views/register1'), + hidden: true + }, + { + path: '/404', + component: () => import('@/views/error/404'), + hidden: true + }, + { + path: '/401', + component: () => import('@/views/error/401'), + hidden: true + }, + { + path: '', + component: Layout, + redirect: 'index', + children: [ + { + path: 'index', + component: () => import('@/views/index'), + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } + ] + }, + { + path: '/qrCode/qrCodePage', + component: () => import('@/views/qrCode/qrCode'), + hidden: true + }, + { + path: '/user', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'profile', + component: () => import('@/views/system/user/profile/index'), + name: 'Profile', + meta: { title: '个人中心', icon: 'user' } + } + ] + } ] // 动态路由,基于用户权限动态去加载 export const dynamicRoutes = [ - { - path: '/system/user-auth', - component: Layout, - hidden: true, - permissions: ['system:user:edit'], - children: [ - { - path: 'role/:userId(\\d+)', - component: () => import('@/views/system/user/authRole'), - name: 'AuthRole', - meta: { title: '分配角色', activeMenu: '/system/user' } - } - ] - }, - { - path: '/system/role-auth', - component: Layout, - hidden: true, - permissions: ['system:role:edit'], - children: [ - { - path: 'user/:roleId(\\d+)', - component: () => import('@/views/system/role/authUser'), - name: 'AuthUser', - meta: { title: '分配用户', activeMenu: '/system/role' } - } - ] - }, - { - path: '/system/dict-data', - component: Layout, - hidden: true, - permissions: ['system:dict:list'], - children: [ - { - path: 'index/:dictId(\\d+)', - component: () => import('@/views/system/dict/data'), - name: 'Data', - meta: { title: '字典数据', activeMenu: '/system/dict' } - } - ] - }, - { - path: '/monitor/job-log', - component: Layout, - hidden: true, - permissions: ['monitor:job:list'], - children: [ - { - path: 'index/:jobId(\\d+)', - component: () => import('@/views/monitor/job/log'), - name: 'JobLog', - meta: { title: '调度日志', activeMenu: '/monitor/job' } - } - ] - }, - { - path: '/tool/gen-edit', - component: Layout, - hidden: true, - permissions: ['tool:gen:edit'], - children: [ - { - path: 'index/:tableId(\\d+)', - component: () => import('@/views/tool/gen/editTable'), - name: 'GenEdit', - meta: { title: '修改生成配置', activeMenu: '/tool/gen' } - } - ] - }, + { + path: '/system/user-auth', + component: Layout, + hidden: true, + permissions: ['system:user:edit'], + children: [ + { + path: 'role/:userId(\\d+)', + component: () => import('@/views/system/user/authRole'), + name: 'AuthRole', + meta: { title: '分配角色', activeMenu: '/system/user' } + } + ] + }, + { + path: '/system/role-auth', + component: Layout, + hidden: true, + permissions: ['system:role:edit'], + children: [ + { + path: 'user/:roleId(\\d+)', + component: () => import('@/views/system/role/authUser'), + name: 'AuthUser', + meta: { title: '分配用户', activeMenu: '/system/role' } + } + ] + }, + { + path: '/system/dict-data', + component: Layout, + hidden: true, + permissions: ['system:dict:list'], + children: [ + { + path: 'index/:dictId(\\d+)', + component: () => import('@/views/system/dict/data'), + name: 'Data', + meta: { title: '字典数据', activeMenu: '/system/dict' } + } + ] + }, + { + path: '/monitor/job-log', + component: Layout, + hidden: true, + permissions: ['monitor:job:list'], + children: [ + { + path: 'index/:jobId(\\d+)', + component: () => import('@/views/monitor/job/log'), + name: 'JobLog', + meta: { title: '调度日志', activeMenu: '/monitor/job' } + } + ] + }, + { + path: '/tool/gen-edit', + component: Layout, + hidden: true, + permissions: ['tool:gen:edit'], + children: [ + { + path: 'index/:tableId(\\d+)', + component: () => import('@/views/tool/gen/editTable'), + name: 'GenEdit', + meta: { title: '修改生成配置', activeMenu: '/tool/gen' } + } + ] + }, - // 会签配置 - { - path: '/countersign/config-data', - component: Layout, - hidden: true, - permissions: ['system:dict:list'], // 权限字符 - children: [ - { - path: 'index/:processName(.*)/:id(.*)', - component: () => import('@/views/material/countersign/config/config-data.vue'), - name: 'config-data', - meta: { title: '流程配置', activeMenu: '/countersign/config' } - } - ] - }, - // 领料审核 业务详情 - { - path: '/business-details/receive-apply', - component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 - hidden: true, - permissions: ['receive-apply:list'], // 权限字符 - children: [ - { - path: 'index', - name: 'receive-apply-details', - meta: { title: '领料详情', activeMenu: '/business-examine/receive-apply' }, - component: () => import('@/views/business-examine/receive-apply/business-details.vue') - } - ] - }, - // 直转审核 业务详情 - { - path: '/business-details/direct-rotation-apply', - component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 - hidden: true, - permissions: ['*'], // 权限字符 - children: [ - { - path: 'index', - name: 'direct-rotation-apply', - meta: { title: '直转详情', activeMenu: '/business-examine/direct-rotation-apply' }, - component: () => import('@/views/business-examine/direct-rotation-apply/business-details.vue') - } - ] - }, - // 减免审核 业务详情 - { - path: '/business-details/reduction-apply', - component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 - hidden: true, - permissions: ['system:dict:list'], // 权限字符 - children: [ - { - path: 'index', - name: 'reduction-apply', - meta: { title: '减免详情', activeMenu: '/business-examine/reduction-apply' }, - component: () => import('@/views/business-examine/reduction-apply/business-details.vue') - } - ] - } + // 会签配置 + { + path: '/countersign/config-data', + component: Layout, + hidden: true, + permissions: ['system:dict:list'], // 权限字符 + children: [ + { + path: 'index/:processName(.*)/:id(.*)', + component: () => import('@/views/material/countersign/config/config-data.vue'), + name: 'config-data', + meta: { title: '流程配置', activeMenu: '/countersign/config' } + } + ] + }, + // 领料审核 业务详情 + { + path: '/business-details/receive-apply', + component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 + hidden: true, + permissions: ['receive-apply:list'], // 权限字符 + children: [ + { + path: 'index', + name: 'receive-apply-details', + meta: { title: '领料详情', activeMenu: '/business-examine/receive-apply' }, + component: () => import('@/views/business-examine/receive-apply/business-details.vue') + } + ] + }, + // 直转审核 业务详情 + { + path: '/business-details/direct-rotation-apply', + component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 + hidden: true, + permissions: ['*'], // 权限字符 + children: [ + { + path: 'index', + name: 'direct-rotation-apply', + meta: { title: '直转详情', activeMenu: '/business-examine/direct-rotation-apply' }, + component: () => import('@/views/business-examine/direct-rotation-apply/business-details.vue') + } + ] + }, + // 减免审核 业务详情 + { + path: '/business-details/reduction-apply', + component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 + hidden: true, + permissions: ['reduction-apply:list'], // 权限字符 + children: [ + { + path: 'index', + name: 'reduction-apply', + meta: { title: '减免详情', activeMenu: '/business-examine/reduction-apply' }, + component: () => import('@/views/business-examine/reduction-apply/business-details.vue') + } + ] + } ] // 防止连续点击多次路由报错 @@ -235,15 +235,15 @@ let routerPush = Router.prototype.push let routerReplace = Router.prototype.replace // push Router.prototype.push = function push(location) { - return routerPush.call(this, location).catch(err => err) + return routerPush.call(this, location).catch(err => err) } // replace 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({ - mode: 'history', // 去掉url中的# - scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes + mode: 'history', // 去掉url中的# + scrollBehavior: () => ({ y: 0 }), + routes: constantRoutes }) diff --git a/src/views/business-examine/receive-apply/business-details.vue b/src/views/business-examine/receive-apply/business-details.vue index ced5b8c0..c3d57386 100644 --- a/src/views/business-examine/receive-apply/business-details.vue +++ b/src/views/business-examine/receive-apply/business-details.vue @@ -1,113 +1,113 @@ diff --git a/src/views/business-examine/reduction-apply/business-details.vue b/src/views/business-examine/reduction-apply/business-details.vue index beab4cf6..df91fa72 100644 --- a/src/views/business-examine/reduction-apply/business-details.vue +++ b/src/views/business-examine/reduction-apply/business-details.vue @@ -2,21 +2,290 @@
-
左侧
+
+
减免申请详情
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 合计: + {{ totalAmount }} / 元 +
+ + +
+
+ +
+
+
-
右侧
+
+
+
+
+
流程记录
+
+ +
+ + + + + +
+ +
+ + + + 通过 + 驳回 + +
+
- diff --git a/src/views/business-examine/reduction-apply/components/title-tip.vue b/src/views/business-examine/reduction-apply/components/title-tip.vue new file mode 100644 index 00000000..2970e850 --- /dev/null +++ b/src/views/business-examine/reduction-apply/components/title-tip.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/views/business-examine/reduction-apply/index.vue b/src/views/business-examine/reduction-apply/index.vue index 1a18d891..4ff50a97 100644 --- a/src/views/business-examine/reduction-apply/index.vue +++ b/src/views/business-examine/reduction-apply/index.vue @@ -1,24 +1,41 @@ +