应用层PC端前端服务

choosetrialmethodDaiog.vue 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <div>
  3. <!-- 选择仲裁方式页面 -->
  4. <el-dialog
  5. title="审核仲裁方式"
  6. :visible="showchoosetrialmethod"
  7. width="500px"
  8. @close="cancel"
  9. :destroy-on-close="true"
  10. >
  11. <div v-show="choosetrialmethodata.arbitraMethodIssame!=2">
  12. <el-descriptions>
  13. <el-descriptions-item label="当前仲裁方式:">
  14. <el-tag size="small">{{
  15. choosetrialmethodata.arbitratMethodName
  16. }}</el-tag>
  17. </el-descriptions-item>
  18. </el-descriptions>
  19. <!-- <div class="radiobox">
  20. <el-radio-group v-model="radio">
  21. <el-radio :label="0">拒绝开庭方式</el-radio>
  22. <el-radio :label="1">同意开庭方式</el-radio>
  23. </el-radio-group>
  24. </div> -->
  25. <!-- <div slot="footer" class="dialog-footer">
  26. <el-button type="primary" @click="submitForm" class="endbutton"
  27. ><span>提 交</span></el-button
  28. >
  29. <el-button @click="cancel" class="endbutton1"
  30. ><span> 取 消</span></el-button
  31. >
  32. </div> -->
  33. <div slot="footer" class="dialog-footer">
  34. <el-button type="primary" @click="submitForm(1)" class="endbutton"
  35. ><span>同 意</span></el-button
  36. >
  37. <el-button class="endbutton1" @click="submitForm(0)"
  38. ><span>拒 绝</span></el-button
  39. >
  40. </div>
  41. </div>
  42. <div v-show="choosetrialmethodata.arbitraMethodIssame==2">
  43. <el-descriptions>
  44. <el-descriptions-item label="当前案件开庭方式">{{choosetrialmethodata.arbitratMethodIllustrate}}</el-descriptions-item>
  45. </el-descriptions>
  46. <el-form :model="form" :rules="rules" ref="form">
  47. <el-form-item label="选择开庭方式" prop="arbitratMethod">
  48. <el-radio-group v-model="form.arbitratMethod">
  49. <el-radio :label=2>书面审理</el-radio>
  50. <el-radio :label=1>开庭审理</el-radio>
  51. </el-radio-group>
  52. </el-form-item>
  53. <el-form-item>
  54. <el-button type="primary" @click="determine(2)" :loading="loadingSubmit">确定</el-button>
  55. <el-button @click="cancel">取消</el-button>
  56. </el-form-item>
  57. </el-form>
  58. </div>
  59. </el-dialog>
  60. </div>
  61. </template>
  62. <script>
  63. import { arbitrateMethod } from "@/api/caseManagement/caseManagement.js";
  64. export default {
  65. name: "showchoosetrialmethodDialog",
  66. props: ["showchoosetrialmethod", "choosetrialmethodata", "queryParams"],
  67. data() {
  68. return {
  69. form:{},
  70. loadingSubmit: false,
  71. rules:{
  72. arbitratMethod: [
  73. { required: true, message: '请选择开庭方式', trigger: 'change' }
  74. ]
  75. }
  76. };
  77. },
  78. methods: {
  79. // 审核仲裁方式 arbitrateMethod
  80. submitForm(val) {
  81. let paramsdata = {
  82. opinion: val
  83. };
  84. let id = {
  85. id: this.choosetrialmethodata.id,
  86. arbitratMethod:this.choosetrialmethodata.arbitratMethod
  87. };
  88. arbitrateMethod(paramsdata,id)
  89. .then((res) => {
  90. this.$modal.msgSuccess("提交成功");
  91. this.cancel();
  92. this.$emit("getcaseApply", this.queryParams);
  93. })
  94. .catch((err) => {});
  95. },
  96. determine(val){
  97. this.$refs["form"].validate((valid) => {
  98. if (valid) {
  99. this.loadingSubmit = true;
  100. let paramsdata = {
  101. opinion: val,
  102. arbitratMethod:this.form.arbitratMethod
  103. };
  104. let id = {
  105. id: this.choosetrialmethodata.id,
  106. };
  107. arbitrateMethod(paramsdata,id)
  108. .then((res) => {
  109. this.$modal.msgSuccess("提交成功");
  110. this.cancel();
  111. this.$emit("getcaseApply", this.queryParams);
  112. this.loadingSubmit = false;
  113. })
  114. .catch((err) => {
  115. this.loadingSubmit = false;
  116. });
  117. } else {
  118. return false;
  119. }
  120. });
  121. },
  122. cancel() {
  123. this.$emit("cancelshowchoosetrialMethod");
  124. },
  125. },
  126. };
  127. </script>
  128. <style lang="scss" scoped>
  129. .radiobox {
  130. margin-left: 5%;
  131. }
  132. ::v-deep .el-dialog {
  133. width: 800px;
  134. background: #ffffff;
  135. border-radius: 20px;
  136. }
  137. .endbutton {
  138. width: 124px;
  139. height: 37px;
  140. background: #0072ff;
  141. border-radius: 19px;
  142. span {
  143. width: 32px;
  144. height: 15px;
  145. font-size: 16px;
  146. font-family: Microsoft YaHei;
  147. font-weight: 400;
  148. color: #ffffff;
  149. // line-height: 48px;
  150. }
  151. }
  152. .endbutton1 {
  153. width: 124px;
  154. height: 37px;
  155. background: #ffffff;
  156. border: 1px solid #d0d0d0;
  157. border-radius: 19px;
  158. span {
  159. width: 31px;
  160. height: 13px;
  161. font-size: 16px;
  162. font-family: Microsoft YaHei;
  163. font-weight: 400;
  164. color: #959595;
  165. }
  166. }
  167. </style>