调解系统PC端服务

timeConfirm.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div>
  3. <el-dialog title="秘书确认时间" :visible="timeConfirmVisable" v-if="timeConfirmVisable" @close="cancel" center
  4. :distroy-on-close="true">
  5. <!-- <div style="margin-bottom: 20px;">
  6. <el-radio-group v-model="confirmFlag">
  7. <el-radio :label="1">同意</el-radio>
  8. <el-radio :label="2">拒绝</el-radio>
  9. </el-radio-group>
  10. </div> -->
  11. <div>
  12. <div>
  13. <!-- <div style="margin-top: 20px;margin-bottom: 20px;">时间</div> -->
  14. <el-form label-position="right" label-width="80px" :model="formLabelAlign">
  15. <el-form-item label="时间">
  16. <el-date-picker v-model="formLabelAlign.name" type="datetime" placeholder="选择日期时间">
  17. </el-date-picker>
  18. <!-- <el-input v-else v-model="formLabelAlign.name"></el-input> -->
  19. </el-form-item>
  20. </el-form>
  21. </div>
  22. </div>
  23. <div slot="footer" class="dialog-footer">
  24. <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
  25. <el-button @click="submitMediator" class="endbutton1" type="primary" round><span>确 认</span></el-button>
  26. </div>
  27. </el-dialog>
  28. </div>
  29. </template>
  30. <script>
  31. import { Message } from 'element-ui'
  32. import { listMediator, selectReservation, confirmDate } from '@/api/caseManagement/caseManagement.js'
  33. import { createRoomId } from '@/api/metting/metting.js'
  34. import moment from "moment";
  35. export default {
  36. props: ["timeConfirmVisable", "timeConfirmData", "queryParams"],
  37. data() {
  38. return {
  39. tableData: [],
  40. multipleSelection: [],
  41. formLabelAlign: {
  42. time: [],
  43. name: ""
  44. },
  45. formTimeArr: [],
  46. };
  47. },
  48. watch: {
  49. timeConfirmVisable(val) {
  50. if (val) {
  51. this.formTimeArr = [];
  52. }
  53. },
  54. },
  55. methods: {
  56. cancel() {
  57. this.$emit("cancelTimeConfirm");
  58. },
  59. selectReservationFn(data) {
  60. selectReservation(data).then(res => {
  61. this.tableData = res.data.mediatorList;
  62. this.formLabelAlign.name = res.data.herDates[0]
  63. })
  64. },
  65. /**核实时间 */
  66. verifyMediatorFn(data) {
  67. confirmDate(data).then(res => {
  68. this.$modal.msgSuccess("成功");
  69. this.$emit("cancelTimeConfirm");
  70. this.$emit('getList', this.queryParams);
  71. })
  72. },
  73. // 生成会议房间号
  74. createRoomIdFn(data) {
  75. createRoomId(data).then(res => {
  76. console.log(res, "房间号");
  77. })
  78. },
  79. /**提交选择结果*/
  80. async submitMediator() {
  81. this.createRoomIdFn({
  82. caseId: this.timeConfirmData.id
  83. })
  84. if (this.formLabelAlign.name == '') {
  85. Message.error('请选择时间');
  86. return
  87. }
  88. this.formLabelAlign.time.forEach(item => {
  89. item = moment(
  90. item
  91. ).format("YYYY-MM-DD HH:mm:ss");
  92. this.formTimeArr.push(item)
  93. })
  94. this.verifyMediatorFn({
  95. id: this.timeConfirmData.id,
  96. caseFlowId: this.timeConfirmData.caseFlowId,
  97. herDates: [this.formLabelAlign.name]
  98. })
  99. },
  100. },
  101. };
  102. </script>
  103. <style lang="scss" scoped>
  104. .steps {
  105. display: flex;
  106. flex-wrap: wrap;
  107. }
  108. ::v-deep .el-step {
  109. // width: 150px;
  110. flex-basis: 25% !important;
  111. margin-right: 20px;
  112. margin-bottom: 20px;
  113. }
  114. ::v-deep .el-dialog__body {
  115. height: 500px !important;
  116. overflow: auto !important;
  117. }
  118. ::v-deep .el-dialog {
  119. width: 800px;
  120. background: #ffffff;
  121. border-radius: 20px;
  122. }
  123. .timeTitle {
  124. width: 1000%;
  125. text-align: center;
  126. }
  127. </style>