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.

create-invoice-header-individual.vue 2.7KB

пре 2 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. <view class="from_item">
  15. <text>设置默认抬头</text>
  16. <u-switch v-model="checked" active-color="#00B38B" inactive-color="#DCDCDC" @change='change'></u-switch>
  17. </view>
  18. </u-form>
  19. </view>
  20. <button class="submit">保存</button>
  21. </view>
  22. </template>
  23. <script setup lang="ts">
  24. import {
  25. ref,
  26. reactive
  27. } from "vue";
  28. const form = reactive({
  29. 'InvoiceHeader': '',
  30. 'cardid': '111'
  31. })
  32. const checked=ref(false)
  33. const change=(status)=>{
  34. console.log(status);
  35. }
  36. </script>
  37. <style>
  38. page {
  39. width: 100%;
  40. height: 100%;
  41. }
  42. </style>
  43. <style lang="scss" scoped>
  44. .box {
  45. width: 100%;
  46. height: 100%;
  47. background-color: #EEF7F7;
  48. border-top: 1rpx solid #DFDFDF;
  49. // padding: 0 0rpx;
  50. .from {
  51. background-color: #fff;
  52. margin-top: 30rpx;
  53. padding: 0 30rpx;
  54. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  55. ::v-deep .u-form-item {
  56. padding: 0;
  57. line-height: normal;
  58. .u-form-item__message {
  59. margin-bottom: 12rpx
  60. }
  61. }
  62. .from_item {
  63. display: flex;
  64. flex-wrap: nowrap;
  65. justify-content: space-between;
  66. // padding: 0 30rpx;
  67. border-bottom: #DCDCDC 1px solid;
  68. align-items: center;
  69. height: 80rpx;
  70. text {
  71. font-size: 28rpx;
  72. font-family: Noto Sans S Chinese;
  73. font-weight: 400;
  74. color: #999999;
  75. }
  76. ::v-deep .input {
  77. text-align: right;
  78. flex: 1;
  79. input {
  80. text-align: right;
  81. }
  82. }
  83. }
  84. .from_item1 {
  85. display: flex;
  86. flex-wrap: nowrap;
  87. flex-direction: column;
  88. justify-content: space-between;
  89. padding: 30rpx;
  90. border-bottom: #DCDCDC 1px solid;
  91. input {
  92. text-align: right;
  93. }
  94. .textarea {
  95. background-color: #F1F1F1;
  96. width: 100%;
  97. border-radius: 20rpx;
  98. margin-top: 10rpx;
  99. text-indent: 1rem;
  100. height: 180rpx;
  101. padding: 20rpx;
  102. box-sizing: border-box;
  103. }
  104. }
  105. }
  106. .submit {
  107. width: 670rpx;
  108. height: 80rpx;
  109. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  110. border-radius: 40rpx;
  111. font-size: 32rpx;
  112. font-family: Noto Sans S Chinese;
  113. font-weight: 400;
  114. color: #FFFFFF;
  115. line-height: 80rpx;
  116. position: fixed;
  117. left: 50%;
  118. transform: translate(-50%);
  119. bottom: 100rpx;
  120. }
  121. }
  122. </style>