工单小程序2024-11-20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

178 lines
3.4 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="page">
  3. <navbar bgColor="#169bd5"/>
  4. <view class="Carousel-image">
  5. <view class="imgs">
  6. <uv-swiper
  7. :list="bannerList"
  8. indicator indicatorMode="dot"
  9. keyName="image"
  10. circular height="420">
  11. </uv-swiper>
  12. </view>
  13. <view class="search">
  14. <uv-search
  15. placeholder="请输入搜索任务号"
  16. bgColor="#fff"
  17. @search="getData"
  18. @custom="getData"
  19. v-model="queryParams.taskNo"></uv-search>
  20. </view>
  21. </view>
  22. <view class="festival">
  23. <uv-notice-bar
  24. @click="toNotice"
  25. :text="text" direction="column" ></uv-notice-bar>
  26. </view>
  27. <view class="task">
  28. <uv-grid :border="false">
  29. <uv-grid-item
  30. @click="$utils.navigateTo(item.url)"
  31. v-for="(item,index) in baseList" :key="index">
  32. <uv-icon
  33. :name="item.name"
  34. size="50rpx"></uv-icon>
  35. <text style="font-size: 28rpx;">{{item.title}}</text>
  36. </uv-grid-item>
  37. </uv-grid>
  38. </view>
  39. <view class="Urgent-Work-Order">
  40. <view class="Urgent-Work">
  41. 紧急工单
  42. </view>
  43. <WorkOrderitem
  44. v-for="(item,index) in list"
  45. :obj="item"
  46. isShowCollect
  47. @getData="getData"
  48. :key="index"
  49. @click="$utils.navigateTo('/pages_order/order/WorkOrders?id=' + item.id)"
  50. />
  51. </view>
  52. <PrivacyAgreementPoup/>
  53. <tabber select="0"/>
  54. </view>
  55. </template>
  56. <script>
  57. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  58. import tabber from '@/components/base/tabbar.vue'
  59. import WorkOrderitem from '@/components/work/WorkOrderitem.vue'
  60. import mixinsList from '@/mixins/list.js'
  61. import { mapGetters } from 'vuex'
  62. export default {
  63. mixins: [mixinsList],
  64. components: {
  65. tabber,
  66. PrivacyAgreementPoup,
  67. WorkOrderitem,
  68. },
  69. data() {
  70. return {
  71. bannerList: [],
  72. CollectionList:[],
  73. mixinsListApi : 'queryTemplateList',
  74. baseList: [
  75. {
  76. name: 'photo',
  77. title: '全部工单',
  78. url : '/pages_order/order/WorkOrderList',
  79. },
  80. {
  81. name: 'lock',
  82. title: '汇总列表',
  83. url : '/pages_order/order/WorkOrderTotalList',
  84. },
  85. ],
  86. NewsList : [],//公告列表
  87. text : [],//公告列表标题
  88. }
  89. },
  90. computed: {
  91. },
  92. onLoad() {
  93. this.queryParams.isEmergency = 1
  94. this.queryBannerList()
  95. this.queryNewsList()
  96. },
  97. methods: {
  98. //轮播图
  99. queryBannerList(){
  100. this.$api('queryBannerList', res =>{
  101. if(res.code == 200){
  102. this.bannerList = res.result.records
  103. }
  104. })
  105. },
  106. //公告列表
  107. queryNewsList(){
  108. this.$api('queryNewsList', res =>{
  109. if(res.code == 200){
  110. this.NewsList = res.result.records
  111. res.result.records.forEach(n => {
  112. this.text.push(n.title)
  113. })
  114. }
  115. })
  116. },
  117. toNotice(index){
  118. uni.navigateTo({
  119. url: '/pages_order/order/Worknotice?id=' + this.NewsList[index].id
  120. })
  121. },
  122. }
  123. }
  124. </script>
  125. <style scoped lang="scss">
  126. .Carousel-image {
  127. position: relative;
  128. display: inline-block;
  129. width: 100%;
  130. .search {
  131. height: 82rpx;
  132. width: 710rpx;
  133. background: #FFFFFF;
  134. margin: 20rpx auto;
  135. border-radius: 41rpx;
  136. box-sizing: border-box;
  137. padding: 0 15rpx;
  138. display: flex;
  139. align-items: center;
  140. position: absolute;
  141. top: 10px;
  142. left: 10px;
  143. }
  144. }
  145. .Urgent-Work-Order{
  146. padding: 20rpx;
  147. }
  148. .festival {
  149. padding: 20rpx;
  150. }
  151. .task {
  152. padding: 20rpx 0;
  153. background-color: #FFFFFF;
  154. margin: 20rpx;
  155. border-radius: 20rpx;
  156. box-shadow: 0 0 10rpx 10rpx #00000005;
  157. }
  158. </style>