修改了发票详细样式,新增发票审核状态,发票新增全选

This commit is contained in:
2024-06-12 14:09:17 +08:00
parent 8b970f2b8f
commit 56e08863de
9 changed files with 84 additions and 43 deletions

View File

@@ -8,7 +8,7 @@
{{item.invoice.name}}
</view>
<view class="invoiceContent">
发票内容: {{item.invoice.content}}
发票内容: {{item.invoice.content}}{{item.money}}元)
</view>
<view class="invoiceType">
发票类型:{{ item.invoice.type === 0 ? '普通电子发票' : '增值税专用电子发票' }}
@@ -18,7 +18,8 @@
</view>
</view>
<view class="right">
<view class="money"> ¥{{item.money}} </view>
<view class="money"> </view>
<view class="operate">
<view style="margin-top: 20rpx; margin-bottom: 20rpx;">
<van-button type="info" class="invoiceBtn" bind:click="submit" size="small" bind:click="jumpToDetail" data-id="{{item.id}}">发票</van-button>
@@ -26,6 +27,10 @@
<van-button type="info" class="detailBtn" bind:click="submit" size="small" bind:click="jumpToDetailContent" data-id="{{item.id}}">明细</van-button>
</view>
</view>
<view class="{{item.status === 1 ? 'approving' : 'already'}}">
<view wx:if="{{item.status === 1}}"> 审核中 </view>
<view wx:else> 已开票 </view>
</view>
</view>
<view style="height: 50rpx;"></view>
</scroll-view>

View File

@@ -8,15 +8,17 @@
background-color: #fff;
border-radius: 26rpx;
padding: 20rpx;
box-sizing: border-box
;
box-sizing: border-box;
position: relative;
}
.left {
flex: 1;
}
.right {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.detailBtn {
margin-top: 20rpx;
@@ -36,4 +38,26 @@
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.approving {
position: absolute;
top: 0;
right: 0;
font-size: 30rpx;
background-color: rgb(239,227,227);
padding: 14rpx 24rpx;
border-radius: 18rpx;
color: rgb(224, 106, 106)
}
.already {
position: absolute;
top: 0;
right: 0;
font-size: 30rpx;
background-color: #0958d9;
padding: 14rpx 24rpx;
border-radius: 18rpx;
color: #fff;
/* color: var(--deep-green) */
}