|
@@ -68,12 +68,15 @@
|
|
|
<view class="title">
|
|
|
{{item.stationName}} <text :class="{
|
|
|
invoice:item.status==1,
|
|
|
- 'have-invoiced':item.status==2
|
|
|
+ 'have-invoiced':item.status==2,
|
|
|
+ 'status5 ':item.status==5
|
|
|
}">{{item.statusText}}</text>
|
|
|
</view>
|
|
|
<p><text class="text-1">发票金额</text> <text class="text-2">{{item.amount?item.amount.toFixed(2):0}}元</text></p>
|
|
|
<p><text class="text-1">发票抬头</text><text class="text-2">{{item.title}}</text></p>
|
|
|
<p><text class="text-1">申请时间</text> <text class="text-2">{{item.createTime}}</text></p>
|
|
|
+
|
|
|
+ <p v-if="item.status==5" ><text class="text-1">退回理由</text> <text class="text-2" style="color: red;">{{item.remark}}</text></p>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="invoiced-item">
|
|
@@ -110,6 +113,7 @@
|
|
|
pageIndex: 1,
|
|
|
recordsTotal: 0,
|
|
|
list:[],
|
|
|
+
|
|
|
}],
|
|
|
current: 0,
|
|
|
personInfo:{},
|
|
@@ -124,10 +128,14 @@
|
|
|
if (list.length < recordsTotal) {
|
|
|
this.myLoadmore();
|
|
|
}
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+
|
|
|
},
|
|
|
onShow(){
|
|
|
this.personInfo=this.carhelp.getPersonInfo()
|
|
|
this.getlist(true);
|
|
|
+
|
|
|
},
|
|
|
computed:{
|
|
|
|
|
@@ -211,6 +219,41 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ getlistQ() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: "加载中",
|
|
|
+ mask: true,
|
|
|
+ })
|
|
|
+ var current=1;
|
|
|
+ var pageIndex=1
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ API.invoiceList({
|
|
|
+ pageIndex: pageIndex,
|
|
|
+ status:current,
|
|
|
+
|
|
|
+ }).then((res) => {
|
|
|
+ //uni.hideLoading();
|
|
|
+
|
|
|
+ var datalist=res.data.data;
|
|
|
+
|
|
|
+
|
|
|
+ if(datalist.length){
|
|
|
+ var item=datalist[0]
|
|
|
+
|
|
|
+ if(item.status==5){
|
|
|
+ this.list[1].count="*"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
+ uni.showToast({
|
|
|
+ title: error,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
getlist(bl) {
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
@@ -223,6 +266,7 @@
|
|
|
list = [];
|
|
|
this.list[current].pageIndex=1;
|
|
|
pageIndex = 1;
|
|
|
+ this.getlistQ()
|
|
|
}
|
|
|
|
|
|
API.invoiceList({
|
|
@@ -250,6 +294,7 @@
|
|
|
...list,
|
|
|
...datalist
|
|
|
];
|
|
|
+
|
|
|
this.list[current].recordsTotal = res.data.recordsTotal;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
@@ -453,6 +498,9 @@
|
|
|
.have-invoiced{
|
|
|
color: rgba(0, 185, 98, 100) !important;
|
|
|
}
|
|
|
+ .status5{
|
|
|
+ color: #fa3534 !important;
|
|
|
+ }
|
|
|
.tips{
|
|
|
color: rgba(153, 153, 153, 100);
|
|
|
text-align: center;
|