应用层PC端前端服务

archiveList.vue 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. size="small"
  7. :inline="true"
  8. label-width="68px"
  9. >
  10. <el-form-item label="案件编号" prop="caseNum">
  11. <el-input
  12. v-model="queryParams.caseNum"
  13. placeholder="请输入案件编号"
  14. clearable
  15. @keyup.enter.native="handleQuery"
  16. />
  17. </el-form-item>
  18. <!-- <el-form-item label="案件状态" prop="caseStatus">
  19. <el-select
  20. v-model="queryParams.caseStatus"
  21. placeholder="请选择案件状态"
  22. clearable
  23. @keyup.enter.native="handleQuery"
  24. >
  25. <el-option
  26. v-for="dict in dict.type.case_status"
  27. :key="dict.value"
  28. :label="dict.label"
  29. :value="dict.value"
  30. ></el-option>
  31. </el-select>
  32. </el-form-item> -->
  33. <el-form-item label="开庭日期" prop="hearDate">
  34. <el-date-picker
  35. v-model="queryParams.hearDate"
  36. type="daterange"
  37. range-separator="至"
  38. start-placeholder="开始日期"
  39. end-placeholder="结束日期"
  40. >
  41. </el-date-picker>
  42. </el-form-item>
  43. <el-form-item>
  44. <el-button
  45. type="primary"
  46. icon="el-icon-search"
  47. size="mini"
  48. @click="handleQuery"
  49. >搜索</el-button
  50. >
  51. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  52. >重置</el-button
  53. >
  54. </el-form-item>
  55. </el-form>
  56. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  57. <el-table-column label="序号" type="index" align="center">
  58. <template slot-scope="scope">
  59. <span>{{
  60. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  61. }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column
  65. label="案件编号"
  66. align="center"
  67. prop="caseNum"
  68. :show-overflow-tooltip="true"
  69. />
  70. <el-table-column
  71. label="案件标的"
  72. align="center"
  73. prop="caseSubjectAmount"
  74. />
  75. <el-table-column
  76. label="立案日期"
  77. align="center"
  78. prop="registerDate"
  79. :show-overflow-tooltip="true"
  80. />
  81. <el-table-column label="案件状态" align="center" prop="caseStatusName" />
  82. <el-table-column
  83. label="操作"
  84. align="center"
  85. class-name="small-padding fixed-width"
  86. >
  87. <template slot-scope="scope">
  88. <el-button
  89. size="mini"
  90. type="text"
  91. icon="el-icon-reading"
  92. @click="showDetail(scope.row)"
  93. v-hasPermi="['caseFiles:list:detail']"
  94. >归档详情</el-button
  95. >
  96. </template>
  97. </el-table-column>
  98. </el-table>
  99. <pagination
  100. v-show="total > 0"
  101. :total="total"
  102. :page.sync="queryParams.pageNum"
  103. :limit.sync="queryParams.pageSize"
  104. @pagination="getList(queryParams)"
  105. />
  106. <!-- 弹窗 -->
  107. <archiveDetailsDialog
  108. v-if="showarchiveDetails"
  109. :showarchiveDetails="showarchiveDetails"
  110. :detailform="detailform"
  111. :flagLoading="flagLoading"
  112. @cancelpaymentdetails="cancelpaymentdetails"
  113. @updataList="updataList"
  114. ></archiveDetailsDialog>
  115. </div>
  116. </template>
  117. <script>
  118. import { caseApplicationList } from "@/api/awardManagement/awardManagement";
  119. import { adjudicationArchives } from "@/api/caseFiling/caseFiling";
  120. import archiveDetailsDialog from "./components/archiveDetailsDialog.vue";
  121. export default {
  122. name: "archiveList",
  123. dicts: ["case_status"],
  124. components: { archiveDetailsDialog },
  125. data() {
  126. return {
  127. queryParams: {
  128. pageNum: 1,
  129. pageSize: 10,
  130. },
  131. // 遮罩层
  132. loading: false,
  133. // 总条数
  134. total: 0,
  135. // 表格数据
  136. list: [],
  137. // 是否显示弹出层
  138. // 弹出层内容
  139. form: {},
  140. // 校验表单
  141. rules: {},
  142. dataList: [],
  143. detailform: {}, //详情数据
  144. showarchiveDetails: false, //详情数据弹框
  145. flagLoading: false, //详情弹框loading
  146. };
  147. },
  148. created() {
  149. this.queryParams.caseStatusList = [17];
  150. this.getList(this.queryParams);
  151. },
  152. methods: {
  153. updataList() {
  154. this.getList(this.queryParams);
  155. },
  156. /** 搜索按钮操作 */
  157. handleQuery() {
  158. this.queryParams.pageNum = 1;
  159. this.getList(this.queryParams);
  160. },
  161. /** 重置按钮操作 */
  162. resetQuery() {
  163. this.resetForm("queryForm");
  164. this.handleQuery();
  165. },
  166. // 查询列表数据
  167. getList(parms) {
  168. this.loading = true;
  169. caseApplicationList(parms).then((response) => {
  170. this.dataList = response.rows;
  171. this.total = response.total;
  172. this.loading = false;
  173. });
  174. },
  175. // model框显示
  176. showDetail(row) {
  177. this.getDetail({ id: row.id });
  178. },
  179. // 关闭弹窗
  180. cancelpaymentdetails() {
  181. this.showarchiveDetails = false;
  182. },
  183. /** 查询详情 */
  184. getDetail(parms) {
  185. adjudicationArchives(parms).then((res) => {
  186. this.detailform = res.data;
  187. this.showarchiveDetails = true;
  188. });
  189. },
  190. },
  191. };
  192. </script>
  193. <style lang="scss" scoped></style>