zouling 11 月之前
父節點
當前提交
bb37411dc7

+ 4 - 0
pages/work/index.vue

@@ -108,6 +108,7 @@
 			sdyhid:'',
 			sbnd:'',//申报年度
 			sdyhidx:'',
+			userId:this.$store.state.user.userId,
 		}
 	},
 	onPageScroll(e) {
@@ -274,6 +275,9 @@
 			if(this.sdyh){
 				params.applicationBank=this.sdyhid
 			}
+			if(!checkPermi(['system:system:user'])){
+				params.userId=this.userId
+			}
 			// 业务 是归档后 的数据
 			getApplicationList(params).then(res=>{
 				if(res.code==200){

+ 5 - 5
uni_modules/lsj-upload/components/lsj-upload/LsjFile.js

@@ -47,11 +47,11 @@ export class LsjFile {
 				}
 				dom.onchange = event => {
 					for (let file of event.target.files) {
-						if (this.files.size >= this.prohibited.count) {
-							this.toast(`只允许上传${this.prohibited.count}个文件`);
-							this.dom.value = '';
-							break;
-						}
+						// if (this.files.size >= this.prohibited.count) {
+						// 	this.toast(`只允许上传${this.prohibited.count}个文件`);
+						// 	this.dom.value = '';
+						// 	break;
+						// }
 						this.addFile(file);
 					}
 					

+ 5 - 5
uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue

@@ -21,7 +21,7 @@ export default {
 		// 文件大小上限
 		size: { type: Number, default: 10 },
 		// 文件选择个数上限,超出后不触发点击
-		count: { type: Number, default: 9 },
+		count: { type: Number, default: 10000 },
 		// 允许上传的文件格式(多个以逗号隔开)
 		formats: { type: String, default:''},
 		// input file选择限制
@@ -288,10 +288,10 @@ export default {
 		},
 		// 点击选择附件
 		onClick() {
-			if (this._size >= this.count) {
-				this.toast(`只允许上传${this.count}个文件`);
-				return;
-			}
+			// if (this._size >= this.count) {
+			// 	this.toast(`只允许上传${this.count}个文件`);
+			// 	return;
+			// }
 			
 			// #ifdef MP-WEIXIN
 			if (!this.isShow) {return;}

+ 5 - 5
uni_modules/lsj-upload/hybrid/html/uploadFile.html

@@ -79,11 +79,11 @@
 					onChange(e) {
 						let fileDom = this.$refs.file;
 						for (let file of fileDom.files) {
-							if (this.files.size >= this.prohibited.count) {
-								this.toast(`只允许上传${this.prohibited.count}个文件`);
-								fileDom.value = '';
-								break;
-							}
+							// if (this.files.size >= this.prohibited.count) {
+							// 	this.toast(`只允许上传${this.prohibited.count}个文件`);
+							// 	fileDom.value = '';
+							// 	break;
+							// }
 							this.addFile(file);
 						}
 						this.uploadAfter();

+ 25 - 14
work/pages/business/add.vue

@@ -862,7 +862,7 @@
 				</view>
 				<block v-for="(ite,idx) in sbfjlist" :key="ite.val">
 					<!-- 委托担保申请书 -->
-					<view class="bgf plr12 mb12" v-if="ite.val=='wtdbsqs'||ite.val=='gdhyjy'">
+					<!-- <view class="bgf plr12 mb12" v-if="ite.val=='wtdbsqs'||ite.val=='gdhyjy'">
 						<view class="fjbox">
 							<view class="fjtop flext">
 								<view class="ftit"><text>*</text>{{ite.label}}<text class="mtxt">(须面签)</text></view>
@@ -883,14 +883,13 @@
 										<view class="imgl"><image :src="filico" ></image></view>
 										<view class="tit">{{fite.name}}</view>
 									</view>
-									<!-- 删除 -->
 									<view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
 										<image :src="fdelimg"></image>
 									</view>
 								</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">
@@ -1420,9 +1419,6 @@
 				ywidx:0,
 				categoryId:'',//行业的id
 				rules:{
-				  // bonusType: {rules: [{required: true,errorMessage: '请选择加分类型'} ]},
-				  // score: {rules: [{required: true,errorMessage: '请输入分值'} ]},
-				  // bonusReason: {rules: [{required: true,errorMessage: '请输入加分事由'} ]},
 				},
 				gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}],
 				qylist:[],//企业列表
@@ -1458,8 +1454,8 @@
 				{tit:'户口簿首页',type:'frhkbsy'},
 				],
 				sqbtfiles:[
-					{tit:'委托担保申请书',type:'wtdbsqs'},
-				{tit:'股东会决议',type:'gdhyjy'},{tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
+					//{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'},
 				],
 				content:'',//小微企业富文本
@@ -1480,6 +1476,7 @@
 					titflag:true,
 					data: []
 				},
+				loadflag:false,
 			}
 		},
 		onUnload(){
@@ -1964,15 +1961,23 @@
 					}
 				})
 				params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
+				uni.showLoading({
+					title: '加载中'
+				});
+				this.loadflag=true;
 				getApplicationZc(params).then(res=>{
+					uni.hideLoading();
+					this.loadflag=false;
 					if(res.code==200){
 						this.ischange=false;
-						this.$toast('暂存成功')
+						
 						// 刷新列表
 						setTimeout(function(){
 							if(that.ptype=='add'){
+								that.$toast('暂存成功')
 								that.$tab.reLaunch('/pages/index/index') 
 							}else{
+								that.$toast('暂存成功,请稍后重新刷新')
 								uni.$emit('refreshywlist')
 								if(type&&type=='back'){
 									uni.navigateBack({
@@ -2008,7 +2013,14 @@
 							// this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
 						}
 						if(data.declareFj){
-							this.declareFj=data.declareFj;
+							var declareFj=data.declareFj;
+							Object.keys(declareFj).some((key) => {
+								declareFj[key]=declareFj[key].filter((ite) => {
+									return ite.remark!=1
+								})
+							})
+							this.declareFj=JSON.parse(JSON.stringify(declareFj));;
+							// this.declareFj=data.declareFj;
 						}
 						if(data.shareholderFjList){
 							var shFjList=[]
@@ -2039,6 +2051,9 @@
 			},
 			getSubmit(){
 				var that=this;
+				if(this.loadflag){
+					return
+				}
 					// 判断附件是否完整
 				var params=this.datainfo;
 				if(!params.enterpriseName){
@@ -2061,10 +2076,6 @@
 					this.$toast("请上传法人身份证国徽面")
 					return
 				}
-				// if(!params.corporationJob){
-				// 	this.$toast("请输入法人职业")
-				// 	return
-				// }
 				if(!params.isLoan){
 					this.$toast("请选择有无贷款")
 					return

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

@@ -74,7 +74,7 @@
 					<cfdbrxx @getDown="getDown" :datainfo="datainfo" :hyztlist="hyztlist" :basicFj="basicFj"></cfdbrxx>
 				</block>
 				<block v-if="tabval==3">
-					<dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="datainfo.declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
+					<dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
 				</block>
 				<block v-if="tabval==4">
 					<ewjcj @getDown="getDown" @getQmFn="getQmFn" :datainfo="datainfo"  @getDelwjFj="getDelwjFj" @getfjEdit="getfjEdit" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
@@ -201,7 +201,7 @@
 					<block v-if="stepval==7">
 						<view  @click="getIssureFn(12,'psyjqpb')">出具评审意见签批表</view>
 						<view  @click="getIssureFn(11,'gdhyjy')">出具股东会决议</view>
-						
+						<view  @click="getIssureFn(1,'wtdbsqs')">出具委托担保申请书</view>
 					</block>
 					<!-- 放款合规表 -->
 					<block v-if="checkRole(['auditing_risk','manager'])">
@@ -394,6 +394,7 @@
 				},
 				gdlists:[],//股东信息
 				basicFj:{},//基础附件 
+				declareFj:{},//申报附件
 				yhlxlist:[],//用户类型
 				hyztlist:[],//婚姻状态
 				sbfjlist:[],//申报附件
@@ -1136,14 +1137,28 @@
 							var basicFj=res.data.basicFj;
 							Object.keys(basicFj).some((key) => {
 								// a,b里面的全部都转pdf了
+								basicFj[key]=basicFj[key].filter((ite) => {
+									return ite.remark==1||this.getFilterFj(ite.url);
+								})
 								// 公司章程,企业征信,企业法人,实际控股人,配偶征信,个人征信,反担保企业征信
-								if(key=='gszc'||key=='sqqyzxbg'||key=='glqyzxbg'||key=='qyfrzxbg'||key=='sjkgrzxbg'||key=='sjkgrpozxbg'||key=='fdbrgrzxbg'||key=='fdbqyzx'){
-									basicFj[key]=basicFj[key].filter((ite) => {
-										return ite.remark==1||this.getFilterFj(ite.url);
-									})
-								}
+								// if(key=='gszc'||key=='sqqyzxbg'||key=='glqyzxbg'||key=='qyfrzxbg'||key=='sjkgrzxbg'||key=='sjkgrpozxbg'||key=='fdbrgrzxbg'||key=='fdbqyzx'){
+								// 	basicFj[key]=basicFj[key].filter((ite) => {
+								// 		return ite.remark==1||this.getFilterFj(ite.url);
+								// 	})
+								// }
+							})
+							this.basicFj=JSON.parse(JSON.stringify(basicFj));
+						}
+						if(res.data.declareFj){
+							// 数据处理
+							var declareFj=res.data.declareFj;
+							Object.keys(declareFj).some((key) => {
+								// a,b里面的全部都转pdf了
+								declareFj[key]=declareFj[key].filter((ite) => {
+									return ite.remark==1||this.getFilterFj(ite.url);
+								})
 							})
-							this.basicFj=basicFj;
+							this.declareFj=JSON.parse(JSON.stringify(declareFj));
 						}
 						this.stepval=res.data.loanSchedule||0;
 						// var auditSchedule=res.data.auditSchedule

+ 4 - 0
work/pages/business/hszlist.vue

@@ -47,6 +47,7 @@
 				shlist:[],//审核状态
 				dblxlist:[],//担保类型
 				shjdlist:[],//审核进度
+				userId:this.$store.state.user.userId,
 			}
 		},
 		onUnload() {
@@ -190,6 +191,9 @@
 				if(this.dblx){
 					params.guaranteeType=this.dblxid
 				}
+				if(!checkPermi(['system:system:user'])){
+					params.userId=this.userId
+				}
 				getApplicationList(params).then(res=>{
 					if(res.code==200){
 						if (res.rows.length < this.pageSize) {

+ 8 - 3
work/pages/business/list.vue

@@ -86,6 +86,7 @@
 				dblxlist:[],//担保类型
 				shjdlist:[],//审核进度
 				from:'',//从哪来的
+				userId:this.$store.state.user.userId,
 			}
 		},
 		onUnload() {
@@ -218,9 +219,13 @@
 					pageNum: this.pageNum,
 				}
 				params.loanApplicationType=2
-				// if(this.from&&this.from=='my'){
-					
-				// }else{
+				if(this.from&&this.from=='my'){
+					params.userId=this.userId
+				}
+				// if(!checkPermi(['system:system:user'])){
+				// 	params.userId=this.userId
+				// }
+				// else{
 				// 	params.loanApplicationType=2
 				// }
 				if(this.tabval!=0){

+ 18 - 8
work/pages/business/talbclass.vue

@@ -46,6 +46,7 @@
 				categoryName:'',//选择的名字
 				scrollTop: 0, //左侧导航栏距离顶部的位置
 				riscrollTop:0,//右侧导航栏距离顶部的位置
+				tabflag:false,
 			}
 		},
 		onLoad(e) {
@@ -70,9 +71,15 @@
 				})
 			},
 			menuTab(index){
-				var top=this.rectInfoList[index].top;
-				this.current = index;
+				var that=this;
+				var idx=Number(index)
+				var top=this.rectInfoList[idx].top;
+				this.current = idx;
 				this.riscrollTop = top;
+				this.tabflag=true;
+				setTimeout(function(){
+					that.tabflag=false;
+				},500)
 			},
 			getTabFn(ite){
 				this.ricurrent=ite.id;
@@ -92,10 +99,12 @@
 			},
 			// 获取与顶部之间的距离
 			getRectInfo() {
+				var that=this;
 				var top = 0;
 				var bottom = 0;
 				var temp = 0;
 				for (var i = 0; i < this.cateList.length; i++) {
+					var obj={}
 					let view = uni.createSelectorQuery().in(this).select("#cate" + i);
 					view.fields({
 						size: true,
@@ -104,10 +113,11 @@
 						top = temp;
 						bottom = top + data.height;
 						temp = bottom;
-						this.rectInfoList[i] = {
-							'top': top,
-							'bottom': bottom
+						var obj={
+							'top': Number(top),
+							'bottom': Number(bottom)
 						}
+						that.rectInfoList.push(obj)
 						// console.log(top, bottom);
 					}).exec();
 				}
@@ -115,10 +125,10 @@
 			getCurrentHeight(e) {
 				var currentHeight = e.detail.scrollTop;
 				this.rectInfoList.forEach((item, index) => {
-					if (currentHeight >= item.top && currentHeight <= item.bottom) {
+					if (currentHeight >= item.top && currentHeight <= item.bottom&&!this.tabflag) {
 						// 当前获取的盒子高度大于top小于bottom,判定将索引传至左侧菜单导航
-						this.current = index;
-						this.scrollTop = index * uni.upx2px(100);
+						this.current = Number(index);
+						this.scrollTop = Number(index) * uni.upx2px(100);
 					}
 				})
 			}

+ 4 - 0
work/pages/business/zclist.vue

@@ -47,6 +47,7 @@
 				shlist:[],//审核状态
 				dblxlist:[],//担保类型
 				shjdlist:[],//审核进度
+				userId:this.$store.state.user.userId,
 			}
 		},
 		onUnload() {
@@ -190,6 +191,9 @@
 				if(this.dblx){
 					params.guaranteeType=this.dblxid
 				}
+				if(!checkPermi(['system:system:user'])){
+					params.userId=this.userId
+				}
 				getApplicationList(params).then(res=>{
 					if(res.code==200){
 						if (res.rows.length < this.pageSize) {