You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit-invoice-header-company.vue 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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'>
  57. </u-switch>
  58. </view>
  59. </u-form>
  60. </view>
  61. <view class="btns">
  62. <button class="deleted">删除</button>
  63. <button class="submit">保存</button>
  64. </view>
  65. </view>
  66. </template>
  67. <script setup lang="ts">
  68. import {
  69. ref,
  70. reactive
  71. } from "vue";
  72. const form = reactive({
  73. 'InvoiceHeader': '',
  74. 'cardid': '111'
  75. })
  76. const checked = ref(false)
  77. const change = (status) => {
  78. console.log(status);
  79. }
  80. </script>
  81. <style>
  82. page {
  83. width: 100%;
  84. height: 100%;
  85. }
  86. </style>
  87. <style lang="scss" scoped>
  88. .box {
  89. width: 100%;
  90. height: 100%;
  91. background-color: #EEF7F7;
  92. border-top: 1rpx solid #DFDFDF;
  93. // padding: 0 0rpx;
  94. .from {
  95. background-color: #fff;
  96. margin-top: 30rpx;
  97. padding: 0 30rpx;
  98. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  99. ::v-deep .u-form-item {
  100. padding: 0;
  101. line-height: normal;
  102. .u-form-item__message {
  103. margin-bottom: 12rpx
  104. }
  105. }
  106. .from_item {
  107. display: flex;
  108. flex-wrap: nowrap;
  109. justify-content: space-between;
  110. // padding: 0 30rpx;
  111. border-bottom: #DCDCDC 1px solid;
  112. align-items: center;
  113. height: 80rpx;
  114. text {
  115. font-size: 28rpx;
  116. font-family: Noto Sans S Chinese;
  117. font-weight: 400;
  118. color: #999999;
  119. }
  120. ::v-deep .input {
  121. text-align: right;
  122. flex: 1;
  123. background: transparent;
  124. input {
  125. text-align: right;
  126. }
  127. }
  128. }
  129. .from_item1 {
  130. display: flex;
  131. flex-wrap: nowrap;
  132. flex-direction: column;
  133. justify-content: space-between;
  134. padding: 30rpx;
  135. border-bottom: #DCDCDC 1px solid;
  136. input {
  137. text-align: right;
  138. }
  139. .textarea {
  140. background-color: #F1F1F1;
  141. width: 100%;
  142. border-radius: 20rpx;
  143. margin-top: 10rpx;
  144. text-indent: 1rem;
  145. height: 180rpx;
  146. padding: 20rpx;
  147. box-sizing: border-box;
  148. }
  149. }
  150. }
  151. .btns {
  152. position: fixed;
  153. left: 50%;
  154. transform: translate(-50%);
  155. bottom: 100rpx;
  156. width: 690rpx;
  157. display: flex;
  158. .submit {
  159. width: 310rpx;
  160. height: 80rpx;
  161. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  162. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  163. border-radius: 40rpx;
  164. font-size: 32rpx;
  165. font-family: Microsoft YaHei;
  166. font-weight: 400;
  167. color: #FFFFFF;
  168. line-height: 80rpx;
  169. }
  170. .deleted {
  171. width: 310rpx;
  172. height: 80rpx;
  173. background: #FFFFFF;
  174. border: 1rpx solid #DCDCDC;
  175. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  176. border-radius: 40rpx;
  177. font-size: 32rpx;
  178. font-family: Microsoft YaHei;
  179. font-weight: 400;
  180. color: #666666;
  181. line-height: 82rpx;
  182. }
  183. }
  184. }
  185. </style>