index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view>
  3. <view class="recordList">
  4. <view class="item" v-for="(item,index) in list" :key="index">
  5. <view class="top">
  6. <view class="title">{{item.system_name}}</view>
  7. <view class="time">提交时间:{{item.add_time}}</view>
  8. <view class="reason" v-if="item.status==2">原因:{{item.fail_msg}}</view>
  9. </view>
  10. <view class="bottom acea-row row-between-wrapper">
  11. <view class="acea-row row-middle"><text class="iconfont" :class="item.status==1?'icon-shenhetongguo':item.status==2?'icon-shenheweitongguo':'icon-daishenhe'"></text>{{item.status==1?'审核通过':item.status==2?'审核未通过':'待审核'}}</view>
  12. <view class="bnt acea-row row-center-wrapper" @click="lookUp(item)" v-if="item.status==1">查看</view>
  13. <view class="bnt acea-row row-center-wrapper" @click="resubmit(item)" v-else-if="item.status==2">重新提交</view>
  14. <view class="bnt acea-row row-center-wrapper" @click="edit(item)" v-else>编辑</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="emptyPage" v-if="list.length == 0">
  19. <emptyPage title="暂无申请记录~"></emptyPage>
  20. </view>
  21. <home v-if="navigation"></home>
  22. </view>
  23. </template>
  24. <script>
  25. import { recordList } from '@/api/user.js';
  26. import colors from '@/mixins/color.js';
  27. import emptyPage from '@/components/emptyPage.vue';
  28. import home from '@/components/home';
  29. export default{
  30. mixins: [colors],
  31. components: {
  32. emptyPage,
  33. home
  34. },
  35. data(){
  36. return{
  37. list:[]
  38. }
  39. },
  40. onLoad(){
  41. this.getList();
  42. },
  43. methods:{
  44. getList(){
  45. recordList().then(res=>{
  46. this.list = res.data;
  47. }).catch(err=>{
  48. return this.$util.Tips({
  49. title: err
  50. });
  51. })
  52. },
  53. edit(item){
  54. uni.reLaunch({
  55. url: '/pages/users/supplier/index?id='+ item.id
  56. })
  57. },
  58. resubmit(item){
  59. uni.navigateTo({
  60. url: '/pages/users/supplier_state/index?id='+ item.id+'&type=2'
  61. })
  62. },
  63. lookUp(item){
  64. uni.navigateTo({
  65. url: '/pages/users/supplier_state/index?id='+ item.id+'&type=1'
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss">
  72. .emptyPage{
  73. padding-top: 1rpx;
  74. }
  75. .recordList{
  76. .item{
  77. width: 690rpx;
  78. background-color: #fff;
  79. border-radius: 12rpx;
  80. margin: 20rpx auto 0 auto;
  81. padding: 0 24rpx;
  82. .top{
  83. min-height: 180rpx;
  84. border-bottom: 1px solid #EEEEEE;
  85. padding-top: 1rpx;
  86. font-size: 24rpx;
  87. .title{
  88. font-size: 28rpx;
  89. color: #282828;
  90. margin-top: 35rpx;
  91. }
  92. .time{
  93. color: #999999;
  94. margin-top: 15rpx;
  95. }
  96. .reason{
  97. color: #E93323;
  98. margin-top: 10rpx;
  99. }
  100. }
  101. .bottom{
  102. height: 96rpx;
  103. .icon-daishenhe{
  104. font-size: 38rpx;
  105. margin: 4rpx 8rpx 0 0;
  106. color: #3382F7;
  107. }
  108. .icon-shenhetongguo{
  109. font-size: 36rpx;
  110. margin: 4rpx 8rpx 0 0;
  111. color: #61CE74;
  112. }
  113. .icon-shenheweitongguo{
  114. font-size: 36rpx;
  115. margin: 4rpx 8rpx 0 0;
  116. color: #F0441C;
  117. }
  118. .bnt{
  119. border: 1px solid #999999;
  120. border-radius: 27rpx;
  121. font-size: 26rpx;
  122. color: #666;
  123. height: 54rpx;
  124. padding: 0 32rpx;
  125. }
  126. }
  127. }
  128. }
  129. </style>