approval_list.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="(item,index) in list" :key="index" @click="go_approval(item.flow_set_id,item.flow_set_name)">
  5. <view class="title">{{item.flow_set_name}}</view>
  6. <view class="box">
  7. <view class="left">
  8. <view class="line">申请人:{{item.optname}}</view>
  9. <view class="line">单号:{{item.flow_set_id}}</view>
  10. <view class="line">申请日期:{{item.optdt}}</view>
  11. </view>
  12. </view>
  13. <view class="tip" v-if="item.status == 0">待审核</view>
  14. <view class="tip" v-if="item.status == 1" style="background-color: #67C23A;">已通过</view>
  15. <view class="tip" v-if="item.status == 2" style="background-color: #F56C6C;">已驳回</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. list:[]
  25. };
  26. },
  27. onLoad() {
  28. this.get_workflow_get_check_list()
  29. },
  30. methods:{
  31. get_workflow_get_check_list(){
  32. this.$api.workflow_get_check_list({
  33. staff_num: uni.getStorageSync('user').staff_num,
  34. status:""
  35. }).then((res)=>{
  36. console.log(res.data.content.data)
  37. this.list = res.data.content.data
  38. })
  39. },
  40. // 前往审核
  41. go_approval(id,flow_set_name){
  42. uni.navigateTo({
  43. url:"./approval/approval?flow_set_id="+id+"&title="+flow_set_name
  44. })
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. page {
  51. background-color: #F2FAF7;
  52. box-sizing: border-box;
  53. padding: 20rpx 25rpx;
  54. }
  55. .list {
  56. .item {
  57. position: relative;
  58. overflow: hidden;
  59. background-color: #FFFFFF;
  60. box-sizing: border-box;
  61. padding: 25rpx;
  62. border-radius: 15rpx;
  63. margin-bottom: 30rpx;
  64. .title{
  65. height: 70rpx;
  66. line-height: 70rpx;
  67. font-size: 36rpx;
  68. font-weight: 700;
  69. }
  70. .box{
  71. margin-top: 10rpx;
  72. display: flex;
  73. justify-content: space-between;
  74. .left {
  75. height: 140rpx;
  76. display: flex;
  77. flex-direction: column;
  78. justify-content: space-between;
  79. .line{
  80. font-size: 28rpx;
  81. color: #7f7f7f;
  82. }
  83. }
  84. .right {
  85. height: 140rpx;
  86. display: flex;
  87. flex-direction: column;
  88. justify-content: space-between;
  89. .btn{
  90. font-size: 28rpx;
  91. background-color: #E1F7FF;
  92. color: #1e88e5;
  93. padding: 10rpx 30rpx;
  94. border-radius: 40rpx;
  95. }
  96. }
  97. }
  98. .tip{
  99. transform: rotate(45deg);
  100. background-color: #04A0E6;
  101. color: #FFFFFF;
  102. position: absolute;
  103. top: -10rpx;
  104. right: -50rpx;
  105. font-size: 24rpx;
  106. padding: 30rpx 40rpx 10rpx;
  107. }
  108. }
  109. }
  110. </style>