DESKTOP-70VPDLK\Administrator 1 anno fa
parent
commit
02e4e60a15

+ 41 - 33
page_task/task_details/module/property.vue

@@ -9,26 +9,26 @@
 						<text class="sys-weight-600 m-l10">房产信息</text>
 					</view>
 					<view class="property-box-one r-20 m-t30 p-20">
-						<view class="">
+						<view class="" v-if="verifyKey('property_owner')">
 							<text class="size-32 color-11003B sys-weight-600">{{property.data.property_owner}}</text>
 							<text class="size-24 color-6E6686 m-l10">产权人</text>
 						</view>
 						<view class="size-26 m-tb10">
-							<text class="capsule">{{property.data.house_city}}</text>
-							<text class="capsule">{{property.data.build_date}}年建</text>
-							<text class="capsule">{{property.data.covered_area}}m²</text>
+							<text class="capsule" v-if="verifyKey('house_city')">{{property.data.house_city}}</text>
+							<text class="capsule" v-if="verifyKey('build_date')">{{property.data.build_date}}年建</text>
+							<text class="capsule" v-if="verifyKey('covered_area')">{{property.data.covered_area}}m²</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
-							<view class="">
+							<view class="" v-if="verifyKey('deed_num')">
 								<text class="text-color-666">房产证号</text>
 								<text class="m-l10">{{property.data.deed_num}}</text>
 							</view>
-							<view class="row-c m-tb20">
+							<view class="row-c m-tb20" v-if="verifyKey('is_pay')">
 								<image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/money.png" mode="aspectFill">
 								</image>
 								<text>{{property.data.is_pay===1?'已支付材料费':'未支付材料费'}}</text>
 							</view>
-							<view class="row m-t20">
+							<view class="row m-t20" v-if="verifyKey('house_city')">
 								<image class="wh-30 m-r20 p-t6" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/address-two.png"
 									mode="aspectFill">
 								</image>
@@ -39,7 +39,7 @@
 <!--									</image>-->
 								</view>
 							</view>
-							<view class="sys-from-background-color m-t20 p-20 r-20">
+							<view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('certificate_img')">
 								<view class="m-b20">房产证件</view>
 								<view class="row-c">
 <!--									<image class="picture m-r20 r-10" :src="property.data.certificate_img"-->
@@ -65,26 +65,26 @@
 						<view class="dot"></view>
 						<text class="sys-weight-600 m-l10">保单信息</text>
 					</view>
-					<view class="property-box-two r-20 m-t30 p-20">
+					<view class="property-box-two r-20 m-t30 p-20" v-if="verifyKey('insurance_name')">
 						<view class="">
 							<text class="size-32 color-11003B sys-weight-600">{{property.data.insurance_name}}</text>
 							<text class="size-24 color-6E6686 m-l10">公司</text>
 						</view>
 						<view class="size-26 m-tb10">
-							<text class="capsule two-text">{{property.data.insurance_type}}</text>
-							<text class="capsule two-text">{{property.data.year_money}}元/年</text>
+							<text class="capsule two-text" v-if="verifyKey('insurance_type')">{{property.data.insurance_type}}</text>
+							<text class="capsule two-text" v-if="verifyKey('year_money')">{{property.data.year_money}}元/年</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
-							<view class="">
+							<view class="" v-if="verifyKey('validity_date')">
 								<text class="text-color-666">有效期</text>
 								<text class="m-l10">{{property.data.validity_date}}</text>
 							</view>
-							<view class="row-c m-tb20">
+							<view class="row-c m-tb20" v-if="verifyKey('is_fees')">
 								<image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/money.png" mode="aspectFill">
 								</image>
 								<text>{{property.data.is_fees===1?'满足缴费情况':'未满足缴费情况'}}</text>
 							</view>
-							<view class="sys-from-background-color m-t20 p-20 r-20">
+							<view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('insurance_img')">
 								<view class="m-b20">保单照片</view>
 								<view class="row-c">
                   <en-image :img="property.data.insurance_img"></en-image>
@@ -101,40 +101,40 @@
 						<text class="sys-weight-600 m-l10">车辆信息</text>
 					</view>
 					<view class="property-box-three r-20 m-t30 p-20">
-						<view class="">
+						<view class="" v-if="verifyKey('brand_name')">
 							<text class="size-32 color-11003B sys-weight-600">{{property.data.brand_name}}</text>
 							<text class="size-24 color-6E6686 m-l10">品牌</text>
 						</view>
 						<view class="size-26 m-tb10">
-							<text class="capsule two-text">{{property.data.colour}}</text>
-							<text class="capsule two-text">{{property.data.register_date}}年登记</text>
-							<text class="capsule two-text">{{property.data.car_price}}万元</text>
+							<text class="capsule two-text" v-if="verifyKey('colour')">{{property.data.colour}}</text>
+							<text class="capsule two-text" v-if="verifyKey('register_date')">{{property.data.register_date}}年登记</text>
+							<text class="capsule two-text" v-if="verifyKey('car_price')">{{property.data.car_price}}万元</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
-							<view class="">
+							<view class="" v-if="verifyKey('car_num')">
 								<text class="text-color-666">车牌号</text>
 								<text class="m-l10">{{property.data.car_num}}</text>
 							</view>
-							<view class="m-tb16">
+							<view class="m-tb16" v-if="verifyKey('car_vin')">
 								<text class="text-color-666">车架号</text>
 								<text class="m-l10">{{property.data.car_vin}}</text>
 							</view>
-							<view class="">
+							<view class="" v-if="verifyKey('car_type')">
 								<text class="text-color-666">车牌类型</text>
 								<text class="m-l10">{{property.data.car_type===1?'运营车':'非运营车'}}</text>
 							</view>
 							<view class="sys-from-background-color m-t20 p-20 r-20">
-								<view class="row-c">
+								<view class="row-c" v-if="verifyKey('register_img')">
 									<view class="">
 										<text class="size-24">行驶证</text>
                     <en-image :img="property.data.register_img"></en-image>
 									</view>
-									<view class="m-l20">
+									<view class="m-l20" v-if="verifyKey('driving_img')">
 										<text class="size-24">车辆登记证</text>
                     <en-image :img="property.data.driving_img"></en-image>
 									</view>
 								</view>
-								<view class="row-c">
+								<view class="row-c" v-if="verifyKey('car_img')">
 									<view class="">
 										<view class="size-24 m-t20">车辆照片</view>
 										<view class="row-c m-t10" style="flex-wrap: wrap;">
@@ -153,32 +153,32 @@
 						<text class="sys-weight-600 m-l10">企业信息</text>
 					</view>
 					<view class="property-box-four r-20 m-t30 p-20">
-						<view class="">
+						<view class="" v-if="verifyKey('firm_name')">
 							<text class="size-32 color-11003B sys-weight-600">{{property.data.firm_name}}</text>
 						</view>
 						<view class="size-26 m-tb10">
-							<text class="capsule two-text">{{property.data.establish_city}}</text>
-							<text class="capsule two-text">{{property.data.establish_date}}成立</text>
+							<text class="capsule two-text" v-if="verifyKey('establish_city')">{{property.data.establish_city}}</text>
+							<text class="capsule two-text" v-if="verifyKey('establish_date')">{{property.data.establish_date}}成立</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
-							<view class="">
+							<view class="" v-if="verifyKey('year_tax')">
 								<text class="text-color-666">年交税额</text>
 								<text class="m-l10">{{property.data.year_tax}}元</text>
 							</view>
-							<view class="m-tb16">
+							<view class="m-tb16" v-if="verifyKey('year_invoice')">
 								<text class="text-color-666">年开票额</text>
 								<text class="m-l10">{{property.data.year_invoice}}元</text>
 							</view>
-							<view class="">
+							<view class="" v-if="verifyKey('tax_grade_name')">
 								<text class="text-color-666">税务登记</text>
 								<text class="m-l10">{{property.data.tax_grade_name}}级</text>
 							</view>
-							<view class="row-c m-tb20">
+							<view class="row-c m-tb20" v-if="verifyKey('is_end_tax')">
 								<image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/money.png" mode="aspectFill">
 								</image>
 								<text>{{property.data.is_end_tax===1?'无税务断缴情况':'有税务断缴情况'}}</text>
 							</view>
-							<view class="row m-t20">
+							<view class="row m-t20" v-if="verifyKey('establish_address')">
 								<image class="wh-30 m-r20 p-t6" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/address-two.png"
 									mode="aspectFill">
 								</image>
@@ -188,7 +188,7 @@
 										mode="aspectFill"></image>
 								</view>
 							</view>
-							<view class="sys-from-background-color m-t20 p-20 r-20">
+							<view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('firm_img')">
 								<view class="size-24">企业照片</view>
 								<view class="row-c m-t10" style="flex-wrap: wrap;">
                   <en-image :img="property.data.firm_img"></en-image>
@@ -213,10 +213,18 @@
 			propertyList: {
 				default: []
 			},
+      propertyKey:{
+        default: []
+      }
 		},
 		data() {
 			return {}
 		},
+    methods: {
+      verifyKey(key){
+        return this.tripartiteKey.indexOf(key)>=0
+      }
+    },
 	}
 </script>
 

+ 1 - 1
page_task/task_details/task_details.vue

@@ -56,7 +56,7 @@
 				<view class="" v-if="current === 2">
 					<z-swiper v-model="lists" :options="options">
 						<z-swiper-item>
-							<Property :property-list="propertyList"></Property>
+							<Property :property-list="propertyList" :property-key="propertyKey"></Property>
 						</z-swiper-item>
 					</z-swiper>
 				</view>