USER-20230908AJ\Administrator před 1 rokem
rodič
revize
bea43edb8b

+ 32 - 15
page_task/task_details/module/apply.vue

@@ -8,30 +8,39 @@
 				</view>
 				<view class="sys-from-background-color r-30 p-20 m-t30 row">
 					<view style="width: 50%;">
-						<view class="m-tb16">
+            <view class="m-tb16" v-if="applyFor.out_total>0">
+              <text class="text-color-666">批复额度</text>
+              <text class="m-l16">{{applyFor.out_total}}万元</text>
+            </view>
+            <view class="m-tb16" v-if="applyFor.returned_total>0">
+              <text class="text-color-666">回款额度</text>
+              <text class="m-l16">{{applyFor.returned_total}}万元</text>
+            </view>
+
+            <view class="m-tb16" v-if="verifyKey('is_farming')">
 							<text class="text-color-666">是否涉农</text>
 							<text class="m-l16">{{applyFor.is_farming===1?'是':'否'}}</text>
 						</view>
 
-						<view class="row m-tb16">
+						<view class="row m-tb16" v-if="verifyKey('loan_form')">
 							<text class="text-color-666">贷款类型</text>
 							<text class="m-l16 flex">{{applyFor.loan_form_name}}</text>
 						</view>
-						<view class="row">
+						<view class="row" v-if="verifyKey('loan_industry')">
 							<text class="text-color-666">投向行业</text>
 							<text class="m-l16 flex">{{applyFor.loan_industry_name}}</text>
 						</view>
 					</view>
 					<view class="m-l40" style="width: 50%;">
-						<view class="m-tb16">
+						<view class="m-tb16" v-if="verifyKey('loan_type')">
 							<text class="text-color-666">贷款类别</text>
 							<text class="m-l16">{{applyFor.loan_type_name}}</text>
 						</view>
-						<view class="m-b16">
+						<view class="m-b16" v-if="verifyKey('pay_status')">
 							<text class="text-color-666">支付状态</text>
 							<text class="m-l16">{{applyFor.pay_status===1?'已缴纳':'未缴纳'}}</text>
 						</view>
-						<view class="row">
+						<view class="row" v-if="verifyKey('enterprise_type')">
 							<text class="text-color-666">企业类型</text>
 							<text class="m-l16 flex">{{applyFor.enterprise_type_name}}</text>
 						</view>
@@ -49,25 +58,25 @@
 						<text>申请类型:</text>
 						<text class="sys-weight-600">{{(applyItem.apply_type*1===1?'抵押':'买卖')}}</text>
 					</view>
-					<view class="sys-background-fff row-justify-sb center r-20 p-30 p-lr40 m-tb20">
-						<view class="column-c color-653400">
+					<view class="sys-background-fff row-justify-sb center r-20 p-30 p-lr40 m-tb20" v-if="applyItem.apply_type*1===2">
+						<view class="column-c color-653400" v-if="verifyKey('transaction')">
 							<text class="sys-weight-600">{{applyItem.transaction}}</text>
 							<text class="size-24">成交价</text>
 						</view>
-						<view class="column-c color-653400">
+						<view class="column-c color-653400" v-if="verifyKey('pricing')">
 							<text class="sys-weight-600">{{applyItem.pricing}}</text>
 							<text class="size-24">定金</text>
 						</view>
-						<view class="column-c color-653400">
+						<view class="column-c color-653400" v-if="verifyKey('supervise')">
 							<text class="sys-weight-600">{{applyItem.supervise}}</text>
 							<text class="size-24">资金监管</text>
 						</view>
-						<view class="column-c color-653400">
+						<view class="column-c color-653400" v-if="verifyKey('reply_type')">
 							<text class="sys-weight-600">{{applyItem.reply_type===1?'商业':'组合'}}</text>
 							<text class="size-24">批复类型</text>
 						</view>
-						<view class="column-c color-653400">
-							<text class="sys-weight-600">{{applyItem.intermediary}}</text>
+						<view class="column-c color-653400"  v-if="verifyKey('intermediary')">
+							<text class="sys-weight-600">{{applyItem.intermediary?applyItem.intermediary:'无'}}</text>
 							<text class="size-24">成交中介</text>
 						</view>
 					</view>
@@ -76,11 +85,11 @@
 						<text class="capsule sys-weight-600">{{applyItem.propertyName}}</text>
 					</view>
 					<view class="message-box r-20 p-20 m-t20"
-						v-for="(repayment,repaymentKey) in applyItem.repayment_data" :key="index">
+						v-for="(repayment,repaymentKey) in applyItem.repayment_data" :key="repaymentKey">
 						<view class="">
 							<text
 								class="sys-weight-600">{{(applyItem.apply_type*1===1?'还款信息':'监管银行卡信息')+'('+(repaymentKey+1)+')'}}</text>
-							<text class="m-l20" v-if="applyItem.apply_type*1===1">还款金额 {{repayment.money}}万</text>
+							<text class="m-l20" v-if="applyItem.apply_type*1===1">还款金额 {{repayment.money}}万</text>
 						</view>
 						<view class="row-c m-t16">
 							<image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/task-put.png" mode=""></image>
@@ -115,6 +124,9 @@
 			applyFor: {
 				default: {}
 			},
+      appliesKey:{
+        default: []
+      }
 		},
 		data() {
 			return {
@@ -133,6 +145,11 @@
 				}]
 			}
 		},
+    methods: {
+      verifyKey(key){
+        return this.appliesKey.indexOf(key)>=0
+      }
+    },
 	}
 </script>
 

+ 18 - 10
page_task/task_details/module/third_party.vue

@@ -14,15 +14,13 @@
 								<text class="text-color-666">担保类型</text>
 								<text class="m-l16">个人</text>
 							</view>
-							<view class="m-l40">
+							<view class="m-l40" v-if="verifyKey('name')">
 								<text class="text-color-666">担保人姓名</text>
 								<text class="m-l16">{{item.name}}</text>
 							</view>
 						</view>
-						<view class="row-c m-t20">
-							<image class="card r-20" :src="item.identity_one" mode="aspectFill"></image>
-							<image class="card r-20 m-l20" :src="item.identity_two" mode="aspectFill">
-							</image>
+						<view class="row-c m-t20" v-if="verifyKey('identity_one')">
+              <EnImage :list="[item.identity_one,item.identity_two]"></EnImage>
 						</view>
 					</view>
 					<!-- 担保类型 -->
@@ -31,16 +29,15 @@
 							<text class="text-color-666">担保类型</text>
 							<text class="m-l16">企业</text>
 						</view>
-						<view class="m-tb16">
+						<view class="m-tb16" v-if="verifyKey('name')">
 							<text class="text-color-666">企业名称</text>
 							<text class="m-l16">{{item.name}}</text>
 						</view>
-						<view class="">
+						<view class="" v-if="verifyKey('id_number')">
 							<text class="text-color-666">营业执照编号</text>
 							<text class="m-l16">{{item.id_number}}</text>
 						</view>
-						<image class="card r-20 m-t20" :src="item.identity_one" mode="aspectFill">
-						</image>
+              <EnImage v-if="verifyKey('identity_one')" :list="[item.identity_one]"></EnImage>
 					</view>
 				</view>
 				<view class="m-t20 color-4A2600">
@@ -63,15 +60,26 @@
 </template>
 
 <script>
-	export default {
+	import EnImage from "@/components/en-utils/en-image/en-image.vue";
+
+  export default {
+    components: {EnImage},
 		props: {
 			tripartite: {
 				default: []
 			},
+      tripartiteKey:{
+        default :[]
+      }
 		},
 		data() {
 			return {}
 		},
+    methods: {
+      verifyKey(key){
+        return this.tripartiteKey.indexOf(key)>=0
+      }
+    },
 	}
 </script>
 

+ 2 - 2
page_task/task_details/task_details.vue

@@ -47,10 +47,10 @@
 						<Identity :business="business" :linkman="linkman" :client-key="clientKey" :linkman-key="linkmanKey"></Identity>
 					</z-swiper-item>
 					<z-swiper-item v-show="product.product_types.indexOf('3')>=0">
-						<Apply :apply-for="applyFor"></Apply>
+						<Apply :apply-for="applyFor" :applies-key="appliesKey"></Apply>
 					</z-swiper-item>
 					<z-swiper-item  v-show="product.product_types.indexOf('4')>=0">
-						<ThirdParty :tripartite="tripartite"></ThirdParty>
+						<ThirdParty :tripartite="tripartite" :tripartite-key="tripartiteKey"></ThirdParty>
 					</z-swiper-item>
 				</z-swiper>
 				<view class="" v-if="current === 2">