flow.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="history">
  3. <u-time-line>
  4. <u-time-line-item nodeTop="2" v-for="(item,index) in list" :key="index">
  5. <template v-slot:node>
  6. <view class="u-node bg-white">
  7. <u-icon name="clock-fill" color="#e0e3ea" :size="28"></u-icon>
  8. </view>
  9. </template>
  10. <template v-slot:content>
  11. <view>
  12. <view class="">{{item.createTime}}</view>
  13. <view style="width: 636rpx;">
  14. <view class="content">
  15. <view class="nav-title">
  16. <view class="">
  17. <text>【{{item.assigneeName?item.assigneeName:'联兑通平台'}}】在 [{{item.createTime}}] 开始处理 [{{item.historyActivityName}}] 环节</text>
  18. </view>
  19. <view class="" v-if="item.historyActivityDurationTime">
  20. 任务历时:
  21. [{{item.historyActivityDurationTime}}]
  22. </view>
  23. <view class="" v-if="item.comment">
  24. 批复意见:
  25. [{{item.comment}}]
  26. </view>
  27. <view class="" v-if="item.endTime">
  28. 结束时间:
  29. [{{item.endTime}}]
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. </u-time-line-item>
  37. </u-time-line>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props:{
  43. shopId: String
  44. },
  45. data() {
  46. return {
  47. audit:{},
  48. list: []
  49. };
  50. },
  51. created() {
  52. this.historyFlowList()
  53. },
  54. methods: {
  55. async historyFlowList() {
  56. let processInstanceId=(await this.$api.audit.detail({entityId:this.vuex_shopId})).data.processInstanceId
  57. this.$api.flow.historyFlowList({processInstanceId}).then(res => {
  58. this.list = res.data
  59. })
  60. }
  61. }
  62. };
  63. </script>
  64. <style>
  65. page {
  66. background-color: #FFFFFF;
  67. }
  68. .history {
  69. box-sizing: border-box;
  70. padding: 40rpx 20rpx 20rpx 50rpx;
  71. }
  72. .nav-title {
  73. font-weight: 300;
  74. font-size: 28upx;
  75. padding-top: 20rpx;
  76. line-height: 50rpx;
  77. }
  78. .content {
  79. box-shadow: 0 8rpx 10rpx rgba(234, 234, 234, 0.5), 8rpx 0rpx 10rpx rgba(234, 234, 234, .5), -8rpx 0rpx 10rpx rgba(234, 234, 234, .5);
  80. background-color: #FFFFFF;
  81. padding: 20rpx;
  82. border-radius: 10rpx;
  83. margin: 20rpx 0;
  84. }
  85. </style>