Browse Source

代办类型修改

zouling 7 months ago
parent
commit
3acea515f2
4 changed files with 42 additions and 29 deletions
  1. 2 2
      manifest.json
  2. 24 17
      pages/index/index.vue
  3. 2 2
      pages/index/notice.vue
  4. 14 8
      work/pages/business/list.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "皖源融资担保",
     "appid" : "__UNI__FA20DEF",
     "description" : "",
-    "versionName" : "1.2.1",
-    "versionCode" : 121,
+    "versionName" : "1.2.2",
+    "versionCode" : 122,
     "transformPx" : false,
     "app-plus" : {
         "usingComponents" : true,

+ 24 - 17
pages/index/index.vue

@@ -43,11 +43,11 @@
 				<swiper v-if="checkPermi(['system:system:user'])" class="swiper" circular :indicator-color="incolorh" :indicator-active-color="activecolorh" :indicator-dots="indicatorDotsh" :autoplay="autoplayh">
 					<swiper-item>
 						<view class="grid">
-							<view class="grid-item-box" @click="getBusListFn(2)" v-if="checkPermi(['system:application:list'])">
+							<view class="grid-item-box" @click="getBusListFn(1)" v-if="checkPermi(['system:application:list'])">
 								<view class="img"><image :src="topaimg" class="imga"></image></view>
 								<view>申报审核</view>
 							</view>
-							<view class="grid-item-box" @click="getBusListFn(3)" v-if="checkPermi(['system:application:list'])">
+							<view class="grid-item-box" @click="getBusListFn(2)" v-if="checkPermi(['system:application:list'])">
 								<view class="img"><image :src="topbimg" class="imgb"></image></view>
 								<view>担保初审</view>
 							</view>
@@ -55,15 +55,15 @@
 								<view class="img"><image :src="topcimg" class="imgc"></image></view>
 								<view>外部工具</view>
 							</view>
-							<view class="grid-item-box" @click="getBusListFn(5)" v-if="checkPermi(['system:application:list'])">
+							<view class="grid-item-box" @click="getBusListFn(6)" v-if="checkPermi(['system:application:list'])">
 								<view class="img"><image :src="topdimg" class="imgd"></image></view>
 								<view>尽职调查</view>
 							</view>
-							<view class="grid-item-box" @click="getBusListFn(6)" v-if="checkPermi(['system:application:list'])">
+							<view class="grid-item-box" @click="getBusListFn(7)" v-if="checkPermi(['system:application:list'])">
 								<view class="img"><image :src="topeimg" class="imga"></image></view>
 								<view>评审会</view>
 							</view>
-							<view class="grid-item-box" @click="getBusListFn(7)" v-if="checkPermi(['system:application:list'])">
+							<view class="grid-item-box" @click="getBusListFn(8)" v-if="checkPermi(['system:application:list'])">
 								<view class="img"><image :src="topfimg" class="imgc"></image></view>
 								<view>签署合同</view>
 							</view>
@@ -134,6 +134,7 @@
 		<!-- 代办提醒 -->
 		<view class="hnbox" v-if="checkPermi(['system:remind:list'])">
 			<view class="hntabs flexc" :class="fixedflag?'tabfix':''"  :style="fixedflag?'top:'+nvaHeight+'px;':''">
+				<view class="tit"  :class="allflag?'act':''" @click="getTaball">全部</view>
 				<block v-for="(ite,idx) in tabList" :key="idx">
 					<!-- v-if="checkPermi([ite.limit])" -->
 					<view class="tit"   :class="tabval==ite.val?'act':''" @click="getTab(ite.val)">{{ite.tit}}</view>
@@ -217,9 +218,7 @@
 			fixedflag:false,
 			tabval:0,
 			total:0,
-			tabList:[{tit:'全部',val:0},{tit:'申报审核',val:1},{tit:'担保初审',val:2},{tit:'尽职调查',val:3},{tit:'评审会',val:4},{tit:'签署合同',val:5},
-				{tit:'上会投票',val:11},{tit:'保后信息',val:12},
-			],
+			tabList:[],
 			usename:'',
 			type:'',//zcta 暂存信息
 			zcid:'',//暂存id
@@ -230,6 +229,7 @@
 			mtype:false,
 			martopHeight:270,
 			city:'',
+			allflag:true,
 		}
 	},
 	onPageScroll(e) {
@@ -261,7 +261,7 @@
 		// 	this.getrefreshData()
 		// })
 		
-		// this.init()
+		this.init()
 		var that=this;
 		// #ifndef H5
 		self.getLocation(function(res){
@@ -517,9 +517,9 @@
 		getDetail(ite){
 			var id=ite.loanApplicationId;
 			var remindType=ite.remindType;
-			if(remindType==11){
+			if(remindType==12){
 				this.$tab.navigateTo("/work/pages/business/details?id="+id+'&from=vote')
-			}else if(remindType==12){
+			}else if(remindType==13){
 				this.$tab.navigateTo("/work/pages/business/details?id="+id+'&from=bhxx')
 			}else{
 				this.$tab.navigateTo("/work/pages/business/details?id="+id)
@@ -529,6 +529,12 @@
 		},
 		getTab(idx){
 			this.tabval=idx;
+			this.allflag=false;
+			this.getrefreshData()
+		},
+		getTaball(){
+			this.tabval='';
+			this.allflag=true;
 			this.getrefreshData()
 		},
 		getrefreshData(){
@@ -554,17 +560,18 @@
 			}).exec();
 		},
 		init(){
-			// 记录来源
-			getDictionaryFn('jluly').then(res=>{
+			// 代办类型
+			getDictionaryFn('remind_type').then(res=>{
 				if(res.code==200){
-					this.adrlist = res.data.map(v => {
+					this.tabList = res.data.map(v => {
 						return {
-							dictLabel: v.dictLabel,
-							dictValue: v.dictValue
+							tit: v.dictLabel,
+							val: v.dictValue
 						}
 					})
 				}
 			})
+			
 		},
 		time() {
 			var date = new Date();
@@ -617,7 +624,7 @@
 				pageNum: this.pageNum,
 				userId:this.userId,
 			}
-			if(this.tabval&&this.tabval!=0){
+			if(!this.allflag){
 				params.remindType=this.tabval
 			}
 			getRemindList(params).then(res=>{

+ 2 - 2
pages/index/notice.vue

@@ -129,9 +129,9 @@
 			getHandle(ite){
 				var id=ite.loanApplicationId;
 				var remindType=ite.remindType;
-				if(remindType==11){
+				if(remindType==12){
 					this.$tab.navigateTo("/work/pages/business/details?id="+id+'&from=vote')
-				}else if(remindType==12){
+				}else if(remindType==13){
 					this.$tab.navigateTo("/work/pages/business/details?id="+id+'&from=bhxx')
 				}else{
 					this.$tab.navigateTo("/work/pages/business/details?id="+id)

+ 14 - 8
work/pages/business/list.vue

@@ -3,8 +3,9 @@
 		<view class="fixedt">
 			<!-- tab -->
 			<view class="tablists flexc">
-				<block v-for="(ite,idx) in tabList" >
-					<view  v-if="!ite.limit||ite.limit&&checkPermi([ite.limit])" @click="getTabFn(ite.val)" :class="{act:tabval==ite.val}" :key="idx">{{ite.tit}}</view>
+				<view  @click="getTabFnall" :class="allflag?'act':''">全部</view>
+				<block v-for="(ite,idx) in shjdlist" >
+					<view  v-if="!ite.limit||ite.limit&&checkPermi([ite.limit])" @click="getTabFn(ite.value)" :class="{act:tabval==ite.value}" :key="idx">{{ite.label}}</view>
 				</block>
 			</view>
 			<!-- 选择器 -->
@@ -67,10 +68,7 @@
 				// limit:''
 				type:'work',
 				tabval:'0',
-				tabList:[
-					{tit:'全部',val:'0',},{tit:'申报审核',val:'2',},{tit:'担保初审',val:'3',},{tit:'初审风险合规',val:'4',},
-					{tit:'尽职调查',val:'5',},{tit:'评审会',val:'6',},{tit:'签署合同',val:'7',},
-				],
+				tabList:[],
 				sbsj:'',
 				shidx:[0],
 				shzt:'',
@@ -85,6 +83,7 @@
 				shlist:[],//审核状态
 				dblxlist:[],//担保类型
 				shjdlist:[],//审核进度
+				allflag:true,
 				from:'',//从哪来的
 				userId:this.$store.state.user.userId,
 			}
@@ -96,6 +95,7 @@
 		onLoad(e) {
 			if(e.type){
 				this.tabval=e.type;
+				this.allflag=false;
 			}
 			if(e.from){
 				this.from=e.from;
@@ -169,6 +169,12 @@
 			},
 			getTabFn(val){
 				this.tabval=val;
+				this.allflag=false;
+				this.getrefreshData()
+			},
+			getTabFnall(){
+				this.tabval='';
+				this.allflag=true;
 				this.getrefreshData()
 			},
 			bindDateChangea(e){
@@ -228,8 +234,8 @@
 				// else{
 				// 	params.loanApplicationType=2
 				// }
-				if(this.tabval!=0){
-					params.loanSchedule=this.tabval
+				if(!this.allflag){
+					params.auditSchedule=this.tabval
 				}
 				if(this.sbsj){
 					params.applicationTime=this.sbsj