应用层PC端前端服务

operateDialog.vue 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 { writtenHear } from "@/api/caseManagement/caseManagement.js";
  51. import {
  52. adjudicationCaseFile,
  53. } from "@/api/awardManagement/awardManagement";
  54. export default {
  55. props: ["operateVisable", "operateData", "operateTitle", 'operateStatus','queryParams'],
  56. data() {
  57. return {
  58. // 遮罩层
  59. loading: true,
  60. // 总条数
  61. total: 0,
  62. // 查询参数
  63. queryParamsData: {
  64. caseStatus: null,
  65. pageNum: 1,
  66. pageSize: 10,
  67. },
  68. // 表格数据
  69. dataList: [],
  70. batchData: [],
  71. radio:1
  72. };
  73. },
  74. watch: {
  75. operateVisable(val) {
  76. this.radio = 1;
  77. if (val) {
  78. this.getcaseApply(this.queryParamsData)
  79. }
  80. }
  81. },
  82. created() {
  83. },
  84. methods: {
  85. // 选择勾选框
  86. handleSelectionChange(val) {
  87. this.batchData = [];
  88. val.forEach(item => {
  89. this.batchData.push(item.id)
  90. })
  91. },
  92. cancel() {
  93. this.$emit("cancelOperate");
  94. },
  95. // 批量操作
  96. submitBatch() {
  97. if (this.operateStatus == 0) {
  98. this.submitCaseApplyFn({ ids: this.batchData })
  99. } else if (this.operateStatus == 1) {
  100. this.removeCaseApplyFn({ ids: this.batchData })
  101. } else if (this.operateStatus == 2) {
  102. this.submitCaseApplicationCheckFn({ ids: this.batchData,agreeOrNotCheck:this.radio })
  103. }else if (this.operateStatus == 3) {
  104. this.adjudicationCaseFileFn({ ids: this.batchData })
  105. }else if (this.operateStatus == 4) {
  106. // this.adjudicationCaseFileFn({ ids: this.batchData })
  107. this.writtenHearFn({ids: this.batchData})
  108. }else if (this.operateStatus == 5) {
  109. // this.adjudicationCaseFileFn({ ids: this.batchData })
  110. // this.writtenHearFn({ids: this.batchData})
  111. }
  112. },
  113. // 批量提交
  114. submitCaseApplyFn(data) {
  115. submitCaseApply(data).then(res => {
  116. this.$modal.msgSuccess("提交成功");
  117. this.cancel();
  118. this.$emit("getcaseApply", this.queryParams);
  119. })
  120. },
  121. // 批量删除
  122. removeCaseApplyFn(data) {
  123. removeCaseApply(data).then(res => {
  124. this.$modal.msgSuccess("删除成功");
  125. this.cancel();
  126. this.$emit("getcaseApply", this.queryParams);
  127. })
  128. },
  129. // 批量立案审查
  130. submitCaseApplicationCheckFn(data){
  131. submitCaseApplicationCheck(data).then(res=>{
  132. this.$modal.msgSuccess("立案审查成功");
  133. this.cancel();
  134. this.$emit("getcaseApply", this.queryParams);
  135. })
  136. },
  137. //批量归档
  138. adjudicationCaseFileFn(data){
  139. adjudicationCaseFile(data).then(res=>{
  140. this.$modal.msgSuccess("归档成功");
  141. this.cancel();
  142. this.$emit("getcaseApply", this.queryParams);
  143. })
  144. },
  145. // 批量生成裁决书
  146. writtenHearFn(data){
  147. writtenHear(data).then(res=>{
  148. this.$modal.msgSuccess("生成成功");
  149. this.cancel();
  150. this.$emit("getcaseApply", this.queryParams);
  151. })
  152. },
  153. /** 查询列表 */
  154. getcaseApply(val) {
  155. this.loading = true;
  156. if (this.operateStatus == 0) {
  157. this.queryParamsData.caseStatus = 0
  158. } else if (this.operateStatus == 1) {
  159. this.queryParamsData.caseStatus = 0
  160. } else if (this.operateStatus == 2) {
  161. this.queryParamsData.caseStatus = 1
  162. }else if (this.operateStatus == 3) {
  163. this.queryParamsData.caseStatus = 16
  164. }else if (this.operateStatus == 4) {
  165. this.queryParamsData.caseStatus = 9
  166. }else if (this.operateStatus == 5) {
  167. this.queryParamsData.caseStatus = 11
  168. }
  169. caseApply(val).then((response) => {
  170. this.dataList = response.rows;
  171. this.total = response.total;
  172. this.loading = false;
  173. });
  174. },
  175. },
  176. };
  177. </script>
  178. <style lang="scss" scoped>
  179. .steps {
  180. display: flex;
  181. flex-wrap: wrap;
  182. }
  183. .radiobox{
  184. margin-top: 30px;
  185. }
  186. </style>