zouling 11 mēneši atpakaļ
vecāks
revīzija
9288f024cd

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "皖源融资担保",
     "appid" : "__UNI__FA20DEF",
     "description" : "",
-    "versionName" : "1.0.6",
-    "versionCode" : 106,
+    "versionName" : "1.0.7",
+    "versionCode" : 107,
     "transformPx" : false,
     "app-plus" : {
         "usingComponents" : true,

+ 1 - 1
utils/permission.js

@@ -23,7 +23,7 @@ export function checkPermi(value) {
     }
     return true
   } else {
-    console.error(`need roles! Like checkPermi="['system:user:add','system:user:edit']"`)
+    // console.error(`need roles! Like checkPermi="['system:user:add','system:user:edit']"`)
     return false
   }
 }

+ 47 - 3
work/components/business/aqyxx.vue

@@ -46,8 +46,16 @@
 			<image :src="titimg"></image>全体股东身份及征信
 		</view>
 		<view class="flexcw" v-for="(ite,idx) in datainfo.shareholderFjList" :key="idx">
-			<view class="txt" v-if="ite.shareholderFrontUrl">股东{{Number(idx)+1}}身份证:<text class="txta" @click="getDown(ite.shareholderFrontUrl)">在线查看</text></view>
-			<view class="txt" v-if="ite.shareholderZxUrl">股东{{Number(idx)+1}}征信:<text class="txta" @click="getDown(ite.shareholderZxUrl.split(',')[0])">在线查看</text></view>
+			<view class="txt" v-if="ite.shareholderFrontUrl||ite.shareholderBackUrl">股东{{Number(idx)+1}}身份证:<text class="txta" @click="getDownGd(ite)">在线查看</text></view>
+			<view class="txt" >股东{{Number(idx)+1}}征信:
+				<!-- 其他的征信 -->
+				<block v-if="ite.shareholderZxUrl">
+					<block v-for="(itea,idxa) in getFilteFn(ite.shareholderZxUrl)">
+						<text class="txtab" v-if="itea" @click="getDown(itea)">在线查看</text>
+					</block>
+				</block>
+				<text class="txta" v-if="ite.shareholderZxUrlPdf" @click="getDown(ite.shareholderZxUrlPdf.split(',')[0])">在线查看</text>
+			</view>
 		</view>
 	</view>
 	<view class="boxt">
@@ -121,6 +129,8 @@
 </template>
 
 <script>
+	import config from '@/config'
+	const baseUrl = config.baseUrl
 	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
 	import { selectValue } from '@/utils/common.js';
 	import noData from "@/components/nodata/nodata.vue"
@@ -162,7 +172,40 @@
 		},
 		getDown(url){
 			this.$emit('getDown',url)
-		}
+		},
+		getDownGd(ite){
+			var url=[]
+			if(ite.shareholderFrontUrl){
+				var urla=baseUrl+ite.shareholderFrontUrl;
+				url.push(urla)
+			}
+			if(ite.shareholderBackUrl){
+				var urlb=baseUrl+ite.shareholderBackUrl;
+				url.push(urlb)
+			}
+			uni.previewImage({
+				current: 0,
+				urls: url,
+			});
+		},
+		getFilteFn(url){
+			var list=url.split(',')
+			list=list.filter((ite) => {
+				return this.getFilterFj(ite);
+			})
+			return list
+		},
+		// 数据处理
+		getFilterFj(url){
+			let index1 = url.lastIndexOf("."); // 得到一个索引值
+			let index2 = url.length;
+			let type = url.substring(index1, index2);
+			if ((type.indexOf('jpg') >-1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
+				return false
+			}else{
+				return true
+			}
+		},
 	},
 	
   }
@@ -177,6 +220,7 @@
 	text{color: #666666;font-weight: 500;
 		&.txta{color: #28C529;}
 	}
+	.txtab{color: #28C529;font-weight: 500;margin-right: 24rpx;margin-bottom: 12rpx;display: inline-block;}
 	.filist{font-weight: 500;
 		color: #28C529;margin-bottom: 8rpx;
 	}

+ 55 - 16
work/pages/business/add.vue

@@ -1185,7 +1185,7 @@
 			<cover-view @click.stop="getGiveupFn" class="txt">放弃编辑</cover-view>
 		</cover-view>
 		<!-- #endif -->
-		
+		<!--附件 remark==1  后台生成的pdf,自己删除 -->
 		<pop-up :type='ftype' :xwimgList="xwimgList" :content="content" @getClose='getClose'></pop-up>
 	</view>
 </template>
@@ -1201,7 +1201,7 @@
 	import { getToken } from '@/utils/auth'
 	import {getApplicationNum,getApplicationZc,getApplicationAdd,getApplicationDet,getApplicationEdit,getExportMb,getDocumentList} from "@/api/mine/work.js"
 	import {getQyListNoPage,getOcrIdCard,getIdCardDet} from "@/api/mine/card.js"
-	import {uploadmore,selectValueKey} from '@/utils/common.js'
+	import {uploadmore,selectValueKey,showConfirm} from '@/utils/common.js'
 	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
 	import {getDictionaryFn} from "@/api/mine/register.js"
 	// 340622185605234521
@@ -1377,11 +1377,13 @@
 				yhlxidx:0,
 				sfidx:0,
 				frhyzkidx:0,
-				btfiles:[{tit:'公司章程',type:'gszc'},
+				btfiles:[
+					{tit:'公司章程',type:'gszc'},
 					{tit:'开户许可证',type:'khxkz'},{tit:'申请企业征信报告',type:'sqqyzxbg'},{tit:'关联企业征信报告',type:'glqyzxbg'},{tit:'企业法人征信报告',type:'qyfrzxbg'},{tit:'实际控股人征信报告',type:'sjkgrzxbg'},
 				{tit:'户口簿首页',type:'frhkbsy'},
 				],
-				sqbtfiles:[{tit:'委托担保申请书',type:'wtdbsqs'},
+				sqbtfiles:[
+					{tit:'委托担保申请书',type:'wtdbsqs'},
 				{tit:'股东会议纪要',type:'gdhyjy'},{tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
 				{tit:'当前从事项目情况证明',type:'dqcsxmqkzm'},{tit:'企业基本注册信息查询单',type:'qyjbzcxxcxd'},{tit:'水电费发票(一年)',type:'sdffpyn'},{tit:'人员工资表',type:'rggzb'},{tit:'纳税申报表',type:'nssbb'},
 				],
@@ -1394,14 +1396,25 @@
 				// {tit:'法人配偶身份证人面像',type:'frsfzpormx'},{tit:'法人配偶身份证国徽面',type:'frsfzpoghm'},
 				//担保类型为反担保人担保{tit:'反担保人身份证人面像',type:'fdbrsfzrmx'},{tit:'反担保人身份证国徽面',type:'fdbrsfzghm'},
 				//担保类型为抵押{tit:'企业固定资产证明',type:'qygdzczm'},
+				ischange:false,
+				isdetail:false,
 			}
 		},
 		onUnload(){
 			uni.$off('refreshtalb')
 		},
-		// watch(){
-			
-		// },
+		watch:{
+			datainfo:{
+				handler(newVal, oldVal) {
+					if(this.isdetail){
+						this.isdetail=false
+					}else{
+						this.ischange=true
+					}  
+				},
+				deep: true
+			}
+		},
 		onLoad(e) { 
 			// this.getIdCardDet()
 			// return
@@ -1569,9 +1582,23 @@
 				this.$tab.navigateTo("/work/pages/prove/dbcltips")
 			},
 			getBack(){
-				uni.navigateBack({
-					delta:1
-				})
+				// 暂存
+				var that=this;
+				if(this.ischange){
+					showConfirm('已做修改,是否暂存').then(res => {
+					  if (res.confirm) {
+					    this.getZanFn('back')
+					  }else{
+						uni.navigateBack({
+							delta:1
+						})
+					  }
+					})
+				}else{
+					uni.navigateBack({
+						delta:1
+					})
+				}
 			},
 			getGiveupFn(){
 				var that=this;
@@ -1757,7 +1784,7 @@
 				// this.dblx=this.sfList[val].text;
 				this.datainfo.isDuty=this.sfList[val].value;
 			},
-			getZanFn(){
+			getZanFn(type){
 				var that=this;
 				var params=this.datainfo;
 				var gdlist=this.gdlist;
@@ -1786,6 +1813,7 @@
 				params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
 				getApplicationZc(params).then(res=>{
 					if(res.code==200){
+						this.ischange=false;
 						this.$toast('暂存成功')
 						// 刷新列表
 						setTimeout(function(){
@@ -1793,6 +1821,11 @@
 								that.$tab.reLaunch('/pages/index/index') 
 							}else{
 								uni.$emit('refreshywlist')
+								if(type&&type=='back'){
+									uni.navigateBack({
+										delta:1
+									})
+								}
 							}
 						},1200)
 					}
@@ -1802,6 +1835,7 @@
 				getApplicationDet(this.id).then(res=>{
 					if(res.code==200){
 						this.datainfo=res.data;
+						this.isdetail=true;
 						if(res.data&&res.data.applicationType==1){
 							var obj={tit:'当期财务报表',type:'dqcwbb'};
 							this.sqbtfiles.push(obj)
@@ -1813,7 +1847,12 @@
 						this.option.formData=JSON.parse(JSON.stringify(obj))
 						
 						if(data.loanApplicationFjList){
-							this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
+							// 筛除自动生成的附件
+							var filterlist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
+							this.filelist=filterlist.filter((ite) => {
+								return ite.remark!=1;
+							})
+							// this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
 						}
 						if(data.declareFj){
 							this.declareFj=data.declareFj;
@@ -2183,11 +2222,11 @@
 				}else if(type=='cardf'){
 					obj.cardf=responseText.fileName
 				}else if(type=='zx'){
-					// obj.zxurl.push(responseText.fileName)
-					obj.zxurl[0]=responseText.fileName
+					obj.zxurl.push(responseText.fileName)
+					// obj.zxurl[0]=responseText.fileName
 				}else if(type=='zhz'){
-					// obj.zxurl.push(responseText.fileName)
-					obj.zhizhao[0]=responseText.fileName
+					obj.zhizhao.push(responseText.fileName)
+					// obj.zhizhao[0]=responseText.fileName
 				}
 				console.log(this.gdlist,3)
 				this.gdlist.splice(idx,1,obj)

+ 47 - 21
work/pages/business/details.vue

@@ -56,9 +56,10 @@
 		<view class="main">
 			<!-- tab -->
 			<view class="tabs" :class="fixedflag?'tabfix':''">
-				<view v-if='!isqiye'  class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabList" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
+				<view v-if="!ite.limit||ite.limit&&checkPermi([ite.limit])"  class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabList" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
+				<!-- <view v-if='!isqiye'  class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabList" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
 				<view v-if='isqiye' class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabLists" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
-				
+				 -->
 			</view>
 			<view style="height:116rpx;" v-if="fixedflag"></view>
 			<!-- 企业信息 -->
@@ -281,8 +282,8 @@
 				gdicoimg:require('@/work/static/images/gdico.png'),
 				tabval:0,
 				type:'',
-				tabList:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3},{tit:"文件出具",val:4},{tit:"审核信息",val:5},],
-				tabLists:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3}],
+				tabList:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3},{tit:"文件出具",val:4,limit:'system:system:user'},{tit:"审核信息",val:5,limit:'system:system:user'},],
+				// tabLists:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3}],
 				stepList:[],
 				stepval:0,
 				gdflag:false,
@@ -407,15 +408,20 @@
 			})
 			this.init()
 			this.getDetail();
-			this.getScheduleList();
+			if(checkPermi(['system:schedule:list'])){
+				this.getScheduleList();;//贷款进度
+			}
 			if(checkPermi(['system:hyperlink:list'])){
 				this.getHyperlinkList();//外部链接stepval==5	
 			}
 			if(checkPermi(['system:user:noPageList'])){
 				this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
 			}
-			// this.getCommentsList()//审核意见
-			this.getInfolis()
+			if(checkPermi(['system:system:user']&&checkPermi(['system:application:schedule']))){
+				this.getCommentsList()//审核意见
+			}
+			
+			// this.getInfolis()
 		},
 		mounted() {
 			var that=this;
@@ -438,19 +444,19 @@
 			}
 		},
 		methods:{
-			getInfolis() {
-				 getInfo().then(res=>{
-				 	if(res.code==200){
-						if(res.roles != null && res.roles[0] == 'qy_user'){
-							this.isqiye = true
-						}else{
-							this.isqiye = false;
-							this.getCommentsList()
-						}
+			// getInfolis() {
+			// 	 getInfo().then(res=>{
+			// 	 	if(res.code==200){
+			// 			if(res.roles != null && res.roles[0] == 'qy_user'){
+			// 				this.isqiye = true
+			// 			}else{
+			// 				this.isqiye = false;
+			// 				this.getCommentsList()
+			// 			}
 				 		
-				 	}
-				 })
-			},
+			// 	 	}
+			// 	 })
+			// },
 			checkPermi, checkRole,
 			kaType(ite,list){
 				return selectValue(list, ite);
@@ -1037,9 +1043,18 @@
 						if(res.data.sysUserEnterprise){
 							this.qyinfo=res.data.sysUserEnterprise
 						}
-						
 						if(res.data.basicFj){
-							this.basicFj=res.data.basicFj;
+							// 数据处理
+							var basicFj=res.data.basicFj;
+							Object.keys(basicFj).some((key) => {
+								// 公司章程,企业征信,企业法人,实际控股人,配偶征信,个人征信
+								if(key=='gszc'||key=='sqqyzxbg'||key=='glqyzxbg'||key=='qyfrzxbg'||key=='sjkgrzxbg'||key=='sjkgrpozxbg'||key=='fdbrgrzxbg'){
+									basicFj[key]=basicFj[key].filter((ite) => {
+										return ite.remark==1||this.getFilterFj(ite.url);
+									})
+								}
+							})
+							this.basicFj=basicFj;
 						}
 						this.stepval=res.data.loanSchedule||0;
 						// var auditSchedule=res.data.auditSchedule
@@ -1053,6 +1068,17 @@
 					}
 				})
 			},
+			// 数据处理
+			getFilterFj(url){
+				let index1 = url.lastIndexOf("."); // 得到一个索引值
+				let index2 = url.length;
+				let type = url.substring(index1, index2);
+				if ((type.indexOf('jpg') >-1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
+					return false
+				}else{
+					return true
+				}
+			},
 			getHeightFn(){
 				let query = uni.createSelectorQuery().in(this);
 				//需要给黄色区域设置一个id标识,在这里是demo