zhengkaixin 3 月之前
父节点
当前提交
5d3fbcf39b
共有 3 个文件被更改,包括 53 次插入5 次删除
  1. 1 1
      _theme.scss
  2. 3 3
      config/.env.dev.ud.js
  3. 49 1
      pages/MyInvoice/invoiceManagement.vue

+ 1 - 1
_theme.scss

@@ -88,7 +88,7 @@ border_color1: #3d414a,
  
 )
 );
-
+$theme-map: null;
 //遍历主题map
 @mixin themeify {
 @each $theme-name, $theme-map in $themes {

+ 3 - 3
config/.env.dev.ud.js

@@ -22,11 +22,11 @@ const UNI_APP = {
 	wechatUrl:"/youdian",
 
 	openId:"oSruR6YkhP7QDroLnZGxWis43Kn0",//zkx
-	//openId:"oSruR6dsG6wrbiQCwyftfgnp5690",//sz
+	openId:"oSruR6dsG6wrbiQCwyftfgnp5690",//sz
 	//openId:"oSruR6dZcmSM4ATuweZ5fjHGQsiA",//ys
 	//openId:"oSruR6RWLdQp-HGmcQgXEy2tNUmw",//家桩
-	openId:"oSruR6fYa0yzdMsDinzNOlePTotk",//zq
-	openId:"oSruR6RXae3ZNpux_YN8o6U0xMhA",
+	//openId:"oSruR6fYa0yzdMsDinzNOlePTotk",//zq
+	//openId:"oSruR6RXae3ZNpux_YN8o6U0xMhA",
 	//小鹏管家appid
 	//VUE_APP_WXAPPID:"wx7e70eb62a8459869",
 	branchParameter:"youdian",//team51,youdian

+ 49 - 1
pages/MyInvoice/invoiceManagement.vue

@@ -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;