瀏覽代碼

反担保多选

zouling 10 月之前
父節點
當前提交
e5f94c6fc7

+ 1 - 1
api/mine/work.js

@@ -135,7 +135,7 @@ export function getapplicationXib(data) {
 	'data':data
   })
 }
-
+// getGdFjlist
 // 股东附件-列表查询企业股东system:shareholderFj:listNoPage
 export function getGdlistNoPage(data) {
   return request({

+ 1 - 0
static/style.css

@@ -80,6 +80,7 @@ font-size: 30rpx;color: #FFFFFF;background: #00A9F0;text-align: center;line-heig
 .ml33{margin-left: 66rpx;}
 .pb12{padding-bottom: 24rpx;}
 .pt17{padding-top: 34rpx;}
+.ptb15{padding: 30rpx 0;}
 .plr10{padding: 0 20rpx;}
 .plr12{padding: 0 24rpx;}
 .plr18{padding: 0 36rpx;}

+ 96 - 90
work/components/business/cfdbrxx.vue

@@ -1,96 +1,87 @@
 <template>
   <view>
-	<view class="boxt">
-		<view class="tit">
-			<image :src="titimg"></image>基本信息
-		</view>
-		<view class="txt">反担保人姓名:<text>{{datainfo.guaranteeName}}</text></view>
-		<view class="txt">身份证号:<text>{{datainfo.guaranteeIdCard}}</text>
-			<text class="txta ml8" v-if="datainfo.guaranteeFront||datainfo.guaranteeBack" @click="getDownGd(datainfo,'fdbsfz')">查看照片</text>
-		</view>
-		<view class="txt">手机号码:<text>{{datainfo.guaranteePhone}}</text></view>	
-	</view>
-	<!-- <view class="boxt">
-		<view class="tit">
-			<image :src="titimg"></image>反担保人家庭婚姻信息
-		</view>
-		<view class="flexcw">
-			<view class="txt">婚姻状态:<text>{{kaType(datainfo.guaranteeMaritalStatus,hyztlist)}}</text></view>
-			<view class="txt">配偶姓名:<text>{{datainfo.guaranteeSpouseName}}</text></view>
-		</view>
-		<view class="txt">身份证号:<text>{{datainfo.guaranteeSpouseIdCard}}</text>
-			<text class="txta ml8" @click="getDown(datainfo.guaranteeFront)">查看照片</text>
-		</view>
-		<view class="txt">结婚证:<text class="txta" @click="getDown(a)">在线查看</text></view>
-	</view>
-	<view class="boxt">
-		<view class="tit">
-			<image :src="titimg"></image>反担保人户籍信息
-		</view>
-		<view class="txt">户口簿首页:<text class="txta" @click="getDown(a)">在线查看</text></view>
-		<view class="txt">户口簿(本人页):<text class="txta" @click="getDown(a)">在线查看</text></view>
-		<view class="txt">户口簿(配偶页):<text class="txta" @click="getDown(a)">在线查看</text></view>
-	</view> -->
-	<view class="boxt">
-		<view class="tit">
-			<image :src="titimg"></image>反担保人信用担保证明
-		</view>
-		<view class="txt flext">个人工作证明:
-			<view class="flex1 over">
-				<block v-if="basicFj.fdbrgrgzzm&&basicFj.fdbrgrgzzm.length">
-					<block v-if="basicFj.fdbrgrgzzm.length>1">
-						<view v-for="(ite,idx) in basicFj.fdbrgrgzzm" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
+	  <block v-if="fdarlist&&fdarlist.length>0">
+		<view v-for="(fite,fidx) in fdarlist" :key="fite.guaranteeInfoId">
+		  <view class="boxt">
+		  	<view class="tit">
+		  		<image :src="titimg"></image>反担保人{{(Number(fidx)+1)}}基本信息
+		  	</view>
+		  	<view class="txt">反担保人姓名:<text>{{fite.guaranteeName}}</text></view>
+		  	<view class="txt">身份证号:<text>{{fite.guaranteeIdCard}}</text>
+				<text class="txta ml8"  @click="getDownGd(fite.guaranteeInfoFjList,'fdbsfz')">查看照片</text>
+		  	</view>
+		  	<view class="txt">手机号码:<text>{{fite.guaranteePhone}}</text></view>	
+		  </view>
+		  <!-- <view class="boxt">
+		  	<view class="tit">
+		  		<image :src="titimg"></image>反担保人家庭婚姻信息
+		  	</view>
+		  	<view class="flexcw">
+		  		<view class="txt">婚姻状态:<text>{{kaType(datainfo.guaranteeMaritalStatus,hyztlist)}}</text></view>
+		  		<view class="txt">配偶姓名:<text>{{datainfo.guaranteeSpouseName}}</text></view>
+		  	</view>
+		  	<view class="txt">身份证号:<text>{{datainfo.guaranteeSpouseIdCard}}</text>
+		  		<text class="txta ml8" @click="getDown(datainfo.guaranteeFront)">查看照片</text>
+		  	</view>
+		  	<view class="txt">结婚证:<text class="txta" @click="getDown(a)">在线查看</text></view>
+		  </view>
+		  <view class="boxt">
+		  	<view class="tit">
+		  		<image :src="titimg"></image>反担保人户籍信息
+		  	</view>
+		  	<view class="txt">户口簿首页:<text class="txta" @click="getDown(a)">在线查看</text></view>
+		  	<view class="txt">户口簿(本人页):<text class="txta" @click="getDown(a)">在线查看</text></view>
+		  	<view class="txt">户口簿(配偶页):<text class="txta" @click="getDown(a)">在线查看</text></view>
+		  </view> -->
+		  <view class="boxt">
+		  	<view class="tit">
+		  		<image :src="titimg"></image>反担保人{{(Number(fidx)+1)}}信用担保证明
+		  	</view>
+		  	<view class="txt flext">个人工作证明:
+		  		<view class="flex1 over" v-if="fite.guaranteeInfoFjList&&fite.guaranteeInfoFjList.length">
+					<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key="ite.guaranteeInfoFjId">
+						<view v-if="ite.type=='fdbrgrgzzm'"  class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
 					</block>
-					<text v-else class="txta" @click="getDown(basicFj.fdbrgrgzzm[0].url)">在线查看</text>
-				</block>
-			</view>
-		</view>
-		<view class="txt flext">个人征信报告:
-			<view class="flex1 over">
-				<block v-if="basicFj.fdbrgrzxbg&&basicFj.fdbrgrzxbg.length">
-					<block v-if="basicFj.fdbrgrzxbg.length>1">
-						<view v-for="(ite,idx) in basicFj.fdbrgrzxbg" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
+		  		</view>
+		  	</view>
+		  	<view class="txt flext">身份证复印件:
+		  		<view class="flex1 over" v-if="fite.guaranteeInfoFjList&&fite.guaranteeInfoFjList.length">
+		  			<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key="ite.guaranteeInfoFjId">
+		  				<view v-if="ite.type=='fdbrsfzfyj'"  class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
+		  			</block>
+		  		</view>
+		  	</view>
+			<view class="txt flext">个人征信报告:
+				<view class="flex1 over" v-if="fite.guaranteeInfoFjList&&fite.guaranteeInfoFjList.length">
+					<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key="ite.guaranteeInfoFjId">
+						<view v-if="ite.type=='fdbrgrzxbg'"  class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
 					</block>
-					<text v-else class="txta" @click="getDown(basicFj.fdbrgrzxbg[0].url)">在线查看</text>
-				</block>
+				</view>
 			</view>
+		  </view>
 		</view>
-		<view class="txt flext">身份证复印件:
-			<view class="flex1 over">
-				<block v-if="basicFj.fdbrsfzfyj&&basicFj.fdbrsfzfyj.length">
-					<block v-if="basicFj.fdbrsfzfyj.length>1">
-						<view v-for="(ite,idx) in basicFj.fdbrsfzfyj" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
-					</block>
-					<text v-else class="txta" @click="getDown(basicFj.fdbrsfzfyj[0].url)">在线查看</text>
-				</block>
+	  </block>
+	  <block v-if="fdaqylist&&fdaqylist.length>0">
+		<view class="boxt" v-for="(fite,fidx) in fdaqylist" :key="fite.guaranteeInfoId">
+			<view class="tit">
+				<image :src="titimg"></image>企业{{(Number(fidx)+1)}}反担保证明
 			</view>
-		</view>
-	</view>
-	<view class="boxt">
-		<view class="tit">
-			<image :src="titimg"></image>企业反担保证明
-		</view>
-		<view class="txt flext">营业执照:
-			<view class="flex1 over">
-				<block v-if="basicFj.fdbqyyyzz&&basicFj.fdbqyyyzz.length">
-					<block v-if="basicFj.fdbqyyyzz.length>1">
-						<view v-for="(ite,idx) in basicFj.fdbqyyyzz" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
+			<view class="txt flext">营业执照:
+				<view class="flex1 over" v-if="fite.guaranteeInfoFjList&&fite.guaranteeInfoFjList.length">
+					<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key="ite.guaranteeInfoFjId">
+						<view v-if="ite.type=='fdbqyyyzz'"  class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
 					</block>
-					<text v-else class="txta" @click="getDown(basicFj.fdbqyyyzz[0].url)">在线查看</text>
-				</block>
+				</view>
 			</view>
-		</view>
-		<view class="txt flext">企业征信:
-			<view class="flex1 over">
-				<block v-if="basicFj.fdbqyzx&&basicFj.fdbqyzx.length">
-					<block v-if="basicFj.fdbqyzx.length>1">
-						<view v-for="(ite,idx) in basicFj.fdbqyzx" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
+			<view class="txt flext">企业征信:
+				<view class="flex1 over" v-if="fite.guaranteeInfoFjList&&fite.guaranteeInfoFjList.length">
+					<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key="ite.guaranteeInfoFjId">
+						<view v-if="ite.type=='fdbqyzx'"  class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
 					</block>
-					<text v-else class="txta" @click="getDown(basicFj.fdbqyzx[0].url)">在线查看</text>
-				</block>
+				</view>
 			</view>
 		</view>
-	</view>
+	  </block>
   </view>
 </template>
 
@@ -114,6 +105,18 @@
 				return {}
 			}
 		},
+		fdarlist:{
+			type: Array,
+			default () {
+				return {}
+			}
+		},
+		fdaqylist:{
+			type: Array,
+			default () {
+				return {}
+			}
+		},
 		basicFj:{
 			type: Object,
 			default () {
@@ -142,17 +145,20 @@
 		getPreview(url){
 			this.$emit('getPreview',url)
 		},
-		getDownGd(ite,type){
+		getDownGd(fjlist,type){
 			var url=[]
 			if(type=='fdbsfz'){
-				if(ite.guaranteeFront){
-					var urla=baseUrl+ite.guaranteeFront;
-					url.push(urla)
-				}
-				if(ite.guaranteeBack){
-					var urlb=baseUrl+ite.guaranteeBack;
-					url.push(urlb)
-				}
+				var filelist=fjlist.filter((ite) => {
+					if((ite.type=='fdbrsfzrmx'||ite.type=='fdbrsfzghm')&&ite.remark!=1){
+						var urla=baseUrl+ite.url;
+						url.push(urla)
+					}
+					return ite.remark!=1;
+				})
+			}
+			if(url.length<1){
+				this.$toast('暂无图片')
+				return
 			}
 			uni.previewImage({
 				current: 0,

+ 3 - 2
work/components/business/ewjcj.vue

@@ -6,7 +6,7 @@
 			<!-- 有文件出具的权限 -->
 			<!-- 风险报告只能有风险修改删除 -->
 			<template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&datainfo.loanApplicationType!=3">
-				<template v-if="ite.val=='fxbg'">
+				<template v-if="ite.val=='fxbg'||ite.val=='fkhgb'">
 					<view class="editf" v-if="userId==datainfo.fUserId"  @click="getfjEdit(ite.val)">
 						<image :src="editf"></image>
 						<view>上传</view>
@@ -37,7 +37,8 @@
 				</view>
 				<!-- ||ite.val=='wtdbht' -->
 				<template v-if="pfrom!='vote'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
-					<template v-if="ite.val=='fxbg'">
+					<!-- 放款合规表 -->
+					<template v-if="ite.val=='fxbg'||ite.val=='fkhgb'">
 						<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>

+ 545 - 198
work/pages/business/add.vue

@@ -665,194 +665,212 @@
 					</picker> -->
 				</view>
 				<!-- 反担保人基本信息 v-if="datainfo.guaranteeType==2"-->
-				<block>
-					<view class="addtit mt3"><text>*</text>反担保人基本信息</view>
+				<view v-for="(fite,fidx) in fdarlist" :key="fidx">
+					<view class="flexcj">
+						<view class="addtit mt3"><text>*</text>反担保人{{(Number(fidx)+1)}}基本信息</view>
+						<view class="fdbadd flexcc" @click="getAddFdbFn"><image :src="fadd"></image>添加反担保人</view>
+					</view>
+					
 					<view class="bgf plr12">
 						<uni-forms-item label="身份证" name="iszcy">
 							<view class="phobox">
-								<view class="phoboxa" v-if="jcfjobj.fdbrsfzrmx">
-									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbrsfzrmx" fileVal='fdbrsfzrmx' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
-										    @progress="" @uploadEnd="ponuploadEnd" >
+								<view class="phoboxa" v-if="fdbrobj.fdbrsfzrmx">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzrmx" fileVal='fdbrsfzrmx' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbuploadEnd" >
 										<view class="photop">
 											<image :src="cardz" class="bgimg"></image>
-											<image v-if="datainfo.guaranteeFront" :src="baseUrl+datainfo.guaranteeFront" class="bgimga"></image>
+											<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+												<image v-if="ite.type=='fdbrsfzrmx'&&ite.remark!=1" :src="baseUrl+ite.url" class="bgimga"></image>
+											</block>
 											<image :src="phoicon" class="addimg"></image>
 										</view>
 									</lsj-upload>
-									<view class="frdelimg" v-if="datainfo.guaranteeFront" @click.stop="getDelfdbfzpo('front')">
+									<!-- <view class="frdelimg" v-if="datainfo.guaranteeFront" @click.stop="getDelfdbfzpo('fdbrsfzrmx',fidx)">
 										<image :src="fdelimg"></image>
-									</view>
+									</view> -->
 									<view class="photit atit">上传人像面</view>
 								</view>
-								<view class="phoboxa" v-if="jcfjobj.fdbrsfzghm">
-									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbrsfzghm" fileVal='fdbrsfzghm' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size"  :formats="gdformats" :debug="debug" :instantly="instantly"
-										    @progress="" @uploadEnd="ponuploadEnd" >
+								<view class="phoboxa" v-if="fdbrobj.fdbrsfzghm">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzghm" fileVal='fdbrsfzghm' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size"  :formats="gdformats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbuploadEnd" >
 										<view class="photop">
-											<view class="photop">
-												<image :src="cardf" class="bgimg"></image>
-												<image v-if="datainfo.guaranteeBack" :src="baseUrl+datainfo.guaranteeBack" class="bgimga"></image>
-												<image :src="phoicon" class="addimg"></image>
-											</view>
+											<image :src="cardz" class="bgimg"></image>
+											<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+												<image v-if="ite.type=='fdbrsfzghm'&&ite.remark!=1" :src="baseUrl+ite.url" class="bgimga"></image>
+											</block>
+											<image :src="phoicon" class="addimg"></image>
 										</view>
 									</lsj-upload>
-									<view class="frdelimg" v-if="datainfo.guaranteeBack" @click.stop="getDelfdbfzpo('back')">
+									<!-- <view class="frdelimg" v-if="datainfo.guaranteeBack" @click.stop="getDelfdbfzpo('fdbrsfzghm',fidx)">
 										<image :src="fdelimg"></image>
-									</view>
+									</view> -->
 									<view class="photit">上传国徽面</view>
 								</view>
 							</view>
 						</uni-forms-item>
 						<uni-forms-item label="姓名" name="guaranteeName">
-							<uni-easyinput v-model="datainfo.guaranteeName" disabled :inputBorder='false' placeholder="自动识别" />
+							<uni-easyinput v-model="fite.guaranteeName" disabled :inputBorder='false' placeholder="自动识别" />
 						</uni-forms-item>
 						<uni-forms-item label="身份证号" name="guaranteeIdCard">
-							<uni-easyinput v-model="datainfo.guaranteeIdCard" disabled :inputBorder='false' placeholder="自动识别" />
+							<uni-easyinput v-model="fite.guaranteeIdCard" disabled :inputBorder='false' placeholder="自动识别" />
 						</uni-forms-item>
 						<uni-forms-item label="手机号码" name="guaranteePhone">
-							<uni-easyinput v-model="datainfo.guaranteePhone" type="number" :inputBorder='false' placeholder="请输入手机号码" />
+							<uni-easyinput v-model="fite.guaranteePhone" type="number" :inputBorder='false' placeholder="请输入手机号码" />
 						</uni-forms-item>
 					</view>
-				</block>
-				<!-- * 反担保人信用担保证明-->
-				<view class="addtit mt3">反担保人信用担保证明</view>
-				<view class="bgf plr12">
-					<uni-forms-item name="iszcy">
-						<view class="labtxt">个人工作证明
-							<text>(选填)</text>
-						</view>
-						<view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
-							<view class="phoboxa" v-if="jcfjobj.fdbrgrgzzm">
-								<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbrgrgzzm" fileVal='fdbrgrgzzm' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
-									    @progress="" @uploadEnd="onuploadEnd" >
-									<view  class="photop" >
-										<image :src="zico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-									</view>
-								</lsj-upload>
-								<view class="photit atit">公职人员上传个人工作证明</view>
+					<!-- * 反担保人信用担保证明-->
+					<view class="addtit mt3">反担保人{{(Number(fidx)+1)}}信用担保证明</view>
+					<view class="bgf plr12">
+						<uni-forms-item name="iszcy">
+							<view class="labtxt">个人工作证明
+								<text>(选填)</text>
 							</view>
-							<block v-for="(ite,idx) in filelist" :key='idx'>
-								<view class="phoboxa" v-if="ite.type=='fdbrgrgzzm'&&ite.bigType=='a'">
-									<view class="photop" @click="getDown(ite.url)">
-										<image :src="lookico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-										<image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
-									</view>
-									<view class="photit">{{ite.name}}</view>
+							<view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
+								<view class="phoboxa" v-if="fdbrobj.fdbrgrgzzm">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrgrgzzm" fileVal='fdbrgrgzzm' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbuploadEnd" >
+										<view  class="photop" >
+											<image :src="zico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+										</view>
+									</lsj-upload>
+									<view class="photit atit">公职人员上传个人工作证明</view>
 								</view>
-							</block>
-						</view>
-					</uni-forms-item>
-					<uni-forms-item label="身份证复印件" name="iszcy">
-						<view class="phobox">
-							<view class="phoboxa" v-if="jcfjobj.fdbrsfzfyj">
-								<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbrsfzfyj" fileVal='fdbrsfzfyj' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
-									    @progress="" @uploadEnd="onuploadEnd" >
-									<view  class="photop" >
-										<image :src="cardz" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
+								<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+									<view class="phoboxa" v-if="ite.type=='fdbrgrgzzm'&&ite.remark!=1">
+										<view class="photop" @click="getDown(ite.url)">
+											<image :src="lookico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+											<image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
+										</view>
+										<view class="photit">{{ite.name}}</view>
 									</view>
-								</lsj-upload>
-								<view class="photit atit">上传身份证复印件</view>
+								</block>
 							</view>
-							<block v-for="(ite,idx) in filelist" :key='idx'>
-								<view class="phoboxa" v-if="ite.type=='fdbrsfzfyj'&&ite.bigType=='a'">
-									<view class="photop" @click="getDown(ite.url)">
-										<image :src="lookico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-										<image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
-									</view>
-									<view class="photit">{{ite.name}}</view>
+						</uni-forms-item>
+						<uni-forms-item label="身份证复印件" name="iszcy">
+							<view class="phobox">
+								<view class="phoboxa" v-if="fdbrobj.fdbrsfzfyj">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzfyj" fileVal='fdbrsfzfyj' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbuploadEnd" >
+										<view  class="photop" >
+											<image :src="cardz" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+										</view>
+									</lsj-upload>
+									<view class="photit atit">上传身份证复印件</view>
 								</view>
-							</block>
-						</view>
-					</uni-forms-item>
-					<uni-forms-item label="个人征信报告" name="iszcy">
-						<view class="phobox">
-							<view class="phoboxa" v-if="jcfjobj.fdbrgrzxbg">
-								<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbrgrzxbg" fileVal='fdbrgrzxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
-									    @progress="" @uploadEnd="onuploadEnd" >
-									<view  class="photop" >
-										<image :src="zico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
+								<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+									<view class="phoboxa" v-if="ite.type=='fdbrsfzfyj'&&ite.remark!=1">
+										<view class="photop" @click="getDown(ite.url)">
+											<image :src="lookico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+											<image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
+										</view>
+										<view class="photit">{{ite.name}}</view>
 									</view>
-								</lsj-upload>
-								<view class="photit atit">上传个人征信报告</view>
+								</block>
 							</view>
-							<block v-for="(ite,idx) in filelist" :key='idx'>
-								<view class="phoboxa" v-if="ite.type=='fdbrgrzxbg'&&ite.bigType=='a'">
-									<view class="photop" @click="getDown(ite.url)">
-										<image :src="lookico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-										<image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
-									</view>
-									<view class="photit">{{ite.name}}</view>
+						</uni-forms-item>
+						<uni-forms-item label="个人征信报告" name="iszcy">
+							<view class="phobox">
+								<view class="phoboxa" v-if="fdbrobj.fdbrgrzxbg">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrgrzxbg" fileVal='fdbrgrzxbg' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbuploadEnd" >
+										<view  class="photop" >
+											<image :src="zico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+										</view>
+									</lsj-upload>
+									<view class="photit atit">上传个人征信报告</view>
 								</view>
-							</block>
+								<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+									<view class="phoboxa" v-if="ite.type=='fdbrgrzxbg'&&ite.remark!=1">
+										<view class="photop" @click="getDown(ite.url)">
+											<image :src="lookico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+											<image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
+										</view>
+										<view class="photit">{{ite.name}}</view>
+									</view>
+								</block>
+							</view>
+						</uni-forms-item>
+						<view class="ptb15" v-if="fdarlist.length>1">
+							<view class="fdbdel flexcc" @click="getdelFdbFn(fidx,fite)"><image :src="fdel"></image>删除反担保人信息</view>
 						</view>
-					</uni-forms-item>
+					</view>
+					
 				</view>
 				<!-- 企业反担保 -->
-				<view class="addtit mt3">企业反担保证明</view>
-				<view class="bgf plr12">
-					<picker  range-key='shareholderName' :value="qyidx" :range="qygdlist" class="isborder"  @change='bindDateChangeg'>
-						<uni-forms-item label="企业名称" name="guaranteeShareholderName">
-							<view class="lbtabp">
-								<view class="chtit" :class="datainfo.guaranteeShareholderName?'':'coa'">{{datainfo.guaranteeShareholderName||"请选择关联企业"}}</view>
-								<image :src="hrimg" class="rimg"></image>
-							</view>
-						</uni-forms-item>
-					</picker>
-					<uni-forms-item name="iszcy">
-						<view class="labtxt">营业执照</view>
-						<view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
-							<view class="phoboxa" v-if="jcfjobj.fdbqyyyzz">
-								<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbqyyyzz" fileVal='fdbqyyyzz' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
-									    @progress="" @uploadEnd="onuploadEnd" >
-									<view  class="photop" >
-										<image :src="zico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
+				<block v-for="(fite,fidx) in fdaqylist" :key="fidx">
+					<view class="flexcj">
+						<view class="addtit mt3">企业{{(Number(fidx)+1)}}反担保证明</view>
+						<view class="fdbadd flexcc" @click="getAddQiFn"><image :src="fadd"></image>添加反担企业</view>
+					</view>
+					<view class="bgf plr12">
+						<!-- <picker  range-key='shareholderName' :value="qyidx" :range="qygdlist" class="isborder"  @change='bindDateChangeg'>
+							<uni-forms-item label="企业名称" name="guaranteeShareholderName">
+								<view class="lbtabp">
+									<view class="chtit" :class="datainfo.guaranteeShareholderName?'':'coa'">{{datainfo.guaranteeShareholderName||"请选择关联企业"}}</view>
+									<image :src="hrimg" class="rimg"></image>
+								</view>
+							</uni-forms-item>
+						</picker> -->
+						<uni-forms-item name="iszcy">
+							<view class="labtxt">营业执照</view>
+							<view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
+								<view class="phoboxa" v-if="fdbqyobj.fdbqyyyzz">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbqyobj.fdbqyyyzz" fileVal='fdbqyyyzz' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbqyuploadEnd" >
+										<view  class="photop" >
+											<image :src="zico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+										</view>
+									</lsj-upload>
+									<view class="photit atit">上传企业营业执照</view>
+								</view>
+								<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+									<view class="phoboxa" v-if="ite.type=='fdbqyyyzz'&&ite.remark!=1">
+										<view class="photop" @click="getDown(ite.url)">
+											<image :src="lookico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+											<image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,2)"></image>
+										</view>
+										<view class="photit">{{ite.name}}</view>
 									</view>
-								</lsj-upload>
-								<view class="photit atit">上传企业营业执照</view>
+								</block>
 							</view>
-							<block v-for="(ite,idx) in filelist" :key='idx'>
-								<view class="phoboxa" v-if="ite.type=='fdbqyyyzz'&&ite.bigType=='a'">
-									<view class="photop" @click="getDown(ite.url)">
-										<image :src="lookico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-										<image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
-									</view>
-									<view class="photit">{{ite.name}}</view>
+						</uni-forms-item>
+						<uni-forms-item label="企业征信" name="iszcy">
+							<view class="phobox">
+								<view class="phoboxa" v-if="fdbqyobj.fdbqyzx">
+									<lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbqyobj.fdbqyzx" fileVal='fdbqyzx' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+										    @progress="" @uploadEnd="fdbqyuploadEnd" >
+										<view  class="photop" >
+											<image :src="cardz" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+										</view>
+									</lsj-upload>
+									<view class="photit atit">上传企业征信</view>
 								</view>
-							</block>
-						</view>
-					</uni-forms-item>
-					<uni-forms-item label="企业征信" name="iszcy">
-						<view class="phobox">
-							<view class="phoboxa" v-if="jcfjobj.fdbqyzx">
-								<lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.fdbqyzx" fileVal='fdbqyzx' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
-									    @progress="" @uploadEnd="onuploadEnd" >
-									<view  class="photop" >
-										<image :src="cardz" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
+								<block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
+									<view class="phoboxa" v-if="ite.type=='fdbqyzx'&&ite.remark!=1">
+										<view class="photop" @click="getDown(ite.url)">
+											<image :src="lookico" class="bgimg"></image>
+											<image :src="phoicon" class="addimg"></image>
+											<image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,2)"></image>
+										</view>
+										<view class="photit">{{ite.name}}</view>
 									</view>
-								</lsj-upload>
-								<view class="photit atit">上传企业征信</view>
+								</block>
 							</view>
-							<block v-for="(ite,idx) in filelist" :key='idx'>
-								<view class="phoboxa" v-if="ite.type=='fdbqyzx'&&ite.bigType=='a'">
-									<view class="photop" @click="getDown(ite.url)">
-										<image :src="lookico" class="bgimg"></image>
-										<image :src="phoicon" class="addimg"></image>
-										<image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
-									</view>
-									<view class="photit">{{ite.name}}</view>
-								</view>
-							</block>
+						</uni-forms-item>
+						<view class="ptb15" v-if="fdaqylist.length>1">
+							<view class="fdbdel flexcc" @click="getdelQyFn(fidx,fite)"><image :src="fdel"></image>删除反担保企业</view>
 						</view>
-					</uni-forms-item>
-				</view>
+					</view>
+				</block>
 			</view>
 			<!-- 添加附件 -->
 			<view v-show="stepval==4">
@@ -1340,6 +1358,8 @@
 				upimg:require('@/work/static/images/fup.png'),
 				filico:require('@/work/static/images/filico.png'),
 				fdelimg:require('@/work/static/images/del.png'),
+				fdel:require('@/work/static/images/fdel.png'),
+				fadd:require('@/work/static/images/fadd.png'),
 				steps:[{tit:'申请额度',status:0},{tit:'企业信息',status:1},{tit:'法人信息',status:2},{tit:'反担保人信息',status:3},{tit:'添加附件',status:4},],
 				stepval:1,
 				datainfo:{
@@ -1422,8 +1442,14 @@
 				categoryId:'',//行业的id
 				rules:{
 				},
-				gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}],
+				gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:''}],
 				qylist:[],//企业列表
+				fdarlist:[{type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}],
+				fdaqylist:[{type:2,guaranteeInfoFjList:[]}],
+				fdbrobj:{},//反担保人附件
+				fdbqyobj:{},//反担保企业附件
+				fdbdelxIdList:[],//反担保删除小id集合
+				fdbdeldIdList:[],//反担保删除大id集合
 				sfList:[{text: '是',value: 'Y'},{text: '否',value: 'N'}],
 				ywList:[{label: '有',value: 'Y'},{label: '无',value: 'N'}],
 				actcolor:'#00A9F0',
@@ -1459,6 +1485,12 @@
 				{tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
 				{tit:'当前从事项目情况证明',type:'dqcsxmqkzm'},{tit:'企业基本注册信息查询单',type:'qyjbzcxxcxd'},{tit:'水电费发票(一年)',type:'sdffpyn'},{tit:'人员工资表',type:'rggzb'},{tit:'纳税申报表',type:'nssbb'},
 				],
+				fbdfiles:[
+					{tit:'身份证人像面',type:'fdbrsfzrmx'},{tit:'身份证国徽面',type:'fdbrsfzghm'}
+				],
+				fdbqyfiles:[
+					{tit:'营业执照',type:'fdbqyyyzz'},{tit:'征信',type:'fdbqyzx'},
+				],
 				content:'',//小微企业富文本
 				xwimgList:[],//小微企业图片
 				ptype:'add',
@@ -1638,6 +1670,28 @@
 						this.jcfjobj=obj
 					}
 				})
+				// 反担保人
+				getDictionaryFn('counter_guarantor').then(res=>{
+					if(res.code==200){
+						var obj={}
+						var data=res.data;
+						data.forEach(v=>{
+							obj[v.dictValue]=v.dictLabel
+						})
+						this.fdbrobj=obj
+					}
+				})
+				// 反担保企业附件
+				getDictionaryFn('counter_attachment').then(res=>{
+					if(res.code==200){
+						var obj={}
+						var data=res.data;
+						data.forEach(v=>{
+							obj[v.dictValue]=v.dictLabel
+						})
+						this.fdbqyobj=obj
+					}
+				})
 			},
 			getSbjListFn(){
 				// 申报附件
@@ -1662,14 +1716,14 @@
 				})
 			},
 			getGdFjlist(){
-				var params={
-					loanApplicationNumber:this.datainfo.loanApplicationNumber
-				}
-				getGdlistNoPage(params).then(res=>{
-					if(res.code==200){
-						this.qygdlist=res.data
-					}
-				})
+				// var params={
+				// 	loanApplicationNumber:this.datainfo.loanApplicationNumber
+				// }
+				// getGdlistNoPage(params).then(res=>{
+				// 	if(res.code==200){
+				// 		this.qygdlist=res.data
+				// 	}
+				// })
 			},
 			getQylist(){
 				// 需要userid
@@ -1780,10 +1834,22 @@
 				}
 				this.$tab.navigateTo('/work/pages/business/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
 			},
+			// 添加股东
 			getAddGdFn(){
 				var obj = {cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}
 				this.gdlist.push(obj);
 			},
+			// 添加反担保人
+			getAddFdbFn(){
+				var obj = {type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}
+				this.fdarlist.push(obj);
+			},
+			//添加反担保企业
+			getAddQiFn(){
+				var obj = {type:2,guaranteeInfoFjList:[]}
+				this.fdaqylist.push(obj);
+			},
+			// 删除股东
 			getdelGdFn(idx,ite){
 				var that=this;
 				uni.showModal({
@@ -1803,6 +1869,46 @@
 					}
 				});
 			},
+			// 删除反担保人
+			getdelFdbFn(idx,ite){
+				var that=this;
+				uni.showModal({
+					title: '确认删除',
+					content: "是否确认删除",
+					cancelText: '取消',
+					confirmText: '确认',
+					success: function(res) {
+						if (res.confirm) {
+							if(ite.guaranteeInfoId){
+								var id=ite.guaranteeInfoId;
+								that.fdbdeldIdList.push(id)
+							}
+							that.fdarlist.splice(idx,1);
+						} else if (res.cancel) {
+						}
+					}
+				});
+			},
+			// 删除反担保企业
+			getdelQyFn(idx,ite){
+				var that=this;
+				uni.showModal({
+					title: '确认删除',
+					content: "是否确认删除",
+					cancelText: '取消',
+					confirmText: '确认',
+					success: function(res) {
+						if (res.confirm) {
+							if(ite.guaranteeInfoId){
+								var id=ite.guaranteeInfoId;
+								that.fdbdeldIdList.push(id)
+							}
+							that.fdaqylist.splice(idx,1);
+						} else if (res.cancel) {
+						}
+					}
+				});
+			},
 			statusFormats(ite,list,type){//多选匹配
 				if(ite){
 					var actions = [];
@@ -1860,14 +1966,14 @@
 					this.datainfo.spouseBack="";	
 				}	
 			},
-			getDelfdbfzpo(type){
-				if(type=='front'){
-					this.datainfo.guaranteeFront="";
-					this.datainfo.guaranteeName="";
-					this.datainfo.guaranteeIdCard="";
-				}else{
-					this.datainfo.guaranteeBack="";	
-				}	
+			getDelfdbfzpo(type,idx){
+				var obj=this.fdarlist[idx];
+				const index = obj.findIndex(text => text.type === type);
+				if(type=='fdbrsfzrmx'){
+					obj.guaranteeName="";
+					obj.guaranteeIdCard="";
+				}
+				this.fdarlist[idx].fjlist.splice(index,1)
 			},
 			bindDateChanged(e){
 				// 婚姻状态
@@ -1970,8 +2076,7 @@
 					if(ite.fjlist&&ite.fjlist.length){
 						ite.fjlist.forEach(itet=>{
 							flist.push(itet)
-						})
-						
+						})	
 					}
 				})
 				if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
@@ -1980,7 +2085,32 @@
 				params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
 				params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
 				params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
-				console.log(this.fjdelIdList,this.gdFjdelIdList,123)
+				var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
+				var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
+				var guaranteeInfoList=[];
+				guaranteeInfoList=fdarlist.concat(fdaqylist)
+				var fdbFjList=[]
+				Object.keys(guaranteeInfoList).some((key) => {
+					var fjurl=guaranteeInfoList[key];
+					var fdbfjlist=fjurl.guaranteeInfoFjList
+					fjurl.loanApplicationNumber=this.datainfo.loanApplicationNumber;
+					fjurl.loanApplicationId=this.datainfo.loanApplicationId;
+					if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==1&&fjurl.guaranteeInfoId&&!fjurl.guaranteePhone){
+						this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
+					}
+					if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==2&&fjurl.guaranteeInfoId){
+						this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
+					}
+					if(fjurl.type==1&&(fdbfjlist&&fdbfjlist.length||fjurl.guaranteePhone)){
+						fdbFjList.push(fjurl)
+					}else if(fjurl.type==2&&fdbfjlist&&fdbfjlist.length){
+						fdbFjList.push(fjurl)
+					}	
+				})
+				params.guaranteeInfoList=JSON.parse(JSON.stringify(fdbFjList))
+				params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
+				params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
+				console.log(this.fjdelIdList,this.gdFjdelIdList,123,this.fdbdelxIdList,this.fdbdeldIdList)
 				uni.showLoading({
 					title: '加载中'
 				});
@@ -2084,6 +2214,30 @@
 							})
 							this.gdlist=JSON.parse(JSON.stringify(shFjList))
 						}
+						// 反担保附件
+						if(data.guaranteeInfoList&&data.guaranteeInfoList.length>0){
+							var fdarlist=[],fdaqylist=[];
+							var gInfoList=data.guaranteeInfoList;
+							Object.keys(gInfoList).some((key) => {
+								var obj=gInfoList[key];
+								var fdblist=gInfoList[key].guaranteeInfoFjList;
+								fdblist=fdblist.filter((ite) => {
+									return ite.remark!=1
+								})
+								obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
+								if(obj.type==1){
+									fdarlist.push(obj)
+								}else if(obj.type==2){
+									fdaqylist.push(obj)
+								}
+							})
+							if(fdarlist&&fdarlist.length){
+								this.fdarlist=JSON.parse(JSON.stringify(fdarlist))
+							}
+							if(fdaqylist&&fdaqylist.length){
+								this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist))
+							}		
+						}
 						this.getSbjListFn()
 						this.getGdFjlist()
 					}
@@ -2205,40 +2359,139 @@
 				var flist=JSON.parse(JSON.stringify(this.filelist));
 				var btfiles=JSON.parse(JSON.stringify(this.btfiles));
 				var sqbtfiles=JSON.parse(JSON.stringify(this.sqbtfiles));
+				
+				var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
+				var fbdfiles=JSON.parse(JSON.stringify(this.fbdfiles))
+				var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
+				var fdbqyfiles=JSON.parse(JSON.stringify(this.fdbqyfiles))
+				var guaranteeInfoList=[]
 				if(params.guaranteeType.indexOf('1')>-1){//抵押担保
 					var obj={tit:'企业固定资产证明',type:'qygdzczm'}
 					sqbtfiles.push(obj)
 				}
-				if(params.guaranteeType.indexOf('2')>-1){//反担保人担保
-					// 选择担保人担保
-					if(!params.guaranteePhone){
-						// 验证手机号
-						this.$toast("请输入反担保人手机号")
-						return
+				// 反担保人担保
+				var d=0,da=0;
+				Object.keys(fdarlist).some((key) => {
+					fdarlist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
+					fdarlist[key].loanApplicationId=that.datainfo.loanApplicationId
+					var str="请上传反担保人"+(Number(key)+1)
+					var flist=fdarlist[key].guaranteeInfoFjList;
+					var guaranteePhone=fdarlist[key].guaranteePhone;
+					if(flist&&flist.length){
+						da=1;
+						guaranteeInfoList.push(fdarlist[key])	
+						if(params.guaranteeType.indexOf('2')>-1){
+							if(!guaranteePhone){
+								that.$toast(str+'手机号')
+								d=1;
+								return true;
+							}
+							// 验证手机号
+							if (guaranteePhone && !regphone.test(guaranteePhone)) {
+								that.$toast("请输入正确的反担保人"+(Number(key)+1)+"手机号")
+								d=1;
+								return true;
+							}
+							Object.keys(fbdfiles).some((fkey)=>{
+								if (flist.find(l => l.type == fbdfiles[fkey].type)) {
+									return false
+								}else{
+									d=1;
+									that.$toast(str+fbdfiles[fkey].tit)
+									return true;
+								}
+							})
+						}
+					}else{
+						if(fdarlist[key].guaranteeInfoId&&!guaranteePhone){
+							this.fdbdeldIdList.push(fdarlist[key].guaranteeInfoId)
+						}
+						if(guaranteePhone){
+							guaranteeInfoList.push(fdarlist[key])	
+						}
 					}
-					if (params.guaranteePhone && !regphone.test(params.guaranteePhone)) {
-						that.$toast("请输入正确的反担保人手机号")
-						return
+					if(d==1){
+						return true
 					}
-					if(!params.guaranteeFront){
-						this.$toast("请上传反担保人身份证人像面")
-						return
+				})
+				if(da==0&&params.guaranteeType.indexOf('2')>-1){
+					that.$toast('请上传反担保人身份证人面像')
+					return true
+				}
+				if(d==1){
+					return 
+				}
+				// 反担保企业
+				var e=0,ea=0;
+				Object.keys(fdaqylist).some((key) => {
+					fdaqylist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
+					fdaqylist[key].loanApplicationId=that.datainfo.loanApplicationId
+					var str="请上传反担保企业"+(Number(key)+1)
+					var flist=fdaqylist[key].guaranteeInfoFjList;
+					if(flist&&flist.length){
+						ea=1;
+						guaranteeInfoList.push(fdaqylist[key])
+						if(params.guaranteeType.indexOf('4')>-1){//企业保证
+							Object.keys(fdbqyfiles).some((fkey)=>{
+								if (flist.find(l => l.type == fdbqyfiles[fkey].type)) {
+									return false
+								}else{
+									e=1;
+									that.$toast(str+fdbqyfiles[fkey].tit)
+									return true;
+								}
+							})
+						}
+						
+					}else{
+						if(fdaqylist[key].guaranteeInfoId){
+							this.fdbdeldIdList.push(fdaqylist[key].guaranteeInfoId)
+						}
 					}
-					if(!params.guaranteeBack){
-						this.$toast("请上传反担保人身份证国徽面")
-						return
+					if(e==1){
+						return true
 					}
+					
+				})
+				if(ea==0&&params.guaranteeType.indexOf('4')>-1){
+					that.$toast('请上传反担保企业营业执照')
+					return
 				}
+				if(e==1){
+					return
+				}
+				// console.log(guaranteeInfoList)
+				// return
+				// if(params.guaranteeType.indexOf('2')>-1){//反担保人担保
+				// 	// 选择担保人担保
+				// 	if(!params.guaranteePhone){
+				// 		// 验证手机号
+				// 		this.$toast("请输入反担保人手机号")
+				// 		return
+				// 	}
+				// 	if (params.guaranteePhone && !regphone.test(params.guaranteePhone)) {
+				// 		that.$toast("请输入正确的反担保人手机号")
+				// 		return
+				// 	}
+				// 	if(!params.guaranteeFront){
+				// 		this.$toast("请上传反担保人身份证人像面")
+				// 		return
+				// 	}
+				// 	if(!params.guaranteeBack){
+				// 		this.$toast("请上传反担保人身份证国徽面")
+				// 		return
+				// 	}
+				// }
 				if(params.guaranteeType.indexOf('3')>-1){//企业保证
 					var obj={tit:'反担保抵(质)押复印件',type:'fdbdyfyj'}
 					sqbtfiles.push(obj)
 				}
-				if(params.guaranteeType.indexOf('4')>-1){//企业保证
-					var obj={tit:'反担保企业营业执照',type:'fdbqyyyzz'}
-					var objb={tit:'反担保企业征信',type:'fdbqyzx'}
-					btfiles.push(obj)
-					btfiles.push(objb)
-				}
+				// if(params.guaranteeType.indexOf('4')>-1){//企业保证
+				// 	var obj={tit:'反担保企业营业执照',type:'fdbqyyyzz'}
+				// 	var objb={tit:'反担保企业征信',type:'fdbqyzx'}
+				// 	btfiles.push(obj)
+				// 	btfiles.push(objb)
+				// }
 				var b=0;
 				Object.keys(btfiles).some((key) => {
 					if (flist.find(l => l.type == btfiles[key].type)) {
@@ -2284,7 +2537,11 @@
 				params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
 				params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
 				params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
-				console.log(this.fjdelIdList,this.gdFjdelIdList,222)
+				params.guaranteeInfoList=JSON.parse(JSON.stringify(guaranteeInfoList))
+				params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
+				params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
+				console.log(this.fjdelIdList,this.gdFjdelIdList,222,this.fdbdelxIdList,this.fdbdeldIdList)
+				
 				uni.showLoading({
 					title: '加载中'
 				});
@@ -2377,11 +2634,11 @@
 					this.getocrIdCard(urlOnline,fileVal)
 				}else if(fileVal=='frsfzpoghm'){
 					this.datainfo.spouseBack=url
-				}else if(fileVal=='fdbrsfzrmx'){
-					this.getocrIdCard(urlOnline,fileVal)
-					this.datainfo.guaranteeFront=url
-				}else if(fileVal=='fdbrsfzghm'){
-					this.datainfo.guaranteeBack=url
+				// }else if(fileVal=='fdbrsfzrmx'){
+				// 	this.getocrIdCard(urlOnline,fileVal)
+				// 	this.datainfo.guaranteeFront=url
+				// }else if(fileVal=='fdbrsfzghm'){
+				// 	this.datainfo.guaranteeBack=url
 				}
 			},
 			getDocumentList(){
@@ -2421,7 +2678,7 @@
 						'<img style="max-width:100%;height:auto;display:block;margin:10rpx auto;" src="' +baseUrlimg);
 					return newContent;
 			},
-			getOcrBusinessLicense(url,name,idx){
+			getOcrBusinessLicense(url,fileName,idx){
 				var that=this;
 				var obj=this.gdlist[idx];
 				var params={
@@ -2432,12 +2689,12 @@
 						var params=JSON.parse(JSON.stringify(res.data))
 						obj.shareholderName=params.enterpriseName
 						obj.shareholderIdCard=params.creditCode
-						obj.zhizhao[0]=name
+						obj.zhizhao[0]=fileName
 						this.gdlist.splice(idx,1,obj)
 					}
 				})
 			},
-			getocrIdCard(url,type){
+			getocrIdCard(url,type,idx){
 				var that=this;
 				var burl=url;
 				var params={
@@ -2454,8 +2711,18 @@
 							that.datainfo.spouseName=data.realName
 							that.datainfo.spouseIdCard=data.idCard
 						}else if(type=='fdbrsfzrmx'){
-							that.datainfo.guaranteeName=data.realName
-							that.datainfo.guaranteeIdCard=data.idCard
+							var obj=this.fdarlist[idx];
+							obj.guaranteeName=data.realName;
+							obj.guaranteeIdCard=data.idCard;
+							this.fdarlist.splice(idx,1,obj)
+						}
+					}
+				}).catch(error => {
+					if(type=='fdbrsfzrmx'){
+						var obj=this.fdarlist[idx].guaranteeInfoFjList;
+						const index = obj.findIndex(text => text.type === "fdbrsfzrmx");
+						if(index!=-1){
+							this.fdarlist[idx].guaranteeInfoFjList.splice(index,1)
 						}
 					}
 				})
@@ -2474,7 +2741,7 @@
 					this.datainfo.guaranteeShareholderName='';
 				}
 			},
-			// 股东附件上传
+			// 股东附件上传 fileVal 为索引
 			gdonuploadEnd(item,fileVal,bigType){
 				var idx=Number(fileVal);
 				var type=bigType;
@@ -2497,6 +2764,47 @@
 				this.gdlist.splice(idx,1,obj)
 				// this.datainfo.shareholderFjList=JSON.parse(JSON.stringify(this.gdlist))
 			},
+			// 反担保附件上传bigType 为索引
+			fdbuploadEnd(item,fileVal,bigType){
+				var idx=Number(bigType);
+				var obj=this.fdarlist[idx].guaranteeInfoFjList;
+				var responseText=JSON.parse(item.responseText);
+				var urlOnline=responseText.urlOnline
+				// 附件赋值
+				var newobj={};
+				newobj.name=responseText.newFileName;
+				newobj.oldName=responseText.originalFilename;
+				newobj.url=responseText.fileName;
+				newobj.type=fileVal;
+				if(fileVal=='fdbrsfzrmx'||fileVal=='fdbrsfzghm'){//身份证
+					// 找索引
+					const index = obj.findIndex(text => text.type === fileVal);
+					if(index!=-1){
+						this.fdarlist[idx].guaranteeInfoFjList.splice(index,1,newobj)
+					}else{
+						this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
+					}
+					if(fileVal=='fdbrsfzrmx'){
+						this.getocrIdCard(urlOnline,fileVal,idx)
+					}
+					return
+				}
+				this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
+			},
+			// 反担保企业附件上传bigType 为索引
+			fdbqyuploadEnd(item,fileVal,bigType){
+				var idx=Number(bigType);
+				var obj=this.fdaqylist[idx].guaranteeInfoFjList;
+				var responseText=JSON.parse(item.responseText);
+				var urlOnline=responseText.urlOnline
+				// 附件赋值
+				var newobj={};
+				newobj.name=responseText.newFileName;
+				newobj.oldName=responseText.originalFilename;
+				newobj.url=responseText.fileName;
+				newobj.type=fileVal;
+				this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
+			},
 			// 申请附件上传
 			fjonuploadEnd(item,fileVal,bigType,idx){
 				
@@ -2532,6 +2840,38 @@
 					}
 				});
 			},
+			// 删除反担保
+			getfdbDelFj(idx,fidx,type){
+				var that=this;
+				uni.showModal({
+					title: '确认删除',
+					content: "是否确认删除",
+					cancelText: '取消',
+					confirmText: '确认',
+					success: function(res) {
+						if (res.confirm) {
+							if(type==1){//反担保人
+								var obj=JSON.parse(JSON.stringify(that.fdarlist[fidx]));
+								var fdblist=obj.guaranteeInfoFjList[idx];
+								if(fdblist.guaranteeInfoFjId){
+									that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
+								}
+								obj.guaranteeInfoFjList.splice(idx,1)
+								that.fdarlist.splice(fidx,1,obj)	
+							}else if(type==2) {//反担保企业
+								var obj=JSON.parse(JSON.stringify(that.fdaqylist[fidx]));
+								var fdblist=obj.guaranteeInfoFjList[idx];
+								if(fdblist.guaranteeInfoFjId){
+									that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
+								}
+								obj.guaranteeInfoFjList.splice(idx,1)
+								that.fdaqylist.splice(fidx,1,obj)
+							}
+						} else if (res.cancel) {
+						}
+					}
+				});
+			},
 			getDelgdFj(idx,zxidx){
 				var obj=this.gdlist[idx];
 				var that=this;
@@ -2811,4 +3151,11 @@ color: #FFFFFF;text-align: center;line-height: 100rpx;
 		}
 // 标准
 .looimg{width: 100%;height: 400rpx;position: fixed;left: 0;right: 0;top: 50%;margin-top: -200rpx;z-index: 10;}	
+.fdbdel{font-weight: bold;font-size: 30rpx;color: #FF5B5B;height: 100rpx;
+background: #FFEEEE;border-radius: 10rpx;
+	image{width: 26rpx;height:30rpx;margin-right: 12rpx;}
+	}
+.fdbadd{font-weight: bold;font-size: 26rpx;color: #0AC86E;padding: 16rpx 28rpx;flex:0 0 auto;
+	image{width:22rpx;height: 24rpx;margin-right: 10rpx;flex:0 0 auto;}
+}
 </style>

+ 31 - 3
work/pages/business/details.vue

@@ -70,7 +70,7 @@
 					<bfrxx @getDown="getDown" :datainfo="datainfo" :yhlxlist="yhlxlist" :hyztlist="hyztlist" :basicFj="basicFj"></bfrxx>
 				</block>
 				<block v-if="tabval==2">
-					<cfdbrxx @getDown="getDown" :datainfo="datainfo" :hyztlist="hyztlist" :basicFj="basicFj"></cfdbrxx>
+					<cfdbrxx @getDown="getDown" :datainfo="datainfo" :fdarlist="fdarlist" :fdaqylist="fdaqylist" :hyztlist="hyztlist" :basicFj="basicFj"></cfdbrxx>
 				</block>
 				<block v-if="tabval==3">
 					<dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
@@ -121,7 +121,8 @@
 					<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<3" @click="getedit">修改</view>
+					<!-- a角色,管理员和可以全程修改 -->
+					<view class="fbtns bga" v-if="checkPermi(['system:application:edit'])&&(stepval<3||userId==datainfo.aUserId&&stepval>2||checkPermi(['*:*:*']))" @click="getedit">修改</view>
 					<view class="fbtns bgc" v-if="checkPermi(['system:application:remove'])&&stepval<3" @click="getDel">删除</view>
 					<!-- 申诉状态除了修改,都不给 -->
 					<block v-if="datainfo.auditType!=4&&checkPermi(['system:application:sh'])&&datainfo.loanApplicationType==2">
@@ -172,7 +173,7 @@
 					<!-- 合同签约start -->
 					<!-- 上传附件 是上传其他 和出具合同的附件-->
 					<block v-if="stepval==7">
-						<view class="fbtns bga" @click="getMoreFn('htqy')">出具合同</view>
+						<view class="fbtns bgd" @click="getMoreFn('htqy')">出具合同</view>
 						<!-- <view class="fbtns bgb" @click="getMoreFn('htsc')">上传附件</view>
 						<view class="fbtns bgb" @click="getMoreFn('shmore')">更多操作</view> -->
 					</block>
@@ -419,6 +420,8 @@
 				userList:[],//用户列表
 				shjdlist:[],//审核进度
 				shztlist:[],//审核状态
+				fdarlist:[],//反担保人附件列表
+				fdaqylist:[],//反担保企业附件列表
 				shlist:[],//审核信息
 				tplist:[],//投票列表
 				shinfo:{},//审核信息
@@ -1319,6 +1322,31 @@
 						if(res.data.sysUserEnterprise){
 							this.qyinfo=res.data.sysUserEnterprise
 						}
+						// 反担保
+						if(res.data.guaranteeInfoList){
+							// 数据处理
+							var fdarlist=[],fdaqylist=[];
+							var gInfoList=res.data.guaranteeInfoList;
+							Object.keys(gInfoList).some((key) => {
+								var obj=gInfoList[key];
+								var fdblist=gInfoList[key].guaranteeInfoFjList;
+								fdblist=fdblist.filter((ite) => {
+									if(ite.type=='fdbrsfzrmx'||ite.type=='fdbrsfzghm'){
+										return ite.remark!=1
+									}else{
+										return ite.remark==1||this.getFilterFj(ite.url);
+									}
+								})
+								obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
+								if(obj.type==1){
+									fdarlist.push(obj)
+								}else if(obj.type==2){
+									fdaqylist.push(obj)
+								}
+							})
+							this.fdarlist=JSON.parse(JSON.stringify(fdarlist));
+							this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist));
+						}
 						if(res.data.basicFj){
 							// 数据处理
 							var basicFj=res.data.basicFj;

二進制
work/static/images/fadd.png


二進制
work/static/images/fdel.png