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.3KB

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. background: transparent;
  83. input {
  84. text-align: right;
  85. }
  86. }
  87. }
  88. .from_item1 {
  89. display: flex;
  90. flex-wrap: nowrap;
  91. flex-direction: column;
  92. justify-content: space-between;
  93. padding: 30rpx;
  94. border-bottom: #DCDCDC 1px solid;
  95. input {
  96. text-align: right;
  97. }
  98. .textarea {
  99. background-color: #F1F1F1;
  100. width: 100%;
  101. border-radius: 20rpx;
  102. margin-top: 10rpx;
  103. text-indent: 1rem;
  104. height: 180rpx;
  105. padding: 20rpx;
  106. box-sizing: border-box;
  107. }
  108. }
  109. }
  110. .btns {
  111. position: fixed;
  112. left: 50%;
  113. transform: translate(-50%);
  114. bottom: 100rpx;
  115. width: 690rpx;
  116. display: flex;
  117. .submit {
  118. width: 310rpx;
  119. height: 80rpx;
  120. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  121. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  122. border-radius: 40rpx;
  123. font-size: 32rpx;
  124. font-family: Microsoft YaHei;
  125. font-weight: 400;
  126. color: #FFFFFF;
  127. line-height: 80rpx;
  128. }
  129. .deleted {
  130. width: 310rpx;
  131. height: 80rpx;
  132. background: #FFFFFF;
  133. border: 1rpx solid #DCDCDC;
  134. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  135. border-radius: 40rpx;
  136. font-size: 32rpx;
  137. font-family: Microsoft YaHei;
  138. font-weight: 400;
  139. color: #666666;
  140. line-height: 82rpx;
  141. }
  142. }
  143. }
  144. </style>