工单小程序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.

176 lines
3.4 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 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. :key="index"
  47. @click="$utils.navigateTo('/pages_order/order/WorkOrders?id=' + item.id)"
  48. />
  49. </view>
  50. <PrivacyAgreementPoup/>
  51. <tabber select="0"/>
  52. </view>
  53. </template>
  54. <script>
  55. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  56. import tabber from '@/components/base/tabbar.vue'
  57. import WorkOrderitem from '@/components/work/WorkOrderitem.vue'
  58. import mixinsList from '@/mixins/list.js'
  59. import { mapGetters } from 'vuex'
  60. export default {
  61. mixins: [mixinsList],
  62. components: {
  63. tabber,
  64. PrivacyAgreementPoup,
  65. WorkOrderitem,
  66. },
  67. data() {
  68. return {
  69. bannerList: [],
  70. CollectionList:[],
  71. mixinsListApi : 'queryTemplateList',
  72. baseList: [
  73. {
  74. name: 'photo',
  75. title: '全部工单',
  76. url : '/pages_order/order/WorkOrderList',
  77. },
  78. {
  79. name: 'lock',
  80. title: '汇总列表',
  81. url : '/pages_order/order/WorkOrderTotalList',
  82. },
  83. ],
  84. NewsList : [],//公告列表
  85. text : [],//公告列表标题
  86. }
  87. },
  88. computed: {
  89. },
  90. onLoad() {
  91. this.queryParams.isEmergency = 1
  92. this.queryBannerList()
  93. this.queryNewsList()
  94. },
  95. methods: {
  96. //轮播图
  97. queryBannerList(){
  98. this.$api('queryBannerList', res =>{
  99. if(res.code == 200){
  100. this.bannerList = res.result.records
  101. }
  102. })
  103. },
  104. //公告列表
  105. queryNewsList(){
  106. this.$api('queryNewsList', res =>{
  107. if(res.code == 200){
  108. this.NewsList = res.result.records
  109. res.result.records.forEach(n => {
  110. this.text.push(n.title)
  111. })
  112. }
  113. })
  114. },
  115. toNotice(index){
  116. uni.navigateTo({
  117. url: '/pages_order/order/Worknotice?id=' + this.NewsList[index].id
  118. })
  119. },
  120. }
  121. }
  122. </script>
  123. <style scoped lang="scss">
  124. .Carousel-image {
  125. position: relative;
  126. display: inline-block;
  127. width: 100%;
  128. .search {
  129. height: 82rpx;
  130. width: 710rpx;
  131. background: #FFFFFF;
  132. margin: 20rpx auto;
  133. border-radius: 41rpx;
  134. box-sizing: border-box;
  135. padding: 0 15rpx;
  136. display: flex;
  137. align-items: center;
  138. position: absolute;
  139. top: 10px;
  140. left: 10px;
  141. }
  142. }
  143. .Urgent-Work-Order{
  144. padding: 20rpx;
  145. }
  146. .festival {
  147. padding: 20rpx;
  148. }
  149. .task {
  150. padding: 20rpx 0;
  151. background-color: #FFFFFF;
  152. margin: 20rpx;
  153. border-radius: 20rpx;
  154. box-shadow: 0 0 10rpx 10rpx #00000005;
  155. }
  156. </style>