Files
Arbitrate-Frontend/src/views/caseFiling/archiveList.vue
T

196 lines
5.2 KiB
Vue
Raw Normal View History

2023-09-18 21:55:43 +08:00
<template>
2023-09-21 19:00:27 +08:00
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
label-width="68px"
>
<el-form-item label="案件编号" prop="caseNum">
<el-input
v-model="queryParams.caseNum"
placeholder="请输入案件编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="案件状态" prop="caseStatus">
<el-select
v-model="queryParams.caseStatus"
placeholder="请选择案件状态"
clearable
@keyup.enter.native="handleQuery"
>
<el-option
v-for="dict in dict.type.case_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item> -->
<el-form-item label="开庭日期" prop="hearDate">
<el-date-picker
v-model="queryParams.hearDate"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</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="dataList" style="width: 100%">
<el-table-column label="序号" type="index" align="center">
<template slot-scope="scope">
<span>{{
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column
label="案件编号"
align="center"
prop="caseNum"
:show-overflow-tooltip="true"
/>
<el-table-column
label="案件标的"
align="center"
prop="caseSubjectAmount"
/>
<el-table-column
label="立案日期"
align="center"
prop="registerDate"
:show-overflow-tooltip="true"
/>
<el-table-column label="案件状态" align="center" prop="caseStatusName" />
<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-reading"
@click="showDetail(scope.row)"
2023-10-10 21:41:41 +08:00
v-hasPermi="['caseFiles:list:detail']"
2023-09-21 19:00:27 +08:00
>归档详情</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(queryParams)"
/>
<!-- 弹窗 -->
2023-10-11 14:43:26 +08:00
<archiveDetailsDialog
v-if="showarchiveDetails"
:showarchiveDetails="showarchiveDetails"
:detailform="detailform"
2023-10-11 20:20:30 +08:00
:flagLoading="flagLoading"
2023-10-11 14:43:26 +08:00
@cancelpaymentdetails="cancelpaymentdetails"
@updataList="updataList"
></archiveDetailsDialog>
2023-09-21 19:00:27 +08:00
</div>
2023-09-18 21:55:43 +08:00
</template>
2023-09-21 19:00:27 +08:00
2023-09-18 21:55:43 +08:00
<script>
2023-10-11 20:20:30 +08:00
import { caseApplicationList } from "@/api/awardManagement/awardManagement";
import { adjudicationArchives } from "@/api/caseFiling/caseFiling";
2023-10-11 14:43:26 +08:00
import archiveDetailsDialog from "./components/archiveDetailsDialog.vue";
2023-09-21 19:00:27 +08:00
export default {
name: "archiveList",
dicts: ["case_status"],
2023-10-11 14:43:26 +08:00
components: { archiveDetailsDialog },
2023-09-21 19:00:27 +08:00
data() {
return {
queryParams: {
pageNum: 1,
pageSize: 10,
},
// 遮罩层
loading: false,
// 总条数
total: 0,
// 表格数据
list: [],
// 是否显示弹出层
// 弹出层内容
form: {},
// 校验表单
rules: {},
dataList: [],
detailform: {}, //详情数据
2023-10-11 14:43:26 +08:00
showarchiveDetails: false, //详情数据弹框
2023-10-12 10:39:01 +08:00
flagLoading: false, //详情弹框loading
2023-09-21 19:00:27 +08:00
};
},
created() {
this.queryParams.caseStatusList = [17];
2023-09-21 19:00:27 +08:00
this.getList(this.queryParams);
},
methods: {
updataList() {
this.getList(this.queryParams);
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList(this.queryParams);
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
// 查询列表数据
getList(parms) {
this.loading = true;
caseApplicationList(parms).then((response) => {
this.dataList = response.rows;
this.total = response.total;
this.loading = false;
});
},
// model框显示
showDetail(row) {
2023-10-11 20:20:30 +08:00
this.getDetail({ id: row.id });
2023-09-21 19:00:27 +08:00
},
// 关闭弹窗
cancelpaymentdetails() {
2023-10-11 14:43:26 +08:00
this.showarchiveDetails = false;
2023-09-21 19:00:27 +08:00
},
/** 查询详情 */
getDetail(parms) {
2023-10-11 20:20:30 +08:00
adjudicationArchives(parms).then((res) => {
2023-09-21 19:00:27 +08:00
this.detailform = res.data;
2023-10-12 10:39:01 +08:00
this.showarchiveDetails = true;
2023-09-21 19:00:27 +08:00
});
},
},
};
2023-09-18 21:55:43 +08:00
</script>
2023-09-21 19:00:27 +08:00
<style lang="scss" scoped></style>