Bläddra i källkod

文件编辑id修改

zouling 10 månader sedan
förälder
incheckning
bfa76f0622

+ 1 - 1
hybrid/html/web-office.html

@@ -21,7 +21,7 @@
 		}
 		query = JSON.parse(query)
 		let wps = WebOfficeSDK.init({
-			appId: 'SX20240516EYFBUA',
+			appId: 'AK20240724JZQZVF',
 			officeType: query.type,
 			fileId: query.file_id,
 			token: query.token,

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "皖源融资担保",
     "appid" : "__UNI__FA20DEF",
     "description" : "",
-    "versionName" : "1.1.5",
-    "versionCode" : 115,
+    "versionName" : "1.1.6",
+    "versionCode" : 116,
     "transformPx" : false,
     "app-plus" : {
         "usingComponents" : true,

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

@@ -1,6 +1,6 @@
 <template>
   <view>
-	<block v-if="declareFj&&declareFj.wtdbsqs&&declareFj.wtdbsqs.length>0">
+	<!-- <block v-if="declareFj&&declareFj.wtdbsqs&&declareFj.wtdbsqs.length>0">
 		<view class="boxt">
 			<view class="txt">
 				<view class="flex01">委托担保申请书</view>
@@ -16,7 +16,7 @@
 				</view>
 			</view>
 		</view>
-	</block>
+	</block> -->
 	<block v-if="declareFj&&declareFj.gdhyjy&&declareFj.gdhyjy.length>0">
 		<view class="boxt">
 			<view class="txt">

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

@@ -31,7 +31,7 @@
 				
 		<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'>
-				<view class="flext" @click="getDown(fite.url)">
+				<view class="flext flex1" @click="getDown(fite.url)">
 					<view class="imgl"><image :src="filico" ></image></view>
 					<view class="tit">{{fite.name}}</view>
 				</view>
@@ -67,6 +67,13 @@
 	<view class="boxt" >
 		<view class="txt">
 			<view class="flex1 flexc">其他附件
+				<template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&datainfo.loanApplicationType!=3">
+					<view class="editf"   @click="getQtfjEdit('qtfj')">
+						<image :src="editf"></image>
+						<view>上传</view>
+					</view>
+				</template>
+				
 			</view>
 		</view>
 		<!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
@@ -75,11 +82,11 @@
 				</view> -->
 		<view class="mt18" v-if="qtfileFj&&qtfileFj.qtfj&&qtfileFj.qtfj.length">
 			<view class="fjlists"  v-for="(fite,fidx) in qtfileFj.qtfj" :key='fidx'>
-				<view class="flext" @click="getDown(fite.url)">
+				<view class="flext flex1" @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="getDelwjFj(fite.fjId)">
+				<view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
 					<image :src="fdelimg"></image>
 				</view>
 				<text class="txta" @click="getDown(fite.url)">预览</text>
@@ -166,6 +173,9 @@
 		getfjEdit(val){
 			this.$emit('getfjEdit',val)
 		},
+		getQtfjEdit(val){
+			this.$emit('getQtfjEdit',val)
+		},
 		getDown(url){
 			this.$emit('getDown',url)
 		},

+ 5 - 1
work/components/popup/popup.vue

@@ -951,7 +951,11 @@
 			onuploadEnd(item,fileVal,bigType) {
 				var newobj={}
 				var responseText=JSON.parse(item.responseText)
-				newobj.name=responseText.newFileName;
+				if(fileVal=='qtfj'){
+					newobj.name=responseText.originalFilename;
+				}else{
+					newobj.name=responseText.newFileName;
+				}
 				newobj.oldName=responseText.originalFilename;
 				newobj.url=responseText.fileName;
 				newobj.type=fileVal;

+ 43 - 12
work/pages/business/add.vue

@@ -193,6 +193,7 @@
 						</uni-forms-item>
 						<uni-forms-item  name="iszcy">
 							<view class="labtxt">股东{{(Number(idx)+1)}}营业执照
+								<text>(上传一张)</text>
 								<text class="del" @click="getdelGdFn(idx,ite)">删除</text>
 							</view>
 							<view class="phobox">
@@ -818,7 +819,9 @@
 							</uni-forms-item>
 						</picker> -->
 						<uni-forms-item name="iszcy">
-							<view class="labtxt">营业执照</view>
+							<view class="labtxt">营业执照
+								<text>(上传一张)</text>
+							</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"
@@ -879,11 +882,12 @@
 					<view @click="getDbclFn" class="flexc">附件信息<image :src="ywicon" class="ywimg"></image></view>
 				</view>
 				<block v-for="(ite,idx) in sbfjlist" :key="ite.val">
-					<!-- 委托担保申请书 -->
-					<!-- <view class="bgf plr12 mb12" v-if="ite.val=='wtdbsqs'||ite.val=='gdhyjy'">
+					<!-- 委托担保申请书 <text>*</text>-->
+					<!-- ||ite.val=='gdhyjy'  股东会决议 -->
+					<view class="bgf plr12 mb12" v-if="ite.val=='wtdbsqs'">
 						<view class="fjbox">
 							<view class="fjtop flext">
-								<view class="ftit"><text>*</text>{{ite.label}}<text class="mtxt">(须面签)</text></view>
+								<view class="ftit">{{ite.label}}<text class="mtxt">(须面签)</text></view>
 								<view class="fbtns cof64" @click="getExportMb(ite)">
 									<image :src="downimg" class="downimg"></image>下载模板
 								</view>
@@ -907,7 +911,7 @@
 								</view>
 							</view>
 						</view>
-					</view> -->
+					</view>
 					<view class="bgf plr12" v-if="ite.val=='syndcwbb'||ite.val=='syndsjbg'">
 						<view class="fjbox" :class="ite.val!='syndsjbg'?'isborder':''">
 							<view class="fjtop flext">
@@ -1445,7 +1449,7 @@
 				gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:''}],
 				qylist:[],//企业列表
 				fdarlist:[{type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}],
-				fdaqylist:[{type:2,guaranteeInfoFjList:[]}],
+				fdaqylist:[{type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}],
 				fdbrobj:{},//反担保人附件
 				fdbqyobj:{},//反担保企业附件
 				fdbdelxIdList:[],//反担保删除小id集合
@@ -1848,7 +1852,7 @@
 			},
 			//添加反担保企业
 			getAddQiFn(){
-				var obj = {type:2,guaranteeInfoFjList:[]}
+				var obj = {type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}
 				this.fdaqylist.push(obj);
 			},
 			// 删除股东
@@ -2688,13 +2692,36 @@
 				getOcrBusinessLicense(params).then(res=>{
 					if(res.code==200){
 						var params=JSON.parse(JSON.stringify(res.data))
-						obj.shareholderName=params.enterpriseName
-						obj.shareholderIdCard=params.creditCode
+						obj.shareholderName=params.enterpriseName;
+						obj.shareholderIdCard=params.creditCode;
 						obj.zhizhao[0]=fileName
 						this.gdlist.splice(idx,1,obj)
 					}
 				})
 			},
+			// 反担保企业识别
+			getOcrBusinessLicensefdb(newobj,url,idx){
+				var that=this;
+				var params={
+					image:url,
+				}
+				getOcrBusinessLicense(params).then(res=>{
+					if(res.code==200){
+						var params=JSON.parse(JSON.stringify(res.data))
+						var obj=this.fdaqylist[idx];
+						obj.guaranteeName=params.enterpriseName;
+						obj.guaranteeIdCard=params.creditCode;
+						if(obj.guaranteeInfoFjList&&obj.guaranteeInfoFjList.length){
+							var fdblist=obj.guaranteeInfoFjList
+							that.fdbdelxIdList.push(fdblist[0].guaranteeInfoFjId)
+						}
+						obj.guaranteeInfoFjList[0]=JSON.parse(JSON.stringify(newobj))
+						// obj.guaranteeInfoFjList.push(newobj)
+						this.fdaqylist.splice(idx,1,obj)
+						this.$toast('营业执照上传成功')
+					}
+				})
+			},
 			getocrIdCard(url,type,idx){
 				var that=this;
 				var burl=url;
@@ -2761,9 +2788,9 @@
 					// obj.zxurl[0]=responseText.fileName
 				}else if(type=='zhz'){
 					// obj.zhizhao.push(responseText.fileName)
-					obj.zhizhao[0]=responseText.fileName
-					// this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
-					// return
+					// obj.zhizhao[0]=responseText.fileName
+					this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
+					return
 				}
 				console.log(this.gdlist,3)
 				this.gdlist.splice(idx,1,obj)
@@ -2808,6 +2835,10 @@
 				newobj.oldName=responseText.originalFilename;
 				newobj.url=responseText.fileName;
 				newobj.type=fileVal;
+				if(fileVal=='fdbqyyyzz'){
+					this.getOcrBusinessLicensefdb(newobj,urlOnline,idx)
+					return
+				}
 				this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
 			},
 			// 申请附件上传

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

@@ -76,7 +76,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" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
+					<ewjcj @getDown="getDown" :pfrom="pfrom" @getQmFn="getQmFn" :datainfo="datainfo"  @getDelwjFj="getDelwjFj" @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>
@@ -186,8 +186,12 @@
 						<!-- 管理员授权判断是否提前了,步骤7之后,并且暂缓了 -->
 						<!-- 管理员 可以让a角 提前开放款通知书,意向函, a角色和管理员给 &&datainfo.aAuthorize!='Y'-->
 						<view class="fbtns bgb" v-if="checkPermi(['system:application:authorize'])&&stepval==8" @click="getAuthorize">授权放款通知书</view>
-						<view class="fbtns bga" v-if="checkPermi(['system:application:gd'])&&stepval==9" @click="getGdFn">一键归档</view>
-						<view class="fbtns bga" v-if="checkPermi(['system:application:schedule'])&&stepval<9&&stepval>6" @click="getXybFn">项目推进</view>
+						<view class="fbtns bga" v-if="checkPermi(['system:application:gd'])&&stepval==9&&(checkRole(['manager'])||userId==datainfo.aUserId)" @click="getGdFn">一键归档</view>
+						<block v-if="checkPermi(['system:application:schedule'])&&stepval<9&&stepval>6">
+							<view class="fbtns bga" v-if="userId==datainfo.fUserId&&stepval==8"  @click="getXybFn">项目推进</view>
+							<view class="fbtns bga" v-if="(checkRole(['manager'])||userId==datainfo.aUserId)&&stepval==7"  @click="getXybFn">项目推进</view>
+						</block>
+						
 					</block>
 					<!-- end -->
 					<!-- 所有出具 -->
@@ -196,7 +200,7 @@
 					<!-- <view class="fbtns" :class="auditSchedule==6?'bga':'bgb'" v-if="checkPermi(['system:application:cx'])&&(stepval!=1&&stepval!=10&&(datainfo.auditType!=1||auditSchedule<6&&auditSchedule>2))" @click="getCxFn">撤销</view> -->
 					<block v-if="checkPermi(['system:application:cx'])&&stepval!=1&&stepval!=10&&datainfo.auditType!=4">
 						<!-- <view class="fbtns bgb" @click="getCxFn">撤销</view> -->
-						<view class="fbtns bgb" v-if="userId==datainfo.aUserId&&(auditSchedule==3||auditSchedule>6)" @click="getCxFn">撤销</view>
+						<view class="fbtns bgb" v-if="userId==datainfo.aUserId&&(auditSchedule==3||auditSchedule>6)&&stepval!=9" @click="getCxFn">撤销</view>
 						<view class="fbtns bgb" v-if="userId==datainfo.bUserId&&auditSchedule==4" @click="getCxFn">撤销</view>
 						<!-- 风险部撤销 -->
 						<view class="fbtns bgb" v-if="userId==datainfo.fUserId&&(auditSchedule==5||stepval==5&&datainfo.auditType==1||stepval==9)" @click="getCxFn">撤销</view>