自然幢信息保存前判断自然幢号和不动产单元号的前19位是否和宗地代码一致
Showing
1 changed file
with
25 additions
and
31 deletions
... | @@ -348,22 +348,6 @@ | ... | @@ -348,22 +348,6 @@ |
348 | sx:'', //顺序 | 348 | sx:'', //顺序 |
349 | }], | 349 | }], |
350 | }, | 350 | }, |
351 | options: [{ | ||
352 | value: '选项1', | ||
353 | label: '黄金糕' | ||
354 | }, { | ||
355 | value: '选项2', | ||
356 | label: '双皮奶' | ||
357 | }, { | ||
358 | value: '选项3', | ||
359 | label: '蚵仔煎' | ||
360 | }, { | ||
361 | value: '选项4', | ||
362 | label: '龙须面' | ||
363 | }, { | ||
364 | value: '选项5', | ||
365 | label: '北京烤鸭' | ||
366 | }], | ||
367 | value: '', | 351 | value: '', |
368 | ytTitleRowspan:1, //用途的单元格垂直合并数量 | 352 | ytTitleRowspan:1, //用途的单元格垂直合并数量 |
369 | fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 | 353 | fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 |
... | @@ -412,23 +396,33 @@ | ... | @@ -412,23 +396,33 @@ |
412 | } | 396 | } |
413 | }, | 397 | }, |
414 | onSave(){ | 398 | onSave(){ |
415 | this.loading=true; | 399 | //判断自然幢号和不动产单元号是否手动修改过(自然幢号和不动产单元号的前19位是否和宗地代码一致) |
416 | this.form.zrzbsm=this.bsm; | 400 | console.log(this.form,'this.form'); |
417 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); | 401 | if(this.form.zrzh.substring(0,19) != this.form.zddm || this.form.bdcdyh.substring(0,19) != this.form.zddm){ |
418 | if(1>0){ | 402 | this.$message({ |
419 | saveZrzInfo(this.form).then((res)=>{ | 403 | message: '自然幢号或不动产单元号有误,请核对后再试一次', |
420 | if(res.code===200){ | 404 | type: "warning", |
421 | this.$message.success("保存完成!") | 405 | }); |
422 | }else { | 406 | }else{ |
423 | this.$message({ | 407 | this.loading=true; |
424 | message: res.message, | 408 | this.form.zrzbsm=this.bsm; |
425 | type: "warning", | 409 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); |
426 | }); | 410 | if(1>0){ |
427 | } | 411 | saveZrzInfo(this.form).then((res)=>{ |
412 | if(res.code===200){ | ||
413 | this.$message.success("保存完成!") | ||
414 | }else { | ||
415 | this.$message({ | ||
416 | message: res.message, | ||
417 | type: "warning", | ||
418 | }); | ||
419 | } | ||
420 | this.loading=false; | ||
421 | }) | ||
428 | this.loading=false; | 422 | this.loading=false; |
429 | }) | 423 | } |
430 | this.loading=false; | ||
431 | } | 424 | } |
425 | |||
432 | }, | 426 | }, |
433 | onSubmit(){ | 427 | onSubmit(){ |
434 | let data={ | 428 | let data={ | ... | ... |
-
Please register or sign in to post a comment