浏览代码

房产证识别修改

zouling 2 周之前
父节点
当前提交
ef2d0b36a3
共有 4 个文件被更改,包括 75 次插入8 次删除
  1. 24 3
      user_ui/mine/pages/house/addhouse.vue
  2. 34 4
      user_ui/mine/pages/info/authenadd.vue
  3. 1 1
      user_ui/pages/mine/index.vue
  4. 16 0
      user_ui/utils/common.js

+ 24 - 3
user_ui/mine/pages/house/addhouse.vue

@@ -189,7 +189,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"
 	export default{
@@ -309,6 +309,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;
+			},
 			init(){
 				// 房屋状态
 				getDictionaryFn('house_status').then(res=>{
@@ -491,12 +506,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;

+ 34 - 4
user_ui/mine/pages/info/authenadd.vue

@@ -323,12 +323,11 @@
 <script>
 	import config from '@/config'
 	import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
-	import {uploadIdentify,uploadmore} from '@/utils/common.js'
+	import {uploadIdentify,uploadmore,selectDictLabelkey,selectValueKey} from '@/utils/common.js'
 	import {listNoPageTenant,houseInfoDet} from "@/api/work/work.js"
 	import {gettenantList} from "@/api/login.js"
 	import {residentInfoAdd,residentInfoPut,authentication,addResidentInfo} from "@/api/work/people.js"
 	import {getDictionaryFn} from "@/api/system/user.js"
-	import {selectValueKey} from "@/utils/common.js"
 	import {getOcrIdCard,getrealEstateCertificatee} from "@/api/system/card.js"
 	import wSelect from "@/work/components/w-select/w-select.vue"
 	export default {
@@ -583,6 +582,31 @@
 				}
 				return aite.actions;
 			},
+			statuslabFormats(data, list,type) {
+				var aite=selectDictLabelkey(list, data);
+				if(type=='qllx'){
+					this.qllxidx=aite.key;
+				}else if(type=='rylx'){
+					this.rylxidx=aite.key;
+				}else if(type=='hzgx'){
+					this.hzgxidx=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=='tenant'){
+					this.tenantName=aite.actions;
+				}else if(type=='rymm'){
+					this.rymmidx=aite.key;
+				}else if(type=='dslx'){
+					this.dslxidx=aite.key;
+				}else if(type=='fwlx'){
+					this.fwlxidx=aite.key;
+				}
+				return aite.actions;
+			},
 			getchangea(e){
 				var tenantId=this.datainfo.tenantId;
 				this.datainfo.tenantId=e.dictValue;
@@ -1065,12 +1089,18 @@
 						// var obj=JSON.parse(JSON.stringify(this.houseInfoRedidentList[idx]))
 						this.houserinfo.ownerName=datainfo.ownerName;
 						this.houserinfo.location=datainfo.location;
-						this.houserinfo.rightType=datainfo.rightType;
+						if(datainfo.rightType){
+							this.datainfo.rightType=this.statuslabFormats(datainfo.rightType,this.qllxList,'qllx');
+							this.qllx=datainfo.rightType
+						}
 						this.houserinfo.area=datainfo.area;
 						this.houserinfo.documentNumber=datainfo.documentNumber;
 						this.houserinfo.propertyUnitNumber=datainfo.propertyUnitNumber;
 						this.houserinfo.coOwnership=datainfo.coOwnership;
-						this.houserinfo.usageType=datainfo.usageType;
+						if(datainfo.usageType){
+							this.datainfo.usageType=this.statuslabFormats(datainfo.usageType,this.fwytList,'fcz');
+							this.fwyt=datainfo.usageType;
+						}
 						this.houserinfo.usagePeriod=datainfo.usagePeriod;
 						this.houserinfo.registrationDate=datainfo.registrationDate;
 						this.houserinfo.coOwner=datainfo.coOwner;

+ 1 - 1
user_ui/pages/mine/index.vue

@@ -74,7 +74,7 @@
 					<view class="tit flex1">物业费账单</view>
 					<image :src="rimg" class="rimg"></image>
 				</view>
-				<view class="flexc mine_list" @click="getYqMeetFn">
+				<view class="flexc mine_list" >
 					<view class="limg">
 						<image :src="listimgf" class="imgb"></image>
 					</view>

+ 16 - 0
user_ui/utils/common.js

@@ -53,6 +53,22 @@ export function selectDictValue(datas, value) {
 // 	})
 // 	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;