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-individual.vue 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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'>
  17. </u-switch>
  18. </view>
  19. </u-form>
  20. </view>
  21. <view class="btns">
  22. <button class="deleted">删除</button>
  23. <button class="submit">保存</button>
  24. </view>
  25. </view>
  26. </template>
  27. <script setup lang="ts">
  28. import {
  29. ref,
  30. reactive
  31. } from "vue";
  32. const form = reactive({
  33. 'InvoiceHeader': '贵州某某科技有限公司',
  34. })
  35. const checked = ref(false)
  36. const change = (status) => {
  37. console.log(status);
  38. }
  39. </script>
  40. <style>
  41. page {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. </style>
  46. <style lang="scss" scoped>
  47. .box {
  48. width: 100%;
  49. height: 100%;
  50. background-color: #EEF7F7;
  51. border-top: 1rpx solid #DFDFDF;
  52. // padding: 0 0rpx;
  53. .from {
  54. background-color: #fff;
  55. margin-top: 30rpx;
  56. padding: 0 30rpx;
  57. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  58. ::v-deep .u-form-item {
  59. padding: 0;
  60. line-height: normal;
  61. .u-form-item__message {
  62. margin-bottom: 12rpx
  63. }
  64. }
  65. .from_item {
  66. display: flex;
  67. flex-wrap: nowrap;
  68. justify-content: space-between;
  69. // padding: 0 30rpx;
  70. border-bottom: #DCDCDC 1px solid;
  71. align-items: center;
  72. height: 80rpx;
  73. text {
  74. font-size: 28rpx;
  75. font-family: Noto Sans S Chinese;
  76. font-weight: 400;
  77. color: #999999;
  78. }
  79. ::v-deep .input {
  80. text-align: right;
  81. flex: 1;
  82. input {
  83. text-align: right;
  84. }
  85. }
  86. }
  87. .from_item1 {
  88. display: flex;
  89. flex-wrap: nowrap;
  90. flex-direction: column;
  91. justify-content: space-between;
  92. padding: 30rpx;
  93. border-bottom: #DCDCDC 1px solid;
  94. input {
  95. text-align: right;
  96. }
  97. .textarea {
  98. background-color: #F1F1F1;
  99. width: 100%;
  100. border-radius: 20rpx;
  101. margin-top: 10rpx;
  102. text-indent: 1rem;
  103. height: 180rpx;
  104. padding: 20rpx;
  105. box-sizing: border-box;
  106. }
  107. }
  108. }
  109. .btns {
  110. position: fixed;
  111. left: 50%;
  112. transform: translate(-50%);
  113. bottom: 100rpx;
  114. width: 690rpx;
  115. display: flex;
  116. .submit {
  117. width: 310rpx;
  118. height: 80rpx;
  119. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  120. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  121. border-radius: 40rpx;
  122. font-size: 32rpx;
  123. font-family: Microsoft YaHei;
  124. font-weight: 400;
  125. color: #FFFFFF;
  126. line-height: 80rpx;
  127. }
  128. .deleted {
  129. width: 310rpx;
  130. height: 80rpx;
  131. background: #FFFFFF;
  132. border: 1rpx solid #DCDCDC;
  133. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  134. border-radius: 40rpx;
  135. font-size: 32rpx;
  136. font-family: Microsoft YaHei;
  137. font-weight: 400;
  138. color: #666666;
  139. line-height: 82rpx;
  140. }
  141. }
  142. }
  143. </style>