43481d0a by zhaoqian

宗地不动产单元生成根据行政区,地籍区,地籍子区拿到底盘代码

1 parent 637d33e4
......@@ -411,6 +411,8 @@ export default {
{ label: "-", value: "-" },
],
formData: {},
dpdm:'', //宗地底盘代码
};
},
created() {
......@@ -463,6 +465,34 @@ export default {
.catch((error) => {});
},
//构造底盘代码,前6位是xzqbsm,接着3位djqbsm,3位djzqbsm,最后2位是syqlxbsm 860101555888GB
generatorDpdm() {
this.$store.state.xzqList.forEach((item)=>{
if(item.bsm === this.formData.xzqbsm){
this.dpdm = item.dm;
}
});
this.$store.state.djqList.forEach((item)=>{
if(item.bsm === this.formData.djqbsm){
this.dpdm = this.dpdm + item.dm;
}
});
this.$store.state.djzqList.forEach((item)=>{
if(item.bsm === this.formData.djzqbsm){
this.dpdm = this.dpdm + item.dm;
}
});
console.log(this.formData.syqlxbsm);
this.dpdm = this.dpdm + this.formData.syqlxbsm;
this.$store.state.zdtzmList.forEach((item)=>{
if(item.zdtzmbsm === this.formData.zdtzmbsm){
this.dpdm = this.dpdm + item.dm;
}
});
console.log(this.dpdm)
},
//不动产单元号再次生成提示框
open() {
this.$confirm('已经存在不动产单元号或者自然幢号, 是否继续?', '提示', {
......@@ -470,7 +500,8 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
getBdcdyh("860101555888GB", "zd")
this.generatorDpdm();
getBdcdyh(this.dpdm, "zd")
.then((res) => {
console.log(res);
this.formData.zddm = res.result.substring(0, 19);
......@@ -496,9 +527,9 @@ export default {
this.open();
return;
}
this.generatorDpdm();
//前6位是xzqbsm,接着3位djqbsm,3位djzqbsm,最后2位是syqlxbsm 860101555888GB
getBdcdyh("860101555888GB", "zd")
getBdcdyh(this.dpdm, "zd")
.then((res) => {
console.log(res);
this.formData.zddm = res.result.substring(0, 19);
......