backlogManage.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <!--待办清单-->
  2. <template>
  3. <view id="gasRecycle">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="scroll-box">
  5. <view class="for-big-box" v-for="(item,index) in dataList" :key="index">
  6. <view class="for-time-p">{{item.createTimeApp}}</view>
  7. <img class="for-back-img" src="@/images/basicsModules/for_min_bg.png">
  8. <!-- 供气 -->
  9. <view class="for-box" @click="goInfo(item2)" v-for="(item2,index2) in item.taskVOList" :key="index2">
  10. <view class="for-title-box">
  11. <view class="viewColor1">供气</view>
  12. <view><text v-for="(item3,index3) in item2.detailListVO" :key="index3" v-if="index3<2">{{item3.airName}}-{{item3.configName}}*{{item3.bottleNumber}}<text>{{index3<1?' ':'...'}}</text></text></view>
  13. </view>
  14. <view class="for-address-box">
  15. <img src="@/images/basicsModules/icon_wtzg_sj.png">
  16. <view>{{item2.createTime}}</view>
  17. </view>
  18. <view class="for-time-box">
  19. <img src="@/images/basicsModules/icon_wtzg_xx.png">
  20. <view>{{item2.campus}}-{{item2.building}}-{{item2.room}}</view>
  21. </view>
  22. </view>
  23. <!-- 回收 -->
  24. <view class="for-box" @click="goInfo(item4)" v-for="(item4,index4) in item.bottleStorageOutVOList" :key="index4">
  25. <view class="for-title-box">
  26. <view class="viewColor3">回收</view>
  27. <view><text v-for="(item5,index5) in item4.detailListVO" :key="index5" v-if="index5<2">{{item5.airName}}-{{item5.configName}}<text>{{index5<1?' ':'...'}}</text></text></view>
  28. </view>
  29. <view class="for-address-box">
  30. <img src="@/images/basicsModules/icon_wtzg_sj.png">
  31. <view>{{item4.createTime}}</view>
  32. </view>
  33. <view class="for-time-box">
  34. <img src="@/images/basicsModules/icon_wtzg_xx.png">
  35. <view>{{item4.campus}}-{{item4.building}}-{{item4.room}}</view>
  36. </view>
  37. </view>
  38. <!-- 问题 -->
  39. <view class="for-box" @click="goInfo(item6)" v-for="(item6,index6) in item.bottleStorageVOList" :key="index6">
  40. <view class="for-title-box">
  41. <view class="viewColor2">问题</view>
  42. <view><text v-for="(item7,index7) in item6.detailListVO" :key="index7" v-if="index7<2">{{item7.airName}}-{{item7.configName}}<text>{{index7<1?' ':'...'}}</text></text></view>
  43. </view>
  44. <view class="for-address-box">
  45. <img src="@/images/basicsModules/icon_wtzg_sj.png">
  46. <view>{{item6.createTime}}</view>
  47. </view>
  48. <view class="for-time-box">
  49. <img src="@/images/basicsModules/icon_wtzg_xx.png">
  50. <view>{{item6.campus}}-{{item6.building}}-{{item6.room}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="get-null-box" v-if="noData">暂无更多数据</view>
  55. </scroll-view>
  56. </view>
  57. </template>
  58. <script>
  59. import { supplierBacklogList } from '@/api/apiDemo/index.js'
  60. export default {
  61. name: "gasRecycle",
  62. data() {
  63. return {
  64. pageType:0,
  65. //列表请求参数
  66. getData:{
  67. pageNum:1,
  68. pageSize:20,
  69. },
  70. userType:uni.getStorageSync('userType'),
  71. pageType:0,
  72. curTab:0,
  73. tabText:['待处理','已处理',],
  74. dataList:[],
  75. noData:false,
  76. }
  77. },
  78. onLoad() {
  79. },
  80. onShow() {
  81. },
  82. mounted(){
  83. this.getList()
  84. },
  85. methods: {
  86. goInfo(d){
  87. if(d.remark=='gq'){
  88. uni.redirectTo({
  89. url:'/pages_supplier/backlogManage/backlogManageAirDetail?item='+encodeURIComponent(JSON.stringify(d))
  90. });
  91. }else if(d.remark=='hs'){
  92. uni.redirectTo({
  93. url:'/pages_supplier/backlogManage/backlogManageRecycleDetail?item='+encodeURIComponent(JSON.stringify(d))
  94. });
  95. }else if(d.remark=='wt'){
  96. uni.redirectTo({
  97. url:'/pages_supplier/backlogManage/backlogManageIssueDetail?item='+encodeURIComponent(JSON.stringify(d))
  98. });
  99. }
  100. },
  101. //滚动加载事件
  102. scrollGet(){
  103. this.getData.pageNum += 1;
  104. this.getList();
  105. },
  106. //获取列表数据
  107. async getList(){
  108. let _this = this;
  109. const {data} = await supplierBacklogList(_this.getData);
  110. if(data.code==200){
  111. let _this = this;
  112. let res=data.rows
  113. if(res && res.length>0){
  114. if(_this.getData.pageNum==1){
  115. _this.dataList=res;
  116. }else{
  117. _this.dataList=_this.dataList.concat(res);
  118. }
  119. }else{
  120. _this.noData=true;
  121. }
  122. }
  123. },
  124. }
  125. }
  126. </script>
  127. <style lang="stylus" scoped>
  128. #gasRecycle {
  129. height: 100%;
  130. width: 100%;
  131. flex :1;
  132. display flex;
  133. flex-direction column;
  134. overflow hidden;
  135. .scroll-box{
  136. // flex:1;
  137. overflow-y scroll;
  138. .for-big-box:last-child{
  139. margin-bottom:180rpx;
  140. }
  141. .for-big-box{
  142. margin:20rpx;
  143. overflow hidden
  144. border-bottom-left-radius :20rpx;
  145. border-bottom-right-radius :20rpx;
  146. .for-time-p{
  147. background #fff
  148. line-height:87rpx;
  149. font-size:30rpx;
  150. padding:0 22rpx;
  151. border-top-left-radius:20rpx;
  152. border-top-right-radius:20rpx;
  153. }
  154. .for-back-img{
  155. height:30rpx;
  156. width:710rpx;
  157. }
  158. .for-list-box:nth-child(3){
  159. .min-for-title-box{
  160. border:none;
  161. }
  162. }
  163. .for-box{
  164. overflow hidden;
  165. background: #fff;
  166. .for-title-box{
  167. display:flex;
  168. margin:0 26rpx 0;
  169. border-top:1rpx solid #dedede;
  170. padding-top:45rpx;
  171. view:nth-child(1){
  172. width:98rpx;
  173. line-height:38rpx;
  174. height:38rpx;
  175. border-radius:6rpx;
  176. font-size:20rpx;
  177. text-align center;
  178. margin-right:10rpx;
  179. }
  180. view:nth-child(2){
  181. flex:1;
  182. font-size:30rpx;
  183. color:#333;
  184. height:36rpx;
  185. lin-height:36rpx;
  186. margin-right:10rpx;
  187. display:block;
  188. overflow:hidden;
  189. text-overflow:ellipsis;
  190. white-space:nowrap;
  191. }
  192. view:nth-child(3){
  193. font-size:30rpx;
  194. color:#333;
  195. height:36rpx;
  196. lin-height:36rpx;
  197. color:#D80000;
  198. }
  199. .viewColor1{
  200. background #ffe6e6;
  201. color:#ff5555;
  202. }
  203. .viewColor2{
  204. background #fef2dd;
  205. color:#f6a71d;
  206. }
  207. .viewColor3{
  208. background #e0f1e2;
  209. color:#30a23d;
  210. }
  211. .viewColor4{
  212. background #f2dddd;
  213. color:#a51919;
  214. }
  215. .viewColor5{
  216. background #e2f6f8;
  217. color:#3ac3d3;
  218. }
  219. .viewColor6{
  220. background #d9edfe;
  221. color:#0183fa;
  222. }
  223. }
  224. .for-address-box{
  225. display:flex;
  226. margin:33rpx 26rpx 0;
  227. img{
  228. width:28rpx;
  229. height:28rpx;
  230. margin-right:20rpx;
  231. }
  232. view{
  233. font-size:28rpx;
  234. line-height:28rpx;
  235. color:#666;
  236. }
  237. }
  238. .for-time-box{
  239. display:flex;
  240. margin:26rpx 26rpx 0;
  241. padding-bottom:32rpx;
  242. img{
  243. width:28rpx;
  244. height:28rpx;
  245. margin-right:20rpx;
  246. }
  247. view{
  248. font-size:28rpx;
  249. line-height:28rpx;
  250. color:#666;
  251. }
  252. }
  253. }
  254. }
  255. /*暂无数据*/
  256. .get-null-box{
  257. height:100rpx;
  258. line-height:100rpx;
  259. color:#999;
  260. text-align center
  261. }
  262. }
  263. }
  264. </style>