zouling 11 mesi fa
parent
commit
eaa9ad907d

+ 1 - 1
components/business/list.vue

@@ -29,7 +29,7 @@
 		<block v-if="type=='custom'">
 			<view class="lists" v-for="(ite,idx) in datalist" @click="getDetail(ite.userId)">
 				<view class="listtop">
-					<view class="head">{{ite.realName.substring(0,1)}}</view>
+					<view class="head" v-if="ite.realName">{{ite.realName.substring(0,1)}}</view>
 					<view class="flex1">
 						<view class="headt">{{ite.realName}}</view>
 						<view class="headx">资料更新时间 | {{ite.updateTime||ite.createTime}}</view>

+ 38 - 15
work/components/business/ewjcj.vue

@@ -5,10 +5,19 @@
 			<view class="flex1 flexc">{{ite.label}}
 			<!-- 有文件出具的权限 -->
 			<!-- 风险报告只能有风险修改删除 -->
-			<view class="editf" v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&datainfo.loanApplicationType!=3" @click="getfjEdit(ite.val)">
-				<image :src="editf"></image>
-				<view>上传</view>
-			</view>
+			<template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&datainfo.loanApplicationType!=3">
+				<template v-if="ite.val=='fxbg'">
+					<view class="editf" v-if="userId==datainfo.fUserId"  @click="getfjEdit(ite.val)">
+						<image :src="editf"></image>
+						<view>上传</view>
+					</view>
+				</template>
+				<view class="editf" v-else @click="getfjEdit(ite.val)">
+					<image :src="editf"></image>
+					<view>上传</view>
+				</view>
+			</template>
+			
 			</view>
 			<!-- v-if="ite.qflag" -->
 			<!-- <view class="edit" v-if="ite.val=='psyjqpb'||ite.val=='gdhyjy'||ite.val=='wtdbht'" @click="getQmFn">
@@ -27,15 +36,28 @@
 					<view class="tit">{{fite.name}}</view>
 				</view>
 				<!-- ||ite.val=='wtdbht' -->
-				<block v-if="pfrom!='vote'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
-					<view class="edit" v-if="(ite.val=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
-						<image :src="edit"></image>
-						<view>在线签名</view>
-					</view>
-					<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
-						<image :src="fdelimg"></image>
-					</view>
-				</block>
+				<template v-if="pfrom!='vote'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
+					<template v-if="ite.val=='fxbg'">
+						<template v-if="userId==datainfo.fUserId">
+							<view class="edit" v-if="(ite.val=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
+								<image :src="edit"></image>
+								<view>在线签名</view>
+							</view>
+							<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
+								<image :src="fdelimg"></image>
+							</view>
+						</template>
+					</template>
+					<template v-else>
+						<view class="edit" v-if="(ite.val=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
+							<image :src="edit"></image>
+							<view>在线签名</view>
+						</view>
+						<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
+							<image :src="fdelimg"></image>
+						</view>
+					</template>
+				</template>
 				<text class="txta" @click="getDown(fite.url)">预览</text>
 			</view>
 		</view>
@@ -114,8 +136,9 @@
 			edit:require('@/work/static/images/edit.png'),
 			editf:require('@/work/static/images/editfile.png'),
 			fdelimg:require('@/work/static/images/del.png'),
-			gdfilelist:[{name:'123'}],
-			zheList:[{zheflag:true}],
+			gdfilelist:[],
+			zheList:[],
+			userId:this.$store.state.user.userId,
 			fileList:[
 				
 				// {tit:'担保意向函',files:[{url:"",name:'安徽嘉欣医疗用品有限公司0403担保意向函.doc'}]},

+ 5 - 1
work/components/business/list.vue

@@ -16,6 +16,7 @@
 						<image v-if="ite.votingResult==3" :src="voted" class="votea"></image>
 						<image v-if="ite.votingResult==4" :src="votea" class="votea"></image>
 					</block>
+					<image v-if="ite.auditSchedule==1&&ite.auditType==3" :src="sha" class="votea"></image>
 					<view class="txt"><text class="tit">贷款编号</text><text class="line">|</text><text>{{ite.loanApplicationNumber}}</text></view>
 					<view class="txt" v-if="ite.loanApplicationType!=1&&ite.loanApplicationType!=4"><text class="tit">审核状态</text><text class="line">|</text><text class="co28">{{kaType(ite.auditSchedule,shjdlist)}}
 					</text></view>
@@ -29,6 +30,7 @@
 						<view class="txt"><text class="tit">担保类型</text><text class="line">|</text><text>{{statusFormats(ite.guaranteeType,dblxlist)}}</text></view>
 						<view class="txt"><text class="tit">资金用途</text><text class="line">|</text><text>{{ite.purposeFunds}}</text></view>
 						<view class="txt"><text class="tit">还款来源</text><text class="line">|</text><text>{{ite.repaymentSource}}</text></view>
+						<view class="txt"><text class="tit" v-if="ite.auditSchedule==1&&ite.auditType==3">拒绝原因</text><text class="line">|</text><text>{{ite.rejectionReason}}</text></view>
 					</view>
 				</view>
 			</view>
@@ -37,7 +39,7 @@
 		<block v-if="type=='custom'">
 			<view class="lists" v-for="(ite,idx) in datalist" @click="getDetail(ite.userId)">
 				<view class="listtop">
-					<view class="head">{{ite.realName.substring(0,1)}}</view>
+					<view class="head" v-if="ite.realName">{{ite.realName.substring(0,1)}}</view>
 					<view class="flex1">
 						<view class="headt">{{ite.realName}}</view>
 						<view class="headx">资料更新时间 | {{ite.updateTime||ite.createTime}}</view>
@@ -286,6 +288,8 @@
 			votec:require('@/work/static/images/votec.png'),
 			voted:require('@/work/static/images/voted.png'),
 			votee:require('@/work/static/images/votee.png'),
+			sha:require('@/work/static/images/sha.png'),
+			shb:require('@/work/static/images/shb.png'),
 			zlist:[]
 		}
 	},

+ 31 - 15
work/pages/business/add.vue

@@ -1465,8 +1465,8 @@
 				id:'',//申请id
 				declareFj:{},//
 				// {tit:'法人结婚证',type:'frjhz'},{tit:'法人离婚证',type:'frlhz'},
-				// {tit:'法人配偶身份证人像',type:'frsfzpormx'},{tit:'法人配偶身份证国徽面',type:'frsfzpoghm'},
-				//担保类型为反担保人担保{tit:'反担保人身份证人像',type:'fdbrsfzrmx'},{tit:'反担保人身份证国徽面',type:'fdbrsfzghm'},
+				// {tit:'法人配偶身份证人像',type:'frsfzpormx'},{tit:'法人配偶身份证国徽面',type:'frsfzpoghm'},
+				//担保类型为反担保人担保{tit:'反担保人身份证人像',type:'fdbrsfzrmx'},{tit:'反担保人身份证国徽面',type:'fdbrsfzghm'},
 				//担保类型为抵押{tit:'企业固定资产证明',type:'qygdzczm'},
 				ischange:false,
 				isdetail:false,
@@ -1946,7 +1946,7 @@
 				if(this.loadflag){
 					return
 				}
-				var params=this.datainfo;
+				var params=JSON.parse(JSON.stringify(this.datainfo));
 				var gdlist=this.gdlist;
 				var shFjList=[]
 				Object.keys(gdlist).some((key) => {
@@ -1995,15 +1995,23 @@
 						setTimeout(function(){
 							if(that.ptype=='add'){
 								that.$toast('暂存成功')
-								that.$tab.reLaunch('/pages/index/index') 
+								setTimeout(function(){
+									that.$tab.reLaunch('/pages/index/index') 
+								},1200)	
 							}else{
 								that.$toast('暂存成功,请稍后重新刷新')
 								uni.$emit('refreshywlist')
-								if(type&&type=='back'){
+								setTimeout(function(){
 									uni.navigateBack({
-										delta:1
+										delta:2
 									})
-								}
+								},1200)
+								
+								// if(type&&type=='back'){
+								// 	uni.navigateBack({
+								// 		delta:1
+								// 	})
+								// }
 							}
 						},1200)
 					}
@@ -2084,7 +2092,7 @@
 					return
 				}
 					// 判断附件是否完整
-				var params=this.datainfo;
+				var params=JSON.parse(JSON.stringify(this.datainfo));
 				if(!params.enterpriseName){
 					this.$toast("请选择企业名称")
 					return
@@ -2098,7 +2106,7 @@
 					return
 				}
 				if(!params.corporationFront){
-					this.$toast("请上传法人身份证人像")
+					this.$toast("请上传法人身份证人像")
 					return
 				}
 				if(!params.corporationBack){
@@ -2210,11 +2218,11 @@
 						return
 					}
 					if(!params.guaranteeFront){
-						this.$toast("请上传法人身份证人面像")
+						this.$toast("请上传反担保人身份证人像面")
 						return
 					}
 					if(!params.guaranteeBack){
-						this.$toast("请上传人身份证国徽面")
+						this.$toast("请上传反担保人身份证国徽面")
 						return
 					}
 				}
@@ -2274,11 +2282,17 @@
 				params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
 				params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
 				console.log(this.fjdelIdList,this.gdFjdelIdList,222)
+				uni.showLoading({
+					title: '加载中'
+				});
+				this.loadflag=true;
 				if(this.ptype=='add'){
 					getApplicationAdd(params).then(res=>{
+						uni.hideLoading();
+						this.loadflag=false;
 						if(res.code==200){
 							that.ischange=false;
-							that.$toast("新增成功")
+							that.$toast("新增成功,请稍后重新刷新")
 							setTimeout(function(){
 								that.$tab.redirectTo('/work/pages/success')
 							},1200)
@@ -2286,13 +2300,15 @@
 					})
 				}else{
 					getApplicationEdit(params).then(res=>{
+						uni.hideLoading();
+						this.loadflag=false;
 						if(res.code==200){
 							that.ischange=false;
-							that.$toast("修改成功")
+							that.$toast("修改成功,请稍后重新刷新")
 							setTimeout(function(){
 								uni.$emit('refreshywlist')
 								uni.navigateBack({
-									delta:1
+									delta:2
 								})
 							},1200)
 						}
@@ -2612,7 +2628,7 @@
 			},
 			getExportMb(ite){
 				var that=this;
-				var params=this.datainfo;
+				var params=JSON.parse(JSON.stringify(this.datainfo));
 				if(ite.val=='wtdbsqs'){
 					params.type=1;
 				}else{

+ 12 - 4
work/pages/business/details.vue

@@ -119,6 +119,7 @@
 					<view class="fbtns bga" v-if="checkRole(['manager'])&&stepval==6&&datainfo.votingResult==3&&checkPermi(['c:conference:again'])" @click="getShFn('cxtp')">重新投票</view>
 				</block>
 				<block v-else>
+					<!--  -->
 					<view class="fbtns bga" v-if="checkPermi(['system:application:edit'])&&stepval<2" @click="getedit">修改</view>
 					<view class="fbtns bgc" v-if="checkPermi(['system:application:remove'])&&stepval<2" @click="getDel">删除</view>
 					<!-- 申诉状态除了修改,都不给 -->
@@ -443,7 +444,7 @@
 			}
 		},
 		onUnload() {
-			uni.$off('refreshywlist')
+			// uni.$off('refreshywlist')
 		},
 		onLoad(e) {
 			this.id=e.id;
@@ -451,9 +452,9 @@
 				this.pfrom=e.from
 			}
 			this.time()
-			uni.$on('refreshywlist',(e) => {
-				this.getDetail();
-			})
+			// uni.$on('refreshywlist',(e) => {
+			// 	this.getDetail();
+			// })
 			this.init()
 			this.getDetail();
 			if(checkPermi(['system:schedule:list'])){
@@ -1342,6 +1343,13 @@
 						// 	}
 						// }
 					}
+				}).catch(error => {
+					console.log(23)
+					setTimeout(function(){
+						uni.navigateBack({
+							delta:1
+						})
+					},1200)
 				})
 			},
 			// 数据处理

+ 4 - 4
work/pages/business/list.vue

@@ -219,12 +219,12 @@
 					pageNum: this.pageNum,
 				}
 				params.loanApplicationType=2
-				if(this.from&&this.from=='my'){
-					params.userId=this.userId
-				}
-				// if(!checkPermi(['system:system:user'])){
+				// if(this.from&&this.from=='my'){
 				// 	params.userId=this.userId
 				// }
+				if(!checkPermi(['system:system:user'])){
+					params.userId=this.userId
+				}
 				// else{
 				// 	params.loanApplicationType=2
 				// }

+ 1 - 1
work/pages/custom/details.vue

@@ -2,7 +2,7 @@
 	<view class="details">
 		<view class="detop">
 			<view class="headbox">
-				<view class="head">{{datainfo.realName.substring(0,1)}}</view>
+				<view class="head" v-if="datainfo.realName">{{datainfo.realName.substring(0,1)}}</view>
 				<view class="flex1">
 					<view class="headt">{{datainfo.realName}}</view>
 					<view class="headx">资料更新时间 | {{datainfo.updateTime||datainfo.createTime}}</view>

BIN
work/static/images/sha.png


BIN
work/static/images/shb.png


BIN
work/static/images/votea.png


BIN
work/static/images/voteb.png


BIN
work/static/images/votec.png


BIN
work/static/images/voted.png


BIN
work/static/images/votee.png