应用层PC端前端服务

operateDialog.vue 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <div>
  3. <el-dialog :title="operateTitle" :visible="operateVisable" @close="cancel" center :distroy-on-close="true">
  4. <el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
  5. <el-table-column type="selection">
  6. </el-table-column>
  7. <el-table-column label="序号" type="index" align="center">
  8. <template slot-scope="scope">
  9. <span>{{
  10. (queryParamsData.pageNum - 1) * queryParamsData.pageSize + scope.$index + 1
  11. }}</span>
  12. </template>
  13. </el-table-column>
  14. <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
  15. <el-table-column label="申请人(机构)" align="center" prop="applicantName" :show-overflow-tooltip="true" />
  16. <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
  17. <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
  18. <!-- 仲裁员 -->
  19. <el-table-column label="仲裁员" align="center" prop="arbitratorName" />
  20. <!-- 开庭日期 -->
  21. <el-table-column label="开庭日期" align="center" prop="hearDate" :show-overflow-tooltip="true" />
  22. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  23. <template slot-scope="scope">
  24. <el-tag type="success">{{ scope.row.caseStatusName }}</el-tag>
  25. </template>
  26. </el-table-column>
  27. </el-table>
  28. <div class="radiobox" v-if="operateStatus == 2">
  29. <el-radio-group v-model="radio">
  30. <el-radio :label="1">同意</el-radio>
  31. <el-radio :label="2">拒绝</el-radio>
  32. </el-radio-group>
  33. </div>
  34. <pagination v-show="total > 0" :total="total" :page.sync="queryParamsData.pageNum"
  35. :limit.sync="queryParamsData.pageSize" @pagination="getcaseApply(queryParamsData)" />
  36. <div slot="footer" class="dialog-footer">
  37. <el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
  38. <el-button @click="submitBatch" type="primary" class="endbutton" :disabled="dataList.length == 0"><span>确 认</span></el-button>
  39. </div>
  40. </el-dialog>
  41. </div>
  42. </template>
  43. <script>
  44. import {
  45. caseApply,
  46. submitCaseApply,
  47. removeCaseApply,
  48. submitCaseApplicationCheck
  49. } from "@/api/caseAccess/caseEntry";
  50. import {
  51. adjudicationCaseFile,
  52. } from "@/api/awardManagement/awardManagement";
  53. export default {
  54. props: ["operateVisable", "operateData", "operateTitle", 'operateStatus','queryParams'],
  55. data() {
  56. return {
  57. // 遮罩层
  58. loading: true,
  59. // 总条数
  60. total: 0,
  61. // 查询参数
  62. queryParamsData: {
  63. caseStatus: null,
  64. pageNum: 1,
  65. pageSize: 10,
  66. },
  67. // 表格数据
  68. dataList: [],
  69. batchData: [],
  70. radio:1
  71. };
  72. },
  73. watch: {
  74. operateVisable(val) {
  75. if (val) {
  76. this.getcaseApply(this.queryParamsData)
  77. }
  78. }
  79. },
  80. created() {
  81. },
  82. methods: {
  83. // 选择勾选框
  84. handleSelectionChange(val) {
  85. this.batchData = [];
  86. val.forEach(item => {
  87. this.batchData.push(item.id)
  88. })
  89. },
  90. cancel() {
  91. this.$emit("cancelOperate");
  92. },
  93. // 批量操作
  94. submitBatch() {
  95. if (this.operateStatus == 0) {
  96. this.submitCaseApplyFn({ ids: this.batchData })
  97. } else if (this.operateStatus == 1) {
  98. this.removeCaseApplyFn({ ids: this.batchData })
  99. } else if (this.operateStatus == 2) {
  100. this.submitCaseApplicationCheckFn({ ids: this.batchData,agreeOrNotCheck:this.radio })
  101. }else if (this.operateStatus == 3) {
  102. this.adjudicationCaseFileFn({ ids: this.batchData })
  103. }
  104. },
  105. // 批量提交
  106. submitCaseApplyFn(data) {
  107. submitCaseApply(data).then(res => {
  108. this.$modal.msgSuccess("提交成功");
  109. this.cancel();
  110. this.$emit("getcaseApply", this.queryParams);
  111. })
  112. },
  113. // 批量删除
  114. removeCaseApplyFn(data) {
  115. removeCaseApply(data).then(res => {
  116. this.$modal.msgSuccess("删除成功");
  117. this.cancel();
  118. this.$emit("getcaseApply", this.queryParams);
  119. })
  120. },
  121. // 批量立案审查
  122. submitCaseApplicationCheckFn(data){
  123. submitCaseApplicationCheck(data).then(res=>{
  124. this.$modal.msgSuccess("立案审查成功");
  125. this.cancel();
  126. this.$emit("getcaseApply", this.queryParams);
  127. })
  128. },
  129. //批量归档
  130. adjudicationCaseFileFn(data){
  131. adjudicationCaseFile(data).then(res=>{
  132. this.$modal.msgSuccess("归档成功");
  133. this.cancel();
  134. this.$emit("getcaseApply", this.queryParams);
  135. })
  136. },
  137. /** 查询列表 */
  138. getcaseApply(val) {
  139. this.loading = true;
  140. if (this.operateStatus == 0) {
  141. this.queryParamsData.caseStatus = 0
  142. } else if (this.operateStatus == 1) {
  143. this.queryParamsData.caseStatus = 0
  144. } else if (this.operateStatus == 2) {
  145. this.queryParamsData.caseStatus = 1
  146. }else if (this.operateStatus == 3) {
  147. this.queryParamsData.caseStatus = 16
  148. }
  149. caseApply(val).then((response) => {
  150. this.dataList = response.rows;
  151. this.total = response.total;
  152. this.loading = false;
  153. });
  154. },
  155. },
  156. };
  157. </script>
  158. <style lang="scss" scoped>
  159. .steps {
  160. display: flex;
  161. flex-wrap: wrap;
  162. }
  163. .radiobox{
  164. margin-top: 30px;
  165. }
  166. </style>