应用层PC端前端服务

caseList.vue 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  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-row :gutter="10" class="mb8">
  57. <el-col :span="1.5">
  58. <el-button
  59. type="primary"
  60. plain
  61. icon="el-icon-plus"
  62. size="mini"
  63. @click="filingApplication"
  64. v-hasPermi="['monitor:job:add']"
  65. >案件录入</el-button
  66. >
  67. <el-button
  68. type="primary"
  69. plain
  70. icon="el-icon-plus"
  71. size="mini"
  72. @click="batchApplication"
  73. v-hasPermi="['monitor:job:add']"
  74. >案件批量导入</el-button
  75. >
  76. </el-col>
  77. </el-row>
  78. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  79. <el-table-column label="序号" type="index" align="center">
  80. <template slot-scope="scope">
  81. <span>{{
  82. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  83. }}</span>
  84. </template>
  85. </el-table-column>
  86. <el-table-column
  87. label="案件编号"
  88. align="center"
  89. prop="caseNum"
  90. :show-overflow-tooltip="true"
  91. />
  92. <!-- <el-table-column
  93. label="申请人"
  94. align="center"
  95. prop="caseAffiliates[0].name"
  96. :show-overflow-tooltip="true"
  97. /> -->
  98. <el-table-column
  99. label="案件标的"
  100. align="center"
  101. prop="caseSubjectAmount"
  102. />
  103. <el-table-column
  104. label="立案日期"
  105. align="center"
  106. prop="registerDate"
  107. :show-overflow-tooltip="true"
  108. />
  109. <!-- 仲裁员 -->
  110. <el-table-column label="仲裁员" align="center" prop="arbitratorName" />
  111. <!-- 开庭日期 -->
  112. <el-table-column
  113. label="开庭日期"
  114. align="center"
  115. prop="hearDate"
  116. :show-overflow-tooltip="true"
  117. />
  118. <el-table-column label="案件状态" align="center" prop="caseStatusName" />
  119. <el-table-column
  120. label="操作"
  121. align="center"
  122. class-name="small-padding fixed-width"
  123. >
  124. <template slot-scope="scope">
  125. <!-- <el-button
  126. size="mini"
  127. type="text"
  128. icon="el-icon-check"
  129. @click="onsubmitRow(scope.row)"
  130. v-hasPermi="['monitor:online:forceLogout']"
  131. >提交</el-button
  132. > -->
  133. <el-button
  134. size="mini"
  135. type="text"
  136. icon="el-icon-zoom-in"
  137. @click="detailRow(scope.row)"
  138. v-hasPermi="['monitor:online:forceLogout']"
  139. >详情</el-button
  140. >
  141. <el-button
  142. size="mini"
  143. type="text"
  144. icon="el-icon-edit"
  145. @click="editRow(scope.row)"
  146. v-if="scope.row.caseStatus == 0"
  147. v-hasPermi="['monitor:online:forceLogout']"
  148. >修改</el-button
  149. >
  150. <el-button
  151. size="mini"
  152. type="text"
  153. icon="el-icon-delete"
  154. @click="deleteRow(scope.row)"
  155. v-if="scope.row.caseStatus == 0"
  156. v-hasPermi="['monitor:online:forceLogout']"
  157. >删除</el-button
  158. >
  159. <el-button
  160. size="mini"
  161. type="text"
  162. icon="el-icon-zoom-in"
  163. @click="filingreviewRow(scope.row)"
  164. v-if="scope.row.caseStatus == 1"
  165. v-hasPermi="['monitor:online:forceLogout']"
  166. >立案审查</el-button
  167. >
  168. <el-button
  169. size="mini"
  170. type="text"
  171. icon="el-icon-tickets"
  172. @click="viewpaymentRow(scope.row)"
  173. v-if="scope.row.caseStatus == 2"
  174. v-hasPermi="['monitor:online:forceLogout']"
  175. >查看缴费</el-button
  176. >
  177. <!-- <el-button
  178. size="mini"
  179. type="text"
  180. icon="el-icon-data-analysis"
  181. @click="formationcourtRow(scope.row)"
  182. v-hasPermi="['monitor:online:forceLogout']"
  183. >组庭</el-button
  184. > -->
  185. <el-button
  186. size="mini"
  187. type="text"
  188. icon="el-icon-s-check"
  189. @click="courtconfirmationRow(scope.row)"
  190. v-if="scope.row.caseStatus == 6"
  191. v-hasPermi="['monitor:online:forceLogout']"
  192. >组庭确认</el-button
  193. >
  194. <el-button
  195. size="mini"
  196. type="text"
  197. icon="el-icon-check"
  198. @click="courtreviewRow(scope.row)"
  199. v-if="scope.row.caseStatus == 5"
  200. v-hasPermi="['monitor:online:forceLogout']"
  201. >组庭审核</el-button
  202. >
  203. <el-button
  204. size="mini"
  205. type="text"
  206. icon="el-icon-sort"
  207. @click="choosetrialmethodRow(scope.row)"
  208. v-if="scope.row.caseStatus == 7"
  209. v-hasPermi="['monitor:online:forceLogout']"
  210. >选择开庭方式</el-button
  211. >
  212. <el-button
  213. size="mini"
  214. type="text"
  215. icon="el-icon-edit-outline"
  216. @click="adjudicaterecordRow(scope.row)"
  217. v-if="scope.row.caseStatus == 9"
  218. v-hasPermi="['monitor:online:forceLogout']"
  219. >书面审理</el-button
  220. >
  221. <el-button
  222. size="mini"
  223. type="text"
  224. icon="el-icon-service"
  225. @click="trialcourtRow(scope.row)"
  226. v-if="scope.row.caseStatus == 8"
  227. v-hasPermi="['monitor:online:forceLogout']"
  228. >开庭审理</el-button
  229. >
  230. <el-button
  231. size="mini"
  232. type="text"
  233. icon="el-icon-document"
  234. @click="generateawardRow(scope.row)"
  235. v-if="scope.row.caseStatus == 10"
  236. v-hasPermi="['monitor:online:forceLogout']"
  237. >生成裁决书</el-button
  238. >
  239. <el-button
  240. size="mini"
  241. type="text"
  242. icon="el-icon-receiving"
  243. @click="fileRow(scope.row)"
  244. v-if="scope.row.caseStatus == 16"
  245. v-hasPermi="['monitor:online:forceLogout']"
  246. >归档</el-button
  247. >
  248. </template>
  249. </el-table-column>
  250. </el-table>
  251. <pagination
  252. v-show="total > 0"
  253. :total="total"
  254. :page.sync="queryParams.pageNum"
  255. :limit.sync="queryParams.pageSize"
  256. @pagination="getcaseApply"
  257. />
  258. <!-- 立案申请弹框 -->
  259. <caseentryDialog
  260. :visible="visible"
  261. @cancel="cancel"
  262. :form="form"
  263. :dialogtitle="dialogtitle"
  264. :getcaseApply="getcaseApply"
  265. :flag="flag"
  266. :initpaymentArr="initpaymentArr"
  267. :initpaymentArr1="initpaymentArr1"
  268. ></caseentryDialog>
  269. <!-- 批量申请弹框 openbatch-->
  270. <batchDialog
  271. :openbatch="openbatch"
  272. @cancelBatch="cancelBatch"
  273. :getcaseApply="getcaseApply"
  274. ></batchDialog>
  275. <!-- 组庭页面---改为组庭审核 -->
  276. <formateCourtDialog
  277. :showformateCourt="showformateCourt"
  278. @cancelcourtDialog="cancelcourtDialog"
  279. :formateCourtData="formateCourtData"
  280. @getcaseApply="getcaseApply"
  281. ></formateCourtDialog>
  282. <!-- 组庭审核--改组庭确认 -->
  283. <courtReviewDialog
  284. :showcourtReview="showcourtReview"
  285. :form="form"
  286. @cancelcourtReview="cancelcourtReview"
  287. @getcaseApply="getcaseApply"
  288. ></courtReviewDialog>
  289. <!-- 选择开庭方式 -->
  290. <choosetrialmethodDaiog
  291. :showchoosetrialmethod="showchoosetrialmethod"
  292. :choosetrialmethodata="choosetrialmethodata"
  293. @getcaseApply="getcaseApply"
  294. @cancelshowchoosetrialMethod="cancelshowchoosetrialMethod"
  295. ></choosetrialmethodDaiog>
  296. <!-- 书面审理 -->
  297. <adjudicaterecordDialog
  298. :showadjudicaterecord="showadjudicaterecord"
  299. :form="form"
  300. :adjudicatename="adjudicatename"
  301. @canceladjudicaterecord="canceladjudicaterecord"
  302. @getcaseApply="getcaseApply"
  303. ></adjudicaterecordDialog>
  304. <!-- 开庭审理 -->
  305. <trialincourtDialog
  306. :showtrialincourt="showtrialincourt"
  307. :adjudicatename="adjudicatename"
  308. :form="form"
  309. @canceltrialincourt="canceltrialincourt"
  310. ></trialincourtDialog>
  311. </div>
  312. </template>
  313. <script>
  314. import caseentryDialog from "./components/caseentryDialog";
  315. import batchDialog from "./components/batchDialog";
  316. import formateCourtDialog from "./components/formateCourtDialog.vue";
  317. import courtReviewDialog from "./components/courtReviewDialog.vue";
  318. import choosetrialmethodDaiog from "./components/choosetrialmethodDaiog.vue";
  319. import adjudicaterecordDialog from "./components/adjudicaterecordDialog.vue";
  320. import trialincourtDialog from './components/trialincourtDialog.vue';
  321. import {
  322. caseApply,
  323. removeCaseApply,
  324. submitCaseApply,
  325. selectCaseApply,
  326. } from "@/api/caseAccess/caseEntry";
  327. export default {
  328. name: "caseList",
  329. dicts: ["case_status"],
  330. components: {
  331. caseentryDialog,
  332. batchDialog,
  333. formateCourtDialog,
  334. courtReviewDialog,
  335. choosetrialmethodDaiog,
  336. adjudicaterecordDialog,
  337. trialincourtDialog
  338. },
  339. data() {
  340. return {
  341. // 遮罩层
  342. loading: true,
  343. // 总条数
  344. total: 0,
  345. isapply: "申请人:",
  346. // 表格数据
  347. dataList: [],
  348. // 查询参数
  349. queryParams: {
  350. caseNum: undefined,
  351. hearDate: "",
  352. caseStatus: null,
  353. pageNum: 1,
  354. pageSize: 10,
  355. },
  356. dialogtitle: "", //弹框标题
  357. visible: false, //申请弹框控制
  358. form: {},
  359. starttime: "", //开始时间
  360. endtime: "", //结束时间
  361. formData: {},
  362. flag: "-1",
  363. initpaymentArr: [],
  364. initpaymentArr1: [],
  365. openbatch: false, // 批量申请弹框
  366. formateCourtData: {}, //组庭
  367. showformateCourt: false, //组庭界面显示
  368. showcourtReview: false, //组庭审核页面
  369. showchoosetrialmethod: false, //选择仲裁方式页面
  370. choosetrialmethodata:{},
  371. showadjudicaterecord: false, //书面审理弹框
  372. adjudicatename: {},//书面仲裁(被)申请人姓名
  373. showtrialincourt: false, //开庭审理
  374. };
  375. },
  376. created() {
  377. this.getcaseApply();
  378. },
  379. methods: {
  380. cancel() {
  381. this.visible = false;
  382. },
  383. cancelBatch() {
  384. this.openbatch = false;
  385. },
  386. /** 查询列表 */
  387. getcaseApply() {
  388. this.loading = true;
  389. caseApply(this.queryParams).then((response) => {
  390. this.dataList = response.rows;
  391. // this.dataList.forEach((item) => {
  392. // item.caseStatus = item.caseStatus == 0 ? "立案申请" : "待缴费";
  393. // });
  394. this.total = response.total;
  395. this.loading = false;
  396. });
  397. },
  398. /** 搜索按钮操作 */
  399. handleQuery() {
  400. this.queryParams.pageNum = 1;
  401. this.getcaseApply();
  402. },
  403. /** 重置按钮操作 */
  404. resetQuery() {
  405. this.resetForm("queryForm");
  406. this.handleQuery();
  407. },
  408. // 案件录入
  409. filingApplication() {
  410. this.form = {};
  411. this.paymentArr = [
  412. {
  413. identityType: 1,
  414. name: "",
  415. identityNum: "",
  416. contactTelphone: "",
  417. workAddress: "",
  418. workTelphone: "",
  419. contactAddress: "",
  420. nameAgent: "",
  421. contactTelphoneAgent: "",
  422. contactAddressAgent: "",
  423. },
  424. ];
  425. this.paymentArr1 = [
  426. {
  427. identityType: 2,
  428. name: "",
  429. identityNum: "",
  430. contactTelphone: "",
  431. workAddress: "",
  432. workTelphone: "",
  433. contactAddress: "",
  434. nameAgent: "",
  435. contactTelphoneAgent: "",
  436. contactAddressAgent: "",
  437. },
  438. ];
  439. this.visible = true;
  440. this.dialogtitle = "立案申请";
  441. this.flag = "2";
  442. },
  443. // 批量批量录入
  444. batchApplication() {
  445. this.openbatch = true;
  446. },
  447. // 列表提交立案
  448. onsubmitRow(row) {
  449. this.$modal
  450. .confirm("是否提交立案?")
  451. .then(function () {
  452. return submitCaseApply({ id: row.id });
  453. })
  454. .then(() => {
  455. this.getcaseApply();
  456. this.$modal.msgSuccess("立案成功");
  457. })
  458. .catch(() => {});
  459. },
  460. // 详情
  461. detailRow(row) {
  462. this.flag = "0";
  463. this.form = row;
  464. this.visible = true;
  465. this.dialogtitle = "立案详情";
  466. this.getInfo(row);
  467. },
  468. // 修改
  469. editRow(row) {
  470. this.flag = "1";
  471. this.form = row;
  472. this.visible = true;
  473. this.dialogtitle = "立案修改";
  474. this.getInfo(row);
  475. },
  476. // 立案审查
  477. filingreviewRow(row) {
  478. console.log(row, "立案审查");
  479. this.$modal
  480. .confirm("确定提交案件数据吗?")
  481. .then(function () {
  482. return submitCaseApply({ id: row.id });
  483. })
  484. .then(() => {
  485. this.getcaseApply();
  486. this.$modal.msgSuccess("立案成功");
  487. })
  488. .catch(() => {});
  489. },
  490. // 查看缴费
  491. viewpaymentRow(row) {
  492. console.log(row, "查看缴费");
  493. },
  494. // 组庭
  495. // formationcourtRow(row) {
  496. // console.log(row, "组庭");
  497. // this.formateCourtData = row;
  498. // this.showformateCourt = true;
  499. // },
  500. // 关闭组庭页面
  501. cancelcourtDialog() {
  502. this.showformateCourt = false;
  503. },
  504. // 组庭确认
  505. courtconfirmationRow(row) {
  506. console.log(row, "组庭确认");
  507. this.showcourtReview = true;
  508. this.form = row;
  509. },
  510. // 组庭审核
  511. courtreviewRow(row) {
  512. console.log(row, "组庭审核");
  513. this.formateCourtData = row;
  514. this.showformateCourt = true;
  515. },
  516. cancelcourtReview() {
  517. this.showcourtReview = false;
  518. },
  519. // 选择开庭方式
  520. choosetrialmethodRow(row) {
  521. console.log(row, "选择开庭方式");
  522. this.choosetrialmethodata = row;
  523. this.showchoosetrialmethod = true;
  524. },
  525. // 关闭选择开庭方式
  526. cancelshowchoosetrialMethod() {
  527. this.showchoosetrialmethod = false;
  528. },
  529. // 书面审理
  530. adjudicaterecordRow(row) {
  531. // console.log(row, "书面审理");
  532. this.showadjudicaterecord = true;
  533. this.form = row;
  534. this.getInfo(row)
  535. },
  536. canceladjudicaterecord() {
  537. this.showadjudicaterecord = false;
  538. },
  539. // 开庭审理
  540. trialcourtRow(row) {
  541. console.log(row, "开庭审理");
  542. this.showtrialincourt = true;
  543. this.form = row;
  544. this.getInfo(row)
  545. },
  546. canceltrialincourt() {
  547. this.showtrialincourt = false;
  548. },
  549. // 生成裁决书
  550. generateawardRow(row) {
  551. console.log(row, "生成裁决书");
  552. },
  553. // 归档
  554. fileRow(row) {
  555. console.log(row, "归档");
  556. },
  557. // 查找主体信息数据
  558. getInfo(row) {
  559. const id = row.id;
  560. selectCaseApply({ id }).then((res) => {
  561. console.log(res,'nnnnnnnnnnnn');
  562. // this.visible = true;
  563. // this.formData = res.data;
  564. this.adjudicatename = {
  565. applicantName: res.data.applicantName,
  566. respondentName: res.data.respondentName,
  567. feePayable: res.data.feePayable,
  568. hearDate: res.data.hearDate
  569. }
  570. this.initpaymentArr = [];
  571. this.initpaymentArr1 = [];
  572. res.data.caseAffiliates.forEach((item) => {
  573. if (item.identityType == 1) {
  574. this.initpaymentArr.push(item);
  575. } else {
  576. this.initpaymentArr1.push(item);
  577. }
  578. });
  579. });
  580. },
  581. // 删除
  582. deleteRow(row) {
  583. // const id = row.id;
  584. this.$modal
  585. .confirm("是否确认删除?")
  586. .then(function () {
  587. return removeCaseApply({ id: row.id });
  588. })
  589. .then((res) => {
  590. this.getcaseApply();
  591. this.$modal.msgSuccess("删除成功");
  592. })
  593. .catch(() => {});
  594. },
  595. },
  596. };
  597. </script>
  598. <style lang="scss" scoped>
  599. #formContainer {
  600. }
  601. </style>