audit_info.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="container">
  3. <view class="center">
  4. <view class="auditList_item" v-for="(item,index) in auditList">
  5. <view class="flex">
  6. <view class="auditInfo">{{item.operatorName}}<span>{{item.endTime}}</span> </view>
  7. <view class="result reject" v-if="!item.approved">驳回</view>
  8. <view class="result adopt" v-if="item.approved">通过</view>
  9. </view>
  10. <view class="opinion">
  11. {{item.auditMind}}
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. workflowId: "",
  22. id: "",
  23. auditList: [],
  24. }
  25. },
  26. onLoad(options) {
  27. this.id = options.id
  28. this.workflowId = options.workflowId
  29. },
  30. onShow() {
  31. this.getList()
  32. },
  33. methods: {
  34. getList() {
  35. this.$api.doRequest('get', '/workflowHistory/query/taskHistories', {
  36. businessKey: this.id,
  37. workflowId: this.workflowId
  38. }).then(res => {
  39. this.auditList = res.data.data
  40. }).catch(res => {
  41. if (res.errmsg) {
  42. uni.showToast({
  43. title: res.errmsg,
  44. icon: 'none',
  45. duration: 2000
  46. })
  47. }
  48. });
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .container {
  55. padding: 20rpx 12rpx 250rpx 12rpx;
  56. }
  57. .center {
  58. background: #fff;
  59. margin: 10px;
  60. border-radius: 10px;
  61. padding: 20rpx 30rpx;
  62. .auditList_item {
  63. padding: 40rpx 10rpx;
  64. width: 100%;
  65. border-bottom: 2rpx solid #EEEEEE;
  66. // display: flex;
  67. .auditInfo {
  68. width: 90%;
  69. font-size: 34rpx;
  70. font-weight: 600;
  71. span{
  72. font-size: 26rpx;
  73. margin-left: 30rpx;
  74. font-weight: 500;
  75. }
  76. }
  77. .result {
  78. width: 10%;
  79. display: flex;
  80. justify-content: flex-end;
  81. font-size: 30rpx;
  82. }
  83. .reject{
  84. color: #FE6430;
  85. }
  86. .adopt{
  87. color: #22C572;
  88. }
  89. .opinion{
  90. width: 100%;
  91. color: #AFB3BF;
  92. font-size: 26rpx;
  93. margin-top: 40rpx;
  94. padding: 0 10rpx;
  95. }
  96. }
  97. }
  98. </style>