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.

invoice-step1.vue 4.1KB

pirms 2 gadiem
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
pirms 2 gadiem
pirms 1 gada
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="box">
  3. <view class="from">
  4. <u-form :model="form" ref="uForm">
  5. <u-form-item>
  6. <view class="from_item">
  7. <text><text style="color: red;">*</text>请选择发票抬头:</text>
  8. <view style="display: flex;" @click="toheaderPage">
  9. <text>{{state.params.buyerName?state.params.buyerName:"请选择"}}</text>
  10. <u-icon name="arrow-right" style="margin-left: 10px;"></u-icon>
  11. </view>
  12. </view>
  13. </u-form-item>
  14. <u-form-item>
  15. <view class="from_item">
  16. <text><text style="color: red;">*</text>车辆所有人证件号后6位:</text>
  17. <view style="display: flex;">
  18. <u-input v-model="state.subIdentNo" class="input" />
  19. </view>
  20. </view>
  21. </u-form-item>
  22. </u-form>
  23. </view>
  24. <button class="submit" @click="submit">提交</button>
  25. </view>
  26. </template>
  27. <script setup lang="ts">
  28. import {
  29. reactive
  30. } from "vue";
  31. import { onLoad, onShow } from "@dcloudio/uni-app";
  32. import { navTo } from "@/utils/utils"
  33. import { ETCProductInvoiceApi } from "@/utils/network/api.js";
  34. import { stringToJson } from "@/utils/network/encryption";
  35. import { request } from "@/utils/network/request.js";
  36. const state = reactive({
  37. type: '',
  38. params: "",
  39. orders: [],
  40. userMobile: "",
  41. subIdentNo: ""
  42. })
  43. onShow(() => {
  44. uni.$once('list', (query) => {
  45. console.log("111", query)
  46. state.params = query.item
  47. })
  48. })
  49. onLoad((option) => {
  50. state.type = option.type
  51. state.userMobile = option.userMobile
  52. if (option.ordersArr.indexOf(',') > 1) {
  53. // 数组
  54. state.orders = option.ordersArr.split(',')
  55. } else {
  56. // 一个
  57. state.orders.push(option.ordersArr)
  58. }
  59. console.log("option", state.orders)
  60. })
  61. const toheaderPage = () => {
  62. console.log(1);
  63. navTo('/subpackage/orders/invoiceApply/invoice-header-list?manage=2')
  64. }
  65. const submit = () => {
  66. if (state.type == '1') {
  67. ETCProductInvoiceRequest()
  68. }
  69. }
  70. const ETCProductInvoiceRequest = () => {
  71. const options = {
  72. type: 2,
  73. data: {
  74. orders: state.orders, //订单号列表
  75. titleId: state.params['id'], //发票抬头编号
  76. subIdentNo: state.subIdentNo, //证件号后6位
  77. userMobile: state.userMobile, //手机号
  78. sellerId: "", //售方信息编号
  79. },
  80. method: "POST",
  81. showLoading: true,
  82. };
  83. request(ETCProductInvoiceApi, options).then((res) => {
  84. const data = stringToJson(res.bizContent);
  85. console.log(data, "通行");
  86. });
  87. }
  88. </script>
  89. <style>
  90. page {
  91. width: 100%;
  92. height: 100%;
  93. }
  94. </style>
  95. <style lang="scss" scoped>
  96. .box {
  97. width: 100%;
  98. height: 100%;
  99. background-color: #FFF;
  100. border-top: 1rpx solid #DFDFDF;
  101. padding: 0 30rpx;
  102. box-sizing: border-box;
  103. .from {
  104. background-color: #fff;
  105. // margin-top: 20rpx;
  106. ::v-deep .u-form-item {
  107. padding: 0;
  108. line-height: normal;
  109. .u-form-item__message {
  110. margin-bottom: 12rpx
  111. }
  112. }
  113. .from_item {
  114. display: flex;
  115. flex-wrap: nowrap;
  116. justify-content: space-between;
  117. // padding: 0 30rpx;
  118. // border-bottom: #DCDCDC 1px solid;
  119. align-items: center;
  120. height: 80rpx;
  121. text {
  122. font-size: 30rpx;
  123. font-family: Noto Sans S Chinese;
  124. font-weight: 400;
  125. }
  126. ::v-deep .input {
  127. text-align: right;
  128. flex: 1;
  129. background: transparent;
  130. input {
  131. text-align: right;
  132. }
  133. }
  134. }
  135. .from_item1 {
  136. display: flex;
  137. flex-wrap: nowrap;
  138. flex-direction: column;
  139. justify-content: space-between;
  140. padding: 30rpx;
  141. border-bottom: #DCDCDC 1px solid;
  142. input {
  143. text-align: right;
  144. }
  145. .textarea {
  146. background-color: #F1F1F1;
  147. width: 100%;
  148. border-radius: 20rpx;
  149. margin-top: 10rpx;
  150. text-indent: 1rem;
  151. height: 180rpx;
  152. padding: 20rpx;
  153. box-sizing: border-box;
  154. }
  155. }
  156. }
  157. .submit {
  158. width: 670rpx;
  159. height: 80rpx;
  160. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  161. border-radius: 40rpx;
  162. font-size: 32rpx;
  163. font-family: Noto Sans S Chinese;
  164. font-weight: 400;
  165. color: #FFFFFF;
  166. line-height: 80rpx;
  167. position: fixed;
  168. left: 50%;
  169. transform: translate(-50%);
  170. bottom: 100rpx;
  171. }
  172. }
  173. </style>