jwyu 3 лет назад
Родитель
Сommit
97065a2ecb
1 измененных файлов с 35 добавлено и 30 удалено
  1. 35 30
      pages-approve/seal/list.vue

+ 35 - 30
pages-approve/seal/list.vue

@@ -44,7 +44,7 @@
 		},
 		data() {
 			return {
-				tabList:[],
+				tabList:['待审批','处理中','已审批','其它'],
 				status: '待审批',
 				list:[],
 				page:1,
@@ -52,7 +52,7 @@
 			}
 		},
 		onLoad() {
-			this.initTabs()
+			// this.initTabs()
 			this.getList()
 			// 更新列表
 			uni.$on('sealApproveListUpdate',(e)=>{
@@ -95,20 +95,20 @@
 			this.getList()
 		},
 		methods: {
-			//初始化tab
-			initTabs(){
-				// ficc销售 权益销售
-				const RoleTypeCode=this.$store.state.userInfo.RoleTypeCode
-				if(RoleTypeCode==='ficc_seller'||RoleTypeCode==='rai_seller'||RoleTypeCode==='ficc_group'||RoleTypeCode==='rai_group'||RoleTypeCode==='compliance'){
-					this.tabList=['待审批','处理中','已审批','已作废','已撤回']
-					this.status='待审批'
-				}
-				// ficc管理员 权益管理员  合规compliance
-				if(RoleTypeCode==='ficc_admin'||RoleTypeCode==='rai_admin'||RoleTypeCode==='admin'){
-					this.tabList=['待审批','处理中','已审批','已作废']
-					this.status='待审批'
-				}
-			},
+			//初始化tab  将已作废、已撤回合并则不用区分用户权限(该方法废弃)
+			// initTabs(){
+			// 	// ficc销售 权益销售
+			// 	const RoleTypeCode=this.$store.state.userInfo.RoleTypeCode
+			// 	if(RoleTypeCode==='ficc_seller'||RoleTypeCode==='rai_seller'||RoleTypeCode==='ficc_group'||RoleTypeCode==='rai_group'||RoleTypeCode==='compliance'){
+			// 		this.tabList=['待审批','处理中','已审批','已作废','已撤回']
+			// 		this.status='待审批'
+			// 	}
+			// 	// ficc管理员 权益管理员  合规compliance
+			// 	if(RoleTypeCode==='ficc_admin'||RoleTypeCode==='rai_admin'||RoleTypeCode==='admin'){
+			// 		this.tabList=['待审批','处理中','已审批','已作废']
+			// 		this.status='待审批'
+			// 	}
+			// },
 			
 			//去添加用印申请、
 			handleGoApplySeal(){
@@ -134,20 +134,25 @@
 			
 			//获取列表数据
 			async getList(){
-				let res=null
-				if(this.status==='已撤回'){
-					res=await apiSealList({
-						CurrentIndex:this.page,
-						Status:this.status,
-						Keyword:''
-					})
-				}else{
-					res=await apiSealApproveList({
-						CurrentIndex:this.page,
-						Status:this.status,
-						Keyword:''
-					})
-				}
+				// let res=null
+				// if(this.status==='已撤回'){
+				// 	res=await apiSealList({
+				// 		CurrentIndex:this.page,
+				// 		Status:this.status,
+				// 		Keyword:''
+				// 	})
+				// }else{
+				// 	res=await apiSealApproveList({
+				// 		CurrentIndex:this.page,
+				// 		Status:this.status,
+				// 		Keyword:''
+				// 	})
+				// }
+				let res=await apiSealApproveList({
+							CurrentIndex:this.page,
+							Status:this.status,
+							Keyword:''
+						})
 				if(res.code===200){
 					if(!res.data.List||res.data.List.length===0){
 						this.finished=true