应用层PC端前端服务

courtReviewDialog.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div>
  3. <!-- 组庭确认页面 -->
  4. <el-dialog
  5. title="组庭确认"
  6. :visible="showcourtReview"
  7. @close="cancel"
  8. :destroy-on-close="true"
  9. center
  10. >
  11. <el-form ref="courtReviewform" :model="courtReviewform">
  12. <el-form-item
  13. label="开庭日期:"
  14. prop="hearDate"
  15. :rules="[
  16. {
  17. required: true,
  18. message: '请选择开庭日期',
  19. trigger: 'blur',
  20. },
  21. ]"
  22. >
  23. <div class="reviewbox">
  24. <el-date-picker
  25. v-model="courtReviewform.hearDate"
  26. type="datetime"
  27. placeholder="选择日期"
  28. >
  29. </el-date-picker>
  30. </div>
  31. </el-form-item>
  32. </el-form>
  33. <div slot="footer" class="dialog-footer">
  34. <el-button type="primary" @click="submitForm" class="endbutton"
  35. ><span>确 定</span>
  36. </el-button>
  37. <el-button @click="cancel" class="endbutton1"
  38. ><span> 取 消</span></el-button
  39. >
  40. </div>
  41. </el-dialog>
  42. </div>
  43. </template>
  44. <script>
  45. import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
  46. import moment from "moment";
  47. export default {
  48. name: "courtReviewDialog",
  49. props: ["showcourtReview", "form", "queryParams"],
  50. data() {
  51. return {
  52. hearDate: "",
  53. courtReviewform: {},
  54. };
  55. },
  56. methods: {
  57. submitForm() {
  58. this.$refs["courtReviewform"].validate((valid) => {
  59. if (valid) {
  60. this.courtReviewform.hearDate = moment(
  61. this.courtReviewform.hearDate
  62. ).format("YYYY-MM-DD HH:mm:ss");
  63. pendTralSure({
  64. id: this.form.id,
  65. hearDate: this.courtReviewform.hearDate,
  66. })
  67. .then((res) => {
  68. this.$modal.msgSuccess("确认成功");
  69. this.cancel();
  70. this.$emit("getcaseApply",this.queryParams);
  71. })
  72. .catch((err) => {});
  73. }
  74. });
  75. },
  76. cancel() {
  77. this.$emit("cancelcourtReview");
  78. },
  79. },
  80. };
  81. </script>
  82. <style lang="scss" scoped>
  83. ::v-deep .el-dialog {
  84. width: 422px;
  85. height: 245px;
  86. background: #ffffff;
  87. border-radius: 20px;
  88. }
  89. .el-form-item {
  90. margin-left: 10%;
  91. }
  92. .endbutton {
  93. width: 124px;
  94. height: 37px;
  95. background: #0072ff;
  96. border-radius: 19px;
  97. span {
  98. width: 32px;
  99. height: 15px;
  100. font-size: 16px;
  101. font-family: Microsoft YaHei;
  102. font-weight: 400;
  103. color: #ffffff;
  104. // line-height: 48px;
  105. }
  106. }
  107. .endbutton1 {
  108. width: 124px;
  109. height: 37px;
  110. background: #ffffff;
  111. border: 1px solid #d0d0d0;
  112. border-radius: 19px;
  113. span {
  114. width: 31px;
  115. height: 13px;
  116. font-size: 16px;
  117. font-family: Microsoft YaHei;
  118. font-weight: 400;
  119. color: #959595;
  120. // line-height: 48px;
  121. }
  122. }
  123. ::v-deep .el-form-item__error {
  124. left: 90px;
  125. }
  126. </style>