editInvoiceTitle.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <view>
  3. <u-navbar title="编辑发票抬头" title-color="#101010">
  4. <view class="slot" slot="right" @click="show=true">
  5. 删除
  6. </view>
  7. </u-navbar>
  8. <!-- 删除弹出框 -->
  9. <u-popup v-model="show" mode="bottom" border-radius="12" >
  10. <view class="popup">
  11. <view class="headline">
  12. 确认删除
  13. </view>
  14. <view class="hint">
  15. 是否删除此发票抬头?
  16. </view>
  17. <view class="btn-box">
  18. <view class="think">
  19. 我再想想
  20. </view>
  21. <view class="confirm">
  22. 确认删除
  23. </view>
  24. </view>
  25. </view>
  26. </u-popup>
  27. <!-- 类型 -->
  28. <view class="main">
  29. <u-cell-group>
  30. <u-cell-item title="抬头类型" required :arrow="false">
  31. <u-radio-group v-model="value" @change="radioGroupChange">
  32. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
  33. :disabled="item.disabled">
  34. {{item.name}}
  35. </u-radio>
  36. </u-radio-group>
  37. </u-cell-item>
  38. <u-cell-item title="发票类型" required :arrow="false">
  39. <u-radio-group v-model="value2" @change="radioGroupChange">
  40. <u-radio @change="radioChange" v-for="(item, index) in list2" :key="index" :name="item.name"
  41. :disabled="item.disabled">
  42. {{item.name}}
  43. </u-radio>
  44. </u-radio-group>
  45. </u-cell-item>
  46. </u-cell-group>
  47. </view>
  48. <!-- 其他信息 -->
  49. <view class="main">
  50. <u-cell-group>
  51. <u-cell-item title="公司名称" value="" required :arrow="false">
  52. <u-input value="联通公司"></u-input>
  53. </u-cell-item>
  54. <u-cell-item title="公司税号" value="" required :arrow="false">
  55. <u-input value="91291747147147Y"></u-input>
  56. </u-cell-item>
  57. <u-cell-item title="开户银行" value="" :arrow="false">
  58. <u-input type="textarea" maxlength="34" value="中国工商银行股份有限公司荆州经济技术开发区支行"></u-input>
  59. </u-cell-item>
  60. <u-cell-item title="银行账户" value="" :arrow="false">
  61. <u-input value="1813002800001112221"></u-input>
  62. </u-cell-item>
  63. <u-cell-item title="公司地址" value="" :arrow="false">
  64. <u-input value="湖北省荆州开发区江津东路附155号"></u-input>
  65. </u-cell-item>
  66. </u-cell-group>
  67. </view>
  68. <view class="main">
  69. <u-cell-item title="联系电话" value="" required :arrow="false">
  70. <u-input value="15100001111
  71. "></u-input>
  72. </u-cell-item>
  73. </view>
  74. <!-- 默认 -->
  75. <view class="main ">
  76. <u-cell-item title="设为默认" :arrow="false">
  77. <u-switch size="40" v-model="checked" active-color="#00e266"></u-switch>
  78. </u-cell-item>
  79. </view>
  80. <button class="save">保存</button>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. checked: true,
  88. show:false,
  89. list: [{
  90. name: '企业单位',
  91. disabled: false
  92. },
  93. {
  94. name: '个人/非企业单位',
  95. disabled: false
  96. }
  97. ],
  98. list2: [{
  99. name: '增值税专票',
  100. disabled: false
  101. },
  102. {
  103. name: '增值税普票',
  104. disabled: false
  105. }
  106. ],
  107. value: '企业单位',
  108. value2: '增值税专票',
  109. };
  110. },
  111. methods: {
  112. // 选中某个单选框时,由radio时触发
  113. radioChange(e) {
  114. // console.log(e);
  115. },
  116. // 选中任一radio时,由radio-group触发
  117. radioGroupChange(e) {
  118. // console.log(e);
  119. }
  120. }
  121. };
  122. </script>
  123. <style lang="scss" scoped>
  124. .slot {
  125. color: #ee3138;
  126. }
  127. .popup{
  128. padding: 32rpx;
  129. text-align: center;
  130. .headline{
  131. color: rgba(16,16,16,1);
  132. font-size: 36rpx;
  133. font-weight: bold;
  134. }
  135. .hint{
  136. color: rgba(16,16,16,1);
  137. font-size: 32rpx;
  138. margin-top: 40rpx;
  139. }
  140. .btn-box{
  141. margin-top: 82rpx;
  142. display: flex;
  143. justify-content: space-between;
  144. .think{
  145. width: 328rpx;
  146. line-height: 80rpx;
  147. border-radius: 4px;
  148. background-color: rgba(222,225,228,1);
  149. color: rgba(51,51,51,1);
  150. font-size: 32rpx;
  151. }
  152. .confirm{
  153. width: 328rpx;
  154. line-height: 80rpx;
  155. border-radius: 4px;
  156. background-color: rgba(255,68,68,1);
  157. color: rgba(255,255,255,1);
  158. font-size: 32rpx;
  159. }
  160. }
  161. }
  162. .main {
  163. background-color: #fff;
  164. margin-bottom: 24rpx;
  165. }
  166. /deep/.u-cell {
  167. height: 96rpx;
  168. }
  169. /deep/.u-cell__value {
  170. text-align: left;
  171. margin-left: 8%;
  172. font-size: 32rpx;
  173. }
  174. /deep/.u-switch {
  175. margin: auto 0;
  176. float: left;
  177. ;
  178. }
  179. /deep/.uni-textarea-textarea {
  180. line-height: 54rpx;
  181. }
  182. .save {
  183. margin: 24rpx 32rpx;
  184. line-height: 88rpx;
  185. border-radius: 50px;
  186. background: linear-gradient(-88.46deg, rgba(34, 109, 198, 1) 2.59%, rgba(9, 158, 237, 1) 97.02%);
  187. color: rgba(255, 255, 255, 1);
  188. font-size: 36rpx;
  189. }
  190. </style>