invoiceDetail.vue
4.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<template>
<view class="graybg">
<view class="pads">
<view class="box">
<view class="whiteItem">
<!-- <view class="pp">
发票形式
<text v-if="form.invoiceForm=='1'">电子发票</text>
<text v-if="form.invoiceForm=='2'">纸质普票</text>
<text v-if="form.invoiceForm=='3'">纸质专票</text>
</view>
<view class="pp">
开票金额
<text>¥ {{form.total}}</text>
</view> -->
<!-- <view class="pp" v-if="form.invoiceForm=='1'">
邮箱
<text>{{form.address}}</text>
</view>
<view class="pp" v-else style="display: flex;width: 100%;justify-content: space-between;">
邮寄地址
<view style="text-align: right;">
<view style="color: #333;">{{nowAddress.contact}} {{nowAddress.phone}}</view>
<view style="color: #333;">{{nowAddress.addName}}</view>
</view>
</view> -->
<view class="pp">
发票类型
<text v-show="form.invoiceType=='0'"> 企业</text>
<text v-show="form.invoiceType=='1'"> 个人非企业</text>
</view>
<view class="pp">发票抬头
<text>{{form.invoiceTitle}}</text>
</view>
<view class="pp" v-if="form.invoiceTfn">税号
<text>{{form.invoiceTfn}}</text>
</view>
<view>
<view class="pp" v-if="form.invoiceAddress">邮箱
<text>{{form.invoiceAddress}}</text>
</view>
<view class="pp" v-if="form.invoicePhone">电话
<text>{{form.invoicePhone}}</text>
</view>
<view class="pp" v-if="form.invoiceBank">开户行
<text>{{form.invoiceBank}}</text>
</view>
<view class="pp" v-if="form.invoiceAccount">账户
<text>{{form.invoiceAccount}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script setup>
import {
ref
} from 'vue';
import {
onShow,
onPullDownRefresh,
onReachBottom,
onLoad
} from '@dcloudio/uni-app';
import * as hotel from '@/common/hotel.js';
import _ from 'lodash';
const list = ref([])
const form = ref({})
const nowAddress = ref({})
const addressList = ref([])
const currUser = uni.getStorageSync('currUser');
onShow(() => {
list.value = []
getList()
});
let invoiceId
onLoad((option) => {
invoiceId = option.invoiceId
});
function getList() {
hotel.getInvoiceDetail(invoiceId).then(res => {
form.value = res.data;
});
}
</script>
<style lang="scss" scoped>
.fixedBtn {
position: fixed;
right: 30rpx;
bottom: 10%;
width: 100rpx;
height: 100rpx;
color: #fff;
background: linear-gradient(270deg, #54e1b9, #00caa6);
border-radius: 50%;
box-shadow: 0 0 15rpx #666;
font-size: 24rpx;
text-align: center;
}
.pads {
padding: 0 25rpx 70rpx;
}
.billItem {
&>label {
position: absolute;
top: -10rpx;
right: 0;
font-size: 28rpx;
}
width: auto;
position: relative;
padding: 30rpx 0;
.poPrice {
position: absolute;
right: 0;
font-size: 36rpx;
bottom: 30rpx;
color: #000;
}
.uni-input {
padding: 15rpx 0;
color: #000;
}
.billFoot {
margin-bottom: 20rpx;
}
}
.rrcard .box {
padding: 0 0 1px;
margin: 20rpx 0 0;
}
.graybg {
background: #f7f8fa;
height: 100vh;
width: 100vw;
overflow: auto;
}
.whitebg {
background: #fff;
margin-top: 15rpx;
border-radius: 20rpx;
margin-bottom: 180rpx;
}
.whiteItem {
width: 700rpx;
box-sizing: border-box;
margin: 26rpx auto 0;
padding: 26rpx;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 27rpx 0rpx #DEDEDE;
border-radius: 15rpx;
.pp{font-size: 30rpx;
text{float: right;font-size: 30rpx;}
}
}
.name {
font-size: 34rpx;
color: #000;
}
.blueTag {
color: #fff;
background-color: #1EC886;
padding: 10rpx 10rpx;
}
.purpleTag {
color: #fff;
background-color: #717bef;
padding: 10rpx 10rpx;
}
.orangeTag {
color: #fff;
background-color: #ff8124;
padding: 10rpx 10rpx;
}
.padh20 {
padding: 0 25rpx;
}
.price {
width: 100%;
overflow: hidden;
}
.billbtn {
color: #1EC886;
border: 1px solid #1EC886;
margin: initial;
border-radius: 0;
background-color: transparent;
font-size: 28rpx;
}
.billFoot .tip {
font-size: 24rpx;
font-size: 24rpx;
color: #999;
font-weight: 500;
margin: 0 20rpx;
}
.billItem>view {
margin-bottom: 10rpx;
}
.billFoot text {
white-space: nowrap;
}
.billFoot text.danger {
color: #da2a2a;
}
.blueTag {
color: #fff;
background-color: #1EC886;
padding: 10rpx 10rpx;
}
.status {
.warning {
color: #ff8124;
}
.danger {
color: #da2a2a;
}
.gary {
color: #666;
}
.success {
color: #1EC886;
}
}
.bigSize {
font-size: 32rpx;
margin-bottom: 10rpx;
}
.smallSize {
font-size: 26rpx;
color: #999;
}
</style>