Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

invoiceList.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <view class="wrap">
  3. <view class="item last">
  4. <text>状态:</text>
  5. <uni-data-select v-model="state.status" :localdata="state.statusData"
  6. @change="statusChange"></uni-data-select>
  7. </view>
  8. <view class="item last">
  9. <text>订单类型:</text>
  10. <uni-data-select v-model="state.orderType" :localdata="state.orderTypeData"
  11. @change="orderTypeChange"></uni-data-select>
  12. </view>
  13. </view>
  14. <!-- <view class="listbox">
  15. <view class="card-no-active">
  16. <view class="head">
  17. <image :src="`${$imgUrl}order/icon-star-green.png`" mode=""></image>
  18. <text>新办订单</text>
  19. </view>
  20. <view class="content">
  21. <view class="row">
  22. 产品类型:<text>01872753475754</text>
  23. </view>
  24. <view class="row">
  25. 车牌号:<text>贵AJ1234</text>
  26. </view>
  27. <view class="row">
  28. 激活时间:<text>2023-02-20</text>
  29. </view>
  30. <view class="row">
  31. 订单金额:<text>120.00</text>
  32. </view>
  33. </view>
  34. <view class="btns">
  35. <button>开票</button>
  36. </view>
  37. </view>
  38. </view> -->
  39. </template>
  40. <script setup lang="ts">
  41. import {
  42. reactive
  43. } from "vue";
  44. import { onLoad } from "@dcloudio/uni-app";
  45. import { invoiceQueryApi } from "@/utils/network/api.js";
  46. import { stringToJson } from "@/utils/network/encryption";
  47. import { request } from "@/utils/network/request.js";
  48. const state = reactive({
  49. userMobile: "",
  50. pageNumber: 1,
  51. pageSize: 10,
  52. status: 1,
  53. statusData: [{
  54. 'value': 1,
  55. 'text': '正常'
  56. }, {
  57. 'value': -1,
  58. 'text': '红冲'
  59. }],
  60. orderType: 1,
  61. orderTypeData: [{
  62. 'value': 1,
  63. 'text': 'ETC产品'
  64. }, {
  65. 'value': 2,
  66. 'text': '通行服务费'
  67. }]
  68. })
  69. onLoad((options) => {
  70. state.userMobile = options.userMobile
  71. query()
  72. })
  73. const query = () => {
  74. const options = {
  75. type: 2,
  76. data: {
  77. userMobile: state.userMobile,
  78. pageNumber: state.pageNumber,
  79. pageSize: state.pageSize,
  80. status: state.status,
  81. orderType: state.orderType,
  82. },
  83. method: "POST",
  84. showLoading: true,
  85. };
  86. request(invoiceQueryApi, options).then((res) => {
  87. const data = stringToJson(res.bizContent);
  88. console.log(data, "通行");
  89. });
  90. }
  91. const statusChange = (e) => {
  92. state.status = e
  93. }
  94. const orderTypeChange = (e) => {
  95. state.orderType = e
  96. }
  97. </script>
  98. <style>
  99. page {
  100. width: 100%;
  101. height: 100%;
  102. }
  103. </style>
  104. <style lang="scss" scoped>
  105. .listbox {
  106. height: 100%;
  107. background-color: #EEF7F7;
  108. padding: 30rpx;
  109. border-top: 1rpx solid #DFDFDF;
  110. margin-top: 100rpx;
  111. .card-no-active {
  112. margin-bottom: 30rpx;
  113. height: 438rpx;
  114. background: #FFFFFF;
  115. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  116. border-radius: 20rpx;
  117. display: flex;
  118. flex-direction: column;
  119. .head {
  120. display: flex;
  121. padding: 30rpx;
  122. align-items: center;
  123. border-bottom: 1px solid #DCDCDC;
  124. image {
  125. width: 48rpx;
  126. height: 48rpx;
  127. }
  128. text {
  129. font-size: 30rpx;
  130. font-family: Noto Sans S Chinese;
  131. font-weight: 400;
  132. color: #333333;
  133. }
  134. }
  135. .content {
  136. margin: 30rpx;
  137. margin-bottom: 0;
  138. border-bottom: 1rpx solid #DCDCDC;
  139. .row {
  140. font-size: 26rpx;
  141. font-family: Noto Sans S Chinese;
  142. font-weight: 400;
  143. color: #999999;
  144. margin-bottom: 20rpx;
  145. text {
  146. font-size: 26rpx;
  147. font-family: Noto Sans S Chinese;
  148. font-weight: 400;
  149. color: #333333;
  150. }
  151. }
  152. }
  153. .btns {
  154. flex: 1;
  155. display: flex;
  156. align-items: center;
  157. justify-content: flex-end;
  158. padding: 0 30rpx;
  159. button {
  160. margin: 0;
  161. display: inline-block;
  162. height: 61rpx;
  163. background: #FFFFFF;
  164. border: 1px solid #00B38B;
  165. border-radius: 30rpx;
  166. font-size: 26rpx;
  167. font-family: Noto Sans S Chinese;
  168. font-weight: 400;
  169. color: #00B38B;
  170. line-height: 61rpx;
  171. }
  172. }
  173. }
  174. .card-active {
  175. height: 375rpx;
  176. background: #FFFFFF;
  177. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  178. border-radius: 20rpx;
  179. display: flex;
  180. flex-direction: column;
  181. .head {
  182. display: flex;
  183. padding: 30rpx;
  184. align-items: center;
  185. border-bottom: 1px solid #DCDCDC;
  186. image {
  187. width: 48rpx;
  188. height: 48rpx;
  189. }
  190. text {
  191. font-size: 30rpx;
  192. font-family: Noto Sans S Chinese;
  193. font-weight: 400;
  194. color: #333333;
  195. }
  196. .status {
  197. position: absolute;
  198. right: 35px;
  199. font-size: 26rpx;
  200. font-family: Noto Sans S Chinese;
  201. font-weight: 400;
  202. color: #777777;
  203. }
  204. }
  205. .content {
  206. margin: 30rpx;
  207. .row {
  208. font-size: 26rpx;
  209. font-family: Noto Sans S Chinese;
  210. font-weight: 400;
  211. color: #999999;
  212. margin-bottom: 20rpx;
  213. text {
  214. font-size: 26rpx;
  215. font-family: Noto Sans S Chinese;
  216. font-weight: 400;
  217. color: #333333;
  218. }
  219. }
  220. }
  221. }
  222. }
  223. .item {
  224. display: flex;
  225. font-size: 30rpx;
  226. margin-top: 10rpx;
  227. align-items: center;
  228. }
  229. .wrap {
  230. padding: 10rpx 20rpx;
  231. box-sizing: border-box;
  232. display: flex;
  233. justify-content: space-evenly;
  234. position: fixed;
  235. left: 0;
  236. top: 0;
  237. background-color: white;
  238. width: 100%;
  239. }
  240. </style>