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

158 lines
3.0 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="page">
  3. <navbar
  4. title="列表"
  5. leftClick
  6. @leftClick="$utils.navigateBack"
  7. />
  8. <uv-search placeholder="请输入搜索内容" v-model="keyword" height="80"></uv-search>
  9. <!-- 标签选项 -->
  10. <view class="Tabs">
  11. <uv-tabs :list="listt" @click="click" ></uv-tabs>
  12. </view>
  13. <view class="Urgent-Work-Order">
  14. <WorkOrderitem
  15. v-for="(item,index) in 2"
  16. @click="$utils.navigateTo('/pages_order/order/WorkOrders')"/>
  17. </view>
  18. <tabber select="1" />
  19. </view>
  20. </template>
  21. <script>
  22. import tabber from '@/components/base/tabbar.vue'
  23. import WorkOrderitem from '@/components/work/WorkOrderitem.vue'
  24. export default {
  25. components: {
  26. tabber,
  27. WorkOrderitem,
  28. },
  29. data() {
  30. return {
  31. keyword: '水调歌头',
  32. listt: [{
  33. name: '所有',
  34. }, {
  35. name: '备料中',
  36. }, {
  37. name: '本体加工'
  38. }, {
  39. name: '气密检测'
  40. }, {
  41. name: '挂机中'
  42. }],
  43. category: [{
  44. name: '桌布'
  45. },
  46. {
  47. name: '桌布'
  48. },
  49. {
  50. name: '桌布'
  51. },
  52. ],
  53. list: [{
  54. unit: '100*50*60',
  55. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  56. },
  57. {
  58. unit: '100*50*60',
  59. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  60. },
  61. {
  62. unit: '100*50*60',
  63. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  64. },
  65. {
  66. unit: '100*50*60',
  67. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  68. },
  69. {
  70. unit: '100*50*60',
  71. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  72. },
  73. {
  74. unit: '100*50*60',
  75. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  76. },
  77. {
  78. unit: '100*50*60',
  79. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  80. },
  81. {
  82. unit: '100*50*60',
  83. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  84. },
  85. {
  86. unit: '100*50*60',
  87. image: 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  88. },
  89. ],
  90. chain: false,
  91. value: 0
  92. }
  93. },
  94. computed: {
  95. list2() {
  96. const _list = this.list[this.value]?.childrens;
  97. return _list ? _list : [];
  98. }
  99. },
  100. onReady() {
  101. },
  102. methods: {
  103. change(index) {
  104. console.log('选项改变:', index)
  105. this.value = index;
  106. },
  107. click(item) {
  108. console.log('item', item);
  109. }
  110. }
  111. }
  112. </script>
  113. <style scoped lang="scss">
  114. .page {
  115. background-color: #fff;
  116. /deep/ .uv-vtabs {
  117. height: calc(100vh - 360rpx) !important;
  118. }
  119. /deep/ .uv-vtabs__bar {
  120. height: calc(100vh - 360rpx) !important;
  121. }
  122. /deep/ .uv-vtabs__content {
  123. height: calc(100vh - 360rpx) !important;
  124. }
  125. .Tabs{
  126. display: flex;
  127. justify-content: center;
  128. }
  129. .Urgent-Work-Order{
  130. padding: 20rpx;
  131. .Urgent-Work-List{
  132. margin-top: 20rpx;
  133. border: 6rpx solid rgb(99 ,187 ,211);
  134. border-radius: 25rpx;
  135. padding: 15rpx;
  136. .Work-List{
  137. margin: 15rpx 0rpx;
  138. letter-spacing: 2px
  139. }
  140. }
  141. }
  142. }
  143. </style>