Files
Arbitrate-Frontend/src/views/caseAccessAll/caseEntry.vue
T

320 lines
8.1 KiB
Vue
Raw Normal View History

2023-09-08 09:08:09 +08:00
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
label-width="68px"
>
2023-09-12 15:49:41 +08:00
<el-form-item label="案件编号" prop="caseNum">
2023-09-08 09:08:09 +08:00
<el-input
2023-09-12 15:49:41 +08:00
v-model="queryParams.caseNum"
2023-09-08 09:08:09 +08:00
placeholder="请输入案件编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
2023-09-12 15:49:41 +08:00
<!-- <el-form-item label="申请人" prop="applicant">
2023-09-08 09:08:09 +08:00
<el-input
v-model="queryParams.applicant"
placeholder="请输入申请人"
clearable
@keyup.enter.native="handleQuery"
/>
2023-09-12 15:49:41 +08:00
</el-form-item> -->
2023-09-08 09:08:09 +08:00
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
2023-09-12 15:49:41 +08:00
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
2023-09-08 09:08:09 +08:00
>重置</el-button
2023-09-12 15:49:41 +08:00
> -->
2023-09-08 09:08:09 +08:00
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="filingApplication"
v-hasPermi="['monitor:job:add']"
>立案申请</el-button
>
2023-09-12 15:49:41 +08:00
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="batchApplication"
v-hasPermi="['monitor:job:add']"
>批量立案</el-button
>
2023-09-08 09:08:09 +08:00
</el-col>
</el-row>
2023-09-08 18:50:34 +08:00
<el-table v-loading="loading" :data="dataList" style="width: 100%">
2023-09-08 09:08:09 +08:00
<el-table-column label="序号" type="index" align="center">
<template slot-scope="scope">
2023-09-12 15:49:41 +08:00
<span>{{
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
}}</span>
2023-09-08 09:08:09 +08:00
</template>
</el-table-column>
<el-table-column
label="案件编号"
align="center"
2023-09-12 15:49:41 +08:00
prop="caseNum"
2023-09-08 09:08:09 +08:00
:show-overflow-tooltip="true"
/>
2023-09-12 15:49:41 +08:00
<!-- <el-table-column
2023-09-08 09:08:09 +08:00
label="申请人"
align="center"
2023-09-12 15:49:41 +08:00
prop="caseAffiliates[0].name"
2023-09-08 09:08:09 +08:00
:show-overflow-tooltip="true"
2023-09-12 15:49:41 +08:00
/> -->
<el-table-column
label="案件标的"
align="center"
prop="caseSubjectAmount"
2023-09-08 09:08:09 +08:00
/>
<el-table-column
label="立案日期"
align="center"
2023-09-12 15:49:41 +08:00
prop="registerDate"
2023-09-08 09:08:09 +08:00
:show-overflow-tooltip="true"
/>
2023-09-12 15:49:41 +08:00
<!-- <el-table-column label="仲裁方式" align="center" prop="arbitratMethod" /> -->
2023-09-08 09:08:09 +08:00
<el-table-column label="案件状态" align="center" prop="caseStatus" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
2023-09-12 15:49:41 +08:00
<el-button
size="mini"
type="text"
icon="el-icon-check"
@click="onsubmitRow(scope.row)"
v-hasPermi="['monitor:online:forceLogout']"
>提交</el-button
>
2023-09-08 09:08:09 +08:00
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="editRow(scope.row)"
v-hasPermi="['monitor:online:forceLogout']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-zoom-in"
@click="detailRow(scope.row)"
v-hasPermi="['monitor:online:forceLogout']"
>详情</el-button
>
2023-09-08 18:50:34 +08:00
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="deleteRow(scope.row)"
v-hasPermi="['monitor:online:forceLogout']"
>删除</el-button
>
2023-09-08 09:08:09 +08:00
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
2023-09-12 15:49:41 +08:00
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getcaseApply"
2023-09-08 09:08:09 +08:00
/>
<!-- 立案申请弹框 -->
2023-09-12 15:49:41 +08:00
<caseentryDialog
:visible="visible"
@cancel="cancel"
:form="form"
:dialogtitle="dialogtitle"
:getcaseApply="getcaseApply"
:flag="flag"
:initpaymentArr="initpaymentArr"
:initpaymentArr1="initpaymentArr1"
></caseentryDialog>
<!-- 批量申请弹框 openbatch-->
<!-- <batchDialog
:openbatch="openbatch"
></batchDialog> -->
2023-09-08 09:08:09 +08:00
</div>
</template>
<script>
2023-09-12 15:49:41 +08:00
import caseentryDialog from "./components/caseentryDialog";
import batchDialog from "./components/batchDialog";
import {
caseApply,
removeCaseApply,
submitCaseApply,
selectCaseApply
} from "@/api/caseAccess/caseEntry";
2023-09-08 09:08:09 +08:00
export default {
name: "caseEntry",
2023-09-12 15:49:41 +08:00
dicts: ["sys_identity_type"],
components: {
caseentryDialog,
// batchDialog
},
2023-09-08 09:08:09 +08:00
data() {
return {
// 遮罩层
loading: true,
// 总条数
total: 0,
2023-09-12 15:49:41 +08:00
isapply: "申请人:",
2023-09-08 09:08:09 +08:00
// 表格数据
2023-09-08 18:50:34 +08:00
dataList: [],
2023-09-08 09:08:09 +08:00
// 查询参数
queryParams: {
2023-09-12 15:49:41 +08:00
caseNum: undefined,
// applicant: undefined,
caseStatus: 0,
pageNum: 1,
pageSize: 10,
2023-09-08 09:08:09 +08:00
},
dialogtitle: "", //弹框标题
2023-09-12 15:49:41 +08:00
visible: false, //申请弹框控制
form: {},
2023-09-08 09:08:09 +08:00
starttime: "", //开始时间
endtime: "", //结束时间
2023-09-12 15:49:41 +08:00
formData: {},
flag:"-1",
initpaymentArr:[],
initpaymentArr1:[],
// 批量申请弹框
openbatch: false,
2023-09-08 09:08:09 +08:00
};
},
created() {
2023-09-12 15:49:41 +08:00
this.getcaseApply();
2023-09-08 09:08:09 +08:00
},
methods: {
2023-09-12 15:49:41 +08:00
cancel() {
this.visible = false;
2023-09-08 09:08:09 +08:00
},
/** 查询登录日志列表 */
2023-09-12 15:49:41 +08:00
getcaseApply() {
this.loading = true;
caseApply(this.queryParams).then((response) => {
this.dataList = response.rows;
this.dataList.forEach((item) => {
item.caseStatus = item.caseStatus == 0 ? "立案申请" : "待缴费";
});
this.total = response.total;
this.loading = false;
});
2023-09-08 09:08:09 +08:00
},
/** 搜索按钮操作 */
handleQuery() {
2023-09-12 15:49:41 +08:00
this.queryParams.pageNum = 1;
this.getcaseApply();
2023-09-08 09:08:09 +08:00
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
// 立案申请
filingApplication() {
2023-09-12 15:49:41 +08:00
this.form = {};
this.visible = true;
2023-09-08 09:08:09 +08:00
this.dialogtitle = "立案申请";
2023-09-12 15:49:41 +08:00
this.flag = "2"
2023-09-08 09:08:09 +08:00
},
2023-09-12 15:49:41 +08:00
// 批量立案
batchApplication() {
this.openbatch = true
2023-09-08 09:08:09 +08:00
},
2023-09-12 15:49:41 +08:00
// 列表提交立案
onsubmitRow(row) {
this.$modal
.confirm("是否提交立案?")
.then(function () {
return submitCaseApply({ id: row.id });
})
.then(() => {
this.getcaseApply();
this.$modal.msgSuccess("立案成功");
})
.catch(() => {});
},
2023-09-08 09:08:09 +08:00
// 修改
2023-09-08 18:50:34 +08:00
editRow(row) {
2023-09-12 15:49:41 +08:00
this.flag = "1"
this.form = row;
this.visible = true;
2023-09-08 18:50:34 +08:00
this.dialogtitle = "立案修改";
2023-09-12 15:49:41 +08:00
this.getInfo(row);
2023-09-08 18:50:34 +08:00
},
2023-09-08 09:08:09 +08:00
// 详情
2023-09-08 18:50:34 +08:00
detailRow(row) {
2023-09-12 15:49:41 +08:00
this.flag = "0"
this.form = row;
this.visible = true;
2023-09-08 18:50:34 +08:00
this.dialogtitle = "立案详情";
2023-09-12 15:49:41 +08:00
this.getInfo(row);
},
// 查找主体信息数据
getInfo(row) {
const id = row.id;
selectCaseApply({ id }).then((res) => {
this.visible = true;
this.formData = res.data;
this.initpaymentArr = [];
this.initpaymentArr1 = [];
res.data.caseAffiliates.forEach((item) => {
if (item.identityType == 1) {
this.initpaymentArr.push(item);
} else {
this.initpaymentArr1.push(item);
}
});
});
2023-09-08 18:50:34 +08:00
},
// 删除
deleteRow(row) {
// const id = row.id;
this.$modal
.confirm("是否确认删除?")
2023-09-12 15:49:41 +08:00
.then(function () {
return removeCaseApply({ id: row.id });
})
.then((res) => {
this.getcaseApply();
2023-09-08 18:50:34 +08:00
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
2023-09-08 09:08:09 +08:00
},
};
</script>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
height: 700px !important;
overflow: auto !important;
}
2023-09-08 18:50:34 +08:00
#formContainer {
2023-09-08 09:08:09 +08:00
}
</style>