Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

query-company-list.vue 5.1KB

pirms 2 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <!-- 单位查询列表 -->
  2. <template>
  3. <view class="as-layout-horizontal as-gravity-center top">
  4. <view class="search-box as-layout-horizontal">
  5. <image :src="`${$imgUrl}service/icon-search.png`" class="icon"></image>
  6. <input class="search" placeholder="请输入单位名称" @input="inputHandle"/>
  7. </view>
  8. <view class="search-btn" @click="doSearch">搜索</view>
  9. </view>
  10. <!-- 列表 -->
  11. <view class="list">
  12. <view class="item" v-for="(item,index) in state.list">
  13. <view class="head">
  14. <view class="name">
  15. <text class="title">申请时间 {{item.time}}</text>
  16. </view>
  17. <view class="status" :class="item.status === 1 ? 'text-orange' : 'text-green'">{{item.status === 1 ? '审核中' : '审核通过'}}</view>
  18. </view>
  19. <view class="detail">
  20. <view class="order-text">
  21. <text class="type">单位名称:</text>
  22. <text class="value">{{item.name}}</text>
  23. </view>
  24. </view>
  25. <view class="btns" v-if="item.status !== 1">
  26. <view class="btn btn-normal as-gravity-center" @click="$util.navTo('/issueActivation/add-car')">新增车辆</view>
  27. <view class="btn btn-primary as-gravity-center" @click="$util.navTo('/issueActivation/car-submit-record')">车辆提交记录</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="add-btn">
  32. <submit-button title="新增单位" @submit="$util.navTo('/issueActivation/add-company')"></submit-button>
  33. </view>
  34. </template>
  35. <script setup lang="ts">
  36. import { reactive } from "vue";
  37. import { msg } from "@/utils/utils";
  38. const state = reactive({
  39. //搜索关键字
  40. searchInput:'',
  41. //申请列表 status:1-审核中 2-审核通过
  42. list:[
  43. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:1},
  44. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:2},
  45. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:1},
  46. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:2},
  47. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:1},
  48. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:2},
  49. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:1},
  50. {name:'某某某某某某某某科技公司',time:'2023-10-23 12:00:23',status:2},
  51. ]
  52. })
  53. /* 输入 */
  54. const inputHandle = (event) => {
  55. state.searchInput = event.target.value;
  56. }
  57. /* 搜索 */
  58. const doSearch = () =>{
  59. msg(state.searchInput);
  60. }
  61. </script>
  62. <style>
  63. page{
  64. background-color: #EEF7F7;
  65. }
  66. </style>
  67. <style lang="scss" scoped>
  68. .top{
  69. padding: 30rpx 30rpx 0px;
  70. }
  71. .search-box {
  72. margin-right: 20rpx;
  73. height: 82rpx;
  74. border-radius: 40rpx;
  75. background: #ffffff;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. border: 1px solid #dcdcdc;
  80. box-sizing: border-box;
  81. }
  82. .search-box .icon {
  83. width: 38rpx;
  84. height: 38rpx;
  85. margin: 0 28rpx;
  86. }
  87. .search-box .search {
  88. flex: 1;
  89. height: 100%;
  90. font-size: 28rpx;
  91. color: #333333;
  92. }
  93. .search-btn{
  94. color: white;
  95. background-color: #00B38B;
  96. width: 140rpx;
  97. height: 80rpx;
  98. line-height: 80rpx;
  99. font-size: 32rpx;
  100. border-radius: 40rpx;
  101. text-align: center;
  102. }
  103. .add-btn{
  104. padding: 30rpx 40rpx;
  105. position: fixed;
  106. bottom: 0;
  107. width: 100%;
  108. background-color: #EEF7F7;
  109. }
  110. .list {
  111. padding: 30rpx 30rpx 140rpx;
  112. display: flex;
  113. flex-direction: column;
  114. }
  115. .list .item {
  116. background: #ffffff;
  117. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  118. border-radius: 20rpx;
  119. box-sizing: border-box;
  120. display: flex;
  121. flex-direction: column;
  122. margin-bottom: 30rpx;
  123. }
  124. .list .item .head {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: center;
  128. padding: 20rpx 28rpx;
  129. border-bottom: 1px solid #dcdcdc;
  130. }
  131. .list .item .head .icon {
  132. width: 48rpx;
  133. height: 48rpx;
  134. }
  135. .list .item .head .name {
  136. display: flex;
  137. align-items: center;
  138. }
  139. .list .text-green {
  140. font-size: 26rpx;
  141. color: #00b38b;
  142. }
  143. .list .text-orange {
  144. font-size: 26rpx;
  145. color: #ff8000;
  146. }
  147. .list .title {
  148. font-size: 30rpx;
  149. color: #333;
  150. }
  151. .list .detail {
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. padding: 30rpx 32rpx;
  156. }
  157. .list .detail .type {
  158. font-size: 26rpx;
  159. color: #999;
  160. }
  161. .list .detail .value {
  162. font-size: 26rpx;
  163. color: #333;
  164. }
  165. .list .finished .detail .value {
  166. color: #999;
  167. }
  168. .list .detail .odd {
  169. margin: 20rpx 0;
  170. }
  171. .list .cny {
  172. font-size: 26rpx;
  173. color: #333;
  174. }
  175. .list .finished .cny{
  176. color: #999;
  177. }
  178. .list .amount {
  179. font-size: 40rpx;
  180. font-weight: bold;
  181. }
  182. .list .finished .amount {
  183. color: #999;
  184. }
  185. .list .btns {
  186. display: flex;
  187. align-items: center;
  188. justify-content: flex-end;
  189. border-top: 1px solid #dcdcdc;
  190. margin: 0 30rpx;
  191. padding: 20rpx 0;
  192. }
  193. .list .btn {
  194. height: 60rpx;
  195. // line-height: 60rpx;
  196. border-radius: 30rpx;
  197. padding: 0 24rpx;
  198. font-size: 26rpx;
  199. box-sizing: border-box;
  200. margin-right: 20rpx;
  201. }
  202. .list .btns .btn:last-child {
  203. margin: 0;
  204. }
  205. .list .btn-primary {
  206. border: 1px solid #00b38b;
  207. color: #00b38b;
  208. }
  209. .list .btn-normal {
  210. border: 1px solid #dcdcdc;
  211. color: #333;
  212. }
  213. </style>