aptitudeAudit.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <!--资质审核-->
  2. <template>
  3. <view id="gasRecycle">
  4. <view class="tabTitle" v-if="userType==1">
  5. <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
  6. <view :class="{on:curTab==index}" class="tabTitle_text">{{item}}</view>
  7. <view :class="{on:curTab==index}" class="tabTitle_across"></view>
  8. </view>
  9. </view>
  10. <scroll-view scroll-y @scrolltolower="scrollGet" class="scroll-box">
  11. <view class="list">
  12. <view class="list_li" @click="goInfo(item)" v-for="(item,index) in dataList">
  13. <view class="list_li_t">
  14. <text v-if="curTab==1" :class="item.auditStatus==1?'colorA':'colorB'">{{item.auditStatus==1?'已通过':'未通过'}}</text>
  15. <text>{{item.applyUser}}</text>
  16. <text style="color: #0183FA;">{{item.remark=='yq'?'用气申请':'资格申请'}}</text>
  17. </view>
  18. <view class="list_li_b">
  19. <img src="@/pages_manage/images/icon_zgsh_sysmph.png">
  20. <text>{{item.room}}</text>
  21. <img src="@/images/basicsModules/icon_wtzg_sj.png">
  22. <text>{{item.createTime}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="get-null-box" v-if="noData">暂无更多数据</view>
  27. </scroll-view>
  28. </view>
  29. </template>
  30. <script>
  31. import { auditList } from '@/api/apiDemo/index.js'
  32. export default {
  33. name: "gasRecycle",
  34. data() {
  35. return {
  36. pageType:0,
  37. //列表请求参数
  38. params:{
  39. pageNum:1,
  40. pageSize:10,
  41. auditStatus:0,//0待审核 3已审核
  42. },
  43. userType:uni.getStorageSync('userType'),
  44. pageType:0,
  45. curTab:0,
  46. tabText:['待审核','已审核',],
  47. dataList:[],
  48. noData:false,
  49. }
  50. },
  51. onLoad() {
  52. },
  53. onShow() {
  54. },
  55. methods: {
  56. goInfo(d){
  57. if(this.curTab==0){//审核
  58. uni.redirectTo({
  59. url:'/pages_manage/gasBottle/aptitudeAudit/aptitudeAuditCheck?item='+encodeURIComponent(JSON.stringify(d))
  60. });
  61. }else if(this.curTab==1){//详情
  62. uni.navigateTo({
  63. url:'/pages_manage/gasBottle/aptitudeAudit/aptitudeAuditDetail?item='+encodeURIComponent(JSON.stringify(d))
  64. });
  65. }
  66. },
  67. //顶部tab点击
  68. tabClick(index) {
  69. this.curTab = index;
  70. this.pageType=index;
  71. this.params.pageNum=1;
  72. if(index==0){
  73. this.params.auditStatus=0;
  74. }else if(index==1){
  75. this.params.auditStatus=3;
  76. }
  77. this.dataList=[];
  78. this.getList();
  79. },
  80. //滚动加载事件
  81. scrollGet(){
  82. this.params.pageNum += 1;
  83. this.getList();
  84. },
  85. //查询实验室
  86. async getList(){
  87. const {data} = await auditList(this.params)
  88. if(data.code == 200){
  89. let _this=this;
  90. let res=data.rows
  91. if(res && res.length>0){
  92. if(_this.params.pageNum==1){
  93. _this.dataList=res;
  94. }else{
  95. _this.dataList=_this.dataList.concat(res);
  96. }
  97. }else{
  98. _this.noData=true;
  99. }
  100. }
  101. },
  102. },
  103. mounted(){
  104. this.getList();
  105. },
  106. }
  107. </script>
  108. <style lang="stylus" scoped>
  109. #gasRecycle {
  110. height: 100%;
  111. width: 100%;
  112. flex :1;
  113. display flex;
  114. flex-direction column
  115. overflow hidden
  116. .tabTitle{
  117. display flex;
  118. width:100%;
  119. height: 100rpx;
  120. background: #fff;
  121. margin-bottom 16rpx;
  122. .tabTitle_li{
  123. width:146rpx;
  124. text-align center;
  125. .tabTitle_text{
  126. display: inline-block;
  127. font-size: 28rpx;
  128. font-family: PingFang SC;
  129. font-weight: 500;
  130. color: #333333;
  131. line-height: 70rpx;
  132. &.on{
  133. color:#0183FA;
  134. }
  135. }
  136. .tabTitle_across{
  137. width: 50rpx;
  138. height: 6rpx;
  139. background: #0183FA;
  140. border-radius: 3rpx;
  141. margin-left 50rpx;
  142. display none;
  143. &.on{
  144. display block;
  145. }
  146. }
  147. }
  148. }
  149. .scroll-box{
  150. // flex:1;
  151. overflow-y scroll;
  152. .list{
  153. width: 710rpx;
  154. background: #FFFFFF;
  155. border-radius: 10rpx;
  156. margin: 20rpx;
  157. overflow: hidden;
  158. .list_li{
  159. height: 134rpx;
  160. border-bottom: 1px solid #E0E0E0;
  161. margin: 0 20rpx;
  162. padding-top: 20rpx;
  163. box-sizing: border-box;
  164. .list_li_t{
  165. display: flex;
  166. justify-content: space-between;
  167. align-items: center;
  168. .colorA{
  169. display: inline-block;
  170. background: rgba(48,162,61,0.2);
  171. border-radius: 6rpx;
  172. font-size: 22rpx;
  173. font-family: PingFang SC;
  174. font-weight: 500;
  175. color: #30A23D;
  176. padding: 6rpx 18rpx;
  177. box-sizing: border-box;
  178. }
  179. .colorB{
  180. display: inline-block;
  181. background: rgba(165,25,25,0.2);
  182. border-radius: 6rpx;
  183. font-size: 22rpx;
  184. font-family: PingFang SC;
  185. font-weight: 500;
  186. color: #A51919;
  187. padding: 6rpx 18rpx;
  188. box-sizing: border-box;
  189. }
  190. >text:nth-of-type(2){
  191. font-size: 28rpx;
  192. font-family: PingFang SC;
  193. font-weight: 500;
  194. color: #333333;
  195. line-height: 28rpx;
  196. margin-left: 12rpx;
  197. }
  198. >text:nth-of-type(3){
  199. flex: 1;
  200. font-size: 26rpx;
  201. font-family: PingFang SC;
  202. font-weight: 500;
  203. color: #333333;
  204. line-height: 26rpx;
  205. text-align: right;
  206. }
  207. }
  208. .list_li_b{
  209. margin-top: 30rpx;
  210. display: flex;
  211. >img:nth-of-type(1){
  212. width: 28rpx;
  213. height: 28rpx;
  214. margin-right: 16rpx;
  215. }
  216. >img:nth-of-type(2){
  217. width: 28rpx;
  218. height: 28rpx;
  219. margin-right: 20rpx;
  220. }
  221. >text:nth-of-type(1){
  222. font-size: 26rpx;
  223. font-family: PingFang SC;
  224. font-weight: 500;
  225. color: #666666;
  226. line-height: 26rpx;
  227. width: 152rpx;
  228. }
  229. >text:nth-of-type(2){
  230. font-size: 26rpx;
  231. font-family: PingFang SC;
  232. font-weight: 500;
  233. color: #666666;
  234. line-height: 26rpx;
  235. }
  236. }
  237. }
  238. }
  239. /*暂无数据*/
  240. .get-null-box{
  241. height:100rpx;
  242. line-height:100rpx;
  243. color:#999;
  244. text-align center
  245. }
  246. }
  247. }
  248. </style>