style:登记原因
Showing
10 changed files
with
211 additions
and
72 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-26 15:29:54 | 4 | * @LastEditTime: 2024-01-31 09:38:51 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -338,7 +338,7 @@ | ... | @@ -338,7 +338,7 @@ |
| 338 | v-model="ruleForm.diyaq.zxdyyy"> | 338 | v-model="ruleForm.diyaq.zxdyyy"> |
| 339 | </el-input> | 339 | </el-input> |
| 340 | </el-form-item> | 340 | </el-form-item> |
| 341 | <el-form-item v-else label="登记原因:" prop="djyy"> | 341 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
| 342 | <el-input | 342 | <el-input |
| 343 | class="textArea" | 343 | class="textArea" |
| 344 | type="textarea" | 344 | type="textarea" |
| ... | @@ -436,8 +436,12 @@ | ... | @@ -436,8 +436,12 @@ |
| 436 | isJfOperation: false, | 436 | isJfOperation: false, |
| 437 | //传递参数 | 437 | //传递参数 |
| 438 | propsParam: {}, | 438 | propsParam: {}, |
| 439 | rules: {}, | 439 | rules: { |
| 440 | }; | 440 | 'diyaq.djyy': [ |
| 441 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 442 | ] | ||
| 443 | } | ||
| 444 | } | ||
| 441 | }, | 445 | }, |
| 442 | methods: { | 446 | methods: { |
| 443 | /** | 447 | /** |
| ... | @@ -499,22 +503,35 @@ | ... | @@ -499,22 +503,35 @@ |
| 499 | } | 503 | } |
| 500 | } | 504 | } |
| 501 | 505 | ||
| 502 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 506 | this.$refs['ruleForm'].validate((valid) => { |
| 507 | if (valid) { | ||
| 508 | that.$store.dispatch("user/refreshPage", false); | ||
| 509 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
| 503 | if (res.code === 200) { | 510 | if (res.code === 200) { |
| 504 | this.$message({ | 511 | that.$message({ |
| 505 | showClose: true, | 512 | showClose: true, |
| 506 | message: "保存成功!", | 513 | message: "保存成功!", |
| 507 | type: "success", | 514 | type: "success", |
| 508 | }); | 515 | }); |
| 509 | this.$store.dispatch("user/refreshPage", true); | 516 | that.$store.dispatch("user/refreshPage", true); |
| 510 | } else { | 517 | } else { |
| 511 | this.$message({ | 518 | that.$message({ |
| 512 | showClose: true, | 519 | showClose: true, |
| 513 | message: res.message, | 520 | message: res.message, |
| 514 | type: "error", | 521 | type: "error", |
| 515 | }); | 522 | }); |
| 516 | } | 523 | } |
| 517 | }); | 524 | }) |
| 525 | |||
| 526 | } else { | ||
| 527 | this.$message({ | ||
| 528 | showClose: true, | ||
| 529 | message: "请输入登记原因", | ||
| 530 | type: "error" | ||
| 531 | }) | ||
| 532 | return false | ||
| 533 | } | ||
| 534 | }) | ||
| 518 | }, | 535 | }, |
| 519 | /** | 536 | /** |
| 520 | * @description: 更新权利人信息 | 537 | * @description: 更新权利人信息 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-20 14:27:29 | 4 | * @LastEditTime: 2024-01-31 09:38:06 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -342,8 +342,12 @@ | ... | @@ -342,8 +342,12 @@ |
| 342 | }, | 342 | }, |
| 343 | //传递参数 | 343 | //传递参数 |
| 344 | propsParam: {}, | 344 | propsParam: {}, |
| 345 | rules: {}, | 345 | rules: { |
| 346 | }; | 346 | djyy: [ |
| 347 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 348 | ] | ||
| 349 | } | ||
| 350 | } | ||
| 347 | }, | 351 | }, |
| 348 | methods: { | 352 | methods: { |
| 349 | /** | 353 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
| 3 | * @Autor: ssq | 3 | * @Autor: ssq |
| 4 | * @LastEditTime: 2023-11-15 15:47:55 | 4 | * @LastEditTime: 2024-01-31 09:46:04 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -279,7 +279,7 @@ | ... | @@ -279,7 +279,7 @@ |
| 279 | </div> | 279 | </div> |
| 280 | <el-row :gutter="10"> | 280 | <el-row :gutter="10"> |
| 281 | <el-col> | 281 | <el-col> |
| 282 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy"> | 282 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="lq.djyy"> |
| 283 | <el-input | 283 | <el-input |
| 284 | class="textArea" | 284 | class="textArea" |
| 285 | type="textarea" | 285 | type="textarea" |
| ... | @@ -386,7 +386,11 @@ | ... | @@ -386,7 +386,11 @@ |
| 386 | propsParam: this.$attrs, | 386 | propsParam: this.$attrs, |
| 387 | //表单是否可操作 | 387 | //表单是否可操作 |
| 388 | viewEdit: true, | 388 | viewEdit: true, |
| 389 | rules: {} | 389 | rules: { |
| 390 | 'lq.djyy': [ | ||
| 391 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 392 | ] | ||
| 393 | } | ||
| 390 | }; | 394 | }; |
| 391 | }, | 395 | }, |
| 392 | methods: { | 396 | methods: { |
| ... | @@ -491,24 +495,36 @@ | ... | @@ -491,24 +495,36 @@ |
| 491 | }) | 495 | }) |
| 492 | } | 496 | } |
| 493 | } | 497 | } |
| 494 | saveData(this.ruleForm).then((res) => { | 498 | this.$refs['ruleForm'].validate((valid) => { |
| 499 | if (valid) { | ||
| 500 | that.$store.dispatch("user/refreshPage", false); | ||
| 501 | saveData(that.ruleForm).then((res) => { | ||
| 495 | if (res.code === 200) { | 502 | if (res.code === 200) { |
| 496 | this.$message({ | 503 | that.$message({ |
| 497 | showClose: true, | 504 | showClose: true, |
| 498 | message: "保存成功!", | 505 | message: "保存成功!", |
| 499 | type: "success", | 506 | type: "success", |
| 500 | }); | 507 | }); |
| 501 | this.$store.dispatch("user/refreshPage", true); | 508 | that.$store.dispatch("user/refreshPage", true); |
| 502 | } else { | 509 | } else { |
| 503 | this.$message({ | 510 | that.$message({ |
| 504 | showClose: true, | 511 | showClose: true, |
| 505 | message: res.message, | 512 | message: res.message, |
| 506 | type: "error", | 513 | type: "error", |
| 507 | }); | 514 | }); |
| 508 | } | 515 | } |
| 509 | }); | 516 | }) |
| 510 | }, | 517 | } else { |
| 511 | }, | 518 | this.$message({ |
| 519 | showClose: true, | ||
| 520 | message: "请输入登记原因", | ||
| 521 | type: "error" | ||
| 522 | }) | ||
| 523 | return false | ||
| 524 | } | ||
| 525 | }) | ||
| 526 | } | ||
| 527 | } | ||
| 512 | }; | 528 | }; |
| 513 | </script> | 529 | </script> |
| 514 | <style scoped lang="scss"> | 530 | <style scoped lang="scss"> | ... | ... |
| ... | @@ -292,7 +292,7 @@ | ... | @@ -292,7 +292,7 @@ |
| 292 | </div> | 292 | </div> |
| 293 | <el-row :gutter="10"> | 293 | <el-row :gutter="10"> |
| 294 | <el-col> | 294 | <el-col> |
| 295 | <el-form-item label="登记原因:" prop="djyy"> | 295 | <el-form-item label="登记原因:" prop="nydsyq.djyy"> |
| 296 | <el-input | 296 | <el-input |
| 297 | class="textArea" | 297 | class="textArea" |
| 298 | type="textarea" | 298 | type="textarea" |
| ... | @@ -389,7 +389,11 @@ | ... | @@ -389,7 +389,11 @@ |
| 389 | propsParam: {}, | 389 | propsParam: {}, |
| 390 | //表单是否可操作 | 390 | //表单是否可操作 |
| 391 | viewEdit: true, | 391 | viewEdit: true, |
| 392 | rules: {}, | 392 | rules: { |
| 393 | 'nydsyq.djyy': [ | ||
| 394 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 395 | ] | ||
| 396 | }, | ||
| 393 | }; | 397 | }; |
| 394 | }, | 398 | }, |
| 395 | methods: { | 399 | methods: { |
| ... | @@ -452,23 +456,35 @@ | ... | @@ -452,23 +456,35 @@ |
| 452 | }); | 456 | }); |
| 453 | } | 457 | } |
| 454 | } | 458 | } |
| 455 | 459 | this.$refs['ruleForm'].validate((valid) => { | |
| 456 | saveData(this.ruleForm).then((res) => { | 460 | if (valid) { |
| 461 | that.$store.dispatch("user/refreshPage", false); | ||
| 462 | saveData(that.ruleForm).then((res) => { | ||
| 457 | if (res.code === 200) { | 463 | if (res.code === 200) { |
| 458 | this.$message({ | 464 | that.$message({ |
| 459 | showClose: true, | 465 | showClose: true, |
| 460 | message: "保存成功!", | 466 | message: "保存成功!", |
| 461 | type: "success", | 467 | type: "success", |
| 462 | }); | 468 | }); |
| 463 | this.$store.dispatch("user/refreshPage", true); | 469 | that.$store.dispatch("user/refreshPage", true); |
| 464 | } else { | 470 | } else { |
| 465 | this.$message({ | 471 | that.$message({ |
| 466 | showClose: true, | 472 | showClose: true, |
| 467 | message: res.message, | 473 | message: res.message, |
| 468 | type: "error", | 474 | type: "error", |
| 469 | }); | 475 | }); |
| 470 | } | 476 | } |
| 471 | }); | 477 | }) |
| 478 | } else { | ||
| 479 | this.$message({ | ||
| 480 | showClose: true, | ||
| 481 | message: "请输入登记原因", | ||
| 482 | type: "error" | ||
| 483 | }) | ||
| 484 | return false | ||
| 485 | } | ||
| 486 | }) | ||
| 487 | |||
| 472 | }, | 488 | }, |
| 473 | /** | 489 | /** |
| 474 | * @description: upDateQlrxxList | 490 | * @description: upDateQlrxxList | ... | ... |
| ... | @@ -304,7 +304,7 @@ | ... | @@ -304,7 +304,7 @@ |
| 304 | </div> | 304 | </div> |
| 305 | <el-row :gutter="10"> | 305 | <el-row :gutter="10"> |
| 306 | <el-col> | 306 | <el-col> |
| 307 | <el-form-item label="登记原因:" prop="djyy"> | 307 | <el-form-item label="登记原因:" prop="nydsyq.djyy"> |
| 308 | <el-input | 308 | <el-input |
| 309 | class="textArea" | 309 | class="textArea" |
| 310 | type="textarea" | 310 | type="textarea" |
| ... | @@ -397,8 +397,12 @@ | ... | @@ -397,8 +397,12 @@ |
| 397 | ruleForm: {}, | 397 | ruleForm: {}, |
| 398 | //传递参数 | 398 | //传递参数 |
| 399 | propsParam: {}, | 399 | propsParam: {}, |
| 400 | rules: {}, | 400 | rules: { |
| 401 | }; | 401 | 'nydsyq.djyy': [ |
| 402 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 403 | ] | ||
| 404 | } | ||
| 405 | } | ||
| 402 | }, | 406 | }, |
| 403 | methods: { | 407 | methods: { |
| 404 | /** | 408 | /** |
| ... | @@ -460,23 +464,34 @@ | ... | @@ -460,23 +464,34 @@ |
| 460 | }) | 464 | }) |
| 461 | } | 465 | } |
| 462 | } | 466 | } |
| 463 | 467 | this.$refs['ruleForm'].validate((valid) => { | |
| 464 | saveData(this.ruleForm).then((res) => { | 468 | if (valid) { |
| 469 | that.$store.dispatch("user/refreshPage", false); | ||
| 470 | saveData(that.ruleForm).then((res) => { | ||
| 465 | if (res.code === 200) { | 471 | if (res.code === 200) { |
| 466 | this.$message({ | 472 | that.$message({ |
| 467 | showClose: true, | 473 | showClose: true, |
| 468 | message: "保存成功!", | 474 | message: "保存成功!", |
| 469 | type: "success", | 475 | type: "success", |
| 470 | }); | 476 | }); |
| 471 | this.$store.dispatch("user/refreshPage", true); | 477 | that.$store.dispatch("user/refreshPage", true); |
| 472 | } else { | 478 | } else { |
| 473 | this.$message({ | 479 | that.$message({ |
| 474 | showClose: true, | 480 | showClose: true, |
| 475 | message: res.message, | 481 | message: res.message, |
| 476 | type: "error", | 482 | type: "error", |
| 477 | }); | 483 | }); |
| 478 | } | 484 | } |
| 479 | }); | 485 | }) |
| 486 | } else { | ||
| 487 | this.$message({ | ||
| 488 | showClose: true, | ||
| 489 | message: "请输入登记原因", | ||
| 490 | type: "error" | ||
| 491 | }) | ||
| 492 | return false | ||
| 493 | } | ||
| 494 | }) | ||
| 480 | }, | 495 | }, |
| 481 | /** | 496 | /** |
| 482 | * @description: 权利人更新 | 497 | * @description: 权利人更新 | ... | ... |
| ... | @@ -265,7 +265,7 @@ | ... | @@ -265,7 +265,7 @@ |
| 265 | v-model="ruleForm.ygdj.zxyy"> | 265 | v-model="ruleForm.ygdj.zxyy"> |
| 266 | </el-input> | 266 | </el-input> |
| 267 | </el-form-item> | 267 | </el-form-item> |
| 268 | <el-form-item v-else label="登记原因:" prop="djyy"> | 268 | <el-form-item v-else label="登记原因:" prop="ygdj.djyy"> |
| 269 | <el-input | 269 | <el-input |
| 270 | class="textArea" | 270 | class="textArea" |
| 271 | type="textarea" | 271 | type="textarea" |
| ... | @@ -354,7 +354,11 @@ | ... | @@ -354,7 +354,11 @@ |
| 354 | }, | 354 | }, |
| 355 | //传递参数 | 355 | //传递参数 |
| 356 | propsParam: this.$attrs, | 356 | propsParam: this.$attrs, |
| 357 | rules: {} | 357 | rules: { |
| 358 | 'ygdj.djyy': [ | ||
| 359 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 360 | ] | ||
| 361 | } | ||
| 358 | } | 362 | } |
| 359 | }, | 363 | }, |
| 360 | methods: { | 364 | methods: { |
| ... | @@ -451,25 +455,37 @@ | ... | @@ -451,25 +455,37 @@ |
| 451 | }) | 455 | }) |
| 452 | } | 456 | } |
| 453 | } | 457 | } |
| 454 | saveData(this.ruleForm).then((res) => { | 458 | this.$refs['ruleForm'].validate((valid) => { |
| 459 | if (valid) { | ||
| 460 | that.$store.dispatch("user/refreshPage", false); | ||
| 461 | saveData(that.ruleForm).then((res) => { | ||
| 455 | if (res.code === 200) { | 462 | if (res.code === 200) { |
| 456 | this.$message({ | 463 | that.$message({ |
| 457 | showClose: true, | 464 | showClose: true, |
| 458 | message: "保存成功!", | 465 | message: "保存成功!", |
| 459 | type: "success", | 466 | type: "success", |
| 460 | }); | 467 | }); |
| 461 | this.$store.dispatch("user/refreshPage", true); | 468 | that.$store.dispatch("user/refreshPage", true); |
| 462 | } else { | 469 | } else { |
| 463 | this.$message({ | 470 | that.$message({ |
| 464 | showClose: true, | 471 | showClose: true, |
| 465 | message: res.message, | 472 | message: res.message, |
| 466 | type: "error", | 473 | type: "error", |
| 467 | }); | 474 | }); |
| 468 | } | 475 | } |
| 469 | }); | 476 | }) |
| 470 | }, | 477 | } else { |
| 471 | }, | 478 | that.$message({ |
| 472 | }; | 479 | showClose: true, |
| 480 | message: "请输入登记原因", | ||
| 481 | type: "error" | ||
| 482 | }) | ||
| 483 | return false | ||
| 484 | } | ||
| 485 | }) | ||
| 486 | } | ||
| 487 | } | ||
| 488 | } | ||
| 473 | </script> | 489 | </script> |
| 474 | <style scoped lang="scss"> | 490 | <style scoped lang="scss"> |
| 475 | @import "~@/styles/public.scss"; | 491 | @import "~@/styles/public.scss"; | ... | ... |
| ... | @@ -181,7 +181,7 @@ | ... | @@ -181,7 +181,7 @@ |
| 181 | </div> | 181 | </div> |
| 182 | <el-row :gutter="10"> | 182 | <el-row :gutter="10"> |
| 183 | <el-col> | 183 | <el-col> |
| 184 | <el-form-item label="登记原因:" prop="djyy"> | 184 | <el-form-item label="登记原因:" prop="ygdj.djyy"> |
| 185 | <el-input | 185 | <el-input |
| 186 | class="textArea" | 186 | class="textArea" |
| 187 | type="textarea" | 187 | type="textarea" |
| ... | @@ -263,8 +263,12 @@ | ... | @@ -263,8 +263,12 @@ |
| 263 | ruleForm: {}, | 263 | ruleForm: {}, |
| 264 | //传递参数 | 264 | //传递参数 |
| 265 | propsParam: this.$attrs, | 265 | propsParam: this.$attrs, |
| 266 | rules: {}, | 266 | rules: { |
| 267 | }; | 267 | 'ygdj.djyy': [ |
| 268 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 269 | ] | ||
| 270 | } | ||
| 271 | } | ||
| 268 | }, | 272 | }, |
| 269 | methods: { | 273 | methods: { |
| 270 | /** | 274 | /** |
| ... | @@ -373,22 +377,37 @@ | ... | @@ -373,22 +377,37 @@ |
| 373 | }) | 377 | }) |
| 374 | } | 378 | } |
| 375 | } | 379 | } |
| 376 | saveData(this.ruleForm).then((res) => { | 380 | |
| 381 | |||
| 382 | this.$refs['ruleForm'].validate((valid) => { | ||
| 383 | if (valid) { | ||
| 384 | that.$store.dispatch("user/refreshPage", false); | ||
| 385 | saveData(that.ruleForm).then((res) => { | ||
| 377 | if (res.code === 200) { | 386 | if (res.code === 200) { |
| 378 | this.$message({ | 387 | that.$message({ |
| 379 | showClose: true, | 388 | showClose: true, |
| 380 | message: "保存成功!", | 389 | message: "保存成功!", |
| 381 | type: "success", | 390 | type: "success", |
| 382 | }); | 391 | }); |
| 383 | this.$store.dispatch("user/refreshPage", true); | 392 | that.$store.dispatch("user/refreshPage", true); |
| 384 | } else { | 393 | } else { |
| 385 | this.$message({ | 394 | that.$message({ |
| 386 | showClose: true, | 395 | showClose: true, |
| 387 | message: res.message, | 396 | message: res.message, |
| 388 | type: "error", | 397 | type: "error", |
| 389 | }); | 398 | }); |
| 390 | } | 399 | } |
| 391 | }); | 400 | }) |
| 401 | } else { | ||
| 402 | that.$message({ | ||
| 403 | showClose: true, | ||
| 404 | message: "请输入登记原因", | ||
| 405 | type: "error" | ||
| 406 | }) | ||
| 407 | return false | ||
| 408 | } | ||
| 409 | }) | ||
| 410 | |||
| 392 | }, | 411 | }, |
| 393 | /** | 412 | /** |
| 394 | * @description: compare | 413 | * @description: compare | ... | ... |
| ... | @@ -290,7 +290,7 @@ | ... | @@ -290,7 +290,7 @@ |
| 290 | v-model="ruleForm.ygdj.zxyy"> | 290 | v-model="ruleForm.ygdj.zxyy"> |
| 291 | </el-input> | 291 | </el-input> |
| 292 | </el-form-item> | 292 | </el-form-item> |
| 293 | <el-form-item v-else label="登记原因:" prop="djyy"> | 293 | <el-form-item v-else label="登记原因:" prop="ygdj.djyy"> |
| 294 | <el-input | 294 | <el-input |
| 295 | class="textArea" | 295 | class="textArea" |
| 296 | type="textarea" | 296 | type="textarea" |
| ... | @@ -387,6 +387,9 @@ | ... | @@ -387,6 +387,9 @@ |
| 387 | zwlxqssjrules: [{ required: true, message: "债务履行起始时间", trigger: "blur" }], | 387 | zwlxqssjrules: [{ required: true, message: "债务履行起始时间", trigger: "blur" }], |
| 388 | zwlxjssjrules: [{ required: true, message: "债务履行结束时间", trigger: "blur" }], | 388 | zwlxjssjrules: [{ required: true, message: "债务履行结束时间", trigger: "blur" }], |
| 389 | dbfwrules: [{ required: true, message: "担保范围", trigger: "blur" }], | 389 | dbfwrules: [{ required: true, message: "担保范围", trigger: "blur" }], |
| 390 | 'ygdj.djyy': [ | ||
| 391 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 392 | ] | ||
| 390 | } | 393 | } |
| 391 | } | 394 | } |
| 392 | }, | 395 | }, | ... | ... |
| ... | @@ -280,7 +280,7 @@ | ... | @@ -280,7 +280,7 @@ |
| 280 | v-model="ruleForm.diyaqList[0].zxdyyy"> | 280 | v-model="ruleForm.diyaqList[0].zxdyyy"> |
| 281 | </el-input> | 281 | </el-input> |
| 282 | </el-form-item> | 282 | </el-form-item> |
| 283 | <el-form-item v-else label="登记原因:" prop="djyy"> | 283 | <el-form-item v-else label="登记原因:" prop="diyaqList[0].djyy"> |
| 284 | <el-input | 284 | <el-input |
| 285 | class="textArea" | 285 | class="textArea" |
| 286 | type="textarea" | 286 | type="textarea" |
| ... | @@ -360,7 +360,11 @@ | ... | @@ -360,7 +360,11 @@ |
| 360 | ruleForm: {}, | 360 | ruleForm: {}, |
| 361 | //传递参数 | 361 | //传递参数 |
| 362 | propsParam: {}, | 362 | propsParam: {}, |
| 363 | rules: {}, | 363 | rules: { |
| 364 | 'diyaqList[0].djyy': [ | ||
| 365 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 366 | ] | ||
| 367 | }, | ||
| 364 | tableData: [], | 368 | tableData: [], |
| 365 | }; | 369 | }; |
| 366 | }, | 370 | }, |
| ... | @@ -423,22 +427,34 @@ | ... | @@ -423,22 +427,34 @@ |
| 423 | }); | 427 | }); |
| 424 | } | 428 | } |
| 425 | } | 429 | } |
| 426 | saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => { | 430 | this.$refs['ruleForm'].validate((valid) => { |
| 431 | if (valid) { | ||
| 432 | that.$store.dispatch("user/refreshPage", false); | ||
| 433 | saveBatchData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
| 427 | if (res.code === 200) { | 434 | if (res.code === 200) { |
| 428 | this.$message({ | 435 | that.$message({ |
| 429 | showClose: true, | 436 | showClose: true, |
| 430 | message: "保存成功!", | 437 | message: "保存成功!", |
| 431 | type: "success", | 438 | type: "success", |
| 432 | }); | 439 | }); |
| 433 | this.$store.dispatch("user/refreshPage", true); | 440 | that.$store.dispatch("user/refreshPage", true); |
| 434 | } else { | 441 | } else { |
| 435 | this.$message({ | 442 | that.$message({ |
| 436 | showClose: true, | 443 | showClose: true, |
| 437 | message: res.message, | 444 | message: res.message, |
| 438 | type: "error", | 445 | type: "error", |
| 439 | }); | 446 | }); |
| 440 | } | 447 | } |
| 441 | }); | 448 | }) |
| 449 | } else { | ||
| 450 | that.$message({ | ||
| 451 | showClose: true, | ||
| 452 | message: "请输入登记原因", | ||
| 453 | type: "error" | ||
| 454 | }) | ||
| 455 | return false | ||
| 456 | } | ||
| 457 | }) | ||
| 442 | }, | 458 | }, |
| 443 | /** | 459 | /** |
| 444 | * @description: 是否持证人变化 | 460 | * @description: 是否持证人变化 | ... | ... |
| ... | @@ -338,7 +338,7 @@ | ... | @@ -338,7 +338,7 @@ |
| 338 | v-model="ruleForm.diyaq.zxdyyy"> | 338 | v-model="ruleForm.diyaq.zxdyyy"> |
| 339 | </el-input> | 339 | </el-input> |
| 340 | </el-form-item> | 340 | </el-form-item> |
| 341 | <el-form-item v-else label="登记原因:" prop="djyy"> | 341 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
| 342 | <el-input | 342 | <el-input |
| 343 | class="textArea" | 343 | class="textArea" |
| 344 | type="textarea" | 344 | type="textarea" |
| ... | @@ -416,7 +416,11 @@ | ... | @@ -416,7 +416,11 @@ |
| 416 | ruleForm: {}, | 416 | ruleForm: {}, |
| 417 | //传递参数 | 417 | //传递参数 |
| 418 | propsParam: {}, | 418 | propsParam: {}, |
| 419 | rules: {}, | 419 | rules: { |
| 420 | 'diyaq.djyy': [ | ||
| 421 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
| 422 | ] | ||
| 423 | }, | ||
| 420 | // 键名转换,方法默认是label和children进行树状渲染 | 424 | // 键名转换,方法默认是label和children进行树状渲染 |
| 421 | normalizer (node) { | 425 | normalizer (node) { |
| 422 | //方法 | 426 | //方法 |
| ... | @@ -490,22 +494,35 @@ | ... | @@ -490,22 +494,35 @@ |
| 490 | }); | 494 | }); |
| 491 | } | 495 | } |
| 492 | } | 496 | } |
| 493 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | 497 | this.$refs['ruleForm'].validate((valid) => { |
| 498 | if (valid) { | ||
| 499 | that.$store.dispatch("user/refreshPage", false); | ||
| 500 | saveData(that.ruleForm, that.propsParam.djlx).then((res) => { | ||
| 494 | if (res.code === 200) { | 501 | if (res.code === 200) { |
| 495 | this.$message({ | 502 | that.$message({ |
| 496 | showClose: true, | 503 | showClose: true, |
| 497 | message: "保存成功!", | 504 | message: "保存成功!", |
| 498 | type: "success", | 505 | type: "success", |
| 499 | }); | 506 | }); |
| 500 | this.$store.dispatch("user/refreshPage", true); | 507 | that.$store.dispatch("user/refreshPage", true); |
| 501 | } else { | 508 | } else { |
| 502 | this.$message({ | 509 | that.$message({ |
| 503 | showClose: true, | 510 | showClose: true, |
| 504 | message: res.message, | 511 | message: res.message, |
| 505 | type: "error", | 512 | type: "error", |
| 506 | }); | 513 | }); |
| 507 | } | 514 | } |
| 508 | }); | 515 | }) |
| 516 | } else { | ||
| 517 | that.$message({ | ||
| 518 | showClose: true, | ||
| 519 | message: "请输入登记原因", | ||
| 520 | type: "error" | ||
| 521 | }) | ||
| 522 | return false | ||
| 523 | } | ||
| 524 | }) | ||
| 525 | |||
| 509 | }, | 526 | }, |
| 510 | /** | 527 | /** |
| 511 | * @description: 更新权利人信息 | 528 | * @description: 更新权利人信息 | ... | ... |
-
Please register or sign in to post a comment