zouling 11 місяців тому
батько
коміт
a45376820b

+ 30 - 2
work/components/business/bfrxx.vue

@@ -9,7 +9,7 @@
 			<view class="txt">用户类型:<text>{{kaType(datainfo.customerType,yhlxlist)}}</text></view>
 		</view>
 		<view class="txt">身份证号:<text>{{datainfo.corporationIdCard}}</text>
-			<text class="txta ml8" v-if="datainfo.corporationFront" @click="getDown(datainfo.corporationFront)">查看照片</text>
+			<text class="txta ml8" v-if="datainfo.corporationFront||datainfo.corporationBack" @click="getDownGd(datainfo,'fasfz')">查看照片</text>
 		</view>
 		<view class="txt">居住地址:<text>{{datainfo.corporationAddress}}</text></view>
 		<view class="txt">证件有效期:<text>{{datainfo.corporationExpirationDate}}</text></view>
@@ -36,7 +36,7 @@
 			<view class="txt">配偶姓名:<text>{{datainfo.spouseName}}</text></view>
 		</view>
 		<view class="txt">配偶身份证号:<text>{{datainfo.spouseIdCard}}</text>
-			<text class="txta ml8" v-if="datainfo.spouseFront" @click="getDown(datainfo.spouseFront)">查看照片</text>
+			<text class="txta ml8" v-if="datainfo.spouseFront||datainfo.spouseBack" @click="getDownGd(datainfo,'posfz')">查看照片</text>
 		</view>
 		<view class="txt flext">结婚证:
 			<view class="flex1 over">
@@ -88,6 +88,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"
@@ -139,6 +141,32 @@
 		getPreview(url){
 			this.$emit('getPreview',url)
 		},
+		getDownGd(ite,type){
+			var url=[]
+			if(type=='fasfz'){
+				if(ite.corporationFront){
+					var urla=baseUrl+ite.corporationFront;
+					url.push(urla)
+				}
+				if(ite.corporationBack){
+					var urlb=baseUrl+ite.corporationBack;
+					url.push(urlb)
+				}
+			}else if(type=='posfz'){
+				if(ite.spouseFront){
+					var urla=baseUrl+ite.spouseFront;
+					url.push(urla)
+				}
+				if(ite.spouseBack){
+					var urlb=baseUrl+ite.spouseBack;
+					url.push(urlb)
+				}
+			}
+			uni.previewImage({
+				current: 0,
+				urls: url,
+			});
+		},
 	},
 	
   }

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

@@ -29,7 +29,7 @@
 			</view>
 			<view class="mb16">
 				<view class="ttxt mb18">审核意见</view>
-				<textarea class="textar" style="height: 156rpx;" v-model="shtext" placeholder="若不同意进入初审,请填写理由…"></textarea>
+				<textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若不同意进入初审,请填写理由…"></textarea>
 			</view>
 			<block v-if="isty!=3">
 				<view class="mb16">
@@ -76,7 +76,7 @@
 			</view>
 			<view >
 				<view class="ttxt mb18">审核意见</view>
-				<textarea class="textar" style="height: 156rpx;" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
+				<textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
 			</view>
 			<view class="btns" @click="getupSubmit">确认</view>
 			<view class="shtips" v-if="type=='ajssh'">* 提交后将交由B角复核,误操可撤回</view>
@@ -94,7 +94,7 @@
 			</view>
 			<view class="mb16">
 				<view class="ttxt mb18">审核意见</view>
-				<textarea class="textar" style="height: 156rpx;" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
+				<textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="若资料不予通过,请填写理由…"></textarea>
 			</view>
 			<view class="btns" @click="getupSubmit">确认</view>
 		</view>
@@ -149,7 +149,7 @@
 			</view>
 			<view class="mb16">
 				<view class="ttxt mb18">审核意见</view>
-				<textarea class="textar" v-model="shtext" style="height: 156rpx;" placeholder="若不同意上会,请填写理由…"></textarea>
+				<textarea class="textar" v-model="shtext" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" placeholder="若不同意上会,请填写理由…"></textarea>
 			</view>
 			<view class="mb16" v-if="isty!=3">
 				<view class="ttxt mb18 flexcj">上会人员
@@ -367,7 +367,7 @@
 			<view class="ttit">风险审核</view>
 			<view class="mb16">
 				<view class="ttxt mb18">暂缓原因</view>
-				<textarea class="textar" style="height: 156rpx;" v-model="shtext" placeholder="请填写理由…"></textarea>
+				<textarea class="textar" style="min-height: 156rpx;" maxlength="-1" autoHeight="true" v-model="shtext" placeholder="请填写理由…"></textarea>
 			</view>
 			<view class="btns" @click="getupSubmit">确认</view>
 		</view>

+ 18 - 11
work/pages/business/add.vue

@@ -2,12 +2,15 @@
 	<view class="addbox" :style="'padding-top:'+listTop+'rpx;'">
 		<!-- 步骤条 -->
 		<view class="navtop">
-			<uni-nav-bar color="#ffffff" leftWidth="160rpx" rightWidth="160rpx" @clickLeft="getBack"   title="业务申报" :background-color="actcolor" :border="false"
+			<uni-nav-bar color="#ffffff" leftWidth="160rpx" rightWidth="160rpx"   title="业务申报" :background-color="actcolor" :border="false"
 				 statusBar='true'>
 				<block slot="left">
-					<view class="topl">
-						<image :src="backimg" ></image>
+					<view class="topl" v-if="ftype" @click="getBack">
+						<image class="backimg" :src="backimg" ></image>
 					</view>
+					<cover-view class="topl" v-else @click="getBack">
+						<cover-image class="backimg" :src="backimg" @click.stop="getBack"></cover-image>
+					</cover-view>
 				</block>
 				<!-- #ifndef MP-WEIXIN -->
 				<block slot="right">
@@ -1796,13 +1799,17 @@
 				});
 			},
 			statusFormats(ite,list,type){//多选匹配
-				var actions = [];
-				list.forEach(s => {
-					if(ite.indexOf(s.value)>-1){
-						actions.push(s.label);
-					}
-				})
-				return actions.join(',')
+				if(ite){
+					var actions = [];
+					list.forEach(s => {
+						if(ite.indexOf(s.value)>-1){
+							actions.push(s.label);
+						}
+					})
+					return actions.join(',')
+				}else{
+					return ''
+				}
 			},
 			statusFormat(ite,list,type) {
 				var aite=selectValueKey(list, ite);
@@ -2624,7 +2631,7 @@
 	position: fixed;left:0;right: 0;top: 0;z-index: 2;
 }
 .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
-	image{width: 40rpx;height: 30rpx;}
+	.backimg{width: 40rpx;height: 30rpx;}
 }
 .edit{font-weight: 500;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;
 	image{width: 24rpx;height: 26rpx;margin-right: 10rpx;}

+ 35 - 20
work/pages/business/details.vue

@@ -427,7 +427,7 @@
 			if(checkPermi(['system:user:noPageList'])){
 				this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
 			}
-			if(checkPermi(['system:system:user']&&checkPermi(['system:application:schedule']))){
+			if(checkPermi(['system:system:user']&&checkPermi(['system:comments:list']))){
 				this.getCommentsList()//审核意见
 			}
 			
@@ -469,13 +469,17 @@
 			// },
 			checkPermi, checkRole,
 			statusFormats(ite,list,type){//多选匹配
-				var actions = [];
-				list.forEach(s => {
-					if(ite.indexOf(s.value)>-1){
-						actions.push(s.label);
-					}
-				})
-				return actions.join(',')
+				if(ite){
+					var actions = [];
+					list.forEach(s => {
+						if(ite.indexOf(s.value)>-1){
+							actions.push(s.label);
+						}
+					})
+					return actions.join(',')
+				}else{
+					return ''
+				}	
 			},
 			kaType(ite,list){
 				return selectValue(list, ite);
@@ -905,19 +909,30 @@
 			//授权
 			getAuthorize(data){
 				var that=this;
-				var params={};
-				params.loanApplicationId=this.id;
-				params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
-				getAuthorize(params).then(res=>{
-					if(res.code==200){
-						that.$toast('授权成功')
-						setTimeout(function(){
-							that.getDetail();
-							uni.$emit('refreshdatalist')
-							that.type=''
-						},1200)
+				uni.showModal({
+					title: '确认授权',
+					content: "是否授权A角提前开放款通知书?",
+					cancelText: '取消',
+					confirmText: '确认',
+					success: function(res) {
+						if (res.confirm) {
+							var params={};
+							params.loanApplicationId=that.id;
+							params.loanApplicationNumber=that.datainfo.loanApplicationNumber;
+							getAuthorize(params).then(res=>{
+								if(res.code==200){
+									that.$toast('授权成功')
+									setTimeout(function(){
+										that.getDetail();
+										uni.$emit('refreshdatalist')
+										that.type=''
+									},1200)
+								}
+							})	
+						} else if (res.cancel) {
+						}
 					}
-				})	
+				});
 			},
 			getShFn(type){
 				this.type=type;