e7218407 by 杨威

宗地表单保存前判断宗地代码和不动产单元号前14位是否和底盘代码一致

1 parent 05eb8c3b
......@@ -454,7 +454,7 @@ export default {
})
}
//权利性质数据传给子组件
this.$refs.qlxzModule.countList = res.result.list
this.$refs.qlxzModule.countList = res.result.list;
}
}
})
......@@ -485,7 +485,6 @@ export default {
this.dpdm = this.dpdm + item.dm;
}
});
console.log(this.dpdm)
},
//不动产单元号再次生成提示框
......@@ -540,8 +539,13 @@ export default {
this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? this.rjl : this.formData.jyrjl;
this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? this.jzmd : this.formData.jyjzmd;
this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg;
//判断宗地代码和不动产单元号是否手动修改过(宗地代码和不动产单元号的前14位是否和底盘代码一致)
if(this.formData.zddm.substring(0,14) != this.dpdm || this.formData.bdcdyh.substring(0,14) != this.dpdm){
this.$message({
message: '宗地代码或不动产单元号有误,请核对后再试一次',
type: "warning",
});
}else{
// FIXME:表单验证错误
/* this.$refs['ruleForm'].validate((valid) => {
debugger
......@@ -571,6 +575,9 @@ export default {
}
})
.catch((error) => {});
}
},
//提交宗地基本信息
......@@ -629,14 +636,17 @@ export default {
this.$store.state.xzqList = res.result;
})
.catch((error) => {});
getListByPbsm(djqdm)
.then((res) => {
this.$store.state.djzqList = res.result;
getListByXzqbsm(xzqdm)
.then((res) => {
this.$store.state.djqList = res.result;
//生成底盘代码
this.generatorDpdm();
})
.catch((error) => {});
getListByPbsm(djqdm)
.then((res) => {
this.$store.state.djzqList = res.result;
})
.catch((error) => {});
}
......