Bladeren bron

房产证识别修改

zouling 2 weken geleden
bovenliggende
commit
f9bea85d94

+ 14 - 1
property_ui/manage/components/car/list.vue

@@ -406,14 +406,16 @@
 			>
 				<view class="watopcom flex flex1">
 					<view class="flex0 mr12" @click.stop="getTime(idx)">
-						<video class="videos" :ref="`video${idx}`"  :src="baseUrl+ite.videoUrl" @pause="getPause" @timeupdate='onTimeUpdate' @loadedmetadata="onLoadedmetadata" @play="handlePlay(idx)" :data-id="ite.manualId"
+						<video class="videos" :ref="`video${idx}`"  :src="baseUrl+ite.videoUrl" @pause="getPause" @timeupdate='onTimeUpdate' @loadedmetadata="onLoadedmetadata" @play="handlePlay(idx)" @ended="getended" :data-id="ite.manualId"
 						:data-idx="idx" :data-progress="ite.progress" :data-putflag="ite.putflag" :data-time="ite.initialtime" 	
 						      @error="videoErrorCallback"   controls></video>
 					</view>
 					<view class="flex1 over	titbox">
 						<view class="tit over">{{ite.manualTitle}}</view>
 						<view class="flexcj">
+							<!-- #ifndef APP-PLUS -->
 							<view class="num">{{ite.duration}}</view>
+							<!-- #endif -->
 							<!-- 管理员 -->
 							<view class="f12 cofe fw5" v-if="checkPermi(['wuYe:manual:getRead'])" @click.stop="getReadlist(ite.manualId)">已读名单</view>
 							<!-- 员工 -->
@@ -644,6 +646,14 @@
 				return `${hours}小时${formattedMins}分钟`;
 				// console.log(a)
 			},
+			getended(e){
+				var idx=e.currentTarget.dataset.idx;
+				var info=JSON.parse(JSON.stringify(this.datainfo[idx]))
+				info.progress=100.00;
+				this.datainfo[idx].progress=100.00;
+				this.$emit('getPause',info)
+				this.datainfo[idx].putflag=false;
+			},
 			getPause(e){
 				var idx=e.currentTarget.dataset.idx;
 				var id=e.currentTarget.dataset.id;
@@ -674,6 +684,9 @@
 					this.datainfo[idx].progress=progress;
 					this.datainfo[idx].putflag=true;	
 				}
+			},
+			videoErrorCallback(e){
+				
 			},
 			onLoadedmetadata(e){
 				var idx=e.currentTarget.dataset.idx;

+ 3 - 2
property_ui/manage/pages/community/newssqdetail.vue

@@ -78,6 +78,7 @@
 				nonews:require('@/manage/static/news/nonews.png'),
 				share:require('@/manage/static/news/share.png'),
 				baseUrl:config.baseUrl,
+				shareurl:config.shareurl,
 				autoHeight:true,
 				confirmBar:false,
 				adrfixed:true,
@@ -146,9 +147,9 @@
 				 	provider: "weixin",
 				 	scene: "WXSceneSession",
 				 	type: 0,
-				 	href: this.shareurl+'/news/pages/news/detail?id='+this.id,
+				 	href: this.shareurl+'/manage/pages/community/newssqdetail?id='+this.id,
 				 	title: this.datainfo.communityTitle,
-				 	summary: "邀请信息",
+				 	summary: "社区资讯",
 				 	imageUrl: "https://zxyzhsq.qs163.cn/prod-api/profile/upload/2025/06/11/applogo_20250611033931A020.png",
 				 	success: function (res) {
 				 		var params={

+ 16 - 10
property_ui/utils/common.js

@@ -43,16 +43,22 @@ export function selectDictValue(datas, value) {
 	})
 	return actions.join('');
 }
-// export function selectDictLabel(datas, value) {
-// 	var actions = [];
-// 	Object.keys(datas).some((key) => {
-// 		if (datas[key].dictLabel == ('' + value)) {
-// 			actions.push(datas[key].dictValue);
-// 			return true;
-// 		}
-// 	})
-// 	return actions.join('');
-// }
+export function selectDictLabelkey(datas, value) {
+	var actions = [];
+	var idx=0;
+	Object.keys(datas).some((key) => {
+		if (datas[key].dictLabel == ('' + value)) {
+			idx=key;
+			actions.push(datas[key].dictValue);
+			return true;
+		}
+	})
+	var newObj={
+		actions:actions.join(''),
+		key:idx
+	}
+	return newObj
+}
 export function selectValueKey(datas, value) {
 	var actions = [];
 	var idx=0;

+ 27 - 3
property_ui/work/pages/manage/addhouse.vue

@@ -230,7 +230,7 @@
 <script>
 	import config from '@/config'
 	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
-	import {uploadIdentify,selectValueKey,geocodeAddress} from '@/utils/common.js'
+	import {uploadIdentify,selectValueKey,geocodeAddress,selectDictLabelkey} from '@/utils/common.js'
 	import {getDictionaryFn} from "@/api/system/user.js"
 	import {houseInfoAdd,houseInfoPut,houseInfoDet} from "@/api/work/work.js"
 	import {getrealEstateCertificatee} from "@/api/system/card.js"
@@ -344,6 +344,21 @@
 				}
 				return aite.actions;
 			},
+			statuslabFormats(data, list,type) {
+				var aite=selectDictLabelkey(list, data);
+				if(type=='qllx'){
+					this.qllxidx=aite.key;
+				}else if(type=='fwzt'){
+					this.fwztidx=aite.key;
+				}else if(type=='fwyt'){
+					this.fwytidx=aite.key;
+				}else if(type=='ywcw'){
+					this.ywcwidx=aite.key;
+				}else if(type=='fwlx'){
+					this.fwlxidx=aite.key;
+				}
+				return aite.actions;
+			},
 			onClear(type){
 				 if(type=='qllx'){
 					this.datainfo.rightType='';
@@ -433,6 +448,9 @@
 				var val=e.detail.value;
 				this.datainfo.houseType=this.fwlxList[val].dictValue;
 				this.fwlx=this.fwlxList[val].dictLabel;
+			},
+			changeLog(){
+				
 			},
 			getDetail(){
 				houseInfoDet(this.id).then(res=>{
@@ -541,12 +559,18 @@
 						var datainfo=res.data;
 						this.datainfo.ownerName=datainfo.ownerName;
 						this.datainfo.location=datainfo.location;
-						this.datainfo.rightType=datainfo.rightType;
+						if(datainfo.rightType){
+							this.datainfo.rightType=this.statuslabFormats(datainfo.rightType,this.qllxList,'qllx');
+							this.qllx=datainfo.rightType
+						}
 						this.datainfo.area=datainfo.area;
 						this.datainfo.documentNumber=datainfo.documentNumber;
 						this.datainfo.propertyUnitNumber=datainfo.propertyUnitNumber;
 						this.datainfo.coOwnership=datainfo.coOwnership;
-						this.datainfo.usageType=datainfo.usageType;
+						if(datainfo.usageType){
+							this.datainfo.usageType=this.statuslabFormats(datainfo.usageType,this.fwytList,'fcz');
+							this.fwyt=datainfo.usageType;
+						}
 						this.datainfo.usagePeriod=datainfo.usagePeriod;
 						this.datainfo.registrationDate=datainfo.registrationDate;
 						this.datainfo.coOwner=datainfo.coOwner;