8778a3e1 by 杨威

自然幢信息保存前判断自然幢号和不动产单元号的前19位是否和宗地代码一致

1 parent c02dda54
......@@ -348,22 +348,6 @@
sx:'', //顺序
}],
},
options: [{
value: '选项1',
label: '黄金糕'
}, {
value: '选项2',
label: '双皮奶'
}, {
value: '选项3',
label: '蚵仔煎'
}, {
value: '选项4',
label: '龙须面'
}, {
value: '选项5',
label: '北京烤鸭'
}],
value: '',
ytTitleRowspan:1, //用途的单元格垂直合并数量
fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
......@@ -412,23 +396,33 @@
}
},
onSave(){
this.loading=true;
this.form.zrzbsm=this.bsm;
this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
if(1>0){
saveZrzInfo(this.form).then((res)=>{
if(res.code===200){
this.$message.success("保存完成!")
}else {
this.$message({
message: res.message,
type: "warning",
});
}
//判断自然幢号和不动产单元号是否手动修改过(自然幢号和不动产单元号的前19位是否和宗地代码一致)
console.log(this.form,'this.form');
if(this.form.zrzh.substring(0,19) != this.form.zddm || this.form.bdcdyh.substring(0,19) != this.form.zddm){
this.$message({
message: '自然幢号或不动产单元号有误,请核对后再试一次',
type: "warning",
});
}else{
this.loading=true;
this.form.zrzbsm=this.bsm;
this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
if(1>0){
saveZrzInfo(this.form).then((res)=>{
if(res.code===200){
this.$message.success("保存完成!")
}else {
this.$message({
message: res.message,
type: "warning",
});
}
this.loading=false;
})
this.loading=false;
})
this.loading=false;
}
}
},
onSubmit(){
let data={
......