123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <template>
- <view class="box">
- <view class="from">
- <u-form :model="form" ref="uForm">
- <u-form-item>
- <view class="from_item">
- <text><text style="color: red;">*</text>抬头名称:</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入抬头名称" />
- <!-- <u-icon name="arrow-right" style="margin-left: 10px;"></u-icon> -->
- </view>
- </view>
- </u-form-item>
- <u-form-item>
- <view class="from_item">
- <text><text style="color: red;">*</text>纳税人识别号:</text>
- <view style="display: flex;">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入抬头名称" />
- </view>
- </view>
- </u-form-item>
- <u-form-item>
- <view class="from_item">
- <text>单位地址</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入纳税人识别码" />
- </view>
- </view>
- </u-form-item>
- <u-form-item>
- <view class="from_item">
- <text>公司电话号码</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入单位地址" />
- </view>
- </view>
- </u-form-item>
- <u-form-item>
- <view class="from_item">
- <text>开户银行</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入公司电话号码" />
- </view>
- </view>
- </u-form-item>
- <u-form-item>
- <view class="from_item">
- <text>银行账户</text>
- <view style="display: flex;" @click="showPicker">
- <u-input v-model="form.InvoiceHeader" class="input" placeholder="请输入开户银行" />
- </view>
- </view>
- </u-form-item>
- <view class="from_item">
- <text>设置默认抬头</text>
- <u-switch v-model="checked" active-color="#00B38B" inactive-color="#DCDCDC" @change='change'>
- </u-switch>
- </view>
- </u-form>
- </view>
-
- <view class="btns">
- <button class="deleted">删除</button>
- <button class="submit">保存</button>
- </view>
- </view>
-
- </template>
-
- <script setup lang="ts">
- import {
- ref,
- reactive
- } from "vue";
-
- const form = reactive({
- 'InvoiceHeader': '',
- 'cardid': '111'
- })
- const checked = ref(false)
- const change = (status) => {
- console.log(status);
- }
- </script>
-
-
- <style>
- page {
- width: 100%;
- height: 100%;
- }
- </style>
-
- <style lang="scss" scoped>
- .box {
- width: 100%;
- height: 100%;
- background-color: #EEF7F7;
- border-top: 1rpx solid #DFDFDF;
- // padding: 0 0rpx;
-
-
- .from {
- background-color: #fff;
- margin-top: 30rpx;
- padding: 0 30rpx;
- box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
-
- ::v-deep .u-form-item {
- padding: 0;
- line-height: normal;
-
- .u-form-item__message {
- margin-bottom: 12rpx
- }
- }
-
- .from_item {
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-between;
- // padding: 0 30rpx;
- border-bottom: #DCDCDC 1px solid;
- align-items: center;
- height: 80rpx;
-
- text {
- font-size: 28rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #999999;
- }
-
- ::v-deep .input {
- text-align: right;
- flex: 1;
- background: transparent;
- input {
- text-align: right;
- }
- }
- }
-
- .from_item1 {
- display: flex;
- flex-wrap: nowrap;
- flex-direction: column;
- justify-content: space-between;
- padding: 30rpx;
- border-bottom: #DCDCDC 1px solid;
-
- input {
- text-align: right;
- }
-
- .textarea {
- background-color: #F1F1F1;
- width: 100%;
- border-radius: 20rpx;
- margin-top: 10rpx;
- text-indent: 1rem;
- height: 180rpx;
- padding: 20rpx;
- box-sizing: border-box;
- }
- }
- }
-
- .btns {
- position: fixed;
- left: 50%;
- transform: translate(-50%);
- bottom: 100rpx;
- width: 690rpx;
- display: flex;
-
- .submit {
- width: 310rpx;
- height: 80rpx;
- background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
- box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
- border-radius: 40rpx;
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 80rpx;
- }
-
- .deleted {
- width: 310rpx;
- height: 80rpx;
- background: #FFFFFF;
- border: 1rpx solid #DCDCDC;
- box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
- border-radius: 40rpx;
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #666666;
- line-height: 82rpx;
- }
- }
- }
- </style>
|