Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

create-invoice-header-company.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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="showPicker">
  9. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入抬头名称" />
  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>纳税人识别号:</text>
  17. <view style="display: flex;">
  18. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入抬头名称" />
  19. </view>
  20. </view>
  21. </u-form-item>
  22. <u-form-item>
  23. <view class="from_item">
  24. <text>单位地址</text>
  25. <view style="display: flex;" @click="showPicker">
  26. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入纳税人识别码" />
  27. </view>
  28. </view>
  29. </u-form-item>
  30. <u-form-item>
  31. <view class="from_item">
  32. <text>公司电话号码</text>
  33. <view style="display: flex;" @click="showPicker">
  34. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入单位地址" />
  35. </view>
  36. </view>
  37. </u-form-item>
  38. <u-form-item>
  39. <view class="from_item">
  40. <text>开户银行</text>
  41. <view style="display: flex;" @click="showPicker">
  42. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入公司电话号码" />
  43. </view>
  44. </view>
  45. </u-form-item>
  46. <u-form-item>
  47. <view class="from_item">
  48. <text>银行账户</text>
  49. <view style="display: flex;" @click="showPicker">
  50. <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入开户银行" />
  51. </view>
  52. </view>
  53. </u-form-item>
  54. <view class="from_item">
  55. <text>设置默认抬头</text>
  56. <u-switch v-model="checked" active-color="#00B38B" inactive-color="#DCDCDC" @change='change'></u-switch>
  57. </view>
  58. </u-form>
  59. </view>
  60. <button class="submit">保存</button>
  61. </view>
  62. </template>
  63. <script setup lang="ts">
  64. import {
  65. ref,
  66. reactive
  67. } from "vue";
  68. const form = reactive({
  69. 'InvoiceHeader': '',
  70. 'cardid': '111'
  71. })
  72. const checked=ref(false)
  73. const change=(status)=>{
  74. console.log(status);
  75. }
  76. </script>
  77. <style>
  78. page {
  79. width: 100%;
  80. height: 100%;
  81. }
  82. </style>
  83. <style lang="scss" scoped>
  84. .box {
  85. width: 100%;
  86. height: 100%;
  87. background-color: #EEF7F7;
  88. border-top: 1rpx solid #DFDFDF;
  89. // padding: 0 0rpx;
  90. .from {
  91. background-color: #fff;
  92. margin-top: 30rpx;
  93. padding: 0 30rpx;
  94. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  95. ::v-deep .u-form-item {
  96. padding: 0;
  97. line-height: normal;
  98. .u-form-item__message {
  99. margin-bottom: 12rpx
  100. }
  101. }
  102. .from_item {
  103. display: flex;
  104. flex-wrap: nowrap;
  105. justify-content: space-between;
  106. // padding: 0 30rpx;
  107. border-bottom: #DCDCDC 1px solid;
  108. align-items: center;
  109. height: 80rpx;
  110. text {
  111. font-size: 28rpx;
  112. font-family: Noto Sans S Chinese;
  113. font-weight: 400;
  114. color: #999999;
  115. }
  116. ::v-deep .input {
  117. text-align: right;
  118. flex: 1;
  119. input {
  120. text-align: right;
  121. }
  122. }
  123. }
  124. .from_item1 {
  125. display: flex;
  126. flex-wrap: nowrap;
  127. flex-direction: column;
  128. justify-content: space-between;
  129. padding: 30rpx;
  130. border-bottom: #DCDCDC 1px solid;
  131. input {
  132. text-align: right;
  133. }
  134. .textarea {
  135. background-color: #F1F1F1;
  136. width: 100%;
  137. border-radius: 20rpx;
  138. margin-top: 10rpx;
  139. text-indent: 1rem;
  140. height: 180rpx;
  141. padding: 20rpx;
  142. box-sizing: border-box;
  143. }
  144. }
  145. }
  146. .submit {
  147. width: 670rpx;
  148. height: 80rpx;
  149. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  150. border-radius: 40rpx;
  151. font-size: 32rpx;
  152. font-family: Noto Sans S Chinese;
  153. font-weight: 400;
  154. color: #FFFFFF;
  155. line-height: 80rpx;
  156. position: fixed;
  157. left: 50%;
  158. transform: translate(-50%);
  159. bottom: 100rpx;
  160. }
  161. }
  162. </style>