list.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!-- @format -->
  2. <template>
  3. <view class="container">
  4. <view style="width: 100%; display: flex; justify-content: center">
  5. <u-tabs
  6. :itemStyle="{ width: '250rpx', marginBottom: '20rpx' }"
  7. :lineWidth="50"
  8. :activeStyle="{ color: '#3c9cff' }"
  9. :list="tabsList"
  10. @click="handleChange"
  11. ></u-tabs>
  12. </view>
  13. <view style="margin-top: 30rpx" v-if="activeContent == '我的检定申请'">
  14. <view style="">
  15. <u-search
  16. :showAction="false"
  17. bgColor="#fff"
  18. placeholder="请输入检定单编号"
  19. style="width: 95%; margin: 30rpx auto"
  20. ></u-search>
  21. </view>
  22. <view class="contentItems" @click="handleVerDetails" v-for="item of 2">
  23. <view class="content">
  24. <view class="title">申请单编号 </view>
  25. <view class="message">2038462928</view>
  26. </view>
  27. <view class="content">
  28. <view class="title">申请单位名称 </view>
  29. <view class="message">单位</view>
  30. </view>
  31. <view class="content">
  32. <view class="title">申请人姓名</view>
  33. <view class="message">李xx</view>
  34. </view>
  35. <view class="content">
  36. <view class="title">检定类型</view>
  37. <view class="message">送检</view>
  38. </view>
  39. <view class="content">
  40. <view class="title">提交时间</view>
  41. <view class="message">2024-07-01 00:00:00</view>
  42. </view>
  43. <view class="content">
  44. <view class="title">申请检定器具</view>
  45. <view class="message">数字指标</view>
  46. </view>
  47. <view class="content">
  48. <view class="title">器具数量</view>
  49. <view class="message">3</view>
  50. </view>
  51. </view>
  52. </view>
  53. <view v-else>
  54. <view>
  55. <view class="createNew">选择检定类型</view>
  56. <view
  57. class=""
  58. style="width: 90%; margin: 0 auto"
  59. @click="handleCurrentForm"
  60. >
  61. <view class="verType">
  62. <u-button @click="handleExternal" type="primary"
  63. >外检 (请检定人员到现场检定)</u-button
  64. >
  65. </view>
  66. <view class="verType">
  67. <u-button @click="handleExternal" type="primary"
  68. >送检 (送检定机构实验室检定)</u-button
  69. >
  70. </view>
  71. </view>
  72. </view>
  73. <view class="topicTetx">
  74. <view style="margin-bottom: 20rpx"> 服务提示:</view>
  75. <view style="margin-bottom: 10rpx"
  76. >1.外检用于无法将计量器送至检定机构的情况,检定人员会在预约时间内送至计量器具现场检定</view
  77. >
  78. <view
  79. >2.送检用户需要将计量器具送至检定机构的情况,检定申请受理后,请按照预约时间将计量器送至相关检定机构进行检定.</view
  80. >
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script>
  86. export default {
  87. data() {
  88. return {
  89. activeContent: "新建检定申请",
  90. tabsList: [
  91. {
  92. name: "新建检定申请",
  93. },
  94. {
  95. name: "我的检定申请",
  96. },
  97. ],
  98. };
  99. },
  100. methods: {
  101. //外检
  102. handleExternal() {
  103. uni.navigateTo({
  104. url: "/pages/verification/externalList",
  105. success: (res) => {},
  106. fail: () => {},
  107. complete: () => {},
  108. });
  109. },
  110. handleChange(row) {
  111. this.activeContent = row.name;
  112. },
  113. handleCurrentForm() {},
  114. handleVerDetails() {
  115. uni.navigateTo({
  116. url: "/pages/verification/taskList",
  117. success: (res) => {},
  118. fail: () => {},
  119. complete: () => {},
  120. });
  121. },
  122. },
  123. };
  124. </script>
  125. <style lang="scss" scoped>
  126. .topicTetx {
  127. width: 90%;
  128. margin: 80rpx auto 0;
  129. font-size: 26rpx;
  130. color: #9b9b9b;
  131. }
  132. .verType {
  133. margin: 40rpx 0;
  134. }
  135. .createNew {
  136. font-size: 30rpx;
  137. margin: 20rpx 0 20rpx 20rpx;
  138. color: #3c9ff3;
  139. }
  140. .container {
  141. height: 100vh;
  142. background: rgb(243, 244, 249);
  143. padding: 20rpx 0 110rpx;
  144. .contentItems {
  145. width: 95%;
  146. border-radius: 6px;
  147. background: #fff;
  148. margin: 0rpx auto 30rpx;
  149. padding: 20rpx 30rpx 20rpx;
  150. .content {
  151. border-bottom: 1px solid rgb(242, 242, 242);
  152. padding: 24rpx 0;
  153. display: flex;
  154. justify-content: space-between;
  155. }
  156. .content:last-child {
  157. border-bottom: none;
  158. }
  159. .title {
  160. font-size: 26rpx;
  161. color: black;
  162. letter-spacing: 3rpx;
  163. }
  164. .message {
  165. font-size: 26rpx;
  166. color: rgb(146, 146, 146);
  167. }
  168. }
  169. }
  170. </style>