应用层PC端前端服务

caseEntry.vue 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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="applicant">
  19. <el-input
  20. v-model="queryParams.applicant"
  21. placeholder="请输入申请人"
  22. clearable
  23. @keyup.enter.native="handleQuery"
  24. />
  25. </el-form-item> -->
  26. <el-form-item>
  27. <el-button
  28. type="primary"
  29. icon="el-icon-search"
  30. size="mini"
  31. @click="handleQuery"
  32. >搜索</el-button
  33. >
  34. <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  35. >重置</el-button
  36. > -->
  37. </el-form-item>
  38. </el-form>
  39. <el-row :gutter="10" class="mb8">
  40. <el-col :span="1.5">
  41. <el-button
  42. type="primary"
  43. plain
  44. icon="el-icon-plus"
  45. size="mini"
  46. @click="filingApplication"
  47. v-hasPermi="['monitor:job:add']"
  48. >立案申请</el-button
  49. >
  50. <el-button
  51. type="primary"
  52. plain
  53. icon="el-icon-plus"
  54. size="mini"
  55. @click="batchApplication"
  56. v-hasPermi="['monitor:job:add']"
  57. >批量立案</el-button
  58. >
  59. </el-col>
  60. </el-row>
  61. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  62. <el-table-column label="序号" type="index" align="center">
  63. <template slot-scope="scope">
  64. <span>{{
  65. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  66. }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column
  70. label="案件编号"
  71. align="center"
  72. prop="caseNum"
  73. :show-overflow-tooltip="true"
  74. />
  75. <!-- <el-table-column
  76. label="申请人"
  77. align="center"
  78. prop="caseAffiliates[0].name"
  79. :show-overflow-tooltip="true"
  80. /> -->
  81. <el-table-column
  82. label="案件标的"
  83. align="center"
  84. prop="caseSubjectAmount"
  85. />
  86. <el-table-column
  87. label="立案日期"
  88. align="center"
  89. prop="registerDate"
  90. :show-overflow-tooltip="true"
  91. />
  92. <!-- <el-table-column label="仲裁方式" align="center" prop="arbitratMethod" /> -->
  93. <el-table-column label="案件状态" align="center" prop="caseStatus" />
  94. <el-table-column
  95. label="操作"
  96. align="center"
  97. class-name="small-padding fixed-width"
  98. >
  99. <template slot-scope="scope">
  100. <el-button
  101. size="mini"
  102. type="text"
  103. icon="el-icon-check"
  104. @click="onsubmitRow(scope.row)"
  105. v-hasPermi="['monitor:online:forceLogout']"
  106. >提交</el-button
  107. >
  108. <el-button
  109. size="mini"
  110. type="text"
  111. icon="el-icon-edit"
  112. @click="editRow(scope.row)"
  113. v-hasPermi="['monitor:online:forceLogout']"
  114. >修改</el-button
  115. >
  116. <el-button
  117. size="mini"
  118. type="text"
  119. icon="el-icon-zoom-in"
  120. @click="detailRow(scope.row)"
  121. v-hasPermi="['monitor:online:forceLogout']"
  122. >详情</el-button
  123. >
  124. <el-button
  125. size="mini"
  126. type="text"
  127. icon="el-icon-delete"
  128. @click="deleteRow(scope.row)"
  129. v-hasPermi="['monitor:online:forceLogout']"
  130. >删除</el-button
  131. >
  132. </template>
  133. </el-table-column>
  134. </el-table>
  135. <pagination
  136. v-show="total > 0"
  137. :total="total"
  138. :page.sync="queryParams.pageNum"
  139. :limit.sync="queryParams.pageSize"
  140. @pagination="getcaseApply"
  141. />
  142. <!-- 立案申请弹框 -->
  143. <caseentryDialog
  144. :visible="visible"
  145. @cancel="cancel"
  146. :form="form"
  147. :dialogtitle="dialogtitle"
  148. :getcaseApply="getcaseApply"
  149. :flag="flag"
  150. :initpaymentArr="initpaymentArr"
  151. :initpaymentArr1="initpaymentArr1"
  152. ></caseentryDialog>
  153. <!-- 批量申请弹框 openbatch-->
  154. <!-- <batchDialog
  155. :openbatch="openbatch"
  156. ></batchDialog> -->
  157. </div>
  158. </template>
  159. <script>
  160. import caseentryDialog from "./components/caseentryDialog";
  161. import batchDialog from "./components/batchDialog";
  162. import {
  163. caseApply,
  164. removeCaseApply,
  165. submitCaseApply,
  166. selectCaseApply
  167. } from "@/api/caseAccess/caseEntry";
  168. export default {
  169. name: "caseEntry",
  170. dicts: ["sys_identity_type"],
  171. components: {
  172. caseentryDialog,
  173. // batchDialog
  174. },
  175. data() {
  176. return {
  177. // 遮罩层
  178. loading: true,
  179. // 总条数
  180. total: 0,
  181. isapply: "申请人:",
  182. // 表格数据
  183. dataList: [],
  184. // 查询参数
  185. queryParams: {
  186. caseNum: undefined,
  187. // applicant: undefined,
  188. caseStatus: 0,
  189. pageNum: 1,
  190. pageSize: 10,
  191. },
  192. dialogtitle: "", //弹框标题
  193. visible: false, //申请弹框控制
  194. form: {},
  195. starttime: "", //开始时间
  196. endtime: "", //结束时间
  197. formData: {},
  198. flag:"-1",
  199. initpaymentArr:[],
  200. initpaymentArr1:[],
  201. // 批量申请弹框
  202. openbatch: false,
  203. };
  204. },
  205. created() {
  206. this.getcaseApply();
  207. },
  208. methods: {
  209. cancel() {
  210. this.visible = false;
  211. },
  212. /** 查询登录日志列表 */
  213. getcaseApply() {
  214. this.loading = true;
  215. caseApply(this.queryParams).then((response) => {
  216. this.dataList = response.rows;
  217. this.dataList.forEach((item) => {
  218. item.caseStatus = item.caseStatus == 0 ? "立案申请" : "待缴费";
  219. });
  220. this.total = response.total;
  221. this.loading = false;
  222. });
  223. },
  224. /** 搜索按钮操作 */
  225. handleQuery() {
  226. this.queryParams.pageNum = 1;
  227. this.getcaseApply();
  228. },
  229. /** 重置按钮操作 */
  230. resetQuery() {
  231. this.resetForm("queryForm");
  232. this.handleQuery();
  233. },
  234. // 立案申请
  235. filingApplication() {
  236. this.form = {};
  237. this.visible = true;
  238. this.dialogtitle = "立案申请";
  239. this.flag = "2"
  240. },
  241. // 批量立案
  242. batchApplication() {
  243. this.openbatch = true
  244. },
  245. // 列表提交立案
  246. onsubmitRow(row) {
  247. this.$modal
  248. .confirm("是否提交立案?")
  249. .then(function () {
  250. return submitCaseApply({ id: row.id });
  251. })
  252. .then(() => {
  253. this.getcaseApply();
  254. this.$modal.msgSuccess("立案成功");
  255. })
  256. .catch(() => {});
  257. },
  258. // 修改
  259. editRow(row) {
  260. this.flag = "1"
  261. this.form = row;
  262. this.visible = true;
  263. this.dialogtitle = "立案修改";
  264. this.getInfo(row);
  265. },
  266. // 详情
  267. detailRow(row) {
  268. this.flag = "0"
  269. this.form = row;
  270. this.visible = true;
  271. this.dialogtitle = "立案详情";
  272. this.getInfo(row);
  273. },
  274. // 查找主体信息数据
  275. getInfo(row) {
  276. const id = row.id;
  277. selectCaseApply({ id }).then((res) => {
  278. this.visible = true;
  279. this.formData = res.data;
  280. this.initpaymentArr = [];
  281. this.initpaymentArr1 = [];
  282. res.data.caseAffiliates.forEach((item) => {
  283. if (item.identityType == 1) {
  284. this.initpaymentArr.push(item);
  285. } else {
  286. this.initpaymentArr1.push(item);
  287. }
  288. });
  289. });
  290. },
  291. // 删除
  292. deleteRow(row) {
  293. // const id = row.id;
  294. this.$modal
  295. .confirm("是否确认删除?")
  296. .then(function () {
  297. return removeCaseApply({ id: row.id });
  298. })
  299. .then((res) => {
  300. this.getcaseApply();
  301. this.$modal.msgSuccess("删除成功");
  302. })
  303. .catch(() => {});
  304. },
  305. },
  306. };
  307. </script>
  308. <style lang="scss" scoped>
  309. ::v-deep .el-dialog__body {
  310. height: 700px !important;
  311. overflow: auto !important;
  312. }
  313. #formContainer {
  314. }
  315. </style>