USER-20230908AJ\Administrator 1 ano atrás
pai
commit
335709c958

+ 27 - 8
components/en-utils/en-image/en-image.vue

@@ -2,7 +2,7 @@
 	<view>
 		<view class="row">
 			<image class="image-item r-10 m-r20 m-b20" :style="[{width},{height}]" :src="item" mode="aspectFill"
-				v-for="(item,index) in list" @click="onPreviewImage(index)"></image>
+				v-for="(item,index) in imgList" @click="onPreviewImage(item)"></image>
 		</view>
 	</view>
 </template>
@@ -22,18 +22,37 @@
 				type: String,
 				default: '90rpx'
 			},
-			list: {
-				type: Array,
-				default: () => []
-			}
+			img: {
+				default: []
+			},
+      previewImage:{
+        default: []
+      }
 		},
 		data() {
-			return {}
+			return {
+        imgList:[]
+      }
 		},
-		methods: {
+    watch:{
+      'img':function () {
+        this.setImgList()
+      }
+    },
+    mounted() {
+      this.setImgList()
+    },
+    methods: {
+      setImgList(){
+        if(typeof this.img ==="string"){
+          this.imgList=[this.img]
+        }else {
+          this.imgList=this.img
+        }
+      },
 			onPreviewImage(index) {
 				uni.previewImage({
-					urls: this.list,
+					urls: this.previewImage?this.previewImage:this.imgList,
 					current: index
 				});
 			}

+ 5 - 5
page_task/task_details/module/identity.vue

@@ -106,17 +106,17 @@
 					<text class="size-26 sys-weight-600 m-l10">其他联系人信息</text>
 				</view>
 				<view class="sys-from-background-color row-justify-sb center m-t20 r-20 p-20 line-30"
-					v-for="(item,index) in 2">
+					v-for="(item,index) in linkman">
 					<view class="row-c">
 						<view class="num-item size-24">
 							{{index+1}}
 						</view>
-						<text class="size-26 m-lr20 sys-weight-600">张杰</text>
-						<view class="capsule sys-bg-BFD2CC m-l10 siz-24">{{'自雇'}}</view>
+						<text class="size-26 m-lr20 sys-weight-600">{{item.name}}</text>
+						<view class="capsule sys-bg-BFD2CC m-l10 siz-24">{{item.relation_name}}</view>
 					</view>
 					<view class="row-c">
 						<image class="wh-30 m-r10" src="/static/img/task-details/phone.png" mode=""></image>
-						<text class="size-26 text-color-333">15645646546</text>
+						<text class="size-26 text-color-333">{{item.phone}}</text>
 					</view>
 				</view>
 			</view>
@@ -133,7 +133,7 @@
 				default: {}
 			},
 			linkman: {
-				default: {}
+				default: []
 			},
 		},
 		components: {

+ 44 - 56
page_task/task_details/module/property.vue

@@ -14,7 +14,7 @@
 							<text class="size-24 color-6E6686 m-l10">产权人</text>
 						</view>
 						<view class="size-26 m-tb10">
-							<text class="capsule">{{property.data.house_city}}{{property.data.house_address}}</text>
+							<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>
 						</view>
@@ -26,36 +26,37 @@
 							<view class="row-c m-tb20">
 								<image class="wh-30 m-r20" src="/static/img/task-details/money.png" mode="aspectFill">
 								</image>
-								<text>{{property.data.remark}}</text>
+								<text>{{property.data.is_pay===1?'已支付材料费':'未支付材料费'}}</text>
 							</view>
 							<view class="row m-t20">
 								<image class="wh-30 m-r20 p-t6" src="/static/img/task-details/address-two.png"
 									mode="aspectFill">
 								</image>
 								<view class="flex">
-									<text class="flex">{{property.data.house_city}}</text>
-									<image class="card r-20 m-t20" src="/static/img/task-details/front.png"
-										mode="aspectFill">
-									</image>
+									<text class="flex">{{property.data.house_city}}{{property.data.house_address}}</text>
+<!--									<image class="card r-20 m-t20" src="/static/img/task-details/front.png"-->
+<!--										mode="aspectFill">-->
+<!--									</image>-->
 								</view>
 							</view>
 							<view class="sys-from-background-color m-t20 p-20 r-20">
 								<view class="m-b20">房产证件</view>
 								<view class="row-c">
-									<image class="picture m-r20 r-10" :src="property.data.certificate_img"
-										mode="aspectFill">
-									</image>
+<!--									<image class="picture m-r20 r-10" :src="property.data.certificate_img"-->
+<!--										mode="aspectFill">-->
+<!--									</image>-->
+                  <en-image :img="property.data.certificate_img"></en-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="property.data.property && property.data.property.length>0">
 								<view class="m-b20">房产关联图片</view>
 								<view class="row-c">
-									<image class="picture m-r20 r-10" :src="property.data.property" mode="aspectFill">
-									</image>
+<!--									<image class="picture m-r20 r-10" :src="property.data.property" mode="aspectFill">-->
+<!--									</image>-->
+                  <en-image :img="property.data.property"></en-image>
 								</view>
 							</view>
 						</view>
-						<image class="property-icon wh-100" :src="property.data.certificate_img" mode=""> </image>
 					</view>
 				</view>
 				<!-- 保单信息 -->
@@ -66,34 +67,30 @@
 					</view>
 					<view class="property-box-two r-20 m-t30 p-20">
 						<view class="">
-							<text class="size-32 color-11003B sys-weight-600">太平洋保险</text>
+							<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">人寿</text>
-							<text class="capsule two-text">8000元/年</text>
+							<text class="capsule two-text">{{property.data.insurance_type}}</text>
+							<text class="capsule two-text">{{property.data.year_money}}元/年</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
 							<view class="">
 								<text class="text-color-666">有效期</text>
-								<text class="m-l10">2024.10.23</text>
+								<text class="m-l10">{{property.data.validity_date}}</text>
 							</view>
 							<view class="row-c m-tb20">
 								<image class="wh-30 m-r20" src="/static/img/task-details/money.png" mode="aspectFill">
 								</image>
-								<text>满足缴费情况</text>
+								<text>{{property.data.is_fees===1?'满足缴费情况':'未满足缴费情况'}}</text>
 							</view>
 							<view class="sys-from-background-color m-t20 p-20 r-20">
 								<view class="m-b20">保单照片</view>
 								<view class="row-c">
-									<image class="picture m-r20 r-10" src="/static/img/logo.png" mode="aspectFill"
-										v-for="(item,index) in 3" :key="index">
-									</image>
+                  <en-image :img="property.data.insurance_img"></en-image>
 								</view>
 							</view>
 						</view>
-						<image class="property-icon wh-100" src="/static/img/task-details/property-two.png" mode="">
-						</image>
 					</view>
 				</view>
 
@@ -105,96 +102,88 @@
 					</view>
 					<view class="property-box-three r-20 m-t30 p-20">
 						<view class="">
-							<text class="size-32 color-11003B sys-weight-600">奔驰</text>
+							<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">白色</text>
-							<text class="capsule two-text">2020年登记</text>
-							<text class="capsule two-text">30万元</text>
+							<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>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
 							<view class="">
 								<text class="text-color-666">车牌号</text>
-								<text class="m-l10">渝A88888</text>
+								<text class="m-l10">{{property.data.car_num}}</text>
 							</view>
 							<view class="m-tb16">
 								<text class="text-color-666">车架号</text>
-								<text class="m-l10">CX584564</text>
+								<text class="m-l10">{{property.data.car_vin}}</text>
 							</view>
 							<view class="">
 								<text class="text-color-666">车牌类型</text>
-								<text class="m-l10">非运营车</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="">
 										<text class="size-24">行驶证</text>
-										<image class="picture m-t20 r-10" src="/static/img/logo.png" mode="aspectFill">
-										</image>
+                    <en-image :img="property.data.register_img"></en-image>
 									</view>
 									<view class="m-l20">
 										<text class="size-24">车辆登记证</text>
-										<image class="picture m-r20 m-t20 r-10" src="/static/img/logo.png"
-											mode="aspectFill">
-										</image>
+                    <en-image :img="property.data.driving_img"></en-image>
 									</view>
 								</view>
 								<view class="row-c">
 									<view class="">
 										<view class="size-24 m-t20">车辆照片</view>
 										<view class="row-c m-t10" style="flex-wrap: wrap;">
-											<image class="picture m-r20 r-10 m-t10" src="/static/img/logo.png"
-												mode="aspectFill" v-for="(item,index) in 5" :key="index">
-											</image>
+                      <en-image :img="property.data.car_img"></en-image>
 										</view>
 									</view>
 								</view>
 							</view>
 						</view>
-						<image class="property-icon wh-100" src="/static/img/task-details/property-three.png" mode="">
-						</image>
 					</view>
 				</view>
 				<!-- 企业信息 -->
 				<view v-else-if="property.property_type===4" class="m-t30">
 					<view class="row-c">
 						<view class="dot"></view>
-						<text class="sys-weight-600 m-l10">车辆信息</text>
+						<text class="sys-weight-600 m-l10">企业信息</text>
 					</view>
 					<view class="property-box-four r-20 m-t30 p-20">
 						<view class="">
-							<text class="size-32 color-11003B sys-weight-600">春航科技有限责任公司</text>
+							<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">白色</text>
-							<text class="capsule two-text">2020年登记</text>
-							<text class="capsule two-text">30万元</text>
+							<text class="capsule two-text">{{property.data.establish_city}}</text>
+							<text class="capsule two-text">{{property.data.establish_date}}成立</text>
 						</view>
 						<view class="sys-background-fff r-20 p-20">
 							<view class="">
 								<text class="text-color-666">年交税额</text>
-								<text class="m-l10">5000000元</text>
+								<text class="m-l10">{{property.data.year_tax}}元</text>
 							</view>
 							<view class="m-tb16">
 								<text class="text-color-666">年开票额</text>
-								<text class="m-l10">5000000元</text>
+								<text class="m-l10">{{property.data.year_invoice}}元</text>
 							</view>
 							<view class="">
 								<text class="text-color-666">税务登记</text>
-								<text class="m-l10">A</text>
+								<text class="m-l10">{{property.data.tax_grade_name}}级</text>
 							</view>
 							<view class="row-c m-tb20">
 								<image class="wh-30 m-r20" src="/static/img/task-details/money.png" mode="aspectFill">
 								</image>
-								<text>无税务断缴情况</text>
+								<text>{{property.data.is_end_tax===1?'无税务断缴情况':'有税务断缴情况'}}</text>
 							</view>
 							<view class="row m-t20">
 								<image class="wh-30 m-r20 p-t6" src="/static/img/task-details/address-two.png"
 									mode="aspectFill">
 								</image>
 								<view class="flex">
-									<text class="flex">四川省 成都市 武侯区 置信南街 61 号 兰园5栋 2 单元 5楼这是俩排的地</text>
+									<text class="flex">{{property.data.establish_address}}</text>
 									<image class="card r-20 m-t20" src="/static/img/task-details/front.png"
 										mode="aspectFill"></image>
 								</view>
@@ -202,14 +191,10 @@
 							<view class="sys-from-background-color m-t20 p-20 r-20">
 								<view class="size-24">企业照片</view>
 								<view class="row-c m-t10" style="flex-wrap: wrap;">
-									<image class="picture m-r20 r-10 m-t10" src="/static/img/logo.png" mode="aspectFill"
-										v-for="(item,index) in 3" :key="index">
-									</image>
+                  <en-image :img="property.data.firm_img"></en-image>
 								</view>
 							</view>
 						</view>
-						<image class="property-icon wh-100" src="/static/img/task-details/property-four.png" mode="">
-						</image>
 					</view>
 				</view>
 			</view>
@@ -218,7 +203,10 @@
 </template>
 
 <script>
-	export default {
+	import EnImage from "@/components/en-utils/en-image/en-image.vue";
+
+  export default {
+    components: {EnImage},
 		props: {
 			propertyList: {
 				default: {}

+ 1 - 1
page_task/task_details/task_details.vue

@@ -44,7 +44,7 @@
 			<view class="m-lr20 m-t20">
 				<z-swiper style="width: 95vw;" v-model="list" :options="options" v-if="current === 1">
 					<z-swiper-item>
-						<Identity :business="business"></Identity>
+						<Identity :business="business" :linkman="linkman"></Identity>
 					</z-swiper-item>
 					<z-swiper-item>
 						<Apply :apply-for="applyFor"></Apply>