调解系统PC端服务

filingreviewDialog.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div>
  3. <!-- 立案审查 -->
  4. <el-dialog title="立案审查" :visible="showfilingreview" width="500px" @close="cancel" :destroy-on-close="true">
  5. <div class="radiobox">
  6. <el-radio-group v-model="radio" style="margin-bottom: 20px;">
  7. <el-radio :label="1">同意</el-radio>
  8. <el-radio :label="2">拒绝</el-radio>
  9. </el-radio-group>
  10. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
  11. <!-- TODO -->
  12. <el-form-item label="拒绝原因" prop="caseCheckReject" v-if="radio == 2">
  13. <el-input type="textarea" :rows="2" placeholder="请输入拒绝原因" v-model="ruleForm.caseCheckReject"></el-input>
  14. </el-form-item>
  15. </el-form>
  16. </div>
  17. <div slot="footer" class="dialog-footer">
  18. <el-button type="primary" @click="submitForm" class="endbutton"><span>提 交</span></el-button>
  19. <el-button @click="cancel" class="endbutton1"><span> 取 消</span></el-button>
  20. </div>
  21. </el-dialog>
  22. </div>
  23. </template>
  24. <script>
  25. import { submitCaseApplicationCheck } from "@/api/caseManagement/caseManagement.js";
  26. export default {
  27. name: "filingreviewDialog",
  28. props: ["showfilingreview", "filingreviewdata", "queryParams"],
  29. data() {
  30. return {
  31. radio: 1,
  32. ruleForm: {},
  33. rules: {
  34. caseCheckReject: [
  35. {
  36. required: true,
  37. message: "拒绝原因不能为空",
  38. trigger: "blur",
  39. },
  40. ],
  41. }
  42. };
  43. },
  44. methods: {
  45. submitForm() {
  46. this.$refs["ruleForm"].validate((valid) => {
  47. if (valid) {
  48. let paramsdata = {
  49. agreeOrNotCheck: this.radio,
  50. ids: [this.filingreviewdata.id],
  51. caseCheckReject:this.ruleForm.caseCheckReject
  52. };
  53. submitCaseApplicationCheck(paramsdata)
  54. .then((res) => {
  55. this.$modal.msgSuccess("提交成功");
  56. this.cancel();
  57. this.$emit("getcaseApply", this.queryParams);
  58. })
  59. .catch((err) => { });
  60. }
  61. });
  62. },
  63. cancel() {
  64. this.$emit("cancelFilingreview");
  65. },
  66. },
  67. };
  68. </script>
  69. <style lang="scss" scoped>
  70. .radiobox {
  71. margin-left: 5%;
  72. }
  73. ::v-deep .el-dialog {
  74. width: 800px;
  75. background: #ffffff;
  76. border-radius: 20px;
  77. }
  78. .endbutton {
  79. width: 124px;
  80. height: 37px;
  81. background: #0072ff;
  82. border-radius: 19px;
  83. span {
  84. width: 32px;
  85. height: 15px;
  86. font-size: 16px;
  87. font-family: Microsoft YaHei;
  88. font-weight: 400;
  89. color: #ffffff;
  90. // line-height: 48px;
  91. }
  92. }
  93. .endbutton1 {
  94. width: 124px;
  95. height: 37px;
  96. background: #ffffff;
  97. border: 1px solid #d0d0d0;
  98. border-radius: 19px;
  99. span {
  100. width: 31px;
  101. height: 13px;
  102. font-size: 16px;
  103. font-family: Microsoft YaHei;
  104. font-weight: 400;
  105. color: #959595;
  106. }
  107. }
  108. </style>