应用层PC端前端服务

timeDialog.vue 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div>
  3. <el-dialog title="修改开庭时间" :visible="timeVisable" @close="cancel" center :distroy-on-close="true">
  4. <el-descriptions title="案件内容" :column="2" border>
  5. <el-descriptions-item label="案件编号">{{ timeData.caseNum }}</el-descriptions-item>
  6. <el-descriptions-item label="申请人(机构)">{{ timeData.applicantName }}</el-descriptions-item>
  7. <el-descriptions-item label="案件标的">{{ timeData.caseSubjectAmount }}</el-descriptions-item>
  8. <el-descriptions-item label="案件状态">
  9. <el-tag size="small">{{ timeData.caseStatusName }}</el-tag>
  10. </el-descriptions-item>
  11. <el-descriptions-item label="仲裁方式">{{ timeData.arbitratMethodName }}</el-descriptions-item>
  12. <el-descriptions-item label="开庭时间">
  13. <el-date-picker v-model="loanStartDate" type="datetime" placeholder="开庭时间">
  14. </el-date-picker>
  15. </el-descriptions-item>
  16. </el-descriptions>
  17. <div slot="footer" class="dialog-footer">
  18. <el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
  19. <el-button @click="submitTime" class="endbutton1"><span>提 交</span></el-button>
  20. </div>
  21. </el-dialog>
  22. </div>
  23. </template>
  24. <!-- hearDate -->
  25. <script>
  26. import { updateHeardate } from '@/api/caseManagement/caseManagement'
  27. import { getToken } from "@/utils/auth";
  28. import moment from "moment";
  29. export default {
  30. props: ["timeVisable", "timeData"],
  31. data() {
  32. return {
  33. loanStartDate: ""
  34. };
  35. },
  36. watch: {
  37. timeVisable(val) {
  38. if (val) {
  39. // this.getEvidenceList({ caseAppliId: this.timeData.id, annexTypeList: "2" })
  40. this.loanStartDate = this.timeData.hearDate
  41. }
  42. }
  43. },
  44. created() {
  45. },
  46. methods: {
  47. cancel() {
  48. this.$emit("cancelTime");
  49. },
  50. // 提交时间
  51. updateHeardateFn(data) {
  52. updateHeardate(data).then(res => {
  53. this.$modal.msgSuccess("修改成功");
  54. this.cancel();
  55. this.$emit("getcaseApply");
  56. })
  57. },
  58. submitTime() {
  59. this.loanStartDate = moment(
  60. this.loanStartDate
  61. ).format("YYYY-MM-DD HH:mm:ss");
  62. this.updateHeardateFn({
  63. id: this.timeData.id,
  64. hearDate: this.loanStartDate
  65. })
  66. }
  67. },
  68. };
  69. </script>
  70. <style lang="scss" scoped>
  71. .steps {
  72. display: flex;
  73. flex-wrap: wrap;
  74. }
  75. </style>