--no commit message
Showing
1 changed file
with
54 additions
and
36 deletions
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | </div> | 22 | </div> |
| 23 | <el-row :gutter="10"> | 23 | <el-row :gutter="10"> |
| 24 | <el-col :span="8"> | 24 | <el-col :span="8"> |
| 25 | <el-form-item label="补录编号:"> | 25 | <el-form-item label="补录编号11:"> |
| 26 | <el-input disabled v-model="ruleForm.repair.ywh"></el-input> | 26 | <el-input disabled v-model="ruleForm.repair.ywh"></el-input> |
| 27 | </el-form-item> | 27 | </el-form-item> |
| 28 | </el-col> | 28 | </el-col> |
| ... | @@ -97,11 +97,12 @@ | ... | @@ -97,11 +97,12 @@ |
| 97 | <el-input v-model="ruleForm.fdcq2.fttdmj"></el-input> | 97 | <el-input v-model="ruleForm.fdcq2.fttdmj"></el-input> |
| 98 | </el-form-item> | 98 | </el-form-item> |
| 99 | </el-col> | 99 | </el-col> |
| 100 | <el-col :span="8" v-if="ruleForm.tdytqxList[0]"> | 100 | <el-col :span="8"> |
| 101 | <!-- 下拉框 --> | 101 | <!-- 下拉框 --> |
| 102 | <el-form-item label="土地性质:" style="margin-bottom: 3px"> | 102 | <el-form-item label="土地性质:" style="margin-bottom: 3px"> |
| 103 | <treeselect | 103 | <treeselect |
| 104 | v-model="ruleForm.tdytqxList[0].qlxzbm" | 104 | v-model="tdxz" |
| 105 | noOptionsText="暂无数据" | ||
| 105 | placeholder="" | 106 | placeholder="" |
| 106 | :normalizer="normalizer" | 107 | :normalizer="normalizer" |
| 107 | :show-count="true" | 108 | :show-count="true" |
| ... | @@ -272,7 +273,6 @@ | ... | @@ -272,7 +273,6 @@ |
| 272 | <el-col :span="12"> | 273 | <el-col :span="12"> |
| 273 | <el-form-item label="共有方式:"> | 274 | <el-form-item label="共有方式:"> |
| 274 | <el-radio-group | 275 | <el-radio-group |
| 275 | :disabled="$route.query.viewtype == 0" | ||
| 276 | v-model="ruleForm.qlxx.gyqk" | 276 | v-model="ruleForm.qlxx.gyqk" |
| 277 | > | 277 | > |
| 278 | <el-radio label="0">单独所有</el-radio> | 278 | <el-radio label="0">单独所有</el-radio> |
| ... | @@ -282,15 +282,15 @@ | ... | @@ -282,15 +282,15 @@ |
| 282 | </el-radio-group> | 282 | </el-radio-group> |
| 283 | </el-form-item> | 283 | </el-form-item> |
| 284 | </el-col> | 284 | </el-col> |
| 285 | <el-col :span="6" v-show="ruleForm.qlxx.gyfs == '1'"> | 285 | <!-- <el-col :span="6" v-show="ruleForm.qlxx.gyfs == '1'"> |
| 286 | <el-form-item label="是否分别持证:"> | 286 | <el-form-item label="是否分别持证:"> |
| 287 | <el-radio-group v-model="ruleForm.qlxx.sqfbcz"> | 287 | <el-radio-group v-model="ruleForm.qlxx.sqfbcz"> |
| 288 | <el-radio :label="1">是</el-radio> | 288 | <el-radio :label="1">是</el-radio> |
| 289 | <el-radio :label="0">否</el-radio> | 289 | <el-radio :label="0">否</el-radio> |
| 290 | </el-radio-group> | 290 | </el-radio-group> |
| 291 | </el-form-item> | 291 | </el-form-item> |
| 292 | </el-col> | 292 | </el-col> --> |
| 293 | <el-col | 293 | <!-- <el-col |
| 294 | :span="6" | 294 | :span="6" |
| 295 | v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs == '1'" | 295 | v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs == '1'" |
| 296 | > | 296 | > |
| ... | @@ -305,13 +305,12 @@ | ... | @@ -305,13 +305,12 @@ |
| 305 | </el-option> | 305 | </el-option> |
| 306 | </el-select> | 306 | </el-select> |
| 307 | </el-form-item> | 307 | </el-form-item> |
| 308 | </el-col> | 308 | </el-col> --> |
| 309 | </el-row> | 309 | </el-row> |
| 310 | <qlrCommonTable | 310 | <qlrCommonTable |
| 311 | :tableData="ruleForm.qlrData" | 311 | :tableData="ruleForm.qlrData" |
| 312 | @upDateQlrxxList="upDateQlrxxList" | 312 | @upDateQlrxxList="upDateQlrxxList" |
| 313 | :key="key" | 313 | :key="key" |
| 314 | :viewtype="$route.query.viewtype" | ||
| 315 | :gyfs="ruleForm.qlxx.gyfs" | 314 | :gyfs="ruleForm.qlxx.gyfs" |
| 316 | /> | 315 | /> |
| 317 | 316 | ||
| ... | @@ -325,11 +324,10 @@ | ... | @@ -325,11 +324,10 @@ |
| 325 | :tableData="ruleForm.ywrList" | 324 | :tableData="ruleForm.ywrList" |
| 326 | :key="key" | 325 | :key="key" |
| 327 | @upDateQlrxxList="upDateYwrxxList" | 326 | @upDateQlrxxList="upDateYwrxxList" |
| 328 | :viewtype="$route.query.viewtype" | ||
| 329 | /> | 327 | /> |
| 330 | </div> | 328 | </div> |
| 331 | </div> | 329 | </div> |
| 332 | <el-row class="btn" v-if="!$route.query.viewtype && ableOperation"> | 330 | <el-row class="btn"> |
| 333 | <el-form-item> | 331 | <el-form-item> |
| 334 | <el-button type="primary" @click="onSubmit">保存</el-button> | 332 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 335 | </el-form-item> | 333 | </el-form-item> |
| ... | @@ -378,8 +376,8 @@ export default { | ... | @@ -378,8 +376,8 @@ export default { |
| 378 | dname: "历史", | 376 | dname: "历史", |
| 379 | }, | 377 | }, |
| 380 | ], | 378 | ], |
| 381 | ableOperation: true, | ||
| 382 | key: 0, | 379 | key: 0, |
| 380 | tdxz:null, | ||
| 383 | isShow: false, | 381 | isShow: false, |
| 384 | disabled: true, | 382 | disabled: true, |
| 385 | czrOptions: [], | 383 | czrOptions: [], |
| ... | @@ -394,26 +392,26 @@ export default { | ... | @@ -394,26 +392,26 @@ export default { |
| 394 | mounted() {}, | 392 | mounted() {}, |
| 395 | methods: { | 393 | methods: { |
| 396 | loadData() { | 394 | loadData() { |
| 397 | console.log("房地产权", this.propsParam); | ||
| 398 | init(this.propsParam.bsmRepair).then((res) => { | 395 | init(this.propsParam.bsmRepair).then((res) => { |
| 399 | if (res.code == 200) { | 396 | if (res.code == 200) { |
| 400 | this.ruleForm = res.result; | 397 | this.ruleForm = res.result; |
| 401 | console.log("this.ruleForm", this.ruleForm); | 398 | if( this.ruleForm.tdytqxList.length>0){ |
| 399 | this.tdxz=this.ruleForm.tdytqxList[0].qlxzbm | ||
| 400 | }else{ | ||
| 401 | this.tdxz=null | ||
| 402 | } | ||
| 402 | this.isShow = true; | 403 | this.isShow = true; |
| 403 | } | 404 | } |
| 404 | }); | 405 | }); |
| 405 | }, | 406 | }, |
| 406 | // 更新土地用途信息 | 407 | // 更新土地用途信息 |
| 407 | upDateTdytxxList(val) { | 408 | upDateTdytxxList(val) { |
| 408 | console.log("VAL", val); | ||
| 409 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 409 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 410 | this.key++; | 410 | this.key++; |
| 411 | }, | 411 | }, |
| 412 | // 更新权利人信息 | 412 | // 更新权利人信息 |
| 413 | upDateQlrxxList(val) { | 413 | upDateQlrxxList(val) { |
| 414 | console.log("val", val); | ||
| 415 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 414 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 416 | console.log("this.ruleForm.qlrData", this.ruleForm.qlrData); | ||
| 417 | this.czrOptions = this.ruleForm.qlrData; | 415 | this.czrOptions = this.ruleForm.qlrData; |
| 418 | this.key++; | 416 | this.key++; |
| 419 | }, | 417 | }, |
| ... | @@ -423,7 +421,6 @@ export default { | ... | @@ -423,7 +421,6 @@ export default { |
| 423 | this.key++; | 421 | this.key++; |
| 424 | }, | 422 | }, |
| 425 | onSubmit() { | 423 | onSubmit() { |
| 426 | console.log("this.ruleForm大信息", this.ruleForm); | ||
| 427 | if (this.ruleForm.qlrData.length == 0) { | 424 | if (this.ruleForm.qlrData.length == 0) { |
| 428 | this.$message({ | 425 | this.$message({ |
| 429 | showClose: true, | 426 | showClose: true, |
| ... | @@ -432,35 +429,56 @@ export default { | ... | @@ -432,35 +429,56 @@ export default { |
| 432 | }); | 429 | }); |
| 433 | return false; | 430 | return false; |
| 434 | } | 431 | } |
| 435 | 432 | if( this.ruleForm.tdytqxList.length==0&&!this.tdxz){ | |
| 436 | if (this.ruleForm.qlxx.gyfs == "0") { | ||
| 437 | if (this.ruleForm.qlrData.length > 1) { | ||
| 438 | this.$message({ | 433 | this.$message({ |
| 439 | showClose: true, | 434 | showClose: true, |
| 440 | message: "共有方式:单独所有,权利人只能是一个人", | 435 | message: "请补充土地用途信息", |
| 441 | type: "error", | 436 | type: "error", |
| 442 | }); | 437 | }); |
| 443 | return false; | 438 | return false; |
| 444 | } | 439 | } |
| 445 | this.ruleForm.qlrData[0].sfczr = "1"; | 440 | if(!this.tdxz){ |
| 446 | } | 441 | this.$message({ |
| 447 | if (this.ruleForm.qlxx.gyfs == "1") { | 442 | showClose: true, |
| 448 | //是否分别持证 | 443 | message: "请补充土地性质", |
| 449 | if (this.ruleForm.qlxx.sqfbcz == "1") { | 444 | type: "error", |
| 450 | //是 | ||
| 451 | this.ruleForm.qlrData.forEach((item, index) => { | ||
| 452 | item.sfczr = "1"; | ||
| 453 | }); | 445 | }); |
| 454 | } else { | 446 | return false; |
| 455 | this.ruleForm.qlrData.forEach((item, index) => { | ||
| 456 | if (item.zjh == this.ruleForm.czr) { | ||
| 457 | item.sfczr = "1"; | ||
| 458 | } else { | ||
| 459 | item.sfczr = "0"; | ||
| 460 | } | 447 | } |
| 448 | this.ruleForm.tdytqxList = this.ruleForm.tdytqxList.map((item) => { | ||
| 449 | return{ | ||
| 450 | ...item, | ||
| 451 | qlxzbm:this.tdxz | ||
| 452 | } | ||
| 453 | }) | ||
| 454 | if (this.ruleForm.qlxx.gyfs == "0") { | ||
| 455 | if (this.ruleForm.qlrData.length > 1) { | ||
| 456 | this.$message({ | ||
| 457 | showClose: true, | ||
| 458 | message: "共有方式:单独所有,权利人只能是一个人", | ||
| 459 | type: "error", | ||
| 461 | }); | 460 | }); |
| 461 | return false; | ||
| 462 | } | 462 | } |
| 463 | this.ruleForm.qlrData[0].sfczr = "1"; | ||
| 463 | } | 464 | } |
| 465 | // if (this.ruleForm.qlxx.gyfs == "1") { | ||
| 466 | // //是否分别持证 | ||
| 467 | // if (this.ruleForm.qlxx.sqfbcz == "1") { | ||
| 468 | // //是 | ||
| 469 | // this.ruleForm.qlrData.forEach((item, index) => { | ||
| 470 | // item.sfczr = "1"; | ||
| 471 | // }); | ||
| 472 | // } else { | ||
| 473 | // this.ruleForm.qlrData.forEach((item, index) => { | ||
| 474 | // if (item.zjh == this.ruleForm.czr) { | ||
| 475 | // item.sfczr = "1"; | ||
| 476 | // } else { | ||
| 477 | // item.sfczr = "0"; | ||
| 478 | // } | ||
| 479 | // }); | ||
| 480 | // } | ||
| 481 | // } | ||
| 464 | save(this.ruleForm).then((res) => { | 482 | save(this.ruleForm).then((res) => { |
| 465 | if (res.code === 200) { | 483 | if (res.code === 200) { |
| 466 | this.$message({ | 484 | this.$message({ | ... | ... |
-
Please register or sign in to post a comment