|
@@ -0,0 +1,470 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form-item label="案件名称" prop="caseName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.caseName"
|
|
|
+ placeholder="请输入案件名称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="案件编号" prop="caseNumber">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.caseNumber"
|
|
|
+ placeholder="请输入案件编号"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-table v-loading="loading" :data="caseList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column type="selection" width="55" align="center"/>
|
|
|
+ <el-table-column label="案件名称" align="center" prop="caseName"/>
|
|
|
+ <el-table-column label="案件编号" align="center" prop="caseNumber"/>
|
|
|
+ <el-table-column label="处罚对象" align="center" prop="punishTarget">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.lawenforcement_punish_target" :value="scope.row.punishTarget"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="处罚情形" align="center" prop="punishType">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.lawenforcement_punish_type" :value="scope.row.punishType"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="案件描述" align="center" prop="describe"/>
|
|
|
+ <el-table-column label="状态" align="center" prop="state">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.lawenforcement_caseState" :value="scope.row.state"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['lawenforcement:case:query']"
|
|
|
+ >详情
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ @click="register(scope.row)"
|
|
|
+ >立案
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="total>0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 详情 -->
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="1200px" class="form-style">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="案件名称" prop="caseName">
|
|
|
+ <el-input v-model="form.caseName" placeholder="请输入案件名称" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="案件编号" prop="caseNumber">
|
|
|
+ <el-input v-model="form.caseNumber" placeholder="请输入案件编号" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="处罚对象" prop="punishTarget">
|
|
|
+ <el-select v-model="form.punishTarget" placeholder="请选择处罚对象" filterable disabled>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.lawenforcement_punish_target"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="处罚情形" prop="punishType">
|
|
|
+ <el-select v-model="form.punishType" placeholder="请选择处罚情形" filterable disabled>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.lawenforcement_punish_type"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="上报单位" prop="deptName">
|
|
|
+ <el-input v-model="form.deptName" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="上报人" prop="createName">
|
|
|
+ <el-input v-model="form.createName" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="上报时间" prop="createTime">
|
|
|
+ <el-input v-model="form.createTime" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="状态" prop="state">
|
|
|
+ <el-select v-model="form.state" filterable disabled>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.lawenforcement_caseState"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="案件描述" prop="describe">
|
|
|
+ <el-input type="textarea" v-model="form.describe" placeholder="请输入案件描述" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card style="height: 350px;">
|
|
|
+ <div class="form-item-title">1.法制审核机构出具的审核意见书</div>
|
|
|
+ <br>
|
|
|
+ <el-form-item label="附件" label-width="50px" prop="dataOne">
|
|
|
+ <fileUpload v-model="dataOne"></fileUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="说明" label-width="50px" prop="describe">
|
|
|
+ <el-input type="textarea" v-model="describe1" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card style="height: 350px;">
|
|
|
+ <div class="form-item-title">2.落实行政处罚裁量基准和包容审慎监管执法“四张清单”相关材料</div>
|
|
|
+ <el-form-item label="附件" label-width="50px" prop="dataTwo">
|
|
|
+ <fileUpload v-model="dataTwo"></fileUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="说明" label-width="50px" prop="describe">
|
|
|
+ <el-input type="textarea" v-model="describe2" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card style="height: 350px;">
|
|
|
+ <div class="form-item-title">3.落实行政处罚裁量基准和包容审慎监管执法“四张清单”相关材料</div>
|
|
|
+ <el-form-item label="附件" label-width="50px" prop="dataTwo">
|
|
|
+ <fileUpload v-model="dataThree"></fileUpload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="说明" label-width="50px" prop="describe">
|
|
|
+ <el-input type="textarea" v-model="describe3" disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <el-table v-loading="loading" :data="logList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column label="操作人" align="center" prop="createName"/>
|
|
|
+ <el-table-column label="操作时间" align="center" prop="createTime"/>
|
|
|
+ <el-table-column label="所属部门" align="center" prop="deptName"/>
|
|
|
+ <el-table-column label="操作内容" align="center" prop="content"/>
|
|
|
+ <el-table-column label="状态" align="center" prop="state">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.lawenforcement_caseState" :value="scope.row.state"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button v-if="type!='1'&&form.state=='state_1'" type="primary" @click="acceptance('state_2')">受理
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="type!='1'&&form.state=='state_1'" @click="noAcceptance('state_3')">不予受理</el-button>
|
|
|
+ <el-button v-if="type!='1'&&form.state=='state_2'&&this.logNum==0" type="primary"
|
|
|
+ @click="acceptance('state_5')">通 过
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="type!='1'&&form.state=='state_2'&&this.logNum==0" @click="noAcceptance('state_4')">不通过
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :title="title" :visible.sync="open1" width="600px" height="500px" class="form-style">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-form-item label="说明" prop="content">
|
|
|
+ <el-input type="textarea" v-model="form.content" placeholder="请输入说明"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submit">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ <!--立案-->
|
|
|
+ <el-dialog :visible.sync="dialogVisible" :title="title" width="1200px" class="form-style">
|
|
|
+ <register @send-ok="sendOk" ref="register" :caseNumber="caseName"/>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {listCase, getCase, getCaseLog, updateCase, addCase} from "@/api/lawenforcement/case";
|
|
|
+import register from "@/views/lawenforcement/register/index.vue";
|
|
|
+import form from "element-ui/packages/form";
|
|
|
+import fileUpload from '@/views/components/FileUpload/index.vue';
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "Case",
|
|
|
+ computed: {
|
|
|
+ form() {
|
|
|
+ return form
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {register, fileUpload},
|
|
|
+ dicts: ['lawenforcement_punish_target', 'lawenforcement_punish_type', 'lawenforcement_caseState'],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dataOne: null,
|
|
|
+ dataTwo: null,
|
|
|
+ dataThree: null,
|
|
|
+ describe1: null,
|
|
|
+ describe2: null,
|
|
|
+ describe3: null,
|
|
|
+
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ dialogVisible: false,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ caseName: "",
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ type: 0,
|
|
|
+ // 案件表格数据
|
|
|
+ caseList: [],
|
|
|
+ //日志列表
|
|
|
+ logList: [],
|
|
|
+ logNum: null,
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ open1: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ createName: null,
|
|
|
+ updateName: null,
|
|
|
+ deptId: null,
|
|
|
+ deptName: null,
|
|
|
+ recordId: null,
|
|
|
+ caseName: null,
|
|
|
+ caseNumber: null,
|
|
|
+ punishTarget: null,
|
|
|
+ punishType: null,
|
|
|
+ describe: null,
|
|
|
+ dataOne: null,
|
|
|
+ uploadOne: null,
|
|
|
+ dataTwo: null,
|
|
|
+ uploadTwo: null,
|
|
|
+ dataThree: null,
|
|
|
+ uploadThree: null,
|
|
|
+ state: null
|
|
|
+ },
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {}
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.queryParams.state = this.$route.query.state;
|
|
|
+ this.type = this.$route.query.type;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ /** 查询案件列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listCase(this.queryParams).then(response => {
|
|
|
+ this.caseList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //立案
|
|
|
+ register(row) {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.title = "立案";
|
|
|
+ this.caseName = row.caseName;
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs.register.submitForm();
|
|
|
+ },
|
|
|
+ sendOk() {
|
|
|
+ debugger
|
|
|
+ this.dialogVisible = false;
|
|
|
+ this.getList();
|
|
|
+ this.$refs.register.reset();
|
|
|
+ },
|
|
|
+ // 按部门查看日志
|
|
|
+ getCaseLog(row) {
|
|
|
+ this.form.deptId = this.$store.state.user.dept.deptId;
|
|
|
+ this.form.id = row.id;
|
|
|
+ getCaseLog(this.form).then(response => {
|
|
|
+ this.logNum = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.open1 = false;
|
|
|
+ this.dialogVisible = false;
|
|
|
+ this.$refs.register.reset()
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ id: null,
|
|
|
+ createBy: null,
|
|
|
+ createName: null,
|
|
|
+ createTime: null,
|
|
|
+ updateBy: null,
|
|
|
+ updateName: null,
|
|
|
+ updateTime: null,
|
|
|
+ deptId: null,
|
|
|
+ deptName: null,
|
|
|
+ recordId: null,
|
|
|
+ caseName: null,
|
|
|
+ caseNumber: null,
|
|
|
+ punishTarget: null,
|
|
|
+ punishType: null,
|
|
|
+ describe: null,
|
|
|
+ dataOne: null,
|
|
|
+ uploadOne: null,
|
|
|
+ dataTwo: null,
|
|
|
+ uploadTwo: null,
|
|
|
+ dataThree: null,
|
|
|
+ uploadThree: null,
|
|
|
+ state: this.queryParams.state
|
|
|
+ };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map(item => item.id)
|
|
|
+ this.single = selection.length !== 1
|
|
|
+ this.multiple = !selection.length
|
|
|
+ },
|
|
|
+ /** 详情 */
|
|
|
+ handleUpdate(row) {
|
|
|
+ this.getCaseLog(row);
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids
|
|
|
+ getCase(id).then(response => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.logList = response.data.logList
|
|
|
+ this.dataOne = response.data.fileList[0].attachPath
|
|
|
+ this.dataTwo = response.data.fileList[1].attachPath
|
|
|
+ this.dataThree = response.data.fileList[2].attachPath
|
|
|
+ this.describe1 = response.data.fileList[0].describe
|
|
|
+ this.describe2 = response.data.fileList[1].describe
|
|
|
+ this.describe3 = response.data.fileList[2].describe
|
|
|
+ this.open = true;
|
|
|
+ this.title = "案件详情";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 受理 */
|
|
|
+ acceptance(state) {
|
|
|
+ this.form.state = state;
|
|
|
+ updateCase(this.form).then(response => {
|
|
|
+ if (state == 'state_2') {
|
|
|
+ this.$modal.msgSuccess("受理成功");
|
|
|
+ }
|
|
|
+ if (state == 'state_5') {
|
|
|
+ this.$modal.msgSuccess("通过成功");
|
|
|
+ }
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /* 不予受理 */
|
|
|
+ noAcceptance(state) {
|
|
|
+ this.form.state = state;
|
|
|
+ this.open1 = true;
|
|
|
+ if (state == 'state_3') {
|
|
|
+ this.title = "不予受理";
|
|
|
+ }
|
|
|
+ if (state == 'state_4') {
|
|
|
+ this.title = "不通过";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ submit() {
|
|
|
+ updateCase(this.form).then(response => {
|
|
|
+ if (this.form.state == 'state_3') {
|
|
|
+ this.$modal.msgSuccess("不予受理");
|
|
|
+ }
|
|
|
+ if (this.form.state == 'state_4') {
|
|
|
+ this.$modal.msgSuccess("不通过");
|
|
|
+ }
|
|
|
+ this.open1 = false;
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|