调解系统PC端服务

caseList.vue 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
  4. <el-form-item label="案件状态" prop="caseFlowId">
  5. <el-select v-model="queryParams.caseFlowId" placeholder="请选择" clearable>
  6. <el-option v-for="dict in buttonList" :key="dict.id" :label="dict.caseStatusName"
  7. :value="dict.id" @keyup.enter.native="handleQuery"></el-option>
  8. </el-select>
  9. </el-form-item>
  10. <!-- <el-form-item label="申请机构" prop="applicationOrganId">
  11. <el-select v-model="queryParams.applicationOrganId" placeholder="请选择" clearable>
  12. <el-option v-for="dict in deptList" :key="dict.deptId" :label="dict.deptName" :value="dict.deptId"
  13. @keyup.enter.native="handleQuery"></el-option>
  14. </el-select>
  15. </el-form-item> -->
  16. <!-- <el-form-item label="批号" prop="batchNumber">
  17. <el-input v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable style="width: 240px"
  18. @keyup.enter.native="handleQuery" />
  19. </el-form-item> -->
  20. <el-form-item label="案件编号" prop="caseNum">
  21. <el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable style="width: 240px"
  22. @keyup.enter.native="handleQuery" />
  23. </el-form-item>
  24. <el-form-item label="创建时间" prop="caseTime">
  25. <el-date-picker v-model="caseTime" type="daterange" align="right" unlink-panels range-separator="至"
  26. start-placeholder="开始日期" end-placeholder="结束日期" clearable style="width: 240px" @change="caseTimeChange">
  27. </el-date-picker>
  28. </el-form-item>
  29. <el-form-item>
  30. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  31. <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
  32. </el-form-item>
  33. </el-form>
  34. <el-row :gutter="10" class="mb8">
  35. <el-col :span="1.5">
  36. <el-button type="primary" plain icon="el-icon-plus" v-hasPermi="['caseManagement:list:add']" size="mini" @click="addCase()">新增案件</el-button>
  37. </el-col>
  38. <!-- TODO 后期可能加上-->
  39. <!-- <el-col :span="1.5">
  40. <el-button type="primary" plain icon="el-icon-plus" size="mini"
  41. @click="compressedPackages">案件压缩包上传</el-button>
  42. </el-col> -->
  43. </el-row>
  44. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  45. <el-table-column label="序号" type="index" align="center">
  46. <template slot-scope="scope">
  47. <span>{{
  48. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  49. }}</span>
  50. </template>
  51. </el-table-column>
  52. <!-- <el-table-column label="批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" /> -->
  53. <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
  54. <el-table-column label="申请人" align="center" prop="applicationName" :show-overflow-tooltip="true" />
  55. <el-table-column label="被申请人" align="center" prop="respondentName" :show-overflow-tooltip="true" />
  56. <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" :show-overflow-tooltip="true" />
  57. <el-table-column label="调解员" align="center" prop="mediatorName" :show-overflow-tooltip="true" />
  58. <el-table-column label="调解方式" align="center" prop="mediationMethodName" :show-overflow-tooltip="true" />
  59. <el-table-column label="调解时间" align="center" prop="hearDate" :show-overflow-tooltip="true" />
  60. <el-table-column label="案件状态" align="center" prop="caseStatusName" :show-overflow-tooltip="true" />
  61. <el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" />
  62. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  63. <template slot-scope="scope">
  64. <!-- <el-button size="mini" type="text" icon="el-icon-check" @click="onsubmitRow(scope.row)" v-if="statusRole(scope.row.caseFlowId)">提交</el-button> -->
  65. <el-button size="mini" @click="eidtNodeprocess(scope.row)" type="text"
  66. icon="el-icon-edit" v-hasPermi="['caseManagement:list:edit']">修改</el-button>
  67. <el-button size="mini" @click="checkDetail(scope.row)" type="text" icon="el-icon-view">查看详情</el-button>
  68. <!-- <el-button size="mini" @click="consultantApplica(scope.row)" type="text" icon="el-icon-tickets">法律顾问用印申请</el-button> -->
  69. <!-- <el-button size="mini" @click="departmentApplica(scope.row)" type="text" icon="el-icon-edit-outline">部门长用印</el-button> -->
  70. <el-button size="mini" @click="caseFlow(scope.row)" type="text" icon="el-icon-zoom-in">查看流程</el-button>
  71. <el-button size="mini" @click="caseLog(scope.row)" type="text"
  72. icon="el-icon-edit-outline">案件日志</el-button>
  73. <!-- <el-button size="mini" @click="paymentconfirmationRow(scope.row)" type="text" icon="el-icon-zoom-in">缴费确认</el-button> -->
  74. <!-- <el-button size="mini" @click="caseAccep(scope.row)" type="text" icon="el-icon-zoom-in">案件受理</el-button> -->
  75. <el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text"
  76. icon="el-icon-edit">查看缴费单</el-button>
  77. <!-- <el-button size="mini" @click="caseFiling(scope.row)" type="text" icon="el-icon-tickets">案件归档</el-button> -->
  78. <!-- <el-button size="mini" @click="signMediation(scope.row)" type="text" icon="el-icon-edit-outline">申请人签收</el-button> -->
  79. <!-- <el-button size="mini" @click="receivedMediation(scope.row)" type="text" icon="el-icon-edit-outline">被申请人签收</el-button> -->
  80. <el-button size="mini" type="text" icon="el-icon-edit"
  81. @click="evidenceUpload(scope.row)" v-hasPermi="['caseManagement:list:evidenceEdit']">上传证据</el-button>
  82. <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.caseFlowId > 14" @click="caseFilingDetails(scope.row)">归档详情</el-button>
  83. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)">缴费</el-button> -->
  84. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="selectMediator(scope.row)">预约时间</el-button> -->
  85. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="secretaryConfirm(scope.row)">秘书审核</el-button> -->
  86. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="department(scope.row)">部门长审核</el-button> -->
  87. <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="timeConfirm(scope.row)">确认调解时间</el-button> -->
  88. <el-button size="mini" type="text" icon="el-icon-tickets" v-for="(item) in buttonList" :key="item.id"
  89. @click="caseClick(scope.row,item.id)" v-if="item.id == scope.row.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</el-button>
  90. </template>
  91. </el-table-column>
  92. </el-table>
  93. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  94. @pagination="getList(queryParams)" />
  95. <!-- 新增编辑详情 -->
  96. <addCase :addVisable="addVisable" :queryParams="queryParams" @cancelCaseAdd="cancelCaseAdd" @getList="getList"
  97. :caseData="caseData" :caseDisabled="caseDisabled" :tabFlag="tabFlag" :addModifyData="addModifyData"></addCase>
  98. <!-- 压缩包导入 -->
  99. <caseCompressionPackage :openCompressedPackages="openCompressedPackages" :queryParams="queryParams"
  100. @cancelCompreess="cancelCompreess" :getList="getList">
  101. </caseCompressionPackage>
  102. <!-- 案件详情 -->
  103. <mediationCaseDetails :processVisable="processVisable" @cancelViewProcess="cancelViewProcess"
  104. :caseFlowNumber="caseFlowNumber">
  105. </mediationCaseDetails>
  106. <!-- 案件日志 -->
  107. <mediationCaseLog :showcaseLog="showcaseLog" @cancelcaseLog="cancelcaseLog" :caselogDataArr="caselogDataArr" :flagLoading="flagLoading"></mediationCaseLog>
  108. <!-- 证据修改 -->
  109. <evidenceDialog :evidenceVisable="evidenceVisable" @cancelEvidence="cancelEvidence" :evidenceData="evidenceData">
  110. </evidenceDialog>
  111. <!-- 缴费 -->
  112. <payDialog :openPay="openPay" :payTitle="payTitle" :formPayDetail="formPayDetail" :payId="payId" :payForm="payForm"
  113. :queryParams="queryParams" @getList="getList" @paycancelRow="paycancelRow" :formPayDetailAffiliate="formPayDetailAffiliate"></payDialog>
  114. <!-- 缴费确认查看详情 -->
  115. <paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle"
  116. :detailform="detailform" :queryParams="queryParams" :flag="flag" :paymentConfirma="paymentConfirma" :isapplicant="isapplicant" @getList="getList">
  117. </paymentdetailsDialog>
  118. <!-- 案件受理 -->
  119. <caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance"
  120. :caseAcceptanceData="caseAcceptanceData" @getList="getList"></caseAcceptance>
  121. <!-- 被申请人缴费 -->
  122. <respondentPay :openResPay="openResPay" :resPayTitle="resPayTitle" :formResPayDetail="formResPayDetail" :resPayId="resPayId" :resPayForm="resPayForm"
  123. :queryParams="queryParams" @getList="getList" @paycancelRes="paycancelRes" :formResPay="formResPay"></respondentPay>
  124. <!-- 调解员弹窗 -->
  125. <selectMediator @cancelMediator="cancelMediator" :mediatorVisable="mediatorVisable" :mediatorData="mediatorData"
  126. @getList="getList" :queryParams="queryParams"></selectMediator>
  127. <!-- 秘书确认 -->
  128. <confirmMediator @cancelConfirm="cancelConfirm" :confirmVisable="confirmVisable" :confirmData="confirmData"
  129. @getList="getList" :queryParams="queryParams"></confirmMediator>
  130. <!-- 部门长确认 -->
  131. <departmentMediator @cancelDepartment="cancelDepartment" :departmentVisable="departmentVisable"
  132. :departmentData="departmentData" @getList="getList" :queryParams="queryParams"></departmentMediator>
  133. <!-- 秘书确认时间 -->
  134. <timeConfirm @cancelTimeConfirm="cancelTimeConfirm" :timeConfirmVisable="timeConfirmVisable"
  135. :timeConfirmData="timeConfirmData" @getList="getList" :queryParams="queryParams"></timeConfirm>
  136. <!-- 待调解 -->
  137. <mediation @cancelMediation="cancelMediation" :mediationVisable="mediationVisable"
  138. :mediationData="mediationData" @getList="getList" :queryParams="queryParams"></mediation>
  139. <confirmMediation @cancelConfirmTion="cancelConfirmTion" :confirmTionVisable="confirmTionVisable"
  140. :confirmTionData="confirmTionData" @getList="getList" :queryParams="queryParams"></confirmMediation>
  141. <!-- 归档详情 -->
  142. <caseFilingDetailsPage :showarchiveDetails="showarchiveDetails" @cancelDetail="cancelDetail" :detailsAwardNum="detailsAwardNum" :flagLoadingS="flagLoadingS"></caseFilingDetailsPage>
  143. </div>
  144. </template>
  145. <script>
  146. import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl,listCaseLogRecord,msCaseFile,msCaseSign,listDeptApplied,msCaseSignUrlApplyPC} from '@/api/caseManagement/caseManagement.js'
  147. import { listDept } from '@/api/system/dept.js'
  148. import { queryCaseFlowInfo } from '@/api/caseprocessManagement/caseprocessManagement.js'
  149. import moment from "moment";
  150. import addCase from './components/addCase.vue'
  151. import evidenceDialog from './components/evidenceDialog.vue';
  152. import caseCompressionPackage from './components/caseCompressionPackage.vue';
  153. import mediationCaseDetails from './components/mediationCaseDetails.vue'
  154. import mediationCaseLog from './components/mediationCaseLog.vue'
  155. import payDialog from "./components/payDialog.vue";
  156. import respondentPay from "./components/respondentPay.vue"
  157. import paymentdetailsDialog from './components/paymentdetailsDialog.vue'
  158. import caseAcceptance from './components/caseAcceptance.vue'
  159. import selectMediator from './components/selectMediator.vue'
  160. import confirmMediator from './components/confirmMediator.vue'
  161. import departmentMediator from './components/departmentMediator.vue'
  162. import timeConfirm from './components/timeConfirm.vue'
  163. import mediation from './components/mediation.vue'
  164. import confirmMediation from './components/confirmMediation.vue'
  165. import caseFilingDetailsPage from './components/caseFilingDetailsPage.vue'
  166. export default {
  167. name: "caseList",
  168. dicts: ["case_flow_node"],
  169. components: {
  170. addCase,
  171. caseCompressionPackage,
  172. mediationCaseDetails,
  173. mediationCaseLog,
  174. evidenceDialog,
  175. payDialog,
  176. paymentdetailsDialog,
  177. caseAcceptance,
  178. selectMediator,//调解员弹窗
  179. confirmMediator,
  180. departmentMediator,
  181. timeConfirm,
  182. mediation,
  183. confirmMediation,
  184. caseFilingDetailsPage,
  185. respondentPay
  186. },
  187. data() {
  188. return {
  189. queryParams: {
  190. pageNum: 1,
  191. pageSize: 10,
  192. },
  193. // 遮罩层
  194. loading: false,
  195. // 总条数
  196. total: 0,
  197. // 表格数据
  198. form: {},
  199. // 校验表单
  200. rules: {},
  201. dataList: [],
  202. addVisable: false,//新增弹窗
  203. openPay: false, //缴费弹框
  204. openResPay:false,//被申请人缴费弹窗
  205. formPayDetail: {},
  206. formResPayDetail:{},
  207. payId: null,
  208. resPayId:null,
  209. payForm: {},
  210. resPayForm:{},
  211. openCompressedPackages: false,//压缩包导入弹窗
  212. processVisable: false,//案件详情
  213. showcaseLog: false,//案件日志
  214. openDialog: false,//确认缴费和缴费详情
  215. detailform: {}, //缴费详情数据
  216. evidenceVisable: false,//证据修改弹窗
  217. mediationVisable:false,//待调解弹窗
  218. mediationData:{},
  219. payTitle:"",//缴费标题
  220. resPayTitle:'',//被申请人缴费标题
  221. paymentConfirma:{},//缴费确认
  222. showAcceptance:false,//案件受理弹框
  223. caseAcceptanceData:{},//案件受理数据
  224. mediatorVisable:false,//选择调解员弹窗
  225. timeVisable:false,//预约时间弹窗
  226. confirmVisable:false,//确认时间/调解员
  227. caseFlowNumber:{},//案件流程数据
  228. caselogDataArr:[],//案件日志数据
  229. flagLoading: true, //案件日志弹框loading
  230. confirmTionVisable:false,//确认调解书弹窗
  231. addModifyData:null,//新增修改传的参数
  232. showarchiveDetails:false,//归档详情弹窗
  233. detailsAwardNum:{},
  234. flagLoadingS: true,
  235. formPayDetailAffiliate:{},
  236. formResPay:{},
  237. mediatorData:{},
  238. flag: null,
  239. caseData: {},
  240. evidenceData: {},
  241. caseDisabled: false,
  242. caseTime: '',
  243. deptList: [],
  244. payTitle: '',
  245. tabFlag: false,
  246. confirmData: {},
  247. departmentVisable: false,
  248. departmentData: {},
  249. timeConfirmVisable: false,
  250. timeConfirmData: {},
  251. confirmTionData:{},
  252. buttonList: [],
  253. isapplicant: true, //判断角色申请人或非申请人
  254. };
  255. },
  256. created() {
  257. this.getList(this.queryParams);
  258. this.listDeptFn()
  259. this.getButtonList()
  260. },
  261. methods: {
  262. /**所有按钮事件 */
  263. caseClick(val,type){
  264. if(type == 1){
  265. // 提交案件
  266. this.onsubmitRow(val);
  267. }else if(type == 2){
  268. // 缴费
  269. this.payStatus(val);
  270. }else if(type == 3 || type == 45){
  271. // 确认缴费
  272. this.paymentconfirmationRow(val,type);
  273. }else if(type == 4){
  274. // 受理分配
  275. this.caseAccep(val);
  276. }else if(type == 5){
  277. // 选择调解员
  278. this.selectMediator(val);
  279. }else if(type == 6){
  280. // 核实调解员
  281. this.secretaryConfirm(val);
  282. }else if(type == 7){
  283. // 确认调解员
  284. this.department(val);
  285. }else if(type == 8){
  286. // 确定调解时间
  287. this.timeConfirm(val);
  288. }else if(type == 9){
  289. // 调解
  290. this.mediationClick(val)
  291. }else if(type == 10){
  292. // 确认调解书
  293. this.confirmMediation(val)
  294. }else if(type == 11){
  295. // 签名
  296. this.msCaseSignUrlApplyPCFn(val)
  297. }else if(type == 12){
  298. // 用印申请
  299. this.consultantApplica(val)
  300. }else if(type == 13){
  301. // 用印
  302. this.departmentApplica(val)
  303. }else if(type == 14){
  304. // 归档
  305. this.caseFiling(val);
  306. }else if(type == 15){
  307. // 申请人签收
  308. this.signMediation(val)
  309. }else if(type == 16){
  310. // 被申请人签收
  311. this.receivedMediation(val)
  312. }else if(type == 17){
  313. //结束
  314. }else if(type == 44){
  315. // 被申请人缴费
  316. this.resPayStatus(val)
  317. }
  318. },
  319. /**查询按钮列表 */
  320. getButtonList() {
  321. queryCaseFlowInfo({
  322. pageNum: 1,
  323. pageSize: 100000
  324. }).then(res => {
  325. console.log(res)
  326. res.rows.forEach(item => {
  327. if(item.id !=17){
  328. this.buttonList.push(item)
  329. }
  330. });
  331. })
  332. },
  333. /** 新增案件 */
  334. addCase() {
  335. this.addModifyData =1;
  336. this.addVisable = true;
  337. this.caseData = {};
  338. this.caseDisabled = false;
  339. this.tabFlag = false;
  340. },
  341. /** 查看详情 */
  342. checkDetail(val) {
  343. this.addModifyData =2;
  344. this.addVisable = true;
  345. this.caseData = val;
  346. this.caseDisabled = true;
  347. this.tabFlag = true;
  348. },
  349. /** 修改案件 */
  350. eidtNodeprocess(row) {
  351. this.addModifyData = 3
  352. this.addVisable = true;
  353. this.caseData = row;
  354. this.$set(this.caseData,'flag',2)
  355. this.caseDisabled = false;
  356. this.tabFlag = false;
  357. },
  358. /** 案件导入压缩包 */
  359. compressedPackages() {
  360. this.openCompressedPackages = true;
  361. },
  362. /** 缴费 */
  363. payStatus(val) {
  364. this.getDetail({ id: val.id });
  365. this.payTitle = "申请人缴费";
  366. this.payId = val.id;
  367. this.openPay = true;
  368. },
  369. /** 被申请人缴费 */
  370. resPayStatus(val) {
  371. this.getResDetail({ id: val.id });
  372. this.resPayTitle = "被申请人缴费";
  373. this.resPayId = val.id;
  374. this.openResPay = true;
  375. },
  376. /** 列表提交立案 */
  377. onsubmitRow(row) {
  378. this.$modal
  379. .confirm("是否提交调解申请?")
  380. .then(function () {
  381. return submitCaseApply({ id: row.id, caseFlowId: row.caseFlowId });
  382. })
  383. .then(() => {
  384. this.getList(this.queryParams);
  385. this.$modal.msgSuccess("调解申请成功");
  386. })
  387. .catch(() => { });
  388. },
  389. /** 签名 */
  390. msCaseSignUrlApplyPCFn(row) {
  391. // this.$modal
  392. // .confirm("是否")
  393. // .then(function () {
  394. // return msCaseSignUrlApplyPC({ caseId: row.id });
  395. // })
  396. // .then(() => {
  397. // this.getList(this.queryParams);
  398. // this.$modal.msgSuccess("立案申请成功");
  399. // })
  400. // .catch(() => { });
  401. msCaseSignUrlApplyPC({ caseId: row.id }).then(res=>{
  402. console.log(res,"PPPPPPPPPPPPPPPPPPPP");
  403. window.open(res.data.sealUrl);
  404. })
  405. },
  406. /** 选择调解员 */
  407. selectMediator(val) {
  408. this.mediatorVisable = true;
  409. this.mediatorData = val;
  410. },
  411. /** 预约时间 */
  412. selectTime(val) {
  413. this.timeVisable = true;
  414. },
  415. /** 调解 */
  416. mediationClick(val){
  417. this.mediationVisable = true;
  418. this.mediationData = val;
  419. },
  420. /** 确认调解书 */
  421. confirmMediation(val){
  422. this.confirmTionVisable = true;
  423. this.confirmTionData = val;
  424. },
  425. getDetail(parms) {
  426. caseApplicationSelectById(parms).then((res) => {
  427. this.formPayDetail = res.data;
  428. this.formPayDetailAffiliate = res.data.affiliate;
  429. this.payForm.feePayable = res.data.feePayable;
  430. this.payForm.caseId = res.data.id;
  431. });
  432. },
  433. getResDetail(parms) {
  434. caseApplicationSelectById(parms).then((res) => {
  435. this.formResPayDetail = res.data;
  436. this.formResPay = res.data.affiliate;
  437. this.resPayForm.feePayable = res.data.feePayable;
  438. this.resPayForm.caseId = res.data.id;
  439. });
  440. },
  441. /** 确认调解员 */
  442. secretaryConfirm(val) {
  443. this.confirmVisable = true;
  444. this.confirmData = val;
  445. },
  446. /** 部门长确认调解员 */
  447. department(val) {
  448. this.departmentVisable = true;
  449. this.departmentData = val;
  450. },
  451. /**确认时间 */
  452. timeConfirm(val) {
  453. this.timeConfirmVisable = true;
  454. this.timeConfirmData = val;
  455. },
  456. /** 时间改变处理 */
  457. caseTimeChange() {
  458. if (this.caseTime) {
  459. this.queryParams.startTime = moment(
  460. this.caseTime[0]
  461. ).format("YYYY-MM-DD HH:mm:ss");
  462. this.queryParams.endTime = moment(
  463. this.caseTime[1]
  464. ).format("YYYY-MM-DD HH:mm:ss");
  465. } else {
  466. this.queryParams.startTime = '';
  467. this.queryParams.endTime = '';
  468. }
  469. },
  470. /** 获取所有部门 */
  471. listDeptFn() {
  472. listDeptApplied().then(res => {
  473. this.deptList = res.data;
  474. })
  475. },
  476. /** 修改证据 */
  477. evidenceUpload(row) {
  478. this.evidenceData = row;
  479. this.evidenceVisable = true;
  480. },
  481. /** 取消弹窗(证据弹窗) */
  482. cancelEvidence() {
  483. this.evidenceVisable = false;
  484. },
  485. /** 关闭新增弹窗 */
  486. cancelCaseAdd() {
  487. this.addVisable = false;
  488. },
  489. /** 关闭压缩包导入弹窗 */
  490. cancelCompreess() {
  491. this.openCompressedPackages = false;
  492. },
  493. /**取消缴费*/
  494. paycancelRow(row) {
  495. this.openPay = false;
  496. },
  497. /**被申请人取消缴费*/
  498. paycancelRes(row) {
  499. this.openResPay = false;
  500. },
  501. /** 取消调解员弹窗 */
  502. cancelMediator() {
  503. this.mediatorVisable = false;
  504. },
  505. /** 取消预约时间弹窗 */
  506. cancelTime() {
  507. this.timeVisable = false;
  508. },
  509. /**取消调解 */
  510. cancelMediation(){
  511. this.timeConfirmVisable = false;
  512. },
  513. /** 取消确认调解弹窗 */
  514. cancelConfirmTion(){
  515. this.confirmTionVisable = false;
  516. },
  517. cancelMediation(){
  518. this.mediationVisable = false;
  519. },
  520. cancelConfirm() {
  521. this.confirmVisable = false;
  522. },
  523. cancelDepartment() {
  524. this.departmentVisable = false;
  525. },
  526. cancelTimeConfirm() {
  527. this.timeConfirmVisable = false;
  528. },
  529. /** 搜索按钮操作 */
  530. handleQuery() {
  531. this.queryParams.pageNum = 1;
  532. this.getList(this.queryParams);
  533. },
  534. /** 重置按钮操作 */
  535. // resetQuery() {
  536. // this.resetForm("queryForm");
  537. // this.handleQuery();
  538. // },
  539. // 查询列表数据
  540. getList(parms) {
  541. this.loading = true;
  542. caseApplicationList(parms).then((response) => {
  543. this.dataList = response.rows;
  544. this.total = response.total;
  545. this.loading = false;
  546. })
  547. },
  548. // 法律顾问用印申请
  549. consultantApplica(row) {
  550. let paramsValue = {
  551. caseId: row.id,
  552. batchNumber: "",
  553. caseFlowId: row.caseFlowId
  554. }
  555. this.$modal.confirm("你确定要用印申请吗?").then((res) => {
  556. sealApply(paramsValue).then(res => {
  557. this.getList(this.queryParams);
  558. this.$modal.msgSuccess("用印申请成功");
  559. })
  560. }).catch(() => {
  561. })
  562. },
  563. // 部门长用印申请
  564. departmentApplica(row) {
  565. this.$modal.confirm("你确定要用印确认吗?").then((res) => {
  566. let paramsValue = {
  567. caseId: row.id
  568. }
  569. selectSealUrl(paramsValue).then(res => {
  570. window.open(res.data.sealUrl)
  571. this.$modal.confirm("你确认用印了吗?").then((res) => {
  572. this.getList(this.queryParams);
  573. }).catch(() => {
  574. })
  575. })
  576. }).catch(() => {
  577. })
  578. },
  579. // 案件受理
  580. caseAccep(row) {
  581. this.caseAcceptanceData = row
  582. this.showAcceptance = true
  583. },
  584. cancelAcceptance() {
  585. this.showAcceptance = false
  586. },
  587. // 缴费确认
  588. paymentconfirmationRow(row,type) {
  589. this.paymentConfirma = row
  590. console.log(this.paymentConfirma)
  591. this.paymentDetails({
  592. id: row.id
  593. })
  594. this.openDialog = true
  595. this.payTitle = "缴费确认"
  596. this.flag = 0;
  597. this.detailform = {}
  598. if (type == 3) {
  599. // 申请人
  600. this.isapplicant = true
  601. }else {
  602. this.isapplicant = false
  603. }
  604. },
  605. cancelpaymentdetails() {
  606. this.openDialog = false
  607. },
  608. // 查看缴费确认
  609. viewpaymentformRow(row) {
  610. this.paymentDetails({
  611. id: row.id
  612. })
  613. this.payTitle = "缴费单详情"
  614. this.flag = 1;
  615. this.detailform = {}
  616. this.openDialog = true
  617. },
  618. // 缴费详情
  619. paymentDetails(val) {
  620. selectPaymentDetail(val).then(res => {
  621. this.detailform = res.data;
  622. })
  623. },
  624. //案件流程
  625. caseFlow(row) {
  626. this.caseFlowNumber = row
  627. this.processVisable = true
  628. },
  629. cancelViewProcess() {
  630. this.processVisable = false
  631. },
  632. //案件日志
  633. caseLog(row) {
  634. this.caseLogNumber = row
  635. this.showcaseLog = true
  636. this.flagLoading = true;
  637. listCaseLogRecord({caseId:row.id}).then(res=>{
  638. this.caselogDataArr = res.data
  639. this.flagLoading = false;
  640. })
  641. },
  642. cancelcaseLog() {
  643. this.showcaseLog = false
  644. },
  645. // 案件送达
  646. caseFiling(row) {
  647. console.log(row.id)
  648. let paramValues = {
  649. ids:[row.id]
  650. }
  651. this.$modal.confirm("你确定要案件送达吗?").then((res) => {
  652. msCaseFile(paramValues).then(res=>{
  653. this.$modal.msgSuccess("案件送达成功");
  654. this.getList(this.queryParams);
  655. })
  656. }).catch(() => {
  657. })
  658. },
  659. //申请人签收调解书
  660. signMediation(row) {
  661. this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
  662. this.signingMediationAgreement({caseId:row.id,isSignApply:1})
  663. }).catch(() => {
  664. })
  665. },
  666. //被申请人签收调解书
  667. receivedMediation(row) {
  668. this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
  669. this.signingMediationAgreement({caseId:row.id,isSignRespon:1})
  670. }).catch(() => {
  671. })
  672. },
  673. // 申请人和被申请人签收调解书接口
  674. signingMediationAgreement(val){
  675. console.log(val)
  676. msCaseSign(val).then(res=>{
  677. this.$modal.msgSuccess("签收成功");
  678. this.getList(this.queryParams);
  679. })
  680. },
  681. //归档详情
  682. caseFilingDetails(val){
  683. this.showarchiveDetails = true
  684. let vals = {id:val.id}
  685. caseApplicationSelectById(vals).then(res=>{
  686. this.detailsAwardNum = res.data
  687. console.log(this.detailsAwardNum)
  688. this.flagLoadingS = false
  689. })
  690. },
  691. cancelDetail(){
  692. this.showarchiveDetails = false
  693. }
  694. },
  695. };
  696. </script>
  697. <style lang="scss" scoped></style>