应用层PC端前端服务

caseList.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  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="98px"
  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="applicantName">
  19. <!-- <el-input
  20. v-model="queryParams.applicantName"
  21. placeholder="请输入机构名称"
  22. clearable
  23. @keyup.enter.native="handleQuery"
  24. /> -->
  25. <el-cascader
  26. v-model="queryParams.nameId"
  27. :options="options"
  28. @change="changeDept"
  29. :props="{ checkStrictly: true }"
  30. clearable
  31. ></el-cascader>
  32. </el-form-item>
  33. <el-form-item label="案件状态" prop="caseStatus">
  34. <el-select
  35. v-model="queryParams.caseStatus"
  36. placeholder="请选择案件状态"
  37. clearable
  38. @keyup.enter.native="handleQuery"
  39. >
  40. <el-option
  41. v-for="dict in dict.type.case_status"
  42. :key="dict.value"
  43. :label="dict.label"
  44. :value="dict.value"
  45. ></el-option>
  46. </el-select>
  47. </el-form-item>
  48. <!-- <el-form-item label="开庭日期" prop="hearDate">
  49. <el-date-picker
  50. v-model="queryParams.hearDate"
  51. type="daterange"
  52. range-separator="至"
  53. start-placeholder="开始日期"
  54. end-placeholder="结束日期"
  55. >
  56. </el-date-picker>
  57. </el-form-item> -->
  58. <el-form-item>
  59. <el-button
  60. type="primary"
  61. icon="el-icon-search"
  62. size="mini"
  63. @click="handleQuery"
  64. >搜索</el-button
  65. >
  66. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  67. >重置</el-button
  68. >
  69. </el-form-item>
  70. </el-form>
  71. <el-row :gutter="10" class="mb8">
  72. <el-col :span="1.5">
  73. <el-button
  74. type="primary"
  75. plain
  76. icon="el-icon-plus"
  77. size="mini"
  78. @click="filingApplication"
  79. v-hasPermi="['caseManagement:list:add']"
  80. >案件录入</el-button
  81. >
  82. <el-button
  83. type="primary"
  84. plain
  85. icon="el-icon-plus"
  86. size="mini"
  87. @click="batchApplication"
  88. v-hasPermi="['caseManagement:list:import']"
  89. >案件批量导入</el-button
  90. >
  91. </el-col>
  92. </el-row>
  93. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  94. <el-table-column label="序号" type="index" align="center">
  95. <template slot-scope="scope">
  96. <span>{{
  97. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  98. }}</span>
  99. </template>
  100. </el-table-column>
  101. <el-table-column
  102. label="案件编号"
  103. align="center"
  104. prop="caseNum"
  105. :show-overflow-tooltip="true"
  106. />
  107. <el-table-column
  108. label="申请人(机构)"
  109. align="center"
  110. prop="applicantName"
  111. :show-overflow-tooltip="true"
  112. />
  113. <el-table-column
  114. label="案件标的"
  115. align="center"
  116. prop="caseSubjectAmount"
  117. />
  118. <el-table-column
  119. label="仲裁方式"
  120. align="center"
  121. prop="arbitratMethodName"
  122. :show-overflow-tooltip="true"
  123. />
  124. <!-- 仲裁员 -->
  125. <el-table-column label="仲裁员" align="center" prop="arbitratorName" />
  126. <!-- 开庭日期 -->
  127. <el-table-column
  128. label="开庭日期"
  129. align="center"
  130. prop="hearDate"
  131. :show-overflow-tooltip="true"
  132. />
  133. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  134. <template slot-scope="scope">
  135. <el-tag type="success">{{ scope.row.caseStatusName }}</el-tag>
  136. </template>
  137. </el-table-column>
  138. <el-table-column
  139. label="操作"
  140. align="center"
  141. class-name="small-padding fixed-width"
  142. >
  143. <template slot-scope="scope">
  144. <el-button
  145. size="mini"
  146. type="text"
  147. icon="el-icon-zoom-in"
  148. @click="detailRow(scope.row)"
  149. >详情</el-button
  150. >
  151. <!-- 案件日志 -->
  152. <el-button
  153. size="mini"
  154. type="text"
  155. icon="el-icon-notebook-2"
  156. @click="caselogRow(scope.row)"
  157. >案件日志</el-button
  158. >
  159. <el-button
  160. size="mini"
  161. type="text"
  162. icon="el-icon-edit"
  163. @click="editRow(scope.row)"
  164. v-if="
  165. scope.row.caseStatus == 0 &&
  166. checkPermi(['caseManagement:list:update'])
  167. "
  168. >修改</el-button
  169. >
  170. <el-button
  171. size="mini"
  172. type="text"
  173. icon="el-icon-check"
  174. @click="onsubmitRow(scope.row)"
  175. v-if="
  176. scope.row.caseStatus == 0 &&
  177. checkPermi(['caseManagement:list:submit'])
  178. "
  179. >提交</el-button
  180. >
  181. <el-button
  182. size="mini"
  183. type="text"
  184. icon="el-icon-delete"
  185. @click="deleteRow(scope.row)"
  186. v-if="
  187. scope.row.caseStatus == 0 &&
  188. checkPermi(['caseManagement:list:delete'])
  189. "
  190. >删除</el-button
  191. >
  192. <el-button
  193. size="mini"
  194. type="text"
  195. icon="el-icon-view"
  196. @click="filingreviewRow(scope.row)"
  197. v-if="
  198. scope.row.caseStatus == 1 &&
  199. checkPermi(['caseManagement:list:check'])
  200. "
  201. >立案审查</el-button
  202. >
  203. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)"
  204. v-if="scope.row.caseStatus == 2" v-hasPermi="['caseManagement:list:pay']">缴费</el-button> -->
  205. <el-button
  206. size="mini"
  207. type="text"
  208. icon="el-icon-tickets"
  209. @click="payStatus(scope.row)"
  210. v-if="
  211. scope.row.caseStatus == 2 &&
  212. checkPermi(['caseManagement:list:pay'])
  213. "
  214. >缴费</el-button
  215. >
  216. <!-- <el-button
  217. size="mini"
  218. type="text"
  219. icon="el-icon-data-analysis"
  220. @click="formationcourtRow(scope.row)"
  221. v-hasPermi="['monitor:online:forceLogout']"
  222. >组庭</el-button
  223. > -->
  224. <el-button
  225. size="mini"
  226. type="text"
  227. icon="el-icon-s-check"
  228. @click="courtconfirmationRow(scope.row)"
  229. v-if="
  230. scope.row.caseStatus == 6 &&
  231. checkPermi(['caseManagement:list:confirmgroup'])
  232. "
  233. >组庭确认</el-button
  234. >
  235. <el-button
  236. size="mini"
  237. type="text"
  238. icon="el-icon-check"
  239. @click="courtreviewRow(scope.row)"
  240. v-if="
  241. scope.row.caseStatus == 5 &&
  242. checkPermi(['caseManagement:list:checkgroup'])
  243. "
  244. >组庭审核</el-button
  245. >
  246. <el-button
  247. size="mini"
  248. type="text"
  249. icon="el-icon-sort"
  250. @click="choosetrialmethodRow(scope.row)"
  251. v-if="
  252. scope.row.caseStatus == 7 &&
  253. checkPermi(['caseManagement:list:checkarbitrationway'])
  254. "
  255. >审核仲裁方式</el-button
  256. >
  257. <el-button
  258. size="mini"
  259. type="text"
  260. icon="el-icon-edit-outline"
  261. @click="adjudicaterecordRow(scope.row)"
  262. v-if="
  263. scope.row.caseStatus == 9 &&
  264. scope.row.arbitratMethod == 2 &&
  265. checkPermi(['caseManagement:list:hear'])
  266. "
  267. >书面审理</el-button
  268. >
  269. <!-- v-hasPermi="['caseManagement:list:hear']" -->
  270. <el-button
  271. size="mini"
  272. type="text"
  273. icon="el-icon-service"
  274. @click="trialcourtRow(scope.row)"
  275. v-if="
  276. scope.row.caseStatus == 8 &&
  277. scope.row.arbitratMethod == 1 &&
  278. checkPermi(['caseManagement:list:hear'])
  279. "
  280. >开庭审理</el-button
  281. >
  282. <el-button
  283. size="mini"
  284. type="text"
  285. icon="el-icon-document"
  286. @click="generateawardRow(scope.row)"
  287. v-if="
  288. scope.row.caseStatus == 10 &&
  289. checkPermi(['caseManagement:list:createaward'])
  290. "
  291. >生成裁决书</el-button
  292. >
  293. <!-- <el-button
  294. size="mini"
  295. type="text"
  296. icon="el-icon-receiving"
  297. @click="fileRow(scope.row)"
  298. v-if="scope.row.caseStatus == 16"
  299. v-hasPermi="['monitor:online:forceLogout']"
  300. >归档</el-button
  301. > -->
  302. </template>
  303. </el-table-column>
  304. </el-table>
  305. <pagination
  306. v-show="total > 0"
  307. :total="total"
  308. :page.sync="queryParams.pageNum"
  309. :limit.sync="queryParams.pageSize"
  310. @pagination="getcaseApply(queryParams)"
  311. />
  312. <!-- 立案申请弹框 -->
  313. <caseentryDialog
  314. :visible="visible"
  315. @cancel="cancel"
  316. :form="form"
  317. :queryParams="queryParams"
  318. :dialogtitle="dialogtitle"
  319. :getcaseApply="getcaseApply"
  320. :flag="flag"
  321. :caseAttachList="caseAttachList"
  322. :initpaymentArr="initpaymentArr"
  323. :initpaymentArr1="initpaymentArr1"
  324. ></caseentryDialog>
  325. <!-- 批量申请弹框 openbatch-->
  326. <batchDialog
  327. :openbatch="openbatch"
  328. :queryParams="queryParams"
  329. @cancelBatch="cancelBatch"
  330. :getcaseApply="getcaseApply"
  331. ></batchDialog>
  332. <!-- 立案审查页面 -->
  333. <filingreviewDialog
  334. :showfilingreview="showfilingreview"
  335. :filingreviewdata="filingreviewdata"
  336. :queryParams="queryParams"
  337. @getcaseApply="getcaseApply"
  338. @cancelFilingreview="cancelFilingreview"
  339. >
  340. </filingreviewDialog>
  341. <!-- 组庭页面---改为组庭审核 -->
  342. <formateCourtDialog
  343. :showformateCourt="showformateCourt"
  344. @cancelcourtDialog="cancelcourtDialog"
  345. :queryParams="queryParams"
  346. :formateCourtData="formateCourtData"
  347. @getcaseApply="getcaseApply"
  348. ></formateCourtDialog>
  349. <!-- 组庭审核--改组庭确认 -->
  350. <courtReviewDialog
  351. :showcourtReview="showcourtReview"
  352. :form="form"
  353. :queryParams="queryParams"
  354. @cancelcourtReview="cancelcourtReview"
  355. @getcaseApply="getcaseApply"
  356. ></courtReviewDialog>
  357. <!-- 审核仲裁方式 -->
  358. <choosetrialmethodDaiog
  359. :showchoosetrialmethod="showchoosetrialmethod"
  360. :choosetrialmethodata="choosetrialmethodata"
  361. :queryParams="queryParams"
  362. @getcaseApply="getcaseApply"
  363. @cancelshowchoosetrialMethod="cancelshowchoosetrialMethod"
  364. >
  365. </choosetrialmethodDaiog>
  366. <!-- 书面审理 -->
  367. <adjudicaterecordDialog
  368. :showadjudicaterecord="showadjudicaterecord"
  369. :form="form"
  370. :adjudicatename="adjudicatename"
  371. :queryParams="queryParams"
  372. @canceladjudicaterecord="canceladjudicaterecord"
  373. @getcaseApply="getcaseApply"
  374. >
  375. </adjudicaterecordDialog>
  376. <!-- 开庭审理 -->
  377. <trialincourtDialog
  378. :showtrialincourt="showtrialincourt"
  379. :adjudicatename="adjudicatename"
  380. :form="form"
  381. :queryParams="queryParams"
  382. @getcaseApply="getcaseApply"
  383. @canceltrialincourt="canceltrialincourt"
  384. >
  385. </trialincourtDialog>
  386. <!-- 缴费 -->
  387. <payDialog
  388. :openPay="openPay"
  389. :payTitle="payTitle"
  390. :form="form"
  391. :payForm="payForm"
  392. :queryParams="queryParams"
  393. @getcaseApply="getcaseApply"
  394. @paycancelRow="paycancelRow"
  395. ></payDialog>
  396. <!-- 案件日志 -->
  397. <caselogDialog
  398. :showcaseLog="showcaseLog"
  399. @cancelcaseLog="cancelcaseLog"
  400. :flagLoading="flagLoading"
  401. :caselogDataArr="caselogDataArr"
  402. ></caselogDialog>
  403. </div>
  404. </template>
  405. <script>
  406. import caseentryDialog from "./components/caseentryDialog";
  407. import batchDialog from "./components/batchDialog";
  408. import formateCourtDialog from "./components/formateCourtDialog.vue";
  409. import courtReviewDialog from "./components/courtReviewDialog.vue";
  410. import choosetrialmethodDaiog from "./components/choosetrialmethodDaiog.vue";
  411. import adjudicaterecordDialog from "./components/adjudicaterecordDialog.vue";
  412. import trialincourtDialog from "./components/trialincourtDialog.vue";
  413. import payDialog from "./components/payDialog.vue";
  414. import filingreviewDialog from "./components/filingreviewDialog.vue";
  415. import caselogDialog from "./components/caselogDialog.vue";
  416. import { caseApplicationDetail } from "@/api/pay/pay";
  417. import {
  418. caseApply,
  419. removeCaseApply,
  420. submitCaseApply,
  421. selectCaseApply,
  422. } from "@/api/caseAccess/caseEntry";
  423. import { listDept } from "@/api/system/dept";
  424. import {
  425. document,
  426. caseLogRecordList,
  427. } from "@/api/caseManagement/caseManagement";
  428. export default {
  429. name: "caseList",
  430. dicts: ["case_status"],
  431. components: {
  432. caseentryDialog,
  433. batchDialog,
  434. formateCourtDialog,
  435. courtReviewDialog,
  436. choosetrialmethodDaiog,
  437. adjudicaterecordDialog,
  438. trialincourtDialog,
  439. payDialog,
  440. filingreviewDialog,
  441. caselogDialog,
  442. },
  443. data() {
  444. return {
  445. // 遮罩层
  446. loading: true,
  447. // 总条数
  448. total: 0,
  449. isapply: "申请人:",
  450. // 表格数据
  451. dataList: [],
  452. // 查询参数
  453. queryParams: {
  454. caseNum: undefined,
  455. // caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10, 16],
  456. caseStatusList: [0, 1, 2, 5, 6, 7, 8, 9, 10],
  457. // hearDate: "",
  458. caseStatus: null,
  459. applicantName: "",
  460. nameId: "",
  461. pageNum: 1,
  462. pageSize: 10,
  463. },
  464. dialogtitle: "", //弹框标题
  465. visible: false, //申请弹框控制
  466. form: {},
  467. starttime: "", //开始时间
  468. endtime: "", //结束时间
  469. formData: {},
  470. flag: "-1",
  471. initpaymentArr: [],
  472. initpaymentArr1: [],
  473. showfilingreview: false, //立案申查弹框控制
  474. filingreviewdata: {}, //立案审查传输数据
  475. openbatch: false, // 批量申请弹框
  476. formateCourtData: {}, //组庭
  477. showformateCourt: false, //组庭界面显示
  478. showcourtReview: false, //组庭审核页面
  479. showchoosetrialmethod: false, //选择仲裁方式页面
  480. choosetrialmethodata: {},
  481. showadjudicaterecord: false, //书面审理弹框
  482. adjudicatename: {}, //书面仲裁(被)申请人姓名
  483. showtrialincourt: false, //开庭审理
  484. openPay: false, //缴费弹框
  485. payTitle: "",
  486. payForm: {},
  487. caseAttachList: [], //案件质证资料
  488. showcaseLog: false, //案件日志弹框显示
  489. flagLoading: true, //案件日志弹框loading
  490. caselogDataArr: [],
  491. options: [], //机构数据
  492. };
  493. },
  494. created() {
  495. this.getcaseApply(this.queryParams);
  496. this.getInstitution();
  497. },
  498. methods: {
  499. cancel() {
  500. this.visible = false;
  501. },
  502. cancelBatch() {
  503. this.openbatch = false;
  504. },
  505. // 机构发生变化
  506. changeDept(data) {
  507. this.queryParams.nameId = data[0];
  508. },
  509. // 获取机构数据
  510. getInstitution() {
  511. listDept().then((res) => {
  512. res.data.forEach((item) => {
  513. item.value = item.deptId;
  514. item.label = item.deptName;
  515. });
  516. this.options = this.handleTree(res.data, "deptId");
  517. });
  518. },
  519. /** 查询列表 */
  520. getcaseApply(val) {
  521. this.loading = true;
  522. caseApply(val).then((response) => {
  523. this.dataList = response.rows;
  524. this.total = response.total;
  525. this.loading = false;
  526. });
  527. },
  528. /** 搜索按钮操作 */
  529. handleQuery() {
  530. this.queryParams.caseStatusList = [];
  531. this.queryParams.pageNum = 1;
  532. this.getcaseApply(this.queryParams);
  533. },
  534. /** 重置按钮操作 */
  535. resetQuery() {
  536. this.resetForm("queryForm");
  537. (this.queryParams.caseStatusList = [0, 1, 2, 5, 6, 7, 8, 9, 10]),
  538. (this.queryParams.applicantName = ""),
  539. (this.queryParams.nameId = ""),
  540. this.getcaseApply(this.queryParams);
  541. },
  542. // 案件录入
  543. filingApplication() {
  544. this.form = {};
  545. this.initpaymentArr = [
  546. {
  547. identityType: 1,
  548. name: "",
  549. identityNum: "",
  550. contactTelphone: "",
  551. workAddress: "",
  552. workTelphone: "",
  553. contactAddress: "",
  554. nameAgent: "",
  555. contactTelphoneAgent: "",
  556. contactAddressAgent: "",
  557. },
  558. ];
  559. this.initpaymentArr1 = [
  560. {
  561. identityType: 2,
  562. name: "",
  563. identityNum: "",
  564. contactTelphone: "",
  565. workAddress: "",
  566. workTelphone: "",
  567. contactAddress: "",
  568. nameAgent: "",
  569. contactTelphoneAgent: "",
  570. contactAddressAgent: "",
  571. },
  572. ];
  573. this.visible = true;
  574. this.dialogtitle = "立案申请";
  575. this.flag = "2";
  576. },
  577. // 批量批量录入
  578. batchApplication() {
  579. this.openbatch = true;
  580. },
  581. // 详情
  582. detailRow(row) {
  583. this.flag = "0";
  584. this.form = row;
  585. this.visible = true;
  586. this.dialogtitle = "立案详情";
  587. this.getInfo(row);
  588. },
  589. // 案件日志
  590. caselogRow(row) {
  591. this.showcaseLog = true;
  592. this.caseLogRecordListFn(row);
  593. },
  594. // 查询案件日志信息
  595. caseLogRecordListFn(val) {
  596. this.flagLoading = true;
  597. let params = {
  598. caseAppliId: val.id,
  599. };
  600. caseLogRecordList(params).then((res) => {
  601. this.caselogDataArr = res.rows;
  602. this.flagLoading = false;
  603. });
  604. },
  605. // 关闭案件日志
  606. cancelcaseLog() {
  607. this.showcaseLog = false;
  608. },
  609. // 修改
  610. editRow(row) {
  611. this.flag = "1";
  612. this.form = row;
  613. this.visible = true;
  614. this.dialogtitle = "立案修改";
  615. this.getInfo(row);
  616. },
  617. // 列表提交立案
  618. onsubmitRow(row) {
  619. this.$modal
  620. .confirm("是否提交立案申请?")
  621. .then(function () {
  622. return submitCaseApply({ id: row.id });
  623. })
  624. .then(() => {
  625. this.getcaseApply(this.queryParams);
  626. this.$modal.msgSuccess("立案申请成功");
  627. })
  628. .catch(() => {});
  629. },
  630. // 立案审查
  631. filingreviewRow(row) {
  632. console.log(row, "立案审查");
  633. this.showfilingreview = true;
  634. this.filingreviewdata = row;
  635. },
  636. cancelFilingreview() {
  637. this.showfilingreview = false;
  638. },
  639. // 取消缴费
  640. paycancelRow(row) {
  641. this.openPay = false;
  642. },
  643. // 是否进行缴费
  644. payStatus(val) {
  645. this.getDetail({ id: val.id });
  646. this.payTitle = "缴费";
  647. this.openPay = true;
  648. },
  649. getDetail(parms) {
  650. caseApplicationDetail(parms).then((res) => {
  651. if (res.data.caseStatus == 1) {
  652. res.data.caseStatusName = "待缴费";
  653. }
  654. this.form = res.data;
  655. this.payForm.feePayable = res.data.feePayable;
  656. this.payForm.caseId = res.data.id;
  657. });
  658. },
  659. // 组庭
  660. // formationcourtRow(row) {
  661. // console.log(row, "组庭");
  662. // this.formateCourtData = row;
  663. // this.showformateCourt = true;
  664. // },
  665. // 关闭组庭页面
  666. cancelcourtDialog() {
  667. this.showformateCourt = false;
  668. },
  669. // 组庭确认
  670. courtconfirmationRow(row) {
  671. // console.log(row, "组庭确认");
  672. this.showcourtReview = true;
  673. this.form = row;
  674. },
  675. // 组庭审核
  676. courtreviewRow(row) {
  677. // console.log(row, "组庭审核");
  678. this.formateCourtData = row;
  679. this.showformateCourt = true;
  680. },
  681. cancelcourtReview() {
  682. this.showcourtReview = false;
  683. },
  684. // 选择开庭方式改为审核仲裁方式
  685. choosetrialmethodRow(row) {
  686. // console.log(row, "审核仲裁方式");
  687. this.choosetrialmethodata = row;
  688. this.showchoosetrialmethod = true;
  689. },
  690. // 关闭审核仲裁方式
  691. cancelshowchoosetrialMethod() {
  692. this.showchoosetrialmethod = false;
  693. },
  694. // 书面审理
  695. adjudicaterecordRow(row) {
  696. // console.log(row, "书面审理");
  697. this.showadjudicaterecord = true;
  698. this.form = row;
  699. this.getInfo(row);
  700. },
  701. canceladjudicaterecord() {
  702. this.showadjudicaterecord = false;
  703. },
  704. // 开庭审理
  705. trialcourtRow(row) {
  706. console.log(row, "开庭审理");
  707. this.showtrialincourt = true;
  708. this.form = row;
  709. this.getInfo(row);
  710. },
  711. canceltrialincourt() {
  712. this.showtrialincourt = false;
  713. },
  714. // 生成裁决书
  715. generateawardRow(row) {
  716. console.log(row, "生成裁决书");
  717. this.$modal
  718. .confirm("确定生成裁决书吗?")
  719. .then(function () {
  720. return document({ id: row.id });
  721. })
  722. .then((res) => {
  723. if (res.code == 200) {
  724. this.getcaseApply(this.queryParams);
  725. this.$modal.msgSuccess("裁决书生成成功");
  726. }
  727. })
  728. .catch(() => {});
  729. },
  730. // 归档
  731. fileRow(row) {
  732. console.log(row, "归档");
  733. },
  734. // 查找主体信息数据
  735. getInfo(row) {
  736. const id = row.id;
  737. selectCaseApply({ id }).then((res) => {
  738. // this.visible = true;
  739. // this.formData = res.data;
  740. this.adjudicatename = {
  741. applicantName: res.data.applicantName,
  742. respondentName: res.data.respondentName,
  743. feePayable: res.data.feePayable,
  744. hearDate: res.data.hearDate,
  745. arbitratorName: res.data.arbitratorName,
  746. caseAttachList: res.data.caseAttachList
  747. };
  748. this.initpaymentArr = [];
  749. this.initpaymentArr1 = [];
  750. res.data.caseAffiliates.forEach((item) => {
  751. if (item.identityType == 1) {
  752. this.initpaymentArr.push(item);
  753. } else {
  754. this.initpaymentArr1.push(item);
  755. }
  756. });
  757. this.caseAttachList = res.data.caseAttachList;
  758. });
  759. },
  760. // 删除
  761. deleteRow(row) {
  762. // const id = row.id;
  763. this.$modal
  764. .confirm("是否确认删除?")
  765. .then(function () {
  766. return removeCaseApply({ id: row.id });
  767. })
  768. .then((res) => {
  769. this.getcaseApply(this.queryParams);
  770. this.$modal.msgSuccess("删除成功");
  771. })
  772. .catch(() => {});
  773. },
  774. },
  775. };
  776. </script>
  777. <style lang="scss" scoped>
  778. #formContainer {
  779. }
  780. </style>