list.vue 4.7 KB

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