todaycheckorderrprocesseportlist.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!--
  2. * @Title:
  3. * @Description: 当天维修任务动态信息
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <view class="wrap">
  11. <uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="返回"
  12. @clickLeft="toBack">
  13. <view class="nav-title">
  14. <text>{{title}}</text>
  15. </view>
  16. </uni-nav-bar>
  17. <view class="container">
  18. <uni-list>
  19. <uni-list-item v-for="item in list" :key="item.id">
  20. <template v-slot:body>
  21. <view class="list-item-block">
  22. <view class="items-line">
  23. <image class="item-title-run-status-icon" style="box-shadow:0 0 2px 2px lightblue"
  24. src="/static/images/list/order_item.png" mode="widthFix">
  25. </image>
  26. <text class="item-title-rtu-name">{{item.rtuName}}</text>
  27. <text class="item-title-rtu-code">[{{item.rtuCode}}]</text>
  28. </view>
  29. <view class="items-line">
  30. <uni-icons class="input-uni-icon" type="loop" size="18" color="lightblue" />
  31. <text class="item-text-lable">状态:</text>
  32. <text class="item-text-content">{{item.orderStatusName}}</text>
  33. </view>
  34. <view class="items-line">
  35. <uni-icons class="input-uni-icon" type="person" size="18" color="lightblue" />
  36. <text class="item-text-lable">填报人:</text>
  37. <text class="item-text-content">{{item.orderProcessUserName}}</text>
  38. </view>
  39. <view class="items-line">
  40. <uni-icons class="input-uni-icon" type="calendar" size="18" color="lightblue" />
  41. <text class="item-text-lable">填报时间:</text>
  42. <text class="item-text-content">{{item.updateTime}}</text>
  43. </view>
  44. <view class="items-line">
  45. <uni-icons class="input-uni-icon" type="compose" size="18" color="lightblue" />
  46. <text class="item-text-lable">说明:</text>
  47. <text class="item-text-content-ellipsis">{{item.processDesc}}</text>
  48. </view>
  49. <view class="item-button-group">
  50. <view class="item-button" @click="toOrderProcessDetail(item.orderId)">
  51. <view class="items-line">
  52. <uni-icons class="input-uni-icon" type="info" size="18" color="coral" />
  53. <text class="button-text">详情信息</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. </uni-list-item>
  60. </uni-list>
  61. <uni-group>
  62. <view class="pagination-block">
  63. <uni-pagination show-icon :pageSize="pageSize" :current="pageCurrent" :total="total"
  64. @change="pageChange" />
  65. </view>
  66. </uni-group>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. import http from '@/http/api.js';
  72. export default {
  73. components: {
  74. },
  75. onLoad(option) {},
  76. data() {
  77. return {
  78. list: [],
  79. title: '今日测站动态信息',
  80. pageSize: 10,
  81. // 当前页
  82. pageCurrent: 1,
  83. // 数据总量
  84. total: 0,
  85. }
  86. },
  87. computed: {
  88. },
  89. onShow() {
  90. this.getPage();
  91. },
  92. methods: {
  93. toBack() {
  94. uni.navigateBack({
  95. delta: 1
  96. })
  97. },
  98. // 分页触发
  99. pageChange(e) {
  100. this.pageCurrent = e.current;
  101. this.getPage()
  102. },
  103. getPage() {
  104. let that = this;
  105. const current = this.pageCurrent;
  106. const size = this.pageSize;
  107. http.request({
  108. url: '/galaxy-business/rtu/check/order/process/today/page',
  109. method: 'GET',
  110. params: {
  111. current,
  112. size,
  113. },
  114. }).then(res => {
  115. if (res.success) {
  116. if (res.data.records != null) {
  117. that.list = res.data.records;
  118. }
  119. this.total = res.data.total;
  120. }
  121. }).catch(err => {
  122. console.log(err)
  123. })
  124. },
  125. toOrderProcessDetail(id) {
  126. console.log("opne record ", id)
  127. var url = '/pages/check-order/orderprocessreportdetail?orderId=' + id;
  128. uni.navigateTo({
  129. url: url
  130. })
  131. },
  132. }
  133. }
  134. </script>
  135. <style>
  136. </style>
  137. <style lang="scss" scoped>
  138. </style>