75 Commits
Author SHA1 Message Date
hhl123456789 51c91a1c1a '上传多个缴费凭证后,删除一个提交接口报错修复' 2024-03-18 14:36:23 +08:00
hhlxayunmeiandGitea 4c0c084126 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-18 11:43:05 +08:00
hhl123456789 6a0a382963 '证据修改显隐问题调整' 2024-03-18 11:41:50 +08:00
hanchaoboandGitea 81ac5528a1 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-12 11:19:59 +08:00
hanchaobo b1810b835a Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-12 11:18:29 +08:00
hanchaobo 72e79651b6 送达加载,新增bug 2024-03-12 11:18:18 +08:00
hanchaoboandGitea 4f8165045a Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-11 10:09:25 +08:00
hanchaobo 9bebf1a8a7 合并 2024-03-11 10:08:49 +08:00
hanchaobo 03f1700c37 外籍人口功能 2024-03-11 10:07:18 +08:00
gaogaoyujieandGitea ab70858f39 Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-07 17:36:05 +08:00
gyj ed1165a6ac Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj 2024-03-07 17:34:06 +08:00
gyj 8c45d922a5 新增页面的优化 2024-03-07 17:33:56 +08:00
hanchaoboandGitea a1fec88e88 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-06 18:18:50 +08:00
hanchaobo 6a1d18309a Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-06 18:17:46 +08:00
hanchaobo 5f41c61d1e 0306测试问题 2024-03-06 18:17:22 +08:00
hanchaoboandGitea c2f5d6d8bd Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-06 15:18:25 +08:00
hanchaobo 3762c9a6cb Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-06 15:10:11 +08:00
hanchaobo fc37239f9d 0306部署2 2024-03-06 15:09:52 +08:00
hanchaoboandGitea b923625515 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-06 09:39:53 +08:00
hanchaobo 62dbde7d0a Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-06 09:38:44 +08:00
hanchaobo 720d90193f 0306部署 2024-03-06 09:38:32 +08:00
hhlxayunmeiandGitea 13937509c8 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-05 17:41:33 +08:00
hhl123456789 72ced8108b '图标编辑问题修复' 2024-03-05 17:40:42 +08:00
hhlxayunmeiandGitea 9f2556e387 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-05 16:30:52 +08:00
hhl123456789 7d56e738ff Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hhl 2024-03-05 16:30:09 +08:00
hhl123456789 fc0272dca0 '3.5问题修复' 2024-03-05 16:29:54 +08:00
gaogaoyujieandGitea d6ccde627a Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-05 15:43:53 +08:00
gyj 8cd7dfcfcd Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj 2024-03-05 15:42:56 +08:00
gyj 8178a9d180 新增优化 2024-03-05 15:42:21 +08:00
gaogaoyujieandGitea 857e5588ad Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-05 15:04:55 +08:00
gyj 8b71e26f57 新增页面优化 2024-03-05 14:58:10 +08:00
hanchaobo 57f11996c6 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-05 12:01:39 +08:00
hanchaobo 718e182766 压缩包上传 2024-03-05 12:01:28 +08:00
hanchaoboandGitea 9fbd20a098 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-05 09:17:03 +08:00
hanchaobo 9f34dafc9a Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-03-05 09:16:08 +08:00
hanchaobo a61a1388f7 压缩包上传回显 2024-03-05 09:15:47 +08:00
hhlxayunmeiandGitea 8d4a69a959 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-04 17:42:56 +08:00
hhl123456789 08ba042ac2 '优化' 2024-03-04 17:41:52 +08:00
hhlxayunmeiandGitea e370c8f248 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-04 11:16:11 +08:00
hhl123456789 ecd8979c8b Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hhl 2024-03-04 11:15:21 +08:00
hhl123456789 39125fdcdf '节点图标编辑回显问题修复' 2024-03-04 11:15:08 +08:00
hanchaoboandGitea fe0833dd32 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-04 09:54:27 +08:00
hanchaobo bcd9f7cbb2 合并0304 2024-03-04 09:52:50 +08:00
hanchaobo 0733c67999 合并0304 2024-03-04 09:51:02 +08:00
hhlxayunmeiandGitea 0620ab8a43 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-03-01 18:16:08 +08:00
hhl123456789 53f3e04905 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hhl 2024-03-01 18:14:32 +08:00
hhl123456789 7cfdcd1fc5 '首页动态图标添加' 2024-03-01 18:14:15 +08:00
gaogaoyujieandGitea 9f15145a7c Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-29 17:41:16 +08:00
gyj a45b73ab82 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj 2024-02-29 17:39:28 +08:00
gyj c348a4c529 修改测试bug 2024-02-29 17:36:57 +08:00
hanchaoboandGitea 3b3191c353 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-29 14:50:54 +08:00
hanchaobo 811f169ddd 线上加载过慢问题 2024-02-29 14:49:56 +08:00
hanchaoboandGitea cca3bb656b Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-29 14:20:28 +08:00
hanchaobo e0bb8cde42 删除仓库 2024-02-29 14:17:42 +08:00
hanchaobo 20c062fcef 删除仓库 2024-02-29 14:16:54 +08:00
hhlxayunmeiandGitea 1b243dc441 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-29 11:53:51 +08:00
hhl123456789 e305b7b668 '解决案件列表页面报错问题' 2024-02-29 11:52:15 +08:00
hanchaoboandGitea 987fa7dd54 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-29 09:40:31 +08:00
hanchaobo 53ca46a5f5 合并 2024-02-29 09:39:26 +08:00
hanchaobo b577f650f5 0229提交 2024-02-29 09:32:44 +08:00
hhlxayunmeiandGitea b89f7272b8 Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-28 18:15:25 +08:00
hhl123456789 9efd609de8 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hhl 2024-02-28 18:13:45 +08:00
hhl123456789 504e8ef1d5 '调解首页开发' 2024-02-28 18:13:28 +08:00
gaogaoyujieandGitea f3b90edb88 Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-28 18:10:22 +08:00
gyj 797bdc837d Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj 2024-02-28 18:06:42 +08:00
gyj 3566f3bd09 修改了logo图 2024-02-28 18:02:53 +08:00
hanchaoboandGitea 7b17d986f3 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-27 18:15:17 +08:00
hanchaobo 718e96daa3 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-02-27 18:04:36 +08:00
hanchaobo 42806a93bf 提交loading 2024-02-27 18:04:27 +08:00
hanchaoboandGitea e79cf46f62 Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-27 15:37:58 +08:00
hanchaobo 836f26c1f0 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hcb 2024-02-27 15:35:31 +08:00
hanchaobo 69bdd05df4 0227bug 2024-02-27 15:35:17 +08:00
gaogaoyujieandGitea b0f6fee8ab Merge branch 'gyj' of SH-Arbitrate/Mediation-Frontend into dev 2024-02-27 15:33:38 +08:00
gyj 7f3138d499 Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj 2024-02-27 15:30:52 +08:00
gyj d3256e15fb 修改案件归档添加案件详情 2024-02-27 15:30:18 +08:00
37 changed files with 2053 additions and 1248 deletions
+29 -2
View File
@@ -1,3 +1,30 @@
# Mediation-Frontend ## 开发
调解系统PC端服务 ```bash
# 克隆项目
git clone https://gitee.com/y_project/RuoYi-Vue
# 进入项目目录
cd ruoyi-ui
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev
```
浏览器访问 http://localhost:80
## 发布
```bash
# 构建测试环境
npm run build:stage
# 构建生产环境
npm run build:prod
```
+2 -3
View File
@@ -1,7 +1,7 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "3.8.6", "version": "3.8.6",
"description": "智慧仲裁管理系统", "description": "调解系统",
"author": "智慧仲裁", "author": "智慧仲裁",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
@@ -48,8 +48,7 @@
"js-beautify": "1.13.0", "js-beautify": "1.13.0",
"js-cookie": "3.0.1", "js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1", "jsencrypt": "3.0.0-rc.1",
"lodash": "^4.17.21", "moment": "^2.29.4",
"moment": "^2.30.1",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",
"quill": "1.3.7", "quill": "1.3.7",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

+8
View File
@@ -76,3 +76,11 @@ export function wxregister(data) {
data: data data: data
}) })
} }
// 检测用户名是否已经存在
export function verifyUserName(data) {
return request({
url: '/weChatUser/verifyUserName',
method: 'get',
params:data
})
}
+10
View File
@@ -0,0 +1,10 @@
import request from '@/utils/request'
// 查询首页待办
export function todoCount(data) {
return request({
url: '/caseApplication/todoCount',
method: 'get',
params: data
})
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 185 KiB

+2 -2
View File
@@ -51,12 +51,12 @@ export default {
// 图片数量限制 // 图片数量限制
limit: { limit: {
type: Number, type: Number,
default: 5, default: 1,
}, },
// 大小限制(MB) // 大小限制(MB)
fileSize: { fileSize: {
type: Number, type: Number,
default: 5, // default: 5,
}, },
// 文件类型, 例如['png', 'jpg', 'jpeg'] // 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: { fileType: {
+2 -1
View File
@@ -9,7 +9,8 @@ export default {
name: 'RuoYiDoc', name: 'RuoYiDoc',
data() { data() {
return { return {
url: 'http://doc.ruoyi.vip/ruoyi-vue' // url: 'http://doc.ruoyi.vip/ruoyi-vue'
url: '#'
} }
}, },
methods: { methods: {
+2 -7
View File
@@ -7,15 +7,10 @@
<div class="right-menu"> <div class="right-menu">
<template v-if="device!=='mobile'"> <template v-if="device!=='mobile'">
<!-- <search id="header-search" class="right-menu-item" /> <!-- <search id="header-search" class="right-menu-item" /> -->
<el-tooltip content="源码地址" effect="dark" placement="bottom">
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip>
<el-tooltip content="文档地址" effect="dark" placement="bottom"> <el-tooltip content="文档地址" effect="dark" placement="bottom">
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
</el-tooltip> --> </el-tooltip>
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />
+6 -3
View File
@@ -4,7 +4,7 @@ import Cookies from 'js-cookie'
import Element from 'element-ui' import Element from 'element-ui'
import './assets/styles/element-variables.scss' import './assets/styles/element-variables.scss'
import './assets/icons' // icon
import '@/assets/styles/index.scss' // global css import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css import '@/assets/styles/ruoyi.scss' // ruoyi css
import App from './App' import App from './App'
@@ -14,6 +14,8 @@ import directive from './directive' // directive
import plugins from './plugins' // plugins import plugins from './plugins' // plugins
import { download } from '@/utils/request' import { download } from '@/utils/request'
import './assets/icons' // icon
// 引入Iconfont 矢量图标库
import './assets/icon/iconfont.css' import './assets/icon/iconfont.css'
import './permission' // permission control import './permission' // permission control
import { getDicts } from "@/api/system/dict/data"; import { getDicts } from "@/api/system/dict/data";
@@ -37,8 +39,9 @@ import DictTag from '@/components/DictTag'
import VueMeta from 'vue-meta' import VueMeta from 'vue-meta'
// 字典数据组件 // 字典数据组件
import DictData from '@/components/DictData' import DictData from '@/components/DictData'
//画布组件
import vueEsign from 'vue-esign'
import {checkPermi} from '@/utils/permission' import {checkPermi} from '@/utils/permission'
import { statusRole } from '@/utils/permission'
// 全局方法挂载 // 全局方法挂载
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts
@@ -51,7 +54,6 @@ Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download Vue.prototype.download = download
Vue.prototype.handleTree = handleTree Vue.prototype.handleTree = handleTree
Vue.prototype.checkPermi = checkPermi Vue.prototype.checkPermi = checkPermi
Vue.prototype.statusRole = statusRole
// 全局组件挂载 // 全局组件挂载
Vue.component('DictTag', DictTag) Vue.component('DictTag', DictTag)
@@ -65,6 +67,7 @@ Vue.component('ImagePreview', ImagePreview)
Vue.use(directive) Vue.use(directive)
Vue.use(plugins) Vue.use(plugins)
Vue.use(VueMeta) Vue.use(VueMeta)
Vue.use(vueEsign)
DictData.install() DictData.install()
/** /**
+4 -2
View File
@@ -100,7 +100,8 @@ export const dynamicRoutes = [
children: [ children: [
{ {
path: 'role/:userId(\\d+)', path: 'role/:userId(\\d+)',
component: () => import('@/views/system/user/authRole'), // component: () => import('@/views/system/user/authRole'),
component: (resolve) => require(['@/views/system/user/authRole'],resolve),
name: 'AuthRole', name: 'AuthRole',
meta: { title: '分配角色', activeMenu: '/system/user' } meta: { title: '分配角色', activeMenu: '/system/user' }
} }
@@ -114,7 +115,8 @@ export const dynamicRoutes = [
children: [ children: [
{ {
path: 'user/:roleId(\\d+)', path: 'user/:roleId(\\d+)',
component: () => import('@/views/system/role/authUser'), // component: () => import('@/views/system/role/authUser'),
component: (resolve) => require(['@/views/system/role/authUser'],resolve),
name: 'AuthUser', name: 'AuthUser',
meta: { title: '分配用户', activeMenu: '/system/role' } meta: { title: '分配用户', activeMenu: '/system/role' }
} }
+1
View File
@@ -126,6 +126,7 @@ export const loadView = (view) => {
return (resolve) => require([`@/views/${view}`], resolve) return (resolve) => require([`@/views/${view}`], resolve)
} else { } else {
// 使用 import 实现生产环境的路由懒加载 // 使用 import 实现生产环境的路由懒加载
// return () => import(`@/views/${view}`)
return (resolve) => require([`@/views/${view}`], resolve) return (resolve) => require([`@/views/${view}`], resolve)
} }
} }
-1
View File
@@ -50,7 +50,6 @@ const user = {
GetInfo({ commit, state }) { GetInfo({ commit, state }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getInfo().then(res => { getInfo().then(res => {
sessionStorage.setItem('caseStatus', JSON.stringify(res.caseStatus))
const user = res.user const user = res.user
const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
-40
View File
@@ -24,7 +24,6 @@ export function checkPermi(value) {
return false return false
} }
} }
/** /**
* 角色权限校验 * 角色权限校验
* @param {Array} value 校验值 * @param {Array} value 校验值
@@ -49,42 +48,3 @@ export function checkRole(value) {
return false return false
} }
} }
/**
* 状态权限校验
* @param {Number} value 校验值
* @returns {Boolean}
*/
export function statusRole(value) {
let caseStatusStr = sessionStorage.getItem('caseStatus');
let caseStatus = [];
caseStatus = JSON.parse(caseStatusStr);
if (caseStatus.length == 0) {
return false
}
// if (caseStatus.includes(value)) {
// // caseStatus.forEach(item => {
// // if (item == value) {
// // return true
// // }
// // });
// for(let i = 0;i < caseStatus.length;i++){
// if(caseStatus[i] == value){
// return true
// }
// }
// } else {
// return false
// }
let flag = null;
for (let i = 0; i < caseStatus.length; i++) {
if (caseStatus[i] == value) {
flag = caseStatus[i]
}
}
if (flag == value) {
return true
} else {
return false
}
}
+2 -5
View File
@@ -17,7 +17,8 @@ const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分 // axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
// 超时 // 超时
timeout: 10000 // timeout: 10000
timeout: 15000
}) })
// request拦截器 // request拦截器
@@ -36,10 +37,6 @@ service.interceptors.request.use(config => {
config.params = {}; config.params = {};
config.url = url; config.url = url;
} }
if (config.url === '/caseApplication/mediation') {
// 调解时对于特定的请求设置超时时间为20秒
config.timeout = 20000; // 20秒
}
if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) { if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) {
const requestObj = { const requestObj = {
url: config.url, url: config.url,
+298 -241
View File
@@ -3,8 +3,8 @@
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
<el-form-item label="案件状态" prop="caseFlowId"> <el-form-item label="案件状态" prop="caseFlowId">
<el-select v-model="queryParams.caseFlowId" placeholder="请选择" clearable> <el-select v-model="queryParams.caseFlowId" placeholder="请选择" clearable>
<el-option v-for="dict in caseStausArr" :key="dict.id" :label="dict.caseStatusName" <el-option v-for="dict in caseStausArr" :key="dict.id" :label="dict.caseStatusName" :value="dict.id"
:value="dict.id" @keyup.enter.native="handleQuery"></el-option> @keyup.enter.native="handleQuery"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="申请机构" prop="applicationOrganId"> <!-- <el-form-item label="申请机构" prop="applicationOrganId">
@@ -23,7 +23,8 @@
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="caseTime"> <el-form-item label="创建时间" prop="caseTime">
<el-date-picker v-model="caseTime" type="daterange" align="right" unlink-panels range-separator="至" <el-date-picker v-model="caseTime" type="daterange" align="right" unlink-panels range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" clearable style="width: 240px" @change="caseTimeChange"> start-placeholder="开始日期" end-placeholder="结束日期" clearable style="width: 240px"
@change="caseTimeChange">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -33,7 +34,8 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" v-hasPermi="['caseManagement:list:add']" size="mini" @click="addCase()">新增案件</el-button> <el-button type="primary" plain icon="el-icon-plus" v-hasPermi="['caseManagement:list:add']" size="mini"
@click="addCase()">新增案件</el-button>
</el-col> </el-col>
<!-- TODO 后期可能加上--> <!-- TODO 后期可能加上-->
<!-- <el-col :span="1.5"> <!-- <el-col :span="1.5">
@@ -61,40 +63,39 @@
<el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" /> <el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button size="mini" type="text" icon="el-icon-check" @click="onsubmitRow(scope.row)" v-if="statusRole(scope.row.caseFlowId)">提交</el-button> --> <el-button size="mini" @click="eidtNodeprocess(scope.row)" type="text" icon="el-icon-edit"
<el-button size="mini" @click="eidtNodeprocess(scope.row)" type="text" v-hasPermi="['caseManagement:list:edit']" v-if="scope.row.caseFlowId <= 1">修改</el-button>
icon="el-icon-edit" v-hasPermi="['caseManagement:list:edit']" v-if="scope.row.caseFlowId <= 1">修改</el-button> <el-button size="mini" @click="checkDetail(scope.row)" type="text"
<el-button size="mini" @click="checkDetail(scope.row)" type="text" icon="el-icon-view">查看详情</el-button> icon="el-icon-view">查看详情</el-button>
<!-- <el-button size="mini" @click="consultantApplica(scope.row)" type="text" icon="el-icon-tickets">法律顾问用印申请</el-button> --> <el-button size="mini" @click="caseFlow(scope.row)" type="text"
<!-- <el-button size="mini" @click="departmentApplica(scope.row)" type="text" icon="el-icon-edit-outline">部门长用印</el-button> --> icon="el-icon-zoom-in">查看流程</el-button>
<el-button size="mini" @click="caseFlow(scope.row)" type="text" icon="el-icon-zoom-in">查看流程</el-button>
<el-button size="mini" @click="caseLog(scope.row)" type="text" <el-button size="mini" @click="caseLog(scope.row)" type="text"
icon="el-icon-edit-outline">案件日志</el-button> icon="el-icon-edit-outline">案件日志</el-button>
<!-- <el-button size="mini" @click="paymentconfirmationRow(scope.row)" type="text" icon="el-icon-zoom-in">缴费确认</el-button> --> <el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text" icon="el-icon-edit"
<!-- <el-button size="mini" @click="caseAccep(scope.row)" type="text" icon="el-icon-zoom-in">案件受理</el-button> --> v-if="scope.row.caseFlowId > 2">查看缴费单</el-button>
<el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text" <el-button size="mini" type="text" icon="el-icon-edit" @click="evidenceUpload(scope.row)"
icon="el-icon-edit">查看缴费单</el-button> v-hasPermi="['caseManagement:list:evidenceEdit']"
<!-- <el-button size="mini" @click="caseFiling(scope.row)" type="text" icon="el-icon-tickets">案件归档</el-button> --> v-if="scope.row.caseFlowId <= 9">上传证据</el-button>
<!-- <el-button size="mini" @click="signMediation(scope.row)" type="text" icon="el-icon-edit-outline">申请人签收</el-button> --> <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseFlowId == 15 ||
<!-- <el-button size="mini" @click="receivedMediation(scope.row)" type="text" icon="el-icon-edit-outline">被申请人签收</el-button> --> scope.row.caseFlowId == 16 ||
<el-button size="mini" type="text" icon="el-icon-edit" scope.row.caseFlowId == 17
@click="evidenceUpload(scope.row)" v-hasPermi="['caseManagement:list:evidenceEdit']" v-if="scope.row.caseFlowId <= 9">上传证据</el-button> " @click="caseFilingDetails(scope.row)">归档详情</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseFlowId == 15 || scope.row.caseFlowId == 16 || scope.row.caseFlowId == 17" @click="caseFilingDetails(scope.row)">归档详情</el-button> <div class="btnList" v-for="item in buttonList" :key="item.id">
<!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)">缴费</el-button> --> <el-button size="mini" type="text" icon="el-icon-tickets" @click="caseClick(scope.row, item.id)"
<!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="selectMediator(scope.row)">预约时间</el-button> --> v-if="item.id == scope.row.caseFlowId &&
<!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="secretaryConfirm(scope.row)">秘书审核</el-button> --> checkPermi([item.buttonAuthFlag]) &&
<!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="department(scope.row)">部门长审核</el-button> --> scope.row.signButtonFlag != 1
<!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="timeConfirm(scope.row)">确认调解时间</el-button> --> ">{{ item.nodeName }}</el-button>
<el-button size="mini" type="text" icon="el-icon-tickets" v-for="(item) in buttonList" :key="item.id" </div>
@click="caseClick(scope.row,item.id)" v-if="item.id == scope.row.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
@pagination="getList(queryParams)" /> :limit.sync="queryParams.pageSize" @pagination="getList(queryParams)" />
<!-- 新增编辑详情 --> <!-- 新增编辑详情 -->
<addCase :addVisable="addVisable" :queryParams="queryParams" @cancelCaseAdd="cancelCaseAdd" @getList="getList" <addCase :addVisable="addVisable" :queryParams="queryParams" @cancelCaseAdd="cancelCaseAdd" @getList="getList"
:caseData="caseData" :caseDisabled="caseDisabled" :tabFlag="tabFlag" :addModifyData="addModifyData"></addCase> :caseData="caseData" :caseDisabled="caseDisabled" :tabFlag="tabFlag" :addModifyData="addModifyData">
</addCase>
<!-- 压缩包导入 --> <!-- 压缩包导入 -->
<caseCompressionPackage :openCompressedPackages="openCompressedPackages" :queryParams="queryParams" <caseCompressionPackage :openCompressedPackages="openCompressedPackages" :queryParams="queryParams"
@cancelCompreess="cancelCompreess" :getList="getList"> @cancelCompreess="cancelCompreess" :getList="getList">
@@ -104,23 +105,28 @@
:caseFlowNumber="caseFlowNumber"> :caseFlowNumber="caseFlowNumber">
</mediationCaseDetails> </mediationCaseDetails>
<!-- 案件日志 --> <!-- 案件日志 -->
<mediationCaseLog :showcaseLog="showcaseLog" @cancelcaseLog="cancelcaseLog" :caselogDataArr="caselogDataArr" :flagLoading="flagLoading"></mediationCaseLog> <mediationCaseLog :showcaseLog="showcaseLog" @cancelcaseLog="cancelcaseLog" :caselogDataArr="caselogDataArr"
:flagLoading="flagLoading"></mediationCaseLog>
<!-- 证据修改 --> <!-- 证据修改 -->
<evidenceDialog :evidenceVisable="evidenceVisable" @cancelEvidence="cancelEvidence" :evidenceData="evidenceData"> <evidenceDialog :evidenceVisable="evidenceVisable" @cancelEvidence="cancelEvidence"
:evidenceData="evidenceData">
</evidenceDialog> </evidenceDialog>
<!-- 缴费 --> <!-- 缴费 -->
<payDialog :openPay="openPay" :payTitle="payTitle" :formPayDetail="formPayDetail" :payId="payId" :payForm="payForm" <payDialog :openPay="openPay" :payTitle="payTitle" :formPayDetail="formPayDetail" :payId="payId"
:queryParams="queryParams" @getList="getList" @paycancelRow="paycancelRow" :formPayDetailAffiliate="formPayDetailAffiliate"></payDialog> :payForm="payForm" :queryParams="queryParams" @getList="getList" @paycancelRow="paycancelRow"
:formPayDetailAffiliate="formPayDetailAffiliate"></payDialog>
<!-- 缴费确认查看详情 --> <!-- 缴费确认查看详情 -->
<paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle" <paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle"
:detailform="detailform" :queryParams="queryParams" :flag="flag" :paymentConfirma="paymentConfirma" :isapplicant="isapplicant" @getList="getList"> :detailform="detailform" :queryParams="queryParams" :flag="flag" :paymentConfirma="paymentConfirma"
:isapplicant="isapplicant" @getList="getList">
</paymentdetailsDialog> </paymentdetailsDialog>
<!-- 案件受理 --> <!-- 案件受理 -->
<caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance" <caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance"
:caseAcceptanceData="caseAcceptanceData" @getList="getList"></caseAcceptance> :caseAcceptanceData="caseAcceptanceData" @getList="getList" :queryParams="queryParams"></caseAcceptance>
<!-- 被申请人缴费 --> <!-- 被申请人缴费 -->
<respondentPay :openResPay="openResPay" :resPayTitle="resPayTitle" :formResPayDetail="formResPayDetail" :resPayId="resPayId" :resPayForm="resPayForm" <respondentPay :openResPay="openResPay" :resPayTitle="resPayTitle" :formResPayDetail="formResPayDetail"
:queryParams="queryParams" @getList="getList" @paycancelRes="paycancelRes" :formResPay="formResPay"></respondentPay> :resPayId="resPayId" :resPayForm="resPayForm" :queryParams="queryParams" @getList="getList"
@paycancelRes="paycancelRes" :formResPay="formResPay"></respondentPay>
<!-- 调解员弹窗 --> <!-- 调解员弹窗 -->
<selectMediator @cancelMediator="cancelMediator" :mediatorVisable="mediatorVisable" :mediatorData="mediatorData" <selectMediator @cancelMediator="cancelMediator" :mediatorVisable="mediatorVisable" :mediatorData="mediatorData"
@getList="getList" :queryParams="queryParams"></selectMediator> @getList="getList" :queryParams="queryParams"></selectMediator>
@@ -139,31 +145,45 @@
<confirmMediation @cancelConfirmTion="cancelConfirmTion" :confirmTionVisable="confirmTionVisable" <confirmMediation @cancelConfirmTion="cancelConfirmTion" :confirmTionVisable="confirmTionVisable"
:confirmTionData="confirmTionData" @getList="getList" :queryParams="queryParams"></confirmMediation> :confirmTionData="confirmTionData" @getList="getList" :queryParams="queryParams"></confirmMediation>
<!-- 归档详情 --> <!-- 归档详情 -->
<caseFilingDetailsPage :showarchiveDetails="showarchiveDetails" :caseFilingData="caseFilingData" @cancelDetail="cancelDetail" :detailsAwardNum="detailsAwardNum" :flagLoadingS="flagLoadingS"></caseFilingDetailsPage> <caseFilingDetailsPage :showarchiveDetails="showarchiveDetails" :caseFilingData="caseFilingData"
@cancelDetail="cancelDetail" :detailsAwardNum="detailsAwardNum" :flagLoadingS="flagLoadingS">
</caseFilingDetailsPage>
</div> </div>
</template> </template>
<script> <script>
import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl,listCaseLogRecord,msCaseFile,msCaseSign,listDeptApplied,msCaseSignUrlApplyPC} from '@/api/caseManagement/caseManagement.js' import {
import { listDept } from '@/api/system/dept.js' caseApplicationList,
import { queryCaseFlowInfo } from '@/api/caseprocessManagement/caseprocessManagement.js' caseApplicationSelectById,
submitCaseApply,
selectPaymentDetail,
sealApply,
selectSealUrl,
listCaseLogRecord,
msCaseFile,
msCaseSign,
listDeptApplied,
msCaseSignUrlApplyPC,
} from "@/api/caseManagement/caseManagement.js";
import { listDept } from "@/api/system/dept.js";
import { queryCaseFlowInfo } from "@/api/caseprocessManagement/caseprocessManagement.js";
import moment from "moment"; import moment from "moment";
import addCase from './components/addCase.vue' import addCase from "./components/addCase.vue";
import evidenceDialog from './components/evidenceDialog.vue'; import evidenceDialog from "./components/evidenceDialog.vue";
import caseCompressionPackage from './components/caseCompressionPackage.vue'; import caseCompressionPackage from "./components/caseCompressionPackage.vue";
import mediationCaseDetails from './components/mediationCaseDetails.vue' import mediationCaseDetails from "./components/mediationCaseDetails.vue";
import mediationCaseLog from './components/mediationCaseLog.vue' import mediationCaseLog from "./components/mediationCaseLog.vue";
import payDialog from "./components/payDialog.vue"; import payDialog from "./components/payDialog.vue";
import respondentPay from "./components/respondentPay.vue" import respondentPay from "./components/respondentPay.vue";
import paymentdetailsDialog from './components/paymentdetailsDialog.vue' import paymentdetailsDialog from "./components/paymentdetailsDialog.vue";
import caseAcceptance from './components/caseAcceptance.vue' import caseAcceptance from "./components/caseAcceptance.vue";
import selectMediator from './components/selectMediator.vue' import selectMediator from "./components/selectMediator.vue";
import confirmMediator from './components/confirmMediator.vue' import confirmMediator from "./components/confirmMediator.vue";
import departmentMediator from './components/departmentMediator.vue' import departmentMediator from "./components/departmentMediator.vue";
import timeConfirm from './components/timeConfirm.vue' import timeConfirm from "./components/timeConfirm.vue";
import mediation from './components/mediation.vue' import mediation from "./components/mediation.vue";
import confirmMediation from './components/confirmMediation.vue' import confirmMediation from "./components/confirmMediation.vue";
import caseFilingDetailsPage from './components/caseFilingDetailsPage.vue' import caseFilingDetailsPage from "./components/caseFilingDetailsPage.vue";
export default { export default {
name: "caseList", name: "caseList",
dicts: ["case_flow_node"], dicts: ["case_flow_node"],
@@ -176,14 +196,14 @@ export default {
payDialog, payDialog,
paymentdetailsDialog, paymentdetailsDialog,
caseAcceptance, caseAcceptance,
selectMediator,//调解员弹窗 selectMediator, //调解员弹窗
confirmMediator, confirmMediator,
departmentMediator, departmentMediator,
timeConfirm, timeConfirm,
mediation, mediation,
confirmMediation, confirmMediation,
caseFilingDetailsPage, caseFilingDetailsPage,
respondentPay respondentPay,
}, },
data() { data() {
return { return {
@@ -200,143 +220,155 @@ export default {
// 校验表单 // 校验表单
rules: {}, rules: {},
dataList: [], dataList: [],
addVisable: false,//新增弹窗 addVisable: false, //新增弹窗
openPay: false, //缴费弹框 openPay: false, //缴费弹框
openResPay:false,//被申请人缴费弹窗 openResPay: false, //被申请人缴费弹窗
formPayDetail: {}, formPayDetail: {},
formResPayDetail:{}, formResPayDetail: {},
payId: null, payId: null,
resPayId:null, resPayId: null,
payForm: {}, payForm: {},
resPayForm:{}, resPayForm: {},
openCompressedPackages: false,//压缩包导入弹窗 openCompressedPackages: false, //压缩包导入弹窗
processVisable: false,//案件详情 processVisable: false, //案件详情
showcaseLog: false,//案件日志 showcaseLog: false, //案件日志
openDialog: false,//确认缴费和缴费详情 openDialog: false, //确认缴费和缴费详情
detailform: {}, //缴费详情数据 detailform: {}, //缴费详情数据
evidenceVisable: false,//证据修改弹窗 evidenceVisable: false, //证据修改弹窗
mediationVisable:false,//待调解弹窗 mediationVisable: false, //待调解弹窗
mediationData:{}, mediationData: {},
payTitle:"",//缴费标题 payTitle: "", //缴费标题
resPayTitle:'',//被申请人缴费标题 resPayTitle: "", //被申请人缴费标题
paymentConfirma:{},//缴费确认 paymentConfirma: {}, //缴费确认
showAcceptance:false,//案件受理弹框 showAcceptance: false, //案件受理弹框
caseAcceptanceData:{},//案件受理数据 caseAcceptanceData: {}, //案件受理数据
mediatorVisable:false,//选择调解员弹窗 mediatorVisable: false, //选择调解员弹窗
timeVisable:false,//预约时间弹窗 timeVisable: false, //预约时间弹窗
confirmVisable:false,//确认时间/调解员 confirmVisable: false, //确认时间/调解员
caseFlowNumber:{},//案件流程数据 caseFlowNumber: {}, //案件流程数据
caselogDataArr:[],//案件日志数据 caselogDataArr: [], //案件日志数据
flagLoading: true, //案件日志弹框loading flagLoading: true, //案件日志弹框loading
confirmTionVisable:false,//确认调解书弹窗 confirmTionVisable: false, //确认调解书弹窗
addModifyData:null,//新增修改传的参数 addModifyData: null, //新增修改传的参数
showarchiveDetails:false,//归档详情弹窗 showarchiveDetails: false, //归档详情弹窗
detailsAwardNum:{}, detailsAwardNum: {},
flagLoadingS: true, flagLoadingS: true,
formPayDetailAffiliate:{}, formPayDetailAffiliate: {},
formResPay:{}, formResPay: {},
mediatorData:{}, mediatorData: {},
flag: null, flag: null,
caseData: {}, caseData: {},
evidenceData: {}, evidenceData: {},
caseDisabled: false, caseDisabled: false,
caseTime: '', caseTime: "",
deptList: [], deptList: [],
payTitle: '', payTitle: "",
tabFlag: false, tabFlag: false,
confirmData: {}, confirmData: {},
departmentVisable: false, departmentVisable: false,
departmentData: {}, departmentData: {},
timeConfirmVisable: false, timeConfirmVisable: false,
timeConfirmData: {}, timeConfirmData: {},
confirmTionData:{}, confirmTionData: {},
buttonList: [], buttonList: [],
caseStausArr: [],//案件状态 caseStausArr: [], //案件状态
isapplicant: true, //判断角色申请人或非申请人 isapplicant: true, //判断角色申请人或非申请人
caseFilingData:{} caseFilingData: {},
}; };
}, },
created() { created() {
// this.getList(this.queryParams);
this.listDeptFn();
// this.getButtonList()
queryCaseFlowInfo({
pageNum: 1,
pageSize: 100000,
}).then((res) => {
res.rows.forEach((item) => {
if (item.id != 17) {
this.buttonList.push(item);
}
this.caseStausArr.push(item);
});
// if (this.$route.query.caseFlowId) {
// let querydata = Number(this.$route.query.caseFlowId);
// if (querydata > 0) {
// this.$set(this.queryParams, 'caseFlowId', querydata)
// }
// }
// this.getList(this.queryParams);
});
if (this.$route.query.caseFlowId) {
let querydata = Number(this.$route.query.caseFlowId);
if (querydata > 0) {
this.$set(this.queryParams, 'caseFlowId', querydata)
}
}
this.getList(this.queryParams); this.getList(this.queryParams);
this.listDeptFn()
this.getButtonList()
}, },
methods: { methods: {
/**所有按钮事件 */ /**所有按钮事件 */
caseClick(val,type){ caseClick(val, type) {
if(type == 1){ if (type == 1) {
// 提交案件 // 提交案件
this.onsubmitRow(val); this.onsubmitRow(val);
}else if(type == 2){ } else if (type == 2) {
// 缴费 // 缴费
this.payStatus(val); this.payStatus(val);
}else if(type == 3 || type == 45){ } else if (type == 3 || type == 45) {
// 确认缴费 // 确认缴费
this.paymentconfirmationRow(val,type); this.paymentconfirmationRow(val, type);
}else if(type == 4){ } else if (type == 4) {
// 受理分配 // 受理分配
this.caseAccep(val); this.caseAccep(val);
}else if(type == 5){ } else if (type == 5) {
// 选择调解员 // 选择调解员
this.selectMediator(val); this.selectMediator(val);
}else if(type == 6){ } else if (type == 6) {
// 核实调解员 // 核实调解员
this.secretaryConfirm(val); this.secretaryConfirm(val);
}else if(type == 7){ } else if (type == 7) {
// 确认调解员 // 确认调解员
this.department(val); this.department(val);
}else if(type == 8){ } else if (type == 8) {
// 确定调解时间 // 确定调解时间
this.timeConfirm(val); this.timeConfirm(val);
}else if(type == 9){ } else if (type == 9) {
// 调解 // 调解
this.mediationClick(val) this.mediationClick(val);
}else if(type == 10){ } else if (type == 10) {
// 确认调解书 // 确认调解书
this.confirmMediation(val) this.confirmMediation(val);
}else if(type == 11){ } else if (type == 11) {
// 签名 // 签名
this.msCaseSignUrlApplyPCFn(val) this.msCaseSignUrlApplyPCFn(val);
}else if(type == 12){ } else if (type == 12) {
// 用印申请 // 用印申请
this.consultantApplica(val) this.consultantApplica(val);
}else if(type == 13){ } else if (type == 13) {
// 用印 // 用印
this.departmentApplica(val) this.departmentApplica(val);
}else if(type == 14){ } else if (type == 14) {
// 归档 // 归档
this.caseFiling(val); this.caseFiling(val);
}else if(type == 15){ } else if (type == 15) {
// 申请人签收 // 申请人签收
this.signMediation(val) this.signMediation(val);
}else if(type == 16){ } else if (type == 16) {
// 被申请人签收 // 被申请人签收
this.receivedMediation(val) this.receivedMediation(val);
}else if(type == 17){ } else if (type == 17) {
//结束 //结束
}else if(type == 44){ } else if (type == 44) {
// 被申请人缴费 // 被申请人缴费
this.resPayStatus(val) this.resPayStatus(val);
} }
}, },
/**查询按钮列表 */ /**查询按钮列表 */
getButtonList() { getButtonList() { },
queryCaseFlowInfo({
pageNum: 1,
pageSize: 100000
}).then(res => {
console.log(res)
res.rows.forEach(item => {
if(item.id !=17){
this.buttonList.push(item)
}
this.caseStausArr.push(item)
});
})
},
/** 新增案件 */ /** 新增案件 */
addCase() { addCase() {
this.addModifyData =1; this.addModifyData = 1;
this.addVisable = true; this.addVisable = true;
this.caseData = {}; this.caseData = {};
this.caseDisabled = false; this.caseDisabled = false;
@@ -344,7 +376,7 @@ export default {
}, },
/** 查看详情 */ /** 查看详情 */
checkDetail(val) { checkDetail(val) {
this.addModifyData =2; this.addModifyData = 2;
this.addVisable = true; this.addVisable = true;
this.caseData = val; this.caseData = val;
this.caseDisabled = true; this.caseDisabled = true;
@@ -352,10 +384,10 @@ export default {
}, },
/** 修改案件 */ /** 修改案件 */
eidtNodeprocess(row) { eidtNodeprocess(row) {
this.addModifyData = 3 this.addModifyData = 3;
this.addVisable = true; this.addVisable = true;
this.caseData = row; this.caseData = row;
this.$set(this.caseData,'flag',2) this.$set(this.caseData, "flag", 2);
this.caseDisabled = false; this.caseDisabled = false;
this.tabFlag = false; this.tabFlag = false;
}, },
@@ -402,10 +434,10 @@ export default {
// this.$modal.msgSuccess("立案申请成功"); // this.$modal.msgSuccess("立案申请成功");
// }) // })
// .catch(() => { }); // .catch(() => { });
msCaseSignUrlApplyPC({ caseId: row.id }).then(res=>{ msCaseSignUrlApplyPC({ caseId: row.id }).then((res) => {
console.log(res,"PPPPPPPPPPPPPPPPPPPP"); console.log(res, "PPPPPPPPPPPPPPPPPPPP");
window.open(res.data.sealUrl); window.open(res.data.sealUrl);
}) });
}, },
/** 选择调解员 */ /** 选择调解员 */
selectMediator(val) { selectMediator(val) {
@@ -417,12 +449,12 @@ export default {
this.timeVisable = true; this.timeVisable = true;
}, },
/** 调解 */ /** 调解 */
mediationClick(val){ mediationClick(val) {
this.mediationVisable = true; this.mediationVisable = true;
this.mediationData = val; this.mediationData = val;
}, },
/** 确认调解书 */ /** 确认调解书 */
confirmMediation(val){ confirmMediation(val) {
this.confirmTionVisable = true; this.confirmTionVisable = true;
this.confirmTionData = val; this.confirmTionData = val;
}, },
@@ -460,23 +492,22 @@ export default {
/** 时间改变处理 */ /** 时间改变处理 */
caseTimeChange() { caseTimeChange() {
if (this.caseTime) { if (this.caseTime) {
this.queryParams.startTime = moment( this.queryParams.startTime = moment(this.caseTime[0]).format(
this.caseTime[0] "YYYY-MM-DD HH:mm:ss"
).format("YYYY-MM-DD HH:mm:ss"); );
this.queryParams.endTime = moment( this.queryParams.endTime = moment(this.caseTime[1]).format(
this.caseTime[1] "YYYY-MM-DD HH:mm:ss"
).format("YYYY-MM-DD HH:mm:ss"); );
} else { } else {
this.queryParams.startTime = ''; this.queryParams.startTime = "";
this.queryParams.endTime = ''; this.queryParams.endTime = "";
} }
}, },
/** 获取所有部门 */ /** 获取所有部门 */
listDeptFn() { listDeptFn() {
listDeptApplied().then(res => { listDeptApplied().then((res) => {
this.deptList = res.data; this.deptList = res.data;
}) });
}, },
/** 修改证据 */ /** 修改证据 */
evidenceUpload(row) { evidenceUpload(row) {
@@ -512,14 +543,14 @@ export default {
this.timeVisable = false; this.timeVisable = false;
}, },
/**取消调解 */ /**取消调解 */
cancelMediation(){ cancelMediation() {
this.timeConfirmVisable = false; this.timeConfirmVisable = false;
}, },
/** 取消确认调解弹窗 */ /** 取消确认调解弹窗 */
cancelConfirmTion(){ cancelConfirmTion() {
this.confirmTionVisable = false; this.confirmTionVisable = false;
}, },
cancelMediation(){ cancelMediation() {
this.mediationVisable = false; this.mediationVisable = false;
}, },
cancelConfirm() { cancelConfirm() {
@@ -548,162 +579,188 @@ export default {
this.dataList = response.rows; this.dataList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}) });
}, },
// 法律顾问用印申请 // 法律顾问用印申请
consultantApplica(row) { consultantApplica(row) {
let paramsValue = { let paramsValue = {
caseId: row.id, caseId: row.id,
batchNumber: "", batchNumber: "",
caseFlowId: row.caseFlowId caseFlowId: row.caseFlowId,
} };
this.$modal.confirm("你确定要用印申请吗?").then((res) => { this.$modal
sealApply(paramsValue).then(res => { .confirm("你确定要用印申请吗?")
.then((res) => {
sealApply(paramsValue).then((res) => {
this.getList(this.queryParams); this.getList(this.queryParams);
this.$modal.msgSuccess("用印申请成功"); this.$modal.msgSuccess("用印申请成功");
});
}) })
}).catch(() => { .catch(() => { });
})
}, },
// 部门长用印申请 // 部门长用印申请
departmentApplica(row) { departmentApplica(row) {
this.$modal.confirm("你确定要用印确认吗?").then((res) => { this.$modal
.confirm("你确定要用印确认吗?")
.then((res) => {
let paramsValue = { let paramsValue = {
caseId: row.id caseId: row.id,
} };
selectSealUrl(paramsValue).then(res => { selectSealUrl(paramsValue).then((res) => {
window.open(res.data.sealUrl) window.open(res.data.sealUrl);
this.$modal.confirm("你确认用印了吗?").then((res) => { this.$modal
.confirm("你确认用印了吗?")
.then((res) => {
this.getList(this.queryParams); this.getList(this.queryParams);
}).catch(() => {
}) })
.catch(() => { });
});
}) })
}).catch(() => { .catch(() => { });
})
}, },
// 案件受理 // 案件受理
caseAccep(row) { caseAccep(row) {
this.caseAcceptanceData = row this.caseAcceptanceData = row;
this.showAcceptance = true this.showAcceptance = true;
}, },
cancelAcceptance() { cancelAcceptance() {
this.showAcceptance = false this.showAcceptance = false;
}, },
// 缴费确认 // 缴费确认
paymentconfirmationRow(row,type) { paymentconfirmationRow(row, type) {
this.paymentConfirma = row this.paymentConfirma = row;
console.log(this.paymentConfirma) console.log(this.paymentConfirma);
this.paymentDetails({ this.paymentDetails({
id: row.id id: row.id,
}) });
this.openDialog = true this.openDialog = true;
this.payTitle = "缴费确认" this.payTitle = "缴费确认";
this.flag = 0; this.flag = 0;
this.detailform = {} this.detailform = {};
if (type == 3) { if (type == 3) {
// 申请人 // 申请人
this.isapplicant = true this.isapplicant = true;
}else { } else {
this.isapplicant = false this.isapplicant = false;
} }
}, },
cancelpaymentdetails() { cancelpaymentdetails() {
this.openDialog = false this.openDialog = false;
}, },
// 查看缴费确认 // 查看缴费确认
viewpaymentformRow(row) { viewpaymentformRow(row) {
this.paymentDetails({ this.paymentDetails({
id: row.id id: row.id,
}) });
this.payTitle = "缴费单详情" this.payTitle = "缴费单详情";
this.flag = 1; this.flag = 1;
this.detailform = {} this.detailform = {};
this.openDialog = true this.openDialog = true;
}, },
// 缴费详情 // 缴费详情
paymentDetails(val) { paymentDetails(val) {
selectPaymentDetail(val).then(res => { selectPaymentDetail(val).then((res) => {
this.detailform = res.data; this.detailform = res.data;
}) });
}, },
//案件流程 //案件流程
caseFlow(row) { caseFlow(row) {
this.caseFlowNumber = row this.caseFlowNumber = row;
this.processVisable = true this.processVisable = true;
}, },
cancelViewProcess() { cancelViewProcess() {
this.processVisable = false this.processVisable = false;
}, },
//案件日志 //案件日志
caseLog(row) { caseLog(row) {
this.caseLogNumber = row this.caseLogNumber = row;
this.showcaseLog = true this.showcaseLog = true;
this.flagLoading = true; this.flagLoading = true;
listCaseLogRecord({caseId:row.id}).then(res=>{ listCaseLogRecord({ caseId: row.id }).then((res) => {
this.caselogDataArr = res.data this.caselogDataArr = res.data;
this.flagLoading = false; this.flagLoading = false;
}) });
}, },
cancelcaseLog() { cancelcaseLog() {
this.showcaseLog = false this.showcaseLog = false;
}, },
// 案件送达 // 案件送达
caseFiling(row) { caseFiling(row) {
console.log(row.id) console.log(row.id);
let paramValues = { let paramValues = {
ids:[row.id] ids: [row.id],
};
this.$confirm("你确定要案件送达吗?", "提示", {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: () => { },
beforeClose: (action, ctx, close) => {
if (action !== 'confirm') {
close();
return;
} }
this.$modal.confirm("你确定要案件送达吗?").then((res) => { ctx.confirmButtonLoading = true;
msCaseFile(paramValues).then(res=>{ msCaseFile(paramValues).then((res) => {
this.$modal.msgSuccess("案件送达成功"); this.$modal.msgSuccess("案件送达成功");
close();
this.getList(this.queryParams); this.getList(this.queryParams);
}).finally(() => {
ctx.confirmButtonLoading = false;
}) })
}).catch(() => { }
}).finally(() => { })
}) // .then((res) => {
// msCaseFile(paramValues).then((res) => {
// this.$modal.msgSuccess("案件送达成功");
// this.getList(this.queryParams);
// });
// })
// .catch(() => { });
}, },
//申请人签收调解书 //申请人签收调解书
signMediation(row) { signMediation(row) {
this.$modal.confirm("你确定要签收调解书吗?").then((res) => { this.$modal
this.signingMediationAgreement({caseId:row.id,isSignApply:1}) .confirm("你确定要签收调解书吗?")
}).catch(() => { .then((res) => {
this.signingMediationAgreement({ caseId: row.id, isSignApply: 1 });
}) })
.catch(() => { });
}, },
//被申请人签收调解书 //被申请人签收调解书
receivedMediation(row) { receivedMediation(row) {
this.$modal.confirm("你确定要签收调解书吗?").then((res) => { this.$modal
this.signingMediationAgreement({caseId:row.id,isSignRespon:1}) .confirm("你确定要签收调解书吗?")
}).catch(() => { .then((res) => {
this.signingMediationAgreement({ caseId: row.id, isSignRespon: 1 });
}) })
.catch(() => { });
}, },
// 申请人和被申请人签收调解书接口 // 申请人和被申请人签收调解书接口
signingMediationAgreement(val){ signingMediationAgreement(val) {
console.log(val) console.log(val);
msCaseSign(val).then(res=>{ msCaseSign(val).then((res) => {
this.$modal.msgSuccess("签收成功"); this.$modal.msgSuccess("签收成功");
this.getList(this.queryParams); this.getList(this.queryParams);
}) });
}, },
//归档详情 //归档详情
caseFilingDetails(val){ caseFilingDetails(val) {
this.showarchiveDetails = true; this.showarchiveDetails = true;
this.caseFilingData = val; this.caseFilingData = val;
let vals = {id:val.id} let vals = { id: val.id };
caseApplicationSelectById(vals).then(res=>{ caseApplicationSelectById(vals).then((res) => {
this.detailsAwardNum = res.data res.data.affiliate.respondentSex = Number(
console.log(this.detailsAwardNum) res.data.affiliate.respondentSex
this.flagLoadingS = false );
}) this.detailsAwardNum = res.data;
console.log(this.detailsAwardNum);
this.flagLoadingS = false;
});
},
cancelDetail() {
this.showarchiveDetails = false;
}, },
cancelDetail(){
this.showarchiveDetails = false
}
}, },
}; };
</script> </script>
+249 -56
View File
@@ -7,14 +7,23 @@
<el-tab-pane label="证据清单" name="second" v-if="tabFlag"> <el-tab-pane label="证据清单" name="second" v-if="tabFlag">
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-form v-if="activeName == 'first'" :disabled="caseDisabled" :model="formData" ref="ruleForm" label-width="130px" <el-form v-if="activeName == 'first'" :disabled="caseDisabled" :model="formData" ref="ruleForm"
class="demo-ruleForm"> label-width="130px" class="demo-ruleForm">
<el-row> <el-row>
<div style="display: inline-flex"> <div style="display: inline-flex">
<div class="infoIcon"></div> <div class="infoIcon"></div>
<div class="caseInfo">案件信息:</div> <div class="caseInfo">案件信息:</div>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<el-col :span="24">
<el-form-item label="压缩包导入">
<el-upload class="upload-demo" :action="zipUrl()" :before-remove="beforeRemoveZip" multiple accept='.zip'
:limit="1" :on-exceed="handleExceedZip" :on-success='successZip' :file-list="fileListZip">
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传zip压缩包</div>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="申请人调解请求" prop="arbitratClaims" :rules="[ <el-form-item label="申请人调解请求" prop="arbitratClaims" :rules="[
{ {
@@ -75,7 +84,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> --> </el-col> -->
<el-col :span="12"> <el-col :span="12" v-if="buttonFlag">
<el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence"> <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
<el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf" <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
:action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview" :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
@@ -88,7 +97,7 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="modelFlag"> <el-col :span="24" v-if="modelFlag && showEvidence">
<el-form-item label="证据:"> <el-form-item label="证据:">
<div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2"> <div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)"> <div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
@@ -130,6 +139,13 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<div style="display: inline-flex">
<div class="infoIcon"></div>
<div class="caseInfo">申请人</div>
</div>
<el-divider></el-divider>
</el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1"> <el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
<el-form-item label="申请机构名称" prop="affiliate.applicationName" :rules="[ <el-form-item label="申请机构名称" prop="affiliate.applicationName" :rules="[
{ {
@@ -153,7 +169,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1"> <el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
<el-form-item label="统一社会信用代码" prop="affiliate.code" :rules="[ <el-form-item label-width="140px" label="统一社会信用代码" prop="affiliate.code" :rules="[
{ {
required: true, required: true,
message: '统一社会信用代码不能为空', message: '统一社会信用代码不能为空',
@@ -163,7 +179,39 @@
<el-input v-model="formData.affiliate.code" placeholder="请输入统一社会信用代码" /> <el-input v-model="formData.affiliate.code" placeholder="请输入统一社会信用代码" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item prop="affiliate.nationality" label="国籍" :rules="[
{
required: true,
message: '国籍不能为空',
trigger: 'blur',
},
]">
<el-select v-model="formData.affiliate.nationality" placeholder="请选择国籍" auto-complete="off"
style="width: 100%;" :disabled="formData.affiliate.organizeFlag != 1">
<el-option v-for="item in nationalityList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0"> <el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
<el-form-item prop="affiliate.idType" label="证件类型" :rules="[
{
required: true,
message: '证件类型不能为空',
trigger: 'blur',
},
]">
<el-select v-model="formData.affiliate.idType" placeholder="证件类型" auto-complete="off" style="width: 100%;"
disabled>
<el-option v-for="item in idTypeList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0 && formData.affiliate.idType == 0">
<el-form-item label="申请人身份证号码" prop="affiliate.code" :rules="[ <el-form-item label="申请人身份证号码" prop="affiliate.code" :rules="[
{ {
required: true, required: true,
@@ -180,6 +228,17 @@
<el-input v-model="formData.affiliate.code" disabled placeholder="请输入申请人的身份证号" /> <el-input v-model="formData.affiliate.code" disabled placeholder="请输入申请人的身份证号" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0 && formData.affiliate.idType == 1">
<el-form-item label="申请人护照号码" prop="affiliate.code" :rules="[
{
required: true,
message: '申请人护照号码不能为空',
trigger: 'blur',
},
]">
<el-input v-model="formData.affiliate.code" disabled placeholder="请输入申请人的申请人护照号" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0"> <el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
<el-form-item label="申请人邮箱" prop="affiliate.applicationEmail" :rules="[ <el-form-item label="申请人邮箱" prop="affiliate.applicationEmail" :rules="[
{ {
@@ -262,6 +321,13 @@
<el-input v-model="formData.affiliate.applicantAddress" placeholder="请输入申请人联系地址" /> <el-input v-model="formData.affiliate.applicantAddress" placeholder="请输入申请人联系地址" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<div style="display: inline-flex">
<div class="infoIcon"></div>
<div class="caseInfo">代理人</div>
</div>
<el-divider></el-divider>
</el-col>
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1"> <el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
<el-form-item label="代理人联系电话" prop="affiliate.contactTelphoneAgent" :rules="[ <el-form-item label="代理人联系电话" prop="affiliate.contactTelphoneAgent" :rules="[
{ {
@@ -328,6 +394,13 @@
<el-input v-model="formData.affiliate.agentEmail" placeholder="请输入代理人邮箱" /> <el-input v-model="formData.affiliate.agentEmail" placeholder="请输入代理人邮箱" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<div style="display: inline-flex">
<div class="infoIcon"></div>
<div class="caseInfo">被申请人</div>
</div>
<el-divider></el-divider>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="被申请人姓名" prop="affiliate.respondentName" :rules="[ <el-form-item label="被申请人姓名" prop="affiliate.respondentName" :rules="[
{ {
@@ -340,7 +413,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="被申请人联系电话" prop="affiliate.respondentPhone" :rules="[ <el-form-item label-width="140px" label="被申请人联系电话" prop="affiliate.respondentPhone" :rules="[
{ {
required: true, required: true,
message: '被申请人联系电话不能为空', message: '被申请人联系电话不能为空',
@@ -356,7 +429,36 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="被申请人身份证号" prop="affiliate.respondentIdentityNum" :rules="[ <el-form-item label-width="150px" label="被申请人申请人住所" prop="affiliate.respondentHome" :rules="[
{
required: true,
message: '被申请人申请人住所不能为空',
trigger: 'blur',
},
]">
<el-input v-model="formData.affiliate.respondentHome" placeholder="请输入被申请人申请人住所" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人邮箱" prop="affiliate.respondentEmail" :rules="[
{
required: true,
message: '被申请人邮箱不能为空',
trigger: 'blur',
},
{
pattern:
/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
message: '请输入正确的邮箱地址',
trigger: 'blur',
},
]">
<el-input v-model="formData.affiliate.respondentEmail" placeholder="请输入被申请人邮箱" />
</el-form-item>
</el-col>
</el-row>
<el-col :span="12">
<el-form-item label-width="140px" label="被申请人身份证号" prop="affiliate.respondentIdentityNum" :rules="[
{ {
required: true, required: true,
message: '被申请人身份证号不能为空', message: '被申请人身份证号不能为空',
@@ -369,7 +471,14 @@
trigger: 'blur', trigger: 'blur',
}, },
]"> ]">
<el-input v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" placeholder="请输入被申请人身份证号" /> <el-input v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur"
placeholder="请输入被申请人身份证号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label-width="140px" label="被申请人出生年月:" prop="affiliate.respondentBirth">
<el-date-picker disabled v-model="formData.affiliate.respondentBirth" type="date" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -385,41 +494,6 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="被申请人出生年月日:" prop="affiliate.respondentBirth">
<el-date-picker disabled v-model="formData.affiliate.respondentBirth" type="date" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人申请人住所" prop="affiliate.respondentHome" :rules="[
{
required: true,
message: '被申请人申请人住所不能为空',
trigger: 'blur',
},
]">
<el-input v-model="formData.affiliate.respondentHome" placeholder="请输入被申请人申请人住所" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人邮箱" prop="affiliate.respondentEmail" :rules="[
{
required: true,
message: '代理人邮箱不能为空',
trigger: 'blur',
},
{
pattern:
/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
message: '请输入正确的邮箱地址',
trigger: 'blur',
},
]">
<el-input v-model="formData.affiliate.respondentEmail" placeholder="请输入被申请人邮箱" />
</el-form-item>
</el-col>
</el-row>
<el-col :span="24" v-if="modelFlag"> <el-col :span="24" v-if="modelFlag">
<el-form-item v-for="item in formData.columnValueList" :label="item.name" :key="item.id"> <el-form-item v-for="item in formData.columnValueList" :label="item.name" :key="item.id">
<el-input type="textarea" v-model="item.value"></el-input> <el-input type="textarea" v-model="item.value"></el-input>
@@ -453,6 +527,7 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import {
caseApplicationInsert, caseApplicationInsert,
@@ -490,6 +565,7 @@ export default {
modelFlag: false, modelFlag: false,
fileURL: window.location.origin + "/API", fileURL: window.location.origin + "/API",
fileList: [], fileList: [],
fileListZip: [],
filedata: { filedata: {
annexType: 2, annexType: 2,
}, },
@@ -501,7 +577,29 @@ export default {
buttonFlag: true, buttonFlag: true,
getUserInfoList: {}, getUserInfoList: {},
applicationFlag: null, applicationFlag: null,
showmediate: false showmediate: false,
showEvidence: false,//是否显示证据
formZipData: {},
nationalityList: [
{
value: '国内',
id: 0
},
{
value: '国外',
id: 1
}
],
idTypeList: [
{
value: '身份证',
id: 0
},
{
value: '护照',
id: 1
}
]
}; };
}, },
watch: { watch: {
@@ -511,14 +609,6 @@ export default {
this.getUserInfoFn(); this.getUserInfoFn();
this.modelFlag = false; this.modelFlag = false;
this.buttonFlag = true; this.buttonFlag = true;
this.formData = {
affiliate: {
organizeFlag: 0,
respondentSex: 0,
},
columnValueList: [],
caseAttachList: [],
};
} else if (val == 3) { } else if (val == 3) {
this.title = "修改案件"; this.title = "修改案件";
this.modelFlag = true; this.modelFlag = true;
@@ -531,6 +621,22 @@ export default {
}, },
addVisable(val) { addVisable(val) {
if (val) { if (val) {
if (this.addModifyData == 1) {
this.formData = {
affiliate: {
organizeFlag: 0,
respondentSex: 0,
},
columnValueList: [],
caseAttachList: [],
};
this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
this.$set(this.formData.affiliate, "idType", this.getUserInfoList.idType);
this.$set(this.formData.affiliate, "nationality", this.getUserInfoList.nationality);
}
this.activeName = "first"; this.activeName = "first";
this.showmediate = false; this.showmediate = false;
this.getTemplateFn(); this.getTemplateFn();
@@ -558,20 +664,24 @@ export default {
this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard); this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email); this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber); this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
this.$set(this.formData.affiliate, "idType", this.getUserInfoList.idType);
this.$set(this.formData.affiliate, "nationality", this.getUserInfoList.nationality);
}) })
}, },
/** 根据案件id获取对应信息 */ /** 根据案件id获取对应信息 */
caseApplicationSelectByIdFn(data) { caseApplicationSelectByIdFn(data) {
this.applicantEvidence = []; this.applicantEvidence = [];
this.respondentEvidence = []; this.respondentEvidence = [];
this.showEvidence = false;
caseApplicationSelectById({ id: data }).then((res) => { caseApplicationSelectById({ id: data }).then((res) => {
res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex) res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
this.formData = res.data; this.formData = res.data;
this.formData.caseAttachList.forEach((item) => { this.formData.caseAttachList.forEach((item) => {
if (item.annexType == 2) { if (item.annexType == 2) {
this.applicantEvidence.push(item); this.applicantEvidence.push(item);
this.showEvidence = true
} else if (item.annexType == 6) { } else if (item.annexType == 6) {
this.respondentEvidence.push(item); // this.respondentEvidence.push(item);
} else if (item.annexType == 7) { } else if (item.annexType == 7) {
this.showmediate = true this.showmediate = true
} }
@@ -612,6 +722,9 @@ export default {
UploadUrl() { UploadUrl() {
return window.location.origin + "/API/common/upload"; return window.location.origin + "/API/common/upload";
}, },
zipUrl() {
return window.location.origin + "/API/caseApplication/userIdentify";
},
/**文件上传成功*/ /**文件上传成功*/
handlSuccess(res, file) { handlSuccess(res, file) {
this.formData.caseAttachList.push({ this.formData.caseAttachList.push({
@@ -630,9 +743,41 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`); return this.$confirm(`确定移除 ${file.name}?`);
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
this.caseAttachListArr = this.caseAttachListArr.filter( let newcaseAttachList = this.formData.caseAttachList.filter(item =>
(item) => item.annexId != file.annexId item.annexId !== file.response.annexId
); )
this.formData.caseAttachList = newcaseAttachList
},
handleExceedZip(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件`);
},
beforeRemoveZip(file, fileList) {
return this.$confirm(`确定移除 ${file.name}?`);
},
successZip(res) {
this.formZipData = res.data;
// this.formData = res.data;
this.$set(this.formData.affiliate, 'organizeFlag', 0);
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
// this.$set(this.formData.affiliate,'applicationName',this.formZipData.affiliate.applicationName);
// this.$set(this.formData.affiliate,'code',this.formZipData.affiliate.code);
// this.$set(this.formData.affiliate,'applicationEmail',this.formZipData.affiliate.applicationEmail);
// this.$set(this.formData.affiliate,'applicationPhone',this.formZipData.affiliate.applicationPhone);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate.respondentEmail);
this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate.compLegalPerson);
// this.$set(this.formData.affiliate,'respondentSex',Number(res.data.affiliate.respondentSex));
}, },
handlePreview(file) { handlePreview(file) {
window.open( window.open(
@@ -658,18 +803,62 @@ export default {
this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard); this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email); this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber); this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
if (this.formZipData.affiliate) {
this.$set(this.formData.affiliate, 'organizeFlag', 0);
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
// this.$set(this.formData.affiliate,'applicationName',this.formZipData.affiliate.applicationName);
// this.$set(this.formData.affiliate,'code',this.formZipData.affiliate.code);
// this.$set(this.formData.affiliate,'applicationEmail',this.formZipData.affiliate.applicationEmail);
// this.$set(this.formData.affiliate,'applicationPhone',this.formZipData.affiliate.applicationPhone);
this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate.applicantHome);
this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate.applicantAddress);
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData.affiliate.contactTelphoneAgent);
this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate.nameAgent);
this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate.respondentEmail);
} else {
this.formData.affiliate.nameAgent = null; this.formData.affiliate.nameAgent = null;
this.formData.affiliate.agentEmail = null; this.formData.affiliate.agentEmail = null;
this.formData.affiliate.contactTelphoneAgent = null; this.formData.affiliate.contactTelphoneAgent = null;
}
} else if (val == 1) { } else if (val == 1) {
this.$set(this.formData.affiliate, "nameAgent", this.getUserInfoList.nickName); this.$set(this.formData.affiliate, "nameAgent", this.getUserInfoList.nickName);
this.$set(this.formData.affiliate, "agentEmail", this.getUserInfoList.email); this.$set(this.formData.affiliate, "agentEmail", this.getUserInfoList.email);
this.$set(this.formData.affiliate, "contactTelphoneAgent", this.getUserInfoList.phonenumber); this.$set(this.formData.affiliate, "contactTelphoneAgent", this.getUserInfoList.phonenumber);
if (this.formZipData.affiliate) {
this.$set(this.formData.affiliate, 'organizeFlag', 1);
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
this.$set(this.formData, 'facts', this.formZipData.facts);
this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate.applicationName);
this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate.applicationEmail);
this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate.applicationPhone);
// this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate.applicantHome);
// this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate.applicantAddress);
// this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData.affiliate.contactTelphoneAgent);
// this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate.nameAgent);
// this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate.agentEmail);
this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate.respondentName);
this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate.respondentPhone);
this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData.affiliate.respondentIdentityNum);
this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData.affiliate.respondentSex));
this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate.respondentBirth);
this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate.respondentHome);
this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate.respondentEmail);
} else {
this.formData.affiliate.applicationName = null; this.formData.affiliate.applicationName = null;
this.formData.affiliate.code = null; this.formData.affiliate.code = null;
this.formData.affiliate.applicationEmail = null; this.formData.affiliate.applicationEmail = null;
this.formData.affiliate.applicationPhone = null; this.formData.affiliate.applicationPhone = null;
} }
}
this.$refs["ruleForm"].clearValidate() this.$refs["ruleForm"].clearValidate()
}, },
cancel() { cancel() {
@@ -710,4 +899,8 @@ export default {
height: 700px !important; height: 700px !important;
overflow: auto !important; overflow: auto !important;
} }
::v-deep .el-input--medium .el-input__inner{
height: 40px;
line-height: 40px;
}
</style> </style>
@@ -63,7 +63,13 @@ export default {
watch: { watch: {
showAcceptance(val) { showAcceptance(val) {
if (val) { if (val) {
console.log(this.caseAcceptanceData) console.log(this.caseAcceptanceData);
this.courtReviewform = {
mediationMethod: 2,
paperFlag: 0,
arbitrateConfirm: 0,
agreeFlag: 1
}
} }
}, },
}, },
@@ -6,6 +6,7 @@
</div> </div>
<div v-else> <div v-else>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="案件信息" name="five"></el-tab-pane>
<el-tab-pane label="申请人案件证据资料" name="first"></el-tab-pane> <el-tab-pane label="申请人案件证据资料" name="first"></el-tab-pane>
<!-- <el-tab-pane label="被申请人案件证据资料" name="second"></el-tab-pane> --> <!-- <el-tab-pane label="被申请人案件证据资料" name="second"></el-tab-pane> -->
<el-tab-pane label="调解书" name="third"></el-tab-pane> <el-tab-pane label="调解书" name="third"></el-tab-pane>
@@ -43,6 +44,204 @@
</div> </div>
<el-empty v-if="isNoData(detailsAwardNum.caseAttachList,6) == 0" description="暂无数据"></el-empty> <el-empty v-if="isNoData(detailsAwardNum.caseAttachList,6) == 0" description="暂无数据"></el-empty>
</div> </div>
<div v-show="activeName=='five'">
<el-form :disabled="true" :model="detailsAwardNum" label-width="130px"
class="demo-ruleForm">
<el-row>
<div style="display: inline-flex">
<div class="infoIcon"></div>
<div class="caseInfo">案件信息:</div>
</div>
<el-divider></el-divider>
<el-col :span="24">
<el-form-item label="申请人调解请求">
<el-input v-model="detailsAwardNum.arbitratClaims" placeholder="请输入申请人调解诉求" type="textarea"
:autosize="{ minRows: 4, maxRows: 8 }" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="事实和理由">
<el-input v-model="detailsAwardNum.facts" placeholder="请输入事实和理由" type="textarea"
:autosize="{ minRows: 4, maxRows: 8 }" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
<el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
:action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
:before-remove="beforeRemove" :data="filedata" :headers="headers" multiple :limit="50"
:on-exceed="handleExceed" :file-list="fileList">
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">
文件支持上传.jpg,png,.doc,docx,.txt,.pdf文件
</div>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="证据:">
<div v-for="(item, index) in detailsAwardNum.caseAttachList" :key="index" v-if="item.annexType == 2">
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
{{ item.annexName }}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="调解申请书:">
<div v-for="(item, index) in detailsAwardNum.caseAttachList" :key="index" v-if="item.annexType == 3">
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
{{ item.annexName }}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="调解书:">
<div v-for="(item, index) in detailsAwardNum.caseAttachList" :key="index" v-if="item.annexType == 7">
<div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
{{ item.annexName }}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<div style="display: inline-flex">
<div class="infoIcon"></div>
<div class="caseInfo">双方信息:</div>
</div>
<el-divider></el-divider>
</el-col>
<el-col :span="24">
<el-form-item label="选择机构或自然人" prop="affiliate.organizeFlag">
<el-radio-group v-model="detailsAwardNum.affiliate.organizeFlag">
<el-radio :label="0">自然人</el-radio>
<el-radio :label="1">机构</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="申请机构名称">
<el-input v-model="detailsAwardNum.affiliate.applicationName" placeholder="请输入申请机构名称" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="申请人">
<el-input v-model="detailsAwardNum.affiliate.applicationName" placeholder="请输入申请人姓名" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="统一社会信用代码">
<el-input v-model="detailsAwardNum.affiliate.code" placeholder="请输入统一社会信用代码" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="申请人身份证号码">
<el-input v-model="detailsAwardNum.affiliate.code" placeholder="请输入申请人的身份证号" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="申请人邮箱">
<el-input v-model="detailsAwardNum.affiliate.applicationEmail" placeholder="请输入申请人邮箱" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="申请人电话">
<el-input v-model="detailsAwardNum.affiliate.applicationPhone" placeholder="请输入申请人联系电话" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="法定代表人">
<el-input v-model="detailsAwardNum.affiliate.compLegalPerson" placeholder="请输入法定代表人" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="申请人住所">
<el-input v-model="detailsAwardNum.affiliate.applicantHome" placeholder="请输入申请人住所" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="申请人联系地址">
<el-input v-model="detailsAwardNum.affiliate.applicantAddress" placeholder="请输入申请人联系地址" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="代理人联系电话">
<el-input v-model="detailsAwardNum.affiliate.contactTelphoneAgent" placeholder="请输入代理人联系电话" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="代理人联系电话" prop="affiliate.contactTelphoneAgent">
<el-input v-model="detailsAwardNum.affiliate.contactTelphoneAgent" placeholder="请输入代理人联系电话" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="代理人姓名" prop="affiliate.nameAgent">
<el-input v-model="detailsAwardNum.affiliate.nameAgent" placeholder="请输入代理人姓名" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="代理人姓名" prop="affiliate.nameAgent">
<el-input v-model="detailsAwardNum.affiliate.nameAgent" placeholder="请输入代理人姓名" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 1">
<el-form-item label="代理人邮箱">
<el-input v-model="detailsAwardNum.affiliate.agentEmail" placeholder="请输入代理人邮箱" />
</el-form-item>
</el-col>
<el-col :span="12" v-if="detailsAwardNum.affiliate.organizeFlag == 0">
<el-form-item label="代理人邮箱">
<el-input v-model="detailsAwardNum.affiliate.agentEmail" placeholder="请输入代理人邮箱" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人姓名">
<el-input v-model="detailsAwardNum.affiliate.respondentName" placeholder="请输入被申请人姓名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人联系电话" >
<el-input v-model="detailsAwardNum.affiliate.respondentPhone" placeholder="请输入被申请人联系电话" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人身份证号">
<el-input v-model="detailsAwardNum.affiliate.respondentIdentityNum" placeholder="请输入被申请人身份证号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人性别:">
<el-radio-group v-model="detailsAwardNum.affiliate.respondentSex">
<el-radio :label="0">男</el-radio>
<el-radio :label="1">女</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人出生年月日:" prop="affiliate.respondentBirth">
<el-date-picker v-model="detailsAwardNum.affiliate.respondentBirth" type="date" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人申请人住所">
<el-input v-model="detailsAwardNum.affiliate.respondentHome" placeholder="请输入被申请人申请人住所" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人邮箱">
<el-input v-model="detailsAwardNum.affiliate.respondentEmail" placeholder="请输入被申请人邮箱" />
</el-form-item>
</el-col>
</el-row>
<el-col :span="24">
<el-form-item v-for="item in detailsAwardNum.columnValueList" :label="item.name" :key="item.id">
<el-input type="textarea" v-model="item.value"></el-input>
</el-form-item>
</el-col>
</el-form>
</div>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
@@ -51,6 +250,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getToken } from "@/utils/auth";
export default { export default {
props: ["showarchiveDetails","detailsAwardNum","videoList","flagLoadingS","trialTranscripts","caseFilingData"], props: ["showarchiveDetails","detailsAwardNum","videoList","flagLoadingS","trialTranscripts","caseFilingData"],
components: { components: {
@@ -58,16 +258,25 @@ export default {
}, },
data() { data() {
return { return {
activeName: 'first', activeName: 'five',
fileURL: window.location.origin + "/API", fileURL: window.location.origin + "/API",
noData: false, noData: false,
filedata: {
annexType: 2,
},
fileList: [],
headers: {
Authorization: "Bearer " + getToken(),
},
}; };
}, },
watch: { watch: {
showarchiveDetails: { showarchiveDetails: {
handler(val) { handler(val) {
if (val) { if (val) {
this.activeName = 'first' this.activeName = 'five'
// this.detailsAwardNum.affiliate.respondentSex = Number(this.detailsAwardNum.affiliate.respondentSex)
console.log(this.detailsAwardNum)
} }
}, },
}, },
@@ -86,6 +295,42 @@ watch: {
} }
} }
return resNumber return resNumber
},
/** 查看证据 */
fileDetil(val) {
window.open(this.fileURL + val);
},
/** 文件上传地址 */
UploadUrl() {
return window.location.origin + "/API/common/upload";
},
/**文件上传成功*/
handlSuccess(res, file) {
this.detailsAwardNum.caseAttachList.push({
annexId: res.annexId,
});
},
/**文件超出个数限制时的钩子*/
handleExceed(files, fileList) {
this.$message.warning(
`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length
} 个文件`
);
},
// 删除文件之前的钩子,参数为上传的文件和文件列表,若返回 false 或者返回 Promise 且被 reject,则停止删除。
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}?`);
},
handleRemove(file, fileList) {
this.caseAttachListArr = this.caseAttachListArr.filter(
(item) => item.annexId != file.annexId
);
},
handlePreview(file) {
window.open(
window.location.origin + "/API" + file.certificatePath,
"_blank"
);
}, },
handleClick(tab, event) { handleClick(tab, event) {
@@ -46,7 +46,7 @@
</el-col> </el-col>
<el-col :span="24" v-if="mediationType"> <el-col :span="24" v-if="mediationType">
<el-form-item label="调解结果:"> <el-form-item label="调解结果:">
<el-radio-group v-model="mediaResult" :disabled="!isSecretaryRole" @change="resultsMediation"> <el-radio-group v-model="mediaResult" :disabled="!selectRoido" @change="resultsMediation">
<el-radio :label="1">达成调解</el-radio> <el-radio :label="1">达成调解</el-radio>
<el-radio :label="2">未达成调解</el-radio> <el-radio :label="2">未达成调解</el-radio>
<el-radio :label="3">未达成调解但不在争议</el-radio> <el-radio :label="3">未达成调解但不在争议</el-radio>
@@ -118,9 +118,10 @@
<el-button @click="cancel" class="endbutton1" round> <el-button @click="cancel" class="endbutton1" round>
<span>取 消</span> <span>取 消</span>
</el-button> </el-button>
<el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'" <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
class="endbutton1" type="primary" round> :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole" class="endbutton1"
<span>提 交</span> type="primary" round>
提 交
</el-button> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -169,10 +170,13 @@ export default {
fileList: [], fileList: [],
attachList: [], attachList: [],
isSecretaryRole: true, isSecretaryRole: true,
loadingSubmit: false,
selectRoido:true
}; };
}, },
watch: { watch: {
mediationVisable(val) { mediationVisable(val) {
this.mediaResult = 1;
this.recordArr = []; this.recordArr = [];
this.recordArrMediate = []; this.recordArrMediate = [];
if (this.mediationData.mediationMethod == "1") { if (this.mediationData.mediationMethod == "1") {
@@ -188,6 +192,11 @@ export default {
}); });
this.getUser(); this.getUser();
} }
},
recordArrMediate(val){
if(val.length >= 1){
this.selectRoido = false;
}
} }
}, },
created() { }, created() { },
@@ -252,7 +261,6 @@ export default {
caseApplicationSelectById({ caseApplicationSelectById({
id: this.mediationData.id id: this.mediationData.id
}).then(res => { }).then(res => {
console.log(res)
res.data.caseAttachList.forEach(item => { res.data.caseAttachList.forEach(item => {
if (item.annexType == 6) { if (item.annexType == 6) {
this.recordArr.push(item); this.recordArr.push(item);
@@ -275,7 +283,7 @@ export default {
}); });
}); });
}) })
this.isSecretaryRole = false // this.selectRoido = true;
}, },
/** 庭审笔录附件 */ /** 庭审笔录附件 */
toFile2(annexPath) { toFile2(annexPath) {
@@ -290,16 +298,19 @@ export default {
this.$modal.msgSuccess("成功"); this.$modal.msgSuccess("成功");
this.$emit("cancelMediation"); this.$emit("cancelMediation");
this.$emit("getList", this.queryParams); this.$emit("getList", this.queryParams);
this.loadingSubmit = false;
}); });
}, },
cancel() { cancel() {
this.$emit("cancelMediation"); this.$emit("cancelMediation");
}, },
submitMediation: _.debounce(function() { submitMediation() {
if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") { if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
this.$modal.msgError("请上传调解书"); this.$modal.msgError("请上传调解书");
return return
} else {
this.loadingSubmit = true;
} }
let mediationVal = {} let mediationVal = {}
if (this.codes == 200) { if (this.codes == 200) {
@@ -318,7 +329,7 @@ export default {
} }
} }
this.mediationFn(mediationVal); this.mediationFn(mediationVal);
},5000), },
resultsMediation() { resultsMediation() {
} }
@@ -57,8 +57,8 @@
</div> </div>
<div class="payTitle">{{ payMain }}</div> <div class="payTitle">{{ payMain }}</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="payCancel" class="endbutton" round><span>取 消</span></el-button> <el-button @click="payCancel" round><span>取 消</span></el-button>
<el-button @click="submitUpload" class="endbutton" type="primary" round><span>确认缴费</span></el-button> <el-button @click="submitUpload" type="primary" :disabled="payFlagSubmit" round><span>确认缴费</span></el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@@ -88,7 +88,8 @@ export default {
payType:1, payType:1,
payOrderList:[], payOrderList:[],
caseId:null caseId:null
} },
payFlagSubmit:true
}; };
}, },
methods: { methods: {
@@ -112,6 +113,7 @@ export default {
annexId: res.annexId, annexId: res.annexId,
annexName:res.annexName annexName:res.annexName
}); });
this.payFlagSubmit = false;
}, },
submitUpload() { submitUpload() {
if (this.fileList.length < 1) { if (this.fileList.length < 1) {
@@ -128,7 +130,7 @@ export default {
handleRemove(file, fileList) { handleRemove(file, fileList) {
(this.submitForm.payOrderList = []), (this.submitForm.payOrderList = []),
fileList.forEach((item) => { fileList.forEach((item) => {
this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName }); this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
}); });
}, },
handlePreview(file) { handlePreview(file) {
@@ -14,13 +14,13 @@
<el-form-item label="缴费金额:" prop="feePayable"> <el-form-item label="缴费金额:" prop="feePayable">
<el-input v-model="form.feePayable" :disabled="true"/> <el-input v-model="form.feePayable" :disabled="true"/>
</el-form-item> </el-form-item>
<el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList.length > 0"> <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList">
<div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index" <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
@click="preview(item.annexPath)"> @click="preview(item.annexPath)">
{{ item.annexName }} {{ item.annexName }}
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList.length > 0"> <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList">
<div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index" <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index"
@click="preview(item.annexPath)"> @click="preview(item.annexPath)">
{{ item.annexName }} {{ item.annexName }}
@@ -57,8 +57,8 @@
</div> </div>
<div class="resPayTitle">{{ payMain }}</div> <div class="resPayTitle">{{ payMain }}</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="payCancel" class="endbutton" round><span>取 消</span></el-button> <el-button @click="payCancel" round><span>取 消</span></el-button>
<el-button @click="submitUpload" class="endbutton" type="primary" round><span>确认缴费</span></el-button> <el-button @click="submitUpload" type="primary" :disabled="payFlagSubmit" round><span>确认缴费</span></el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@@ -88,7 +88,8 @@
payType:1, payType:1,
payOrderList:[], payOrderList:[],
caseId:null caseId:null
} },
payFlagSubmit:true
}; };
}, },
methods: { methods: {
@@ -112,6 +113,7 @@
annexId: res.annexId, annexId: res.annexId,
annexName:res.annexName annexName:res.annexName
}); });
this.payFlagSubmit = false;
}, },
submitUpload() { submitUpload() {
if (this.fileList.length < 1) { if (this.fileList.length < 1) {
@@ -128,7 +130,7 @@
handleRemove(file, fileList) { handleRemove(file, fileList) {
(this.submitForm.payOrderList = []), (this.submitForm.payOrderList = []),
fileList.forEach((item) => { fileList.forEach((item) => {
this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName }); this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
}); });
}, },
handlePreview(file) { handlePreview(file) {
@@ -47,8 +47,15 @@ export default {
watch: { watch: {
mediatorVisable(val) { mediatorVisable(val) {
if (val) { if (val) {
listMediator().then(res=>{ listMediator({caseAppliId: this.mediatorData.id}).then(res=>{
this.tableData = res.data; this.tableData = res.data;
this.tableData.forEach((item)=> {
if (item.echoFlag) {
this.$nextTick(()=>{
this.$refs.multipleTable.toggleRowSelection(item, true);
})
}
})
}) })
} }
} }
@@ -88,7 +95,6 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
// console.log(this.multipleSelection,"LLLLLLLLLLLLLLLLL");
} }
}, },
}; };
@@ -33,6 +33,12 @@
<el-table-column label="案件状态" align="center" prop="caseStatusName" :show-overflow-tooltip="true" /> <el-table-column label="案件状态" align="center" prop="caseStatusName" :show-overflow-tooltip="true" />
<el-table-column label="驳回节点" align="center" prop="backFlowName" :show-overflow-tooltip="true" /> <el-table-column label="驳回节点" align="center" prop="backFlowName" :show-overflow-tooltip="true" />
<el-table-column label="关联角色" align="center" prop="roleNames" :show-overflow-tooltip="true" /> <el-table-column label="关联角色" align="center" prop="roleNames" :show-overflow-tooltip="true" />
<el-table-column label="节点图标" align="center" prop="nodeIcon" :show-overflow-tooltip="true">
<template slot-scope="scope">
<img v-if="scope.row.fileName" class="nodeIcon" :src="iconHead+scope.row.fileName"/>
<span v-else>暂无图标</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" @click="moveDown(scope.row)" type="text" icon="el-icon-arrow-down"></el-button> <el-button size="mini" @click="moveDown(scope.row)" type="text" icon="el-icon-arrow-down"></el-button>
@@ -80,10 +86,14 @@ export default {
dataList: [], dataList: [],
addvisiable: false,//新增弹窗 addvisiable: false,//新增弹窗
editData: {}, editData: {},
iconHead: process.env.VUE_APP_BASE_API
}; };
}, },
created() { created() {
this.getList(this.queryParams) this.getList(this.queryParams);
},
computed: {
}, },
methods: { methods: {
// 删除 // 删除
@@ -160,4 +170,9 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.nodeIcon {
width: 20%;
height: 20%;
}
</style>
@@ -4,7 +4,7 @@
<el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px" <el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
class="demo-ruleForm"> class="demo-ruleForm">
<el-form-item label="节点名称" prop="nodeName"> <el-form-item label="节点名称" prop="nodeName">
<el-select v-model="ruleForm.nodeName" placeholder="请选择" @change="changenodeName"> <el-select v-model="ruleForm.nodeName" placeholder="请选择">
<el-option v-for="dict in dict.type.case_flow_node" :key="dict.value" :label="dict.label" <el-option v-for="dict in dict.type.case_flow_node" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option> :value="dict.value"></el-option>
</el-select> </el-select>
@@ -28,6 +28,20 @@
<el-form-item label="权限字符" prop="buttonAuthFlag"> <el-form-item label="权限字符" prop="buttonAuthFlag">
<el-input v-model="ruleForm.buttonAuthFlag" placeholder="请输入"></el-input> <el-input v-model="ruleForm.buttonAuthFlag" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="节点图标" prop="nodeIcon">
<el-upload
class="avatar-uploader"
:action="uploadImgUrl"
:show-file-list="false"
:headers="headers"
:data="filedata"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload">
<img v-if="imageUrl" :src="imgSvgUrl" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
<div slot="tip" class="el-upload__tip">只能上传SVG图片</div>
</el-upload>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button> <el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
@@ -39,6 +53,7 @@
<script> <script>
import { queryCaseFlowInfo, saveCaseFlow } from "@/api/caseprocessManagement/caseprocessManagement.js"; import { queryCaseFlowInfo, saveCaseFlow } from "@/api/caseprocessManagement/caseprocessManagement.js";
import { listRole } from "@/api/system/role"; import { listRole } from "@/api/system/role";
import { getToken } from "@/utils/auth";
export default { export default {
props: ["addvisiable", "editData", "queryParams"], props: ["addvisiable", "editData", "queryParams"],
dicts: ["case_flow_node"], dicts: ["case_flow_node"],
@@ -49,7 +64,9 @@ export default {
backflowArr: [],//驳回节点 backflowArr: [],//驳回节点
roleArr: [],//关联角色 roleArr: [],//关联角色
isImg: false, isImg: false,
filedata: {}, filedata: {
annexType: 11,
},
flagBtn: false, flagBtn: false,
ruleForm: {}, ruleForm: {},
rules: { rules: {
@@ -67,24 +84,46 @@ export default {
] ]
}, },
dealvalue: [], dealvalue: [],
imageUrl: '',
uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
headers: {
Authorization: "Bearer " + getToken(),
},
fileName: '',
imgSvgUrl: ''
}; };
}, },
watch: { watch: {
addvisiable(val) { addvisiable(val) {
if (val) { if (val) {
this.ruleForm = this.editData; this.ruleForm = this.editData;
this.fileName = '',
this.getRoles(); this.getRoles();
this.getbackflowArr() this.getbackflowArr();
if (this.ruleForm && this.ruleForm.fileName) {
this.imgSvgUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName;
this.imageUrl = process.env.VUE_APP_BASE_API + this.ruleForm.fileName;
this.fileName = this.ruleForm.fileName
} else {
this.imgSvgUrl = ''
this.imageUrl = ''
} }
} }
}, },
fileName: {
handler(val) {
if (val) {
this.imgSvgUrl = this.imageUrl
}
},
deep: true
}
},
created() { created() {
}, },
methods: { methods: {
changenodeName(val) {
console.log(val, 'changeval');
},
// 获取驳回节点数据 // 获取驳回节点数据
getbackflowArr() { getbackflowArr() {
let queryParams2 = { let queryParams2 = {
@@ -119,6 +158,19 @@ export default {
cancel() { cancel() {
this.$emit("cancelAdd"); this.$emit("cancelAdd");
}, },
// 图标上传
handleAvatarSuccess(res, file) {
this.fileName = ''
this.imageUrl = URL.createObjectURL(file.raw);
this.fileName = file.response.fileName
},
beforeAvatarUpload(file) {
const isSvg = file.type === 'image/svg+xml';
if (!isSvg) {
this.$message.error('上传图片只能是 SVG 格式!');
}
return isSvg;
},
// 提交 // 提交
submitForm() { submitForm() {
this.$refs['ruleForm'].validate((valid) => { this.$refs['ruleForm'].validate((valid) => {
@@ -141,7 +193,8 @@ export default {
backFlowId: this.ruleForm.backFlowId, backFlowId: this.ruleForm.backFlowId,
roleIds: this.ruleForm.roleIds, roleIds: this.ruleForm.roleIds,
sort: this.ruleForm.sort, sort: this.ruleForm.sort,
buttonAuthFlag: this.ruleForm.buttonAuthFlag buttonAuthFlag: this.ruleForm.buttonAuthFlag,
fileName: this.fileName
} }
} else { } else {
let nodevalue = this.dict.type.case_flow_node; let nodevalue = this.dict.type.case_flow_node;
@@ -158,7 +211,8 @@ export default {
caseStatusName: this.ruleForm.caseStatusName, caseStatusName: this.ruleForm.caseStatusName,
backFlowId: this.ruleForm.backFlowId, backFlowId: this.ruleForm.backFlowId,
roleIds: this.ruleForm.roleIds, roleIds: this.ruleForm.roleIds,
buttonAuthFlag: this.ruleForm.buttonAuthFlag buttonAuthFlag: this.ruleForm.buttonAuthFlag,
fileName: this.fileName
} }
} }
if (params.backFlowId == undefined) { if (params.backFlowId == undefined) {
@@ -181,4 +235,31 @@ export default {
::v-deep .el-select { ::v-deep .el-select {
width: 100%; width: 100%;
} }
.avatar-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
}
// .avatar-uploader .el-upload:hover {
// border-color: #409EFF;
// }
.avatar-uploader-icon {
border: 1px dashed #d9d9d9;
font-size: 28px;
color: #8c939d;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
}
.avatar-uploader-icon:hover {
border-color: #409EFF;
}
.avatar {
width: 100px;
height: 100px;
display: block;
}
</style> </style>
+126 -4
View File
@@ -1,27 +1,149 @@
<template> <template>
<div class="app-container home"> <div class="app-container home">
调解系统 <div class="header">
<div class="iconTitle"></div>
<div class="headerMain">我的待办</div>
</div>
<div class="homeMain">
<div
class="cardList"
v-for="(item, index) in pendingTasks"
:key="index"
@click="pushPage(item.caseFlowId)"
>
<div class="badge">{{ item.caseCount }}</div>
<div class="cardMain">
<img class="iconImg" :src="iconHead + item.fileName" alt="" />
</div>
<div class="cardMain1">
<div class="imgTitle">{{ item.caseStatusName }}</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { todoCount } from "@/api/system/homepage.js";
export default { export default {
name: "Index", name: "Index",
data() { data() {
return { return {
// 版本号 // 版本号
version: "3.8.6" version: "3.8.6",
pendingTasks: [], //案件代办状态
iconHead: process.env.VUE_APP_BASE_API
}; };
}, },
watch: {
$route(val) {
if (val) {
this.gettodoCount();
}
}
},
created() {
this.gettodoCount();
},
methods: { methods: {
goTarget(href) { goTarget(href) {
window.open(href, "_blank"); window.open(href, "_blank");
} },
} // 查询代办状态
gettodoCount() {
todoCount({}).then((res) => {
this.pendingTasks = res.data.toDoCountList;
console.log(res.data.toDoCountList, "this.pendingTasks");
});
},
// 点击待办按钮跳转
pushPage(status) {
this.$router.push({
path: "/caseManagement/caseManagement/caseList",
query: { caseFlowId: status + "" },
});
},
},
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.home {
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
background-color: #f1f1f1;
height: 100vh;
.header {
width: 100%;
height: 80px;
display: flex;
align-items: center;
.iconTitle {
width: 5px;
height: 25px;
background-color: #0f5c9b;
margin-right: 25px;
}
.headerMain {
font-size: 20px;
}
}
.homeMain {
width: 100%;
display: flex;
flex-wrap: wrap;
.cardList {
width: 13%;
height: 200px;
border-radius: 30px;
background-color: #ffffff;
position: relative;
margin-right: 38px;
margin-bottom: 30px;
cursor: pointer;
.badge {
width: 50px;
height: 30px;
text-align: center;
line-height: 30px;
font-size: 18px;
font-weight: 500;
color: red;
border-radius: 10px 30px 10px 30px;
background-color: #1296DB;
position: absolute;
right: 0;
}
.cardMain {
width: 100%;
display: flex;
justify-content: center;
margin-top: 40px;
.iconImg {
width: 100px;
height: 110px;
}
}
.cardMain1 {
width: 100%;
display: flex;
justify-content: center;
.imgTitle {
font-size: 15px;
font-weight: 900;
}
}
}
}
}
</style> </style>
+13 -9
View File
@@ -67,7 +67,8 @@
</div> </div>
<!-- 底部 --> <!-- 底部 -->
<div class="el-login-footer"> <div class="el-login-footer">
<span>Copyright © 2023 乙巢(上海)企业管理服务有限公司.</span> <div>Copyright © 2023 乙巢(上海)企业管理服务有限公司.</div>
<div>Version:1.0.1</div>
</div> </div>
</div> </div>
</template> </template>
@@ -176,17 +177,17 @@ export default {
width: 50%; width: 50%;
height: 90%; height: 90%;
.leftIcon { .leftIcon {
height: 10%; height: 20%;
width: 100%; width: 100%;
margin: 5% 10% 1% 15%; margin: 0% 10% 1% 15%;
.Icon { .Icon {
width: 45px; width: 100px;
height: 45px; height: 105px;
background-image: url("../assets/images/mediate.svg"); background-image: url("../assets/images/logos.png");
background-size: cover; background-size: cover;
} }
div { div {
font-size: 17px; font-size: 18px;
} }
} }
.leftImage { .leftImage {
@@ -247,8 +248,8 @@ export default {
} }
.el-login-footer { .el-login-footer {
background-color: rgb(126, 131, 135); background-color: rgb(126, 131, 135);
height: 40px; height: 55px;
line-height: 40px; line-height: 55px;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
@@ -257,6 +258,9 @@ export default {
font-family: Arial; font-family: Arial;
font-size: 12px; font-size: 12px;
letter-spacing: 1px; letter-spacing: 1px;
div {
height: 30%;
}
} }
.login-code-img { .login-code-img {
height: 38px; height: 38px;
+79 -21
View File
@@ -1,9 +1,9 @@
<template> <template>
<div class="register"> <div class="register">
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form"> <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
<h3 class="title">若依后台管理系统</h3> <h3 class="title">智慧调解系统注册</h3>
<el-form-item prop="userName"> <el-form-item prop="userName">
<el-input v-model="registerForm.userName" type="text" auto-complete="off" placeholder="账号"> <el-input v-model="registerForm.userName" type="text" auto-complete="off" @blur="changeInput" placeholder="账号">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" /> <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
</el-input> </el-input>
</el-form-item> </el-form-item>
@@ -19,11 +19,32 @@
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="identityNo"> <el-form-item prop="nationality">
<el-select v-model="registerForm.nationality" placeholder="请选择国籍" auto-complete="off" style="width: 100%;">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
<el-option v-for="item in nationalityList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="idType">
<el-select v-model="registerForm.idType" placeholder="证件类型" auto-complete="off" style="width: 100%;">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
<el-option v-for="item in idTypeList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="identityNo" v-if="registerForm.idType === 0">
<el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="身份证号码"> <el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="身份证号码">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" /> <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="identityNo" v-if="registerForm.idType === 1">
<el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="护照号码">
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
</el-input>
</el-form-item>
<el-form-item prop="email"> <el-form-item prop="email">
<el-input v-model="registerForm.email" type="text" auto-complete="off" placeholder="邮箱"> <el-input v-model="registerForm.email" type="text" auto-complete="off" placeholder="邮箱">
<svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" /> <svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" />
@@ -77,14 +98,14 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 底部 --> <!-- 底部 -->
<div class="el-register-footer"> <!-- <div class="el-register-footer">
<span>Copyright © 2018-2023 ruoyi.vip All Rights Reserved.</span> <span>Copyright © 2018-2023 ruoyi.vip All Rights Reserved.</span>
</div> </div> -->
</div> </div>
</template> </template>
<script> <script>
import { getCodeImg, register, sendCode, wxregister } from "@/api/login"; import { getCodeImg, register, sendCode, wxregister,verifyUserName } from "@/api/login";
import { listRoleNotoken } from "@/api/system/role.js" import { listRoleNotoken } from "@/api/system/role.js"
export default { export default {
name: "Register", name: "Register",
@@ -107,11 +128,19 @@ export default {
confirmPassword: "", confirmPassword: "",
code: "", code: "",
uuid: "", uuid: "",
nationality:0,
idType:0
}, },
registerRules: { registerRules: {
username: [ userName: [
{ required: true, trigger: "blur", message: "请输入您的账号" }, { required: true, trigger: "blur", message: "请输入您的账号" },
{ min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' } { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' },
{
pattern:
/^[0-9a-zA-Z]*$/g,
message: '只能输入英文或者数字',
trigger: 'blur',
},
], ],
password: [ password: [
{ required: true, trigger: "blur", message: "请输入您的密码" }, { required: true, trigger: "blur", message: "请输入您的密码" },
@@ -128,12 +157,12 @@ export default {
message: '被申请人身份证号不能为空', message: '被申请人身份证号不能为空',
trigger: 'blur', trigger: 'blur',
}, },
{ // {
pattern: // pattern:
/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/, // /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
message: '请输入正确的身份证号码', // message: '请输入正确的身份证号码',
trigger: 'blur', // trigger: 'blur',
}, // },
], ],
email: [ email: [
{ required: true, trigger: "blur", message: "请再次输入您的密码" }, { required: true, trigger: "blur", message: "请再次输入您的密码" },
@@ -165,10 +194,36 @@ export default {
verifyCode: [ verifyCode: [
{ required: true, trigger: "blur", message: "请输入验证码" }, { required: true, trigger: "blur", message: "请输入验证码" },
], ],
idType: [
{ required: true, trigger: "blur", message: "请选择证件类型" },
],
nationality: [
{ required: true, trigger: "blur", message: "请选择国籍" },
],
}, },
loading: false, loading: false,
captchaEnabled: true, captchaEnabled: true,
roleList: [] roleList: [],
nationalityList:[
{
value:'国内',
id:0
},
{
value:'国外',
id:1
}
],
idTypeList:[
{
value:'身份证',
id:0
},
{
value:'护照',
id:1
}
]
}; };
}, },
created() { created() {
@@ -176,11 +231,14 @@ export default {
this.getListRole(); this.getListRole();
}, },
methods: { methods: {
changeInput(){
verifyUserName({userName:this.registerForm.userName})
},
/**获取角色 */ /**获取角色 */
getListRole() { getListRole() {
listRoleNotoken().then(res => { listRoleNotoken().then(res => {
console.log(res, "PPPPPPPPPPPPPPPPPPPPPPPPPPPP"); const roleList = res.data.filter((item) => item.roleName == '申请人' || item.roleName == '被申请人');
this.roleList = res.data; this.roleList = roleList;
}) })
}, },
getCode() { getCode() {
@@ -197,8 +255,8 @@ export default {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
wxregister(this.registerForm).then(res => { wxregister(this.registerForm).then(res => {
const username = this.registerForm.username; const userName = this.registerForm.userName;
this.$alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", '系统提示', { this.$alert("<font color='red'>恭喜你,您的账号 " + userName + " 注册成功!</font>", '系统提示', {
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
type: 'success' type: 'success'
}).then(() => { }).then(() => {
@@ -246,7 +304,7 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; //height: 100%;
background-image: url("../assets/images/login-background.jpg"); background-image: url("../assets/images/login-background.jpg");
background-size: cover; background-size: cover;
} }
@@ -261,7 +319,7 @@ export default {
border-radius: 6px; border-radius: 6px;
background: #ffffff; background: #ffffff;
width: 400px; width: 400px;
height: 90%; height: 80%;
padding: 25px 25px 5px 25px; padding: 25px 25px 5px 25px;
// .el-input { // .el-input {
+4 -3
View File
@@ -11,11 +11,11 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口
// const API = 'http://121.40.189.20:9001' //生产 // const API = 'http://121.40.189.20:7001' //生产
const API = 'http://121.40.189.20:6001' //测试 const API = 'http://121.40.189.20:6001' //测试
// const API = 'http://192.168.3.18:6001' //B // const API = 'http://192.168.3.18:6001' //B
// const API = 'http://172.16.0.237:6001' //Q // const API = 'http://172.16.0.237:6001' //Q
// const API = 'http://172.16.1.43:6001' //w // const API = 'http://172.16.1.26:6001' //w
// vue.config.js 配置说明 // vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
@@ -41,6 +41,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.3.77:8080`,
// target: `http://121.40.189.20:9001`,
target: API, target: API,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
@@ -59,7 +61,6 @@ module.exports = {
}, },
configureWebpack: { configureWebpack: {
name: name, name: name,
devtool: '#eval-source-map',
resolve: { resolve: {
alias: { alias: {
'@': resolve('src') '@': resolve('src')