--no commit message
Showing
1 changed file
with
11 additions
and
10 deletions
| ... | @@ -287,8 +287,7 @@ | ... | @@ -287,8 +287,7 @@ |
| 287 | </template> | 287 | </template> |
| 288 | <script> | 288 | <script> |
| 289 | import { mapGetters } from "vuex"; | 289 | import { mapGetters } from "vuex"; |
| 290 | import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js"; | 290 | import { init,save } from "@/api/djbbl.js"; |
| 291 | import { init } from "@/api/djbbl.js"; | ||
| 292 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 291 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
| 293 | import tdytTable from "@/views/workflow/components/tdytTable"; | 292 | import tdytTable from "@/views/workflow/components/tdytTable"; |
| 294 | export default { | 293 | export default { |
| ... | @@ -333,8 +332,10 @@ export default { | ... | @@ -333,8 +332,10 @@ export default { |
| 333 | }, | 332 | }, |
| 334 | // 更新权利人信息 | 333 | // 更新权利人信息 |
| 335 | upDateQlrxxList(val) { | 334 | upDateQlrxxList(val) { |
| 336 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)); | 335 | console.log("val",val); |
| 337 | this.czrOptions = this.ruleForm.qlrList; | 336 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 337 | console.log("this.ruleForm.qlrData",this.ruleForm.qlrData); | ||
| 338 | this.czrOptions = this.ruleForm.qlrData; | ||
| 338 | this.key++; | 339 | this.key++; |
| 339 | }, | 340 | }, |
| 340 | // 更新义务人信息 | 341 | // 更新义务人信息 |
| ... | @@ -344,7 +345,7 @@ export default { | ... | @@ -344,7 +345,7 @@ export default { |
| 344 | }, | 345 | }, |
| 345 | onSubmit() { | 346 | onSubmit() { |
| 346 | console.log("this.ruleForm大信息",this.ruleForm); | 347 | console.log("this.ruleForm大信息",this.ruleForm); |
| 347 | if (this.ruleForm.qlrList.length == 0) { | 348 | if (this.ruleForm.qlrData.length == 0) { |
| 348 | this.$message({ | 349 | this.$message({ |
| 349 | showClose: true, | 350 | showClose: true, |
| 350 | message: "请确认权利人信息", | 351 | message: "请确认权利人信息", |
| ... | @@ -354,7 +355,7 @@ export default { | ... | @@ -354,7 +355,7 @@ export default { |
| 354 | } | 355 | } |
| 355 | 356 | ||
| 356 | if (this.ruleForm.qlxx.gyfs == "0") { | 357 | if (this.ruleForm.qlxx.gyfs == "0") { |
| 357 | if (this.ruleForm.qlrList.length > 1) { | 358 | if (this.ruleForm.qlrData.length > 1) { |
| 358 | this.$message({ | 359 | this.$message({ |
| 359 | showClose: true, | 360 | showClose: true, |
| 360 | message: "共有方式:单独所有,权利人只能是一个人", | 361 | message: "共有方式:单独所有,权利人只能是一个人", |
| ... | @@ -362,17 +363,17 @@ export default { | ... | @@ -362,17 +363,17 @@ export default { |
| 362 | }); | 363 | }); |
| 363 | return false; | 364 | return false; |
| 364 | } | 365 | } |
| 365 | this.ruleForm.qlrList[0].sfczr = "1"; | 366 | this.ruleForm.qlrData[0].sfczr = "1"; |
| 366 | } | 367 | } |
| 367 | if (this.ruleForm.qlxx.gyfs == "1") { | 368 | if (this.ruleForm.qlxx.gyfs == "1") { |
| 368 | //是否分别持证 | 369 | //是否分别持证 |
| 369 | if (this.ruleForm.qlxx.sqfbcz == "1") { | 370 | if (this.ruleForm.qlxx.sqfbcz == "1") { |
| 370 | //是 | 371 | //是 |
| 371 | this.ruleForm.qlrList.forEach((item, index) => { | 372 | this.ruleForm.qlrData.forEach((item, index) => { |
| 372 | item.sfczr = "1"; | 373 | item.sfczr = "1"; |
| 373 | }); | 374 | }); |
| 374 | } else { | 375 | } else { |
| 375 | this.ruleForm.qlrList.forEach((item, index) => { | 376 | this.ruleForm.qlrData.forEach((item, index) => { |
| 376 | if (item.zjh == this.ruleForm.czr) { | 377 | if (item.zjh == this.ruleForm.czr) { |
| 377 | item.sfczr = "1"; | 378 | item.sfczr = "1"; |
| 378 | } else { | 379 | } else { |
| ... | @@ -381,7 +382,7 @@ export default { | ... | @@ -381,7 +382,7 @@ export default { |
| 381 | }); | 382 | }); |
| 382 | } | 383 | } |
| 383 | } | 384 | } |
| 384 | saveData(this.ruleForm).then((res) => { | 385 | save(this.ruleForm).then((res) => { |
| 385 | if (res.code === 200) { | 386 | if (res.code === 200) { |
| 386 | this.$message({ | 387 | this.$message({ |
| 387 | showClose: true, | 388 | showClose: true, | ... | ... |
-
Please register or sign in to post a comment