应用层PC端前端服务

caseList.vue 27KB

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