综合办公系统
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

flowNote.vue 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--
  2. * @Author: ysh
  3. * @Date: 2025-03-17 10:04:51
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2025-03-18 10:45:52
  6. -->
  7. <template>
  8. <view>
  9. <uv-steps :current="currentNum">
  10. <uv-steps-item :error="item.comment && item.comment.type == '退回意见'" v-for="item, index in flowRecordList"
  11. :key="'f' + index" :title="item.taskName" :desc="item.finishTime"></uv-steps-item>
  12. </uv-steps>
  13. <view class="custom-block danger" v-if="isRetrun">
  14. <uni-title type="h3" title="任务被退回,请修改后重新提交" color="#900"></uni-title>
  15. <view>
  16. <p>退回意见:{{ reBackDescription }}</p>
  17. <p>办理人:{{ assigneeName }}</p>
  18. </view>
  19. </view>
  20. <uv-divider></uv-divider>
  21. </view>
  22. </template>
  23. <script>
  24. import { flowRecord, flowRecordFull } from "@/api/flowable/finished";
  25. export default {
  26. props: {
  27. taskForm: Object,
  28. },
  29. data() {
  30. return {
  31. flowRecordList: [],
  32. currentNum: 0,
  33. isRetrun: false,
  34. reBackDescription: '',
  35. assigneeName: ''
  36. }
  37. },
  38. created() {
  39. this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId);
  40. },
  41. methods: {
  42. /** 流程流转记录 */
  43. getFlowRecordList(procInsId, deployId) {
  44. const params = { procInsId: procInsId, deployId: deployId }
  45. flowRecordFull(params).then(res => {
  46. if (res.data.flowList.length > 1 && res.data.flowList[1].comment && res.data.flowList[1].comment.type == '退回意见') {
  47. this.reBackDescription = res.data.flowList[1].comment.comment
  48. this.assigneeName = res.data.flowList[1].assigneeName
  49. this.isRetrun = true
  50. } else {
  51. this.isRetrun = false
  52. }
  53. this.flowRecordList = res.data.flowList.reverse();
  54. this.currentNum = this.flowRecordList.length - 1;
  55. })
  56. },
  57. },
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .custom-block {
  62. padding: 10px;
  63. border-left-width: 2px;
  64. border-left-style: solid;
  65. margin: 5px 0;
  66. }
  67. .danger {
  68. background-color: #ffe6e6;
  69. border-color: #c00;
  70. color: #4d0000;
  71. }
  72. </style>