Browse Source

附件修改

zouling 9 months ago
parent
commit
6a9c6b22db

+ 8 - 0
api/common.js

@@ -63,6 +63,14 @@ export function getFjAdd(data) {
 	'data':data
   })
 }
+// 附件-修改 system:fj:edit
+export function getFjEdit(data) {
+  return request({
+    'url': '/fj/put',
+    'method': 'post',
+	'data':data
+  })
+}
 // 附件-删除 system:fj:remove
 export function getFjDel(data) {
   return request({

+ 1 - 1
pages/index/index.vue

@@ -83,7 +83,7 @@
 								<view class="img"><image :src="topiimg" class="imgg"></image></view>
 								<view>上会投票</view>
 							</view>
-							<view class="grid-item-box" @click="getTouBhFn">
+							<view class="grid-item-box" @click="getTouBhFn" v-if="checkPermi(['system:application:loanAfterList'])">
 								<view class="img"><image :src="topjimg" class="imgd"></image></view>
 								<view>保后报告</view>
 							</view>

+ 1 - 1
work/components/business/bfrxx.vue

@@ -18,7 +18,7 @@
 			<view class="txt">家庭人口:<text>{{datainfo.familyPopulation}}人</text></view>
 		</view>
 		<view class="flexcw">
-			<view class="txt">法人职业:<text>{{datainfo.corporationJob}}</text></view>
+			<!-- <view class="txt">法人职业:<text>{{datainfo.corporationJob}}</text></view> -->
 			<view class="txt">有无贷款:<text>{{datainfo.isLoan=='Y'?'有':'无'}}</text></view>
 		</view>
 		<!-- <view class="flexcw">

+ 1 - 1
work/components/business/dfjxx.vue

@@ -136,7 +136,7 @@
 	.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 		image{width: 26rpx;height: 24rpx;}
 	}
-	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 	.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 		image{width: 24rpx;height: 24rpx;}
 	}

+ 66 - 23
work/components/business/ewjcj.vue

@@ -1,10 +1,16 @@
 <template>
   <view>
-	<view class="boxt" v-for="(ite,idx) in wjcjlist" :key="idx">
+	  <!-- 有文件出具的权限 -->
+	  <!-- 风险报告只能有风险修改删除 -->
+	  <!-- <view class="edit" v-if="ite.val=='psyjqpb'||ite.val=='gdhyjy'||ite.val=='wtdbht'" @click="getQmFn">
+	  	<image :src="edit"></image>
+	  	<view>在线签名</view>
+	  </view> -->
+
+	<!-- <view class="boxt" v-for="(ite,idx) in wjcjlist" :key="idx">
 		<view class="txt">
 			<view class="flex1 flexc">{{ite.label}}
-			<!-- 有文件出具的权限 -->
-			<!-- 风险报告只能有风险修改删除 -->
+			
 			<template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3">
 				<template v-if="ite.val=='fxbg'||ite.val=='fkhgb'">
 					<view class="editf" v-if="userId==datainfo.fUserId"  @click="getfjEdit(ite.val)">
@@ -19,15 +25,8 @@
 			</template>
 			
 			</view>
-			<!-- v-if="ite.qflag" -->
-			<!-- <view class="edit" v-if="ite.val=='psyjqpb'||ite.val=='gdhyjy'||ite.val=='wtdbht'" @click="getQmFn">
-				<image :src="edit"></image>
-				<view>在线签名</view>
-			</view> -->
-			<!-- <view class="flex1"></view>
-			<text class="txta" @click="getDown(ite.val)">预览</text> -->
+			
 		</view>
-		<!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
 				
 		<view class="mt18" v-if="fileFj&&fileFj[ite.val]&&fileFj[ite.val].length">
 			<view class="fjlists"  v-for="(fite,fidx) in fileFj[ite.val]" :key='fidx'>
@@ -35,9 +34,7 @@
 					<view class="imgl"><image :src="filico" ></image></view>
 					<view class="tit">{{fite.name}}</view>
 				</view>
-				<!-- ||ite.val=='wtdbht' -->
 				<template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
-					<!-- 放款合规表 -->
 					<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)">
@@ -62,20 +59,58 @@
 				<text class="txta" @click="getDown(fite.url)">预览</text>
 			</view>
 		</view>
-	</view>
+	</view> -->
 	<!-- 其他附件 -->
 	<view class="boxt" >
 		<view class="txt">
 			<view class="flex1 flexc">其他附件
-				<template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3">
+				<!-- <template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3">
 					<view class="editf"   @click="getQtfjEdit('qtfj')">
 						<image :src="editf"></image>
 						<view>上传</view>
 					</view>
-				</template>
+				</template> -->
 				
 			</view>
 		</view>
+		<!-- 文件出具信息 -->
+		<view class="mt18" v-if="fileFj">
+			<block v-for="(ite,name, index) in fileFj" :key="index">
+				<view class="fjlists"  v-for="(fite,fidx) in ite" :key='fidx'>
+					<view class="flext flex1" @click="getDown(fite.url)">
+						<view class="imgl"><image :src="filico" ></image></view>
+						<view class="tit">{{fite.name}}</view>
+					</view>
+					<!-- ||ite.val=='wtdbht' -->
+					<template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
+						<!-- 放款合规表 -->
+						<template v-if="name=='fxbg'||name=='fkhgb'">
+							<template v-if="userId==datainfo.fUserId">
+								<view class="edit" v-if="(name=='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="(name=='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>
+						<text class="txta coa1" v-if="checkPermi(['system:fj:edit'])" @click="getfjXiu(name,fite.fjId)">修改</text>
+					</template>
+					<text class="txta" @click="getDown(fite.url)">预览</text>
+				</view>
+			</block>
+			
+		</view>
 		<!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
 				<!-- <view class="delimg flex0" @click.stop="getDelFj(idx)">
 					<image :src="fdelimg"></image>
@@ -86,9 +121,12 @@
 					<view class="imgl"><image :src="filico" ></image></view>
 					<view class="tit">{{fite.name}}</view>
 				</view>
-				<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4" @click.stop="getDelwjFj(fite.fjId)">
-					<image :src="fdelimg"></image>
-				</view>
+				<template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
+					<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4" @click.stop="getDelwjFj(fite.fjId)">
+						<image :src="fdelimg"></image>
+					</view>
+					<text class="txta coa1" v-if="checkPermi(['system:fj:edit'])" @click="getQtfjEdit('qtfj',fite.fjId)">修改</text>
+				</template>
 				<text class="txta" @click="getDown(fite.url)">预览</text>
 			</view>
 		</view>
@@ -163,8 +201,11 @@
 		getfjEdit(val){
 			this.$emit('getfjEdit',val)
 		},
-		getQtfjEdit(val){
-			this.$emit('getQtfjEdit',val)
+		getfjXiu(val,id){
+			this.$emit('getfjXiu',val,id)
+		},
+		getQtfjEdit(val,id){
+			this.$emit('getQtfjEdit',val,id)
 		},
 		getDown(url){
 			this.$emit('getDown',url)
@@ -197,11 +238,13 @@
 	.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 		image{width: 26rpx;height: 24rpx;}
 	}
-	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 	.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 		image{width: 24rpx;height: 24rpx;}
 	}
-	.txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
+	.txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;
+		&.coa1{color: #00A9F0;}
+	}
 }
 .upbox{display: flex;flex-direction: column;align-items: center;padding: 56rpx 0 40rpx;border-top: 2rpx solid #E6E6E6;
 	image{width: 30rpx;height: 26rpx;margin-bottom: 18rpx;transform: rotate(180deg);}

+ 1 - 1
work/components/business/fshxx.vue

@@ -194,7 +194,7 @@ background: #DADADA;}
 		.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 			image{width: 26rpx;height: 24rpx;}
 		}
-		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 		.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 			image{width: 24rpx;height: 24rpx;}
 		}

+ 1 - 1
work/components/business/hbgxx.vue

@@ -125,7 +125,7 @@
 	.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 		image{width: 26rpx;height: 24rpx;}
 	}
-	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+	.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 	.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 		image{width: 24rpx;height: 24rpx;}
 	}

+ 89 - 10
work/components/popup/popup.vue

@@ -140,7 +140,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -295,7 +295,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -321,7 +321,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -350,7 +350,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -387,7 +387,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -416,7 +416,65 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
+						<image :src="fdelimg"></image>
+					</view>
+				</view>
+			</view>
+			<view class="conbtns flexcj">
+				<!-- <view class="cbtns bga">暂存</view> -->
+				<view class="cbtns bgb" @click="getfjAdd">确认</view>
+			</view>
+		</view>
+		<!-- 修改附件 -->
+		<view class="fixbox" v-if="type=='fjedit'">
+			<view class="cloimg" @click="getClose">
+				<image :src="closeimg"></image>
+			</view>
+			<view class="ttit">上传附件</view>
+			<view class="mb16">
+				<view class="ttxt mb18 flexcj" v-if="wjcjobj[fjval]">附件信息
+					<lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+						    @progress="" @uploadEnd="editonuploadEnd" :fileName="wjcjobj[fjval]" :fileVal='fjval' bigType="c">
+						<view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
+					</lsj-upload>
+					
+				</view>
+				<view class="fjlists"  v-for="(fite,fidx) in filelist" :key='fidx'>
+					<view class="flext" @click="getDown(fite.url)">
+						<view class="imgl"><image :src="filico" ></image></view>
+						<view class="tit">{{fite.name}}</view>
+					</view>
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
+						<image :src="fdelimg"></image>
+					</view>
+				</view>
+			</view>
+			<view class="conbtns flexcj">
+				<view class="cbtns bgb" @click="getfjAdd">确认</view>
+			</view>
+			<view class="shshtips">* 修改为最新一条附件信息</view>
+		</view>
+		<!-- 修改其他附件 -->
+		<view class="fixbox" v-if="type=='qtfjedit'">
+			<view class="cloimg" @click="getClose">
+				<image :src="closeimg"></image>
+			</view>
+			<view class="ttit">上传附件</view>
+			<view class="mb16">
+				<view class="ttxt mb18 flexcj" v-if="qtfjobj[fjval]">附件信息
+					<lsj-upload ref="lsjUpload" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
+						    @progress="" @uploadEnd="editonuploadEnd" :fileName="qtfjobj[fjval]" :fileVal='fjval' bigType="d">
+						<view class="fbtns co0a" :style="{width: width,height: height}">上传附件</view>
+					</lsj-upload>
+					
+				</view>
+				<view class="fjlists"  v-for="(fite,fidx) in filelist" :key='fidx'>
+					<view class="flext" @click="getDown(fite.url)">
+						<view class="imgl"><image :src="filico" ></image></view>
+						<view class="tit">{{fite.name}}</view>
+					</view>
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -445,13 +503,12 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
 			</view>
 			<view class="conbtns flexcj">
-				<!-- <view class="cbtns bga">暂存</view> -->
 				<view class="cbtns bgb" @click="getfjAdd">确认</view>
 			</view>
 		</view>
@@ -509,7 +566,7 @@
 						<view class="imgl"><image :src="filico" ></image></view>
 						<view class="tit">{{fite.name}}</view>
 					</view>
-					<view class="delimg flex0" @click.stop="getDelFj(idx)">
+					<view class="delimg flex0" @click.stop="getDelFj(fidx)">
 						<image :src="fdelimg"></image>
 					</view>
 				</view>
@@ -654,6 +711,12 @@
 					return ''
 				}
 			},
+			fjId:{
+				type: String,
+				default () {
+					return ''
+				}
+			},
 			startady:{
 				type: String,
 				default () {
@@ -1051,6 +1114,22 @@
 				newobj.loanApplicationNumber=this.loanApplicationNumber;
 				this.filelist.push(newobj)
 			},
+			editonuploadEnd(item,fileVal,bigType) {
+				var newobj={}
+				var responseText=JSON.parse(item.responseText)
+				newobj.name=responseText.newFileName;
+				newobj.oldName=responseText.originalFilename;
+				newobj.url=responseText.fileName;
+				newobj.type=fileVal;
+				newobj.bigType=bigType;
+				newobj.loanApplicationId=this.loanApplicationId;
+				newobj.loanApplicationNumber=this.loanApplicationNumber;
+				newobj.fjId=this.fjId;
+				var newArr=[];
+				newArr.push(newobj);
+				this.filelist=JSON.parse(JSON.stringify(newArr))
+			},
+			
 			// 借据上传
 			jjonuploadEnd(item,fileVal,bigType){
 				var newobj={}
@@ -1223,7 +1302,7 @@ color: #666666;overflow: hidden;
 		.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 			image{width: 26rpx;height: 24rpx;}
 		}
-		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 		.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 			image{width: 24rpx;height: 24rpx;}
 		}

+ 5 - 5
work/pages/business/add.vue

@@ -449,9 +449,9 @@
 					<uni-forms-item label="家庭人口" name="familyPopulation">
 						<uni-easyinput v-model="datainfo.familyPopulation" type="number" :inputBorder='false' placeholder="请输入家庭人口" />
 					</uni-forms-item>
-					<uni-forms-item label="法人职业" name="corporationJob">
+					<!-- <uni-forms-item label="法人职业" name="corporationJob">
 						<uni-easyinput v-model="datainfo.corporationJob"  :inputBorder='false' placeholder="请输入法人职业" />
-					</uni-forms-item>
+					</uni-forms-item> -->
 					<picker  range-key='label' :value="ywidx" class="isborder" :range="ywList"  @change='bindDateChangec'>
 						<uni-forms-item label="有无贷款" name="qymc">
 							<view class="lbtabp">
@@ -580,7 +580,7 @@
 					</uni-forms-item>
 				</view>
 				<!-- * 户口簿信息-->
-				<view class="addtit mt3"><text>*</text>户口簿信息</view>
+				<view class="addtit mt3">户口簿信息</view>
 				<view class="bgf plr12">
 					<uni-forms-item label="户口簿首页" name="iszcy">
 						<view class="phobox">
@@ -1482,7 +1482,7 @@
 				btfiles:[
 					{tit:'公司章程',type:'gszc'},
 					{tit:'开户许可证',type:'khxkz'},{tit:'申请企业征信报告',type:'sqqyzxbg'},{tit:'企业法人征信报告',type:'qyfrzxbg'},{tit:'实际控股人征信报告',type:'sjkgrzxbg'},
-				{tit:'户口簿首页',type:'frhkbsy'},
+				// {tit:'户口簿首页',type:'frhkbsy'},
 				],
 				sqbtfiles:[
 				{tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
@@ -3165,7 +3165,7 @@
 		.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 			image{width: 26rpx;height: 24rpx;}
 		}
-		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 		.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 			image{width: 24rpx;height: 24rpx;}
 		}

+ 43 - 17
work/pages/business/details.vue

@@ -86,7 +86,7 @@
 					<dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
 				</block>
 				<block v-if="tabval==4">
-					<ewjcj @getDown="getDown" :pfrom="pfrom" @getQmFn="getQmFn" :datainfo="datainfo"  @getDelwjFj="getDelwjFj" @getfjEdit="getfjEdit" @getQtfjEdit="getQtfjEdit" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
+					<ewjcj @getDown="getDown" :pfrom="pfrom" @getQmFn="getQmFn" :datainfo="datainfo"  @getDelwjFj="getDelwjFj" @getfjXiu="getfjXiu" @getfjEdit="getfjEdit" @getQtfjEdit="getQtfjEdit" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
 				</block>
 				<block v-if="tabval==5">
 					<fshxx @getDown="getDown" :shztlist="shztlist" :shjdlist="shjdlist"  :datalist="shlist" ></fshxx>
@@ -252,7 +252,7 @@
 					<block v-if="stepval==7">
 						<view  @click="getIssureFn(12,'psyjqpb')">出具评审意见签批表</view>
 						<view  @click="getIssureFn(11,'gdhyjy')">出具股东会决议</view>
-						<view  @click="getIssureFn(1,'wtdbsqs')">出具委托担保申请书</view>
+						<!-- <view  @click="getIssureFn(1,'wtdbsqs')">出具委托担保申请书</view> -->
 					</block>
 					<!-- 放款合规表 -->
 					<block v-if="checkRole(['manager'])||userId==datainfo.fUserId">
@@ -326,7 +326,7 @@
 			<!-- <view class="surbtns" @click="getMoreSure">确认</view> -->
 		</view>
 		<pop-up :type="type" :startady="daytime" :shtg="shtg" :loanApplicationId="datainfo.loanApplicationId" :loanApplicationNumber="datainfo.loanApplicationNumber" :userList="userList" 
-		:stepList="stepList" :wjcjobj='wjcjobj' :bhxxobj='bhxxobj' :qtfjobj="qtfjobj" :stepval="stepval" :fjval="fjval"
+		:stepList="stepList" :wjcjobj='wjcjobj' :bhxxobj='bhxxobj' :qtfjobj="qtfjobj" :stepval="stepval" :fjval="fjval" :fjId="fjId"
 		 @getfjAdd="getfjAdd"
 		 @getClose="getClose" @getupSubmit="getupSubmit" @getSure="getSure"></pop-up>
 	</view>
@@ -350,7 +350,7 @@
 	import {uploadmore,selectValue} from '@/utils/common.js'
 	import {getInfo} from "@/api/login.js"
 	import {getDictionaryFn} from "@/api/mine/register.js"
-	import {getUsernoPageList,getFjAdd,getFjDel} from "@/api/common.js"
+	import {getUsernoPageList,getFjAdd,getFjEdit,getFjDel} from "@/api/common.js"
 	import {getApplicationDet,getScheduleList,getHyperlinkList,getApplicationDel,getApplicationSh,getCommentsList,getApplicationSs,getApplicationCx,getapplicationGd,getapplicationXib,getExportMb,
 	getZanHuan,getAuthorize,getReview,getVoteAdd,getcxVoteAdd,getVoteFive,getVoteTimeList,getVoteFinish,getputActually
 	} from "@/api/mine/work.js"
@@ -473,6 +473,7 @@
 				qtfjobj:{'qtfj':"其他附件"},//其他附件
 				qtfjlist:[],//其他附件
 				fjval:'',//附件类型
+				fjId:'',//附件id
 				userId:this.$store.state.user.userId,
 				iscjflag:false,
 				contype:'',//二次确认弹窗
@@ -638,8 +639,19 @@
 				}
 				this.mtype='';
 			},
-			getQtfjEdit(val){
-				this.type='qtfjadd';
+			getfjXiu(ite,id){
+				this.fjId=id;
+				this.type='fjedit';
+				this.fjval=ite
+				this.mtype='';
+			},
+			getQtfjEdit(val,id){
+				if(id){
+					this.fjId=id;
+					this.type='qtfjedit';
+				}else{
+					this.type='qtfjadd';
+				}
 				this.mtype='';
 				this.fjval=val
 			},
@@ -991,23 +1003,37 @@
 				// params.loanApplicationId=this.id;
 				// params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
 				// params.auditSchedule=this.auditSchedule;
-				getFjAdd(fjUrl).then(res=>{
-					if(res.code==200){
-						that.$toast('上传附件成功')
-						// 修改信息
-						if(that.type=='jj'){
-							var amount=params.actuallyAmount||"";
-							var time=params.actuallyTime||"";
-							that.getputActually(amount,time)
-						}else{
+				if(that.type=='fjedit'||that.type=='qtfjedit'){
+					getFjEdit(fjUrl).then(res=>{
+						if(res.code==200){
+							that.$toast('修改附件成功')
 							setTimeout(function(){
 								that.getDetail();
 								uni.$emit('refreshdatalist')
 								that.type=''
 							},1200)
 						}
-					}
-				})
+					})
+				}else{
+					getFjAdd(fjUrl).then(res=>{
+						if(res.code==200){
+							that.$toast('上传附件成功')
+							// 修改信息
+							if(that.type=='jj'){
+								var amount=params.actuallyAmount||"";
+								var time=params.actuallyTime||"";
+								that.getputActually(amount,time)
+							}else{
+								setTimeout(function(){
+									that.getDetail();
+									uni.$emit('refreshdatalist')
+									that.type=''
+								},1200)
+							}
+						}
+					})
+				}
+				
 			},
 			getputActually(amount,time){
 				var that=this;

+ 1 - 1
work/pages/file/wjdetails.vue

@@ -117,7 +117,7 @@ border-radius: 2rpx;height: 4rpx;content: '';}
 		.imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
 			image{width: 26rpx;height: 24rpx;}
 		}
-		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
+		.tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
 		.delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
 			image{width: 24rpx;height: 24rpx;}
 		}