Quellcode durchsuchen

宅基地调查

wulanhaote
yujk vor 3 Jahren
Ursprung
Commit
ff4ef104bc
3 geänderte Dateien mit 264 neuen und 438 gelöschten Zeilen
  1. +171
    -113
      src/views/homesteadSurvey/add.vue
  2. +6
    -1
      src/views/homesteadSurvey/index.vue
  3. +87
    -324
      src/views/homesteadSurvey/list.vue

+ 171
- 113
src/views/homesteadSurvey/add.vue Datei anzeigen

@@ -447,7 +447,7 @@
maxlength="200"
/>
<MapGisDrawing ref="drewingClickLoading" :message="form.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
<div style="margin: 16px;">
<div v-if="isFinished" style="margin: 16px;">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -480,7 +480,7 @@
</template>
</van-swipe-cell>

<div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:10px;">
<div v-if="isFinished" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:10px;">
<div style="text-align:center;overflow:auto;">
<van-button plain round color="#22B7F2" size="mini" style="margin:0 auto;padding:20px;" @click="showPopupsyqr('')">+添加使用权人</van-button>
<van-button plain round color="#22B7F2" size="mini" style="margin:0 auto;padding:20px;" @click="showPopupnh('')">+添加农户信息</van-button>
@@ -516,7 +516,7 @@
<van-button square text="删除" type="danger" class="delete-button" @click="deletezrz(item,index)"/>
</template>
</van-swipe-cell>
<div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div v-if="isFinished" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div style="text-align:center;" >
<p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupzrz('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加自然幢信息</p>
</div>
@@ -576,7 +576,7 @@
<van-button square text="删除" type="danger" class="delete-button" @click="deletefsss(item.id,index)"/>
</template>
</van-swipe-cell>
<div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div v-if="isFinished" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div style="text-align:center;" >
<p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfsss('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加附属设施信息</p>
</div>
@@ -613,7 +613,7 @@
placeholder="农户代码"
required
:rules="[{ required: true, message: '农户代码不能为空' }]"
@click="showsyqrnhdmlist = true"
@click="showsyqrnhdmlist = true,nhdmValue=null"
readonly
/>
<van-field
@@ -626,16 +626,6 @@
required
:rules="[{ required: true, message: '宅基地代码不能为空' }]"
/>
<!--<van-field
autocomplete="off"
input-align="right"
v-model="form1.nmfwdm"
name="农民房屋代码"
label="农民房屋代码"
placeholder="宅基地上有农民房屋时填写"
readonly
@click="showsyqrnmfwdm = true"
/>-->
<van-field
autocomplete="off"
input-align="right"
@@ -761,7 +751,8 @@
<template #input>
<van-radio-group v-model="form1.xb" direction="horizontal">
<van-radio name="1">男</van-radio>
<van-radio name="2">女</van-radio>
<van-radio name="0">女</van-radio>
<van-radio name="2">未知</van-radio>
</van-radio-group>
</template>
</van-field>
@@ -867,7 +858,7 @@
<!-- <div style="text-align:center;overflow:auto;">
<van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" native-type="button" @click="showPopuphncylist(form1)">查看户内成员列表</van-button>
</div>-->
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -1040,7 +1031,7 @@
placeholder="备注"
/>
<MapGisDrawing ref="drewingClickLoading" :message="form3.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -1262,7 +1253,7 @@
label="备注"
placeholder="备注"
/>
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -1844,7 +1835,7 @@
<van-uploader v-model="fileListfw" :after-read="beforeReadfw" multiple @delete="deleteFilefw" :max-count="4"></van-uploader>
</template>
</van-field>
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -2419,7 +2410,7 @@
placeholder="备注"
/>
<MapGisDrawing ref="drewingClickLoading" :message="form4.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -2634,7 +2625,7 @@
v-model="form5.sjly"
style="display:none"
/>
<div style="margin: 16px;">
<div style="margin: 16px;" v-if="isFinished">
<van-button round block color="#7AC943" native-type="submit">保存</van-button>
</div>
</van-form>
@@ -2672,7 +2663,7 @@
<van-button square text="删除" type="danger" class="delete-button" @click="deletehncy(item.id,index)" />
</template>
</van-swipe-cell>
<div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div v-if="isFinished" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
<div style="text-align:center;" >
<p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopuphncy('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加户内成员信息</p>
</div>
@@ -2714,7 +2705,7 @@
<van-button square text="删除" type="danger" class="delete-button" @click="deletefw(item.id,index)"/>
</template>
</van-swipe-cell>
<div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;margin-bottom:50px">
<div v-if="isFinished" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;margin-bottom:50px">
<div style="text-align:center;" >
<p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfw('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加房屋信息</p>
</div>
@@ -3120,10 +3111,69 @@
enterMap: "",
//记录从地图进入宅基地代码
enterMapZjddm:"",

//审核状态
isFinished:false,
// cookies
cookiesInfo:null,
};
},
created(){
if(this.$cookies.get("search")){
if(this.$cookies.get("search").active!=null){
this.cookiesInfo = this.$cookies.get("search")
this.$cookies.set("search","")
//返回地图值记录----start
this.backMap.activeBtn = 4;
this.enterMap =1;
this.backMap.backMapZjdAData = this.cookiesInfo.mapZjdAData;
this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId;
this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm;
//返回地图值记录----end
this.active = this.cookiesInfo.active;
this.item = this.cookiesInfo.mapZjdAData;
if(this.item.houseDataConfirmStatus!="CONFIRMED"){
this.isFinished = true
}
this.form = this.cookiesInfo.mapZjdAData;
let zrz = this.cookiesInfo.mapZrzAData;
let fsss = this.cookiesInfo.mapFsssAData;
this.getnhdmlist();
this.getBaseUrl();
this.getZjd();
if(this.cookiesInfo.active=="3"){
this.showzrz= true
this.getZrzList()
setTimeout(() => {
this.showPopupzrz(zrz)
}, 500);

}else if(this.cookiesInfo.active=="4"){
this.showfsss= true
this.getFsssList()
setTimeout(() => {
this.showPopupfsss(fsss)
}, 500);
}
}else{
this.item = this.cookiesInfo
if(this.item.houseDataConfirmStatus!="CONFIRMED"){
this.isFinished = true
}
this.getBaseUrl();
this.getnhdmlist();
this.getZjd();

}
}else{
this.$set(this.item,"deptId",this.$cookies.get("item").deptId)
if(this.item.houseDataConfirmStatus!="CONFIRMED"){
this.isFinished = true
}
this.getBaseUrl();
this.getnhdmlist();
this.getZjd();
}
this.getDicts("zjdlyzk").then(response => {
this.lyzkOptions = response.data;
});
@@ -3194,8 +3244,6 @@
}
});
this.yhzgxOptions = arr;

/*this.yhzgxOptions = response.data;*/
});
this.getDicts("rights_nature").then(response => {
this.qlxzOptions = response.data;
@@ -3230,52 +3278,6 @@
this.getDicts("Industry").then(response => {
this.industryOptions = response.data;
});
if(this.$cookies.get("search")){
if(this.$cookies.get("search").active!=null){
//返回地图值记录----start
this.backMap.activeBtn = 4;
this.enterMap =1;
this.backMap.backMapZjdAData =this.$cookies.get("search").mapZjdAData;
this.backMap.deptId = this.$cookies.get("search").mapZjdAData.deptId;
this.enterMapZjddm = this.$cookies.get("search").mapZjdAData.zjddm;
//返回地图值记录----end
this.active = this.$cookies.get("search").active;
this.item = this.$cookies.get("search").mapZjdAData;
this.form = this.$cookies.get("search").mapZjdAData;
let zrz = this.$cookies.get("search").mapZrzAData;
let fsss = this.$cookies.get("search").mapFsssAData;
this.getnhdmlist();
this.getBaseUrl();
this.getZjd();
if(this.$cookies.get("search").active=="3"){
this.showzrz= true
this.getZrzList()
setTimeout(() => {
this.showPopupzrz(zrz)
}, 500);

}else if(this.$cookies.get("search").active=="4"){
this.showfsss= true
this.getFsssList()
setTimeout(() => {
this.showPopupfsss(fsss)
}, 500);
}
}else{
this.item = this.$cookies.get("search")
this.getBaseUrl();
this.getnhdmlist();
this.getZjd();

}
}else{
this.$set(this.item,"deptId",this.$cookies.get("item").deptId)
this.getBaseUrl();
this.getnhdmlist();
this.getZjd();

}
let a = document.cookie.split(';');
},
mounted(){
if(this.active ==1){
@@ -3286,28 +3288,87 @@
methods: {
validatorIdcard(val){
if(this.form1.shyqrdbzjlx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
validatorIdcard1(val){
if(this.nhform.hzzljx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
validatorIdcard2(val){
if(this.form5.zjlx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
checkCode(val) {
var p = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
var code = val.substring(17);
if(p.test(val)) {
var sum = 0;
for(var i=0;i<17;i++) {
sum += val[i]*factor[i];
}
if(parity[sum % 11] == code.toUpperCase()) {
return true;
}
}
return false;
},
checkDate (val) {
var pattern = /^(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)$/;
if(pattern.test(val)) {
var year = val.substring(0, 4);
var month = val.substring(4, 6);
var date = val.substring(6, 8);
var date2 = new Date(year+"-"+month+"-"+date);
if(date2 && date2.getMonth() == (parseInt(month) - 1)) {
return true;
}
}
return false;
},
checkProv(val) {
var pattern = /^[1-9][0-9]/;
var provs = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门"};
if(pattern.test(val)) {
if(provs[val]) {
return true;
}
}
return false;
},
vcheckID(val){
if(this.checkCode(val)) {
var date = val.substring(6,14);
if(this.checkDate(date)) {
if(this.checkProv(val.substring(0,2))) {
return true;
}
}
}
return false;
},
showycbjinfo(){
this.showycbj = true
if(this.form.isyc!=null&&this.form.isyc!=""){
@@ -4559,35 +4620,6 @@
if(this.form.id==null||this.form.id==""){
Notify({ type: 'danger', message: '请先保存宅基地信息' });
}else{
/* if (this.form1.id != null) {
updateShyqr(this.form1).then(response => {
let _this =this
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '修改成功',
duration:"1000",
onClose:function(){
_this.showsyqr = false
_this.active = 2
_this.getSyqrList()
}
})
});
} else {
addShyqr(this.form1).then(response => {
let _this =this
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '保存成功',
duration:"1000",
onClose:function(){
_this.showsyqr = false
_this.active = 2
_this.getSyqrList()
}
})
});
}*/
if (this.form1.id != null) {
if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 1) {
if(this.form1.xb!='1'){
@@ -4629,9 +4661,8 @@
})
});
}

} else {
if(this.form1.xb=='1'){
} else if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 0) {
if(this.form1.xb!='0'){
Dialog.confirm({
title: '警告',
message: '成员性别与身份证号中性别信息不符,是否继续保存?',
@@ -4670,6 +4701,20 @@
})
});
}
}else{
updateShyqr(this.form1).then(response => {
let _this =this
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '修改成功',
duration:"1000",
onClose:function(){
_this.showsyqr = false
_this.active = 2
_this.getSyqrList()
}
})
});
}
} else {
if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 1) {
@@ -4713,8 +4758,8 @@
});
}

} else {
if(this.form1.xb=='1'){
} else if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 0) {
if(this.form1.xb!='0'){
Dialog.confirm({
title: '警告',
message: '成员性别与身份证号中性别信息不符,是否继续保存?',
@@ -4753,8 +4798,21 @@
})
});
}
}else{
addShyqr(this.form1).then(response => {
let _this =this
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '保存成功',
duration:"1000",
onClose:function(){
_this.showsyqr = false
_this.active = 2
_this.getSyqrList()
}
})
});
}

}
}
},


+ 6
- 1
src/views/homesteadSurvey/index.vue Datei anzeigen

@@ -14,7 +14,8 @@
/>
</van-col>
<van-col span="14">
<p style="margin-top: 10px;">调查员.采集员</p>
<p style="margin-top: 10px;" v-if="businessLevel=='1'">调查员.采集员</p>
<p style="margin-top: 10px;" v-if="businessLevel=='2'">审核员</p>
<p>{{nickName}}</p>
</van-col>
<van-col span="2" style="text-align:center;">
@@ -214,6 +215,8 @@

//宅调人员列表
taskExecutortions:[],
//当前用户级别
businessLevel:1,
};
},
created(){
@@ -221,7 +224,9 @@
this.taskExecutortions = response.data
})
getInfo().then(response => {
console.log(response)
this.nickName = response.user.nickName
this.businessLevel = response.user.businessLevel
this.queryParams.taskExecutor = response.user.userName
this.getList();
});


+ 87
- 324
src/views/homesteadSurvey/list.vue Datei anzeigen

@@ -82,7 +82,11 @@
</template>-->
<template #label>
<p>宅基地代码: {{item.zjddm}} </p>
<p>宗地面积: {{item.zdmj}}㎡ </p>
<p>宗地面积: {{item.zdmj}}㎡
<span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
<span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
<span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
</p>
</template>
<template #icon>
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
@@ -104,6 +108,7 @@
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
<template #title>
<p v-if="item.syqr!=null&&item.syqr!=''" style="color:#22B7F2">{{limitWords(item.syqr)}}

<van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" :to="{name:'homesteadAdd'}">查看详情</van-button>
<van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" :to="{name:'homesteadAdd'}">开始调查</van-button>
<van-button plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
@@ -120,7 +125,11 @@
</template>-->
<template #label>
<p>宅基地代码: {{item.zjddm}} </p>
<p>宗地面积: {{item.zdmj}}㎡ </p>
<p>宗地面积: {{item.zdmj}}㎡
<span v-if="item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
<span v-if="item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
<span v-if="item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
</p>
</template>
<template #icon>
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
@@ -992,7 +1001,7 @@
label="证件类型"
placeholder="证件类型"
required
:rules="[{ required: true, message: '证件类型不能为空' },{validator:validatorIdcardhncy,message:'身份证号格式错误!'}]"
:rules="[{ required: true, message: '证件类型不能为空' }]"
readonly
@click="showhncyzjlx = true"
/>
@@ -1025,7 +1034,7 @@
label="证件号码"
placeholder="证件号码"
required
:rules="[{ required: true, message: '证件号码不能为空' }]"
:rules="[{ required: true, message: '证件号码不能为空' },{validator:validatorIdcardhncy,message:'身份证号格式错误!'}]"
/>
<van-field autocomplete="off" name="radio" label="性别" input-align="right" required
:rules="[{ required: true, message: '性别不能为空' }]">
@@ -1436,28 +1445,87 @@
methods: {
validatorIdcardqlr(val){
if(this.qlrform.dbrzjlx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
validatorIdcardnh(val){
if(this.nhform.hzzjlx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
validatorIdcardhncy(val){
if(this.form5.zjlx=='01'){
let card18 = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
return card18.test(val)
if(this.vcheckID(val)){
return true
}else {
return false
}
}else{
return true
}
},
checkCode(val) {
var p = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
var code = val.substring(17);
if(p.test(val)) {
var sum = 0;
for(var i=0;i<17;i++) {
sum += val[i]*factor[i];
}
if(parity[sum % 11] == code.toUpperCase()) {
return true;
}
}
return false;
},
checkDate (val) {
var pattern = /^(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)$/;
if(pattern.test(val)) {
var year = val.substring(0, 4);
var month = val.substring(4, 6);
var date = val.substring(6, 8);
var date2 = new Date(year+"-"+month+"-"+date);
if(date2 && date2.getMonth() == (parseInt(month) - 1)) {
return true;
}
}
return false;
},
checkProv(val) {
var pattern = /^[1-9][0-9]/;
var provs = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门"};
if(pattern.test(val)) {
if(provs[val]) {
return true;
}
}
return false;
},
vcheckID(val){
if(this.checkCode(val)) {
var date = val.substring(6,14);
if(this.checkDate(date)) {
if(this.checkProv(val.substring(0,2))) {
return true;
}
}
}
return false;
},
deleteZjd(item,index){
Dialog.confirm({
title: '警告',
@@ -4406,9 +4474,6 @@
that.mapZjdDataTure ="";
setTimeout(() => {
if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zjdzd") {
// that.mapZjdDataTure ="";
// that.mapZjdTeAll.mapZrzAData ={};
// that.mapZjdTeAll.mapFsssAData ={};
map.removeLayer(hc_land_on);
that.mapHasDateStatus = 2;
let obj = {};
@@ -4417,150 +4482,20 @@
let zjdIdNum = zjdXq.replace("t_house_survey_zjdzd.", "");
obj.id = zjdIdNum; // 主键id
obj.deptName = trs.find("td").eq(3).text();//行政区划名称
// obj.suyqrdm = trs.find("td").eq(4).text();//所有权人代码
// obj.nhdm = trs.find("td").eq(5).text();//农户代码

obj.zjddm = trs.find("td").eq(6).text();//宅基地代码
// obj.zdbh = trs.find("td").eq(7).text();//宗地编号
// obj.zddm = trs.find("td").eq(8).text();//宗地代码
// obj.zl = trs.find("td").eq(9).text();//坐落
// obj.zldwdm = trs.find("td").eq(10).text();//坐落单位代码

obj.zdmj = trs.find("td").eq(11).text();//宗地面积
// obj.yt = trs.find("td").eq(12).text();//用途
// obj.ytmc = trs.find("td").eq(13).text();//用途名称
// obj.dj = trs.find("td").eq(14).text();//宗地编号
// obj.jg = trs.find("td").eq(15).text();//价格万元
// obj.qllx = trs.find("td").eq(16).text();//权利类型
// obj.qlxz = trs.find("td").eq(17).text();//权利性质
// obj.qlsdfs = trs.find("td").eq(18).text();//权利设定方式
// obj.rjl = trs.find("td").eq(19).text();//容积率
// obj.jzmd = trs.find("td").eq(20).text();//建筑密度
// obj.jzxg = trs.find("td").eq(21).text();//建筑限高
// obj.zdszd = trs.find("td").eq(22).text();//宗地四至-东
// obj.zdszn = trs.find("td").eq(23).text();//宗地四至-南
// obj.zdszx = trs.find("td").eq(24).text();//宗地四至-西
// obj.zdszb = trs.find("td").eq(25).text();//宗地四至-北
// obj.zdt = trs.find("td").eq(26).text();//宗地图
// obj.tfh = trs.find("td").eq(27).text();//图幅号
// obj.djh = trs.find("td").eq(28).text();//地籍号
// obj.sjly = trs.find("td").eq(29).text();//数据来源
// obj.lyzk = trs.find("td").eq(30).text();//当前利用状况
// obj.xzkssj = trs.find("td").eq(31).text();//闲置开始时间
// obj.sffz = trs.find("td").eq(32).text();//是否发证
// obj.zjdzsh = trs.find("td").eq(33).text();//宅基地证书号
// obj.bz = trs.find("td").eq(34).text();//备注
// obj.houseDataConfirmStatus = trs.find("td").eq(40).text();//调查情况
// obj.zjdxctp =trs.find("td").eq(41).text();//宅基地现场图片
// obj.zjdqdfs = trs.find("td").eq(42).text();//宅基地取得方式
// obj.bccjl = trs.find("td").eq(43).text();//被惩处经历
// obj.bccbz = trs.find("td").eq(44).text();//被惩处备注
// obj.yctcyx = trs.find("td").eq(45).text();//有偿退出意向
// obj.zjdpzmj = trs.find("td").eq(46).text();//宅基地批准面积
// obj.zjdxzyy = trs.find("td").eq(47).text();//宅基地闲置原因
// obj.lzyx = trs.find("td").eq(48).text();//流转意向
// obj.sysNormalDisable = trs.find("td").eq(49).text();//是否停用

obj.active = 1;
// //字典项转化
// //是否发证字典项
// that.getDicts("sys_yes_no").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sffz !=null && obj.sffz !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sffz == assetTypeOptions[i].dictValue) {
// obj.sffz = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //利用状态字典项
// that.getDicts("zjdlyzk").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.lyzk !=null && obj.lyzk !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.lyzk == assetTypeOptions[i].dictValue) {
// obj.lyzk = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //流转意向字典项
// that.getDicts("is_have").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.lzyx !=null && obj.lzyx !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.lzyx == assetTypeOptions[i].dictValue) {
// obj.lzyx = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //有偿退出意向字典项
// that.getDicts("is_have").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.yctcyx !=null && obj.yctcyx !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.yctcyx == assetTypeOptions[i].dictValue) {
// obj.yctcyx = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //被惩处经历字典项
// that.getDicts("is_have").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.bccjl !=null && obj.bccjl !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.bccjl == assetTypeOptions[i].dictValue) {
// obj.bccjl = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //宅基地取得方式字典项
// that.getDicts("acquisition_method").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.zjdqdfs !=null && obj.zjdqdfs !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.zjdqdfs == assetTypeOptions[i].dictValue) {
// obj.zjdqdfs = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //权利设定方式字典项
// that.getDicts("right_setting_mode").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.qlsdfs !=null && obj.qlsdfs !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.qlsdfs == assetTypeOptions[i].dictValue) {
// obj.qlsdfs = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //数据来源字典项
// that.getDicts("sjly").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sjly !=null && obj.sjly !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sjly == assetTypeOptions[i].dictValue) {
// obj.sjly = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });

var vector_drawing_map;
let params = {
"deptId" : that.$cookies.get("item").deptId,
"zjddm" : obj.zjddm,
}
that.$cookies.set("search","")
console.log(document.cookie.split(';').length)
listZjdzd(params).then((response) => {
if(response.rows[0].zdmj != ""){
that.textMjAll = response.rows[0].zdmj;
@@ -4587,7 +4522,6 @@
" \"type\": \"Feature\",\n" +
" \"geometry\":" + that.mapZjdData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZjdData) + "}"),
}),

style: styleZjd
});
map.addLayer(hc_land_on);
@@ -4649,52 +4583,12 @@
obj.id = zrzIdNum; // 主键id
obj.deptName = trs.find("td").eq(3).text();//行政区划名称
obj.zjddm = trs.find("td").eq(4).text();//宅基地代码
// obj.nmfwzh = trs.find("td").eq(6).text();//农民房屋幢号
// obj.zrzh = trs.find("td").eq(7).text();//自然幢号
// obj.jgrq = trs.find("td").eq(8).text();//竣工日期
// obj.jzwgd = trs.find("td").eq(9).text();//建筑物高度
// obj.zzdmj = trs.find("td").eq(10).text();//幢占地面积
// obj.zydmj = trs.find("td").eq(11).text();//幢用地面积
obj.scjzmj = trs.find("td").eq(12).text();//实测建筑面积
// obj.zcs = trs.find("td").eq(13).text();//总层数
// obj.dscs = trs.find("td").eq(14).text();//地上层数
// obj.dxcs = trs.find("td").eq(15).text();//地下层数
// obj.fwjg = trs.find("td").eq(16).text();//房屋结构
// obj.sjly = trs.find("td").eq(17).text();//数据来源
// obj.bz = trs.find("td").eq(18).text();//备注
// obj.status = trs.find("td").eq(19).text();//状态
// obj.houseDataConfirmStatus = trs.find("td").eq(24).text();//数据调查确认状态
//字典项转化
// //房屋结构字典项
// that.getDicts("housing_structure").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.fwjg !=null && obj.fwjg !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.fwjg == assetTypeOptions[i].dictValue) {
// obj.fwjg = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //房屋结构字典项
// that.getDicts("sjly").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sjly !=null && obj.sjly !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sjly == assetTypeOptions[i].dictValue) {
// obj.sjly = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
//let cloneObj = JSON.parse(JSON.stringify(obj));
//that.mapZrzData = cloneObj;
let params = {
"deptId" : that.$cookies.get("item").deptId,
"zjddm" : obj.zjddm,
}
that.$cookies.set("search","")
listZjdzd(params).then((response) => {
that.mapZjdData = response.rows[0];
//that.mapZjdAData.active = 1;
@@ -4758,144 +4652,13 @@
// obj.houseDataConfirmStatus = trs.find("td").eq(6).text(); //状态
// obj.fssslx = trs.find("td").eq(7).text(); //附属设施类型
obj.jzmj = trs.find("td").eq(8).text(); //建筑面积
// obj.qsly = trs.find("td").eq(9).text();//权属来源
// obj.fwzt = trs.find("td").eq(10).text(); //房屋状态
// obj.sfsp = trs.find("td").eq(11).text(); //是否审批
// obj.sffz = trs.find("td").eq(12).text(); //是否发证
// obj.jglx = trs.find("td").eq(13).text(); //结构类型
// obj.sfzzsy = trs.find("td").eq(14).text(); //是否正在使用
// obj.jzwqk = trs.find("td").eq(15).text(); //建筑物情况
// obj.tdzk = trs.find("td").eq(16).text(); //审批或建设前土地状况
// obj.sfsgcf = trs.find("td").eq(17).text(); //是否受过处罚
// obj.remark = trs.find("td").eq(18).text(); //备注
// obj.sysNormalDisable = trs.find("td").eq(19).text(); //是否停用
//附属设施类型字典项
// that.getDicts("fsss_type").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.fssslx !=null && obj.fssslx !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.fssslx == assetTypeOptions[i].dictValue) {
// obj.fssslx = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //权属类型字典项
// that.getDicts("acquisition_method").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.qsly !=null && obj.qsly !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.qsly == assetTypeOptions[i].dictValue) {
// obj.qsly = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //房屋状态字典项
// that.getDicts("fwzt").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.fwzt !=null && obj.fwzt !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.fwzt == assetTypeOptions[i].dictValue) {
// obj.fwzt = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //是否审批字典项
// that.getDicts("sys_yes_no").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sfsp !=null && obj.sfsp !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sfsp == assetTypeOptions[i].dictValue) {
// obj.sfsp = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //是否发证字典项
// that.getDicts("sys_yes_no").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sffz !=null && obj.sffz !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sffz == assetTypeOptions[i].dictValue) {
// obj.sffz = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //结构类型字典项
// that.getDicts("house_jglx").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.jglx !=null && obj.jglx !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.jglx == assetTypeOptions[i].dictValue) {
// obj.jglx = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //是否正在使用字典项
// that.getDicts("sys_yes_no").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sfzzsy !=null && obj.sfzzsy !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sfzzsy == assetTypeOptions[i].dictValue) {
// obj.sfzzsy = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //房屋状态字典项
// that.getDicts("fwzt").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.fwzt !=null && obj.fwzt !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.fwzt == assetTypeOptions[i].dictValue) {
// obj.fwzt = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //土地状况字典项
// that.getDicts("land_state").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.tdzk !=null && obj.tdzk !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.tdzk == assetTypeOptions[i].dictValue) {
// obj.tdzk = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
// //是否受过处罚字典项
// that.getDicts("land_state").then((response) => {
// var assetTypeOptions = response.data;
// if(obj.sfsgcf !=null && obj.sfsgcf !=""){
// for(var i=0;assetTypeOptions.length >i; i++){
// if(obj.sfsgcf == assetTypeOptions[i].dictValue) {
// obj.sfsgcf = assetTypeOptions[i].dictLabel;
// break;
// }
// }
// }
// });
//let cloneObj = JSON.parse(JSON.stringify(obj));
//that.mapFsssData = cloneObj;

let params = {
"deptId" : that.$cookies.get("item").deptId,
"zjddm" : obj.zjddm,
"pageSize":20,
}
that.$cookies.remove("search")
listZjdzd(params).then((response) => {
that.mapZjdData = response.rows[0];
that.mapZjdData.active = 1;


Laden…
Abbrechen
Speichern