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

145 lines
2.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
  1. <template>
  2. <view class="page">
  3. <navbar
  4. title="收藏列表"
  5. leftClick
  6. @leftClick="$utils.navigateBack"/>
  7. <uv-search placeholder="请输入搜索内容" v-model="keyword" height="80"></uv-search>
  8. <!-- 标签选项 -->
  9. <view class="Tabs">
  10. <uv-tabs :list="listt" @click="click" ></uv-tabs>
  11. </view>
  12. <view class="Urgent-Work-Order">
  13. <view class="Urgent-Work-List" v-for="(item,index) in 2 " >
  14. <view class="Work-List">
  15. 任务号GY1269103AC0
  16. </view>
  17. <view class="Work-List">
  18. 担当信息李林珠-15177689988
  19. </view>
  20. <view class="Work-List">
  21. 机型信息BSZ24861768
  22. </view>
  23. <view class="Work-List">
  24. 数量88
  25. </view>
  26. <view class="Work-List">
  27. 工单状态本体加工
  28. </view>
  29. </view>
  30. </view>
  31. <tabber select="3" />
  32. </view>
  33. </template>
  34. <script>
  35. import tabber from '@/components/base/tabbar.vue'
  36. export default {
  37. components: {
  38. tabber,
  39. },
  40. data() {
  41. return {
  42. keyword: '水调歌头',
  43. listt: [{
  44. name: '所有',
  45. }, {
  46. name: '备料中',
  47. }, {
  48. name: '本体加工'
  49. }, {
  50. name: '气密检测'
  51. }, {
  52. name: '挂机中'
  53. }],
  54. value : 0,
  55. checkboxValue : [],
  56. options: [
  57. {
  58. text: '删除',
  59. style: {
  60. backgroundColor: '#FA5A0A'
  61. }
  62. },
  63. ],
  64. list : [
  65. {
  66. id : 1,
  67. title : '桌布租赁',
  68. num : 1,
  69. price : 299,
  70. unit : '120*40*75【桌子尺寸】',
  71. },
  72. {
  73. id : 2,
  74. title : '桌布租赁',
  75. num : 1,
  76. price : 299,
  77. unit : '120*40*75【桌子尺寸】',
  78. },
  79. ],
  80. }
  81. },
  82. computed: {
  83. totalPrice(){
  84. if (!this.checkboxValue.length) {
  85. return 0
  86. }
  87. let price = 0
  88. this.list.forEach(n => {
  89. if(this.checkboxValue.includes(n.id)){
  90. price += n.price * n.num
  91. }
  92. })
  93. return price
  94. },
  95. },
  96. methods: {
  97. valChange(){
  98. },
  99. click(item) {
  100. console.log('item', item);
  101. }
  102. }
  103. }
  104. </script>
  105. <style scoped lang="scss">
  106. .page {
  107. padding-bottom: 200rpx;
  108. /deep/ .uv-swipe-action{
  109. width: 100%;
  110. }
  111. .Tabs{
  112. display: flex;
  113. justify-content: center;
  114. }
  115. .Urgent-Work-Order{
  116. padding: 20rpx;
  117. .Urgent-Work-List{
  118. margin-top: 20rpx;
  119. border: 6rpx solid rgb(99 ,187 ,211);
  120. border-radius: 25rpx;
  121. padding: 15rpx;
  122. .Work-List{
  123. margin: 15rpx 0rpx;
  124. letter-spacing: 2px
  125. }
  126. }
  127. }
  128. }
  129. </style>