style:权利人信息持证人模块的重构
Showing
20 changed files
with
566 additions
and
386 deletions
... | @@ -21,7 +21,6 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { | ... | @@ -21,7 +21,6 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { |
21 | removeTreeListItem(treeList[i].children, dictId) | 21 | removeTreeListItem(treeList[i].children, dictId) |
22 | } | 22 | } |
23 | } | 23 | } |
24 | // 创造id | ||
25 | /** | 24 | /** |
26 | * @description: 创造id | 25 | * @description: 创造id |
27 | * @param {*} len | 26 | * @param {*} len | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-12 08:55:14 | 4 | * @LastEditTime: 2023-09-20 10:06:22 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <dialogBox | 7 | <dialogBox |
... | @@ -340,6 +340,7 @@ | ... | @@ -340,6 +340,7 @@ |
340 | <script> | 340 | <script> |
341 | import { mapGetters } from "vuex"; | 341 | import { mapGetters } from "vuex"; |
342 | import store from '@/store/index.js' | 342 | import store from '@/store/index.js' |
343 | import { getUuid } from "@/utils/operation.js" | ||
343 | import { getIdCardInfo } from '@/utils/operation.js' | 344 | import { getIdCardInfo } from '@/utils/operation.js' |
344 | import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js"; | 345 | import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js"; |
345 | import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData"; | 346 | import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData"; |
... | @@ -500,7 +501,7 @@ | ... | @@ -500,7 +501,7 @@ |
500 | } | 501 | } |
501 | }, | 502 | }, |
502 | /** | 503 | /** |
503 | * @description: handleSearchQY | 504 | * @description: 企业信息搜索 |
504 | * @author: renchao | 505 | * @author: renchao |
505 | */ | 506 | */ |
506 | handleSearchQY () { | 507 | handleSearchQY () { |
... | @@ -515,6 +516,7 @@ | ... | @@ -515,6 +516,7 @@ |
515 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') | 516 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') |
516 | item.sqrmc = item.qymc | 517 | item.sqrmc = item.qymc |
517 | item.txdz = item.dwdz | 518 | item.txdz = item.dwdz |
519 | item.id = getUuid(16) | ||
518 | }) | 520 | }) |
519 | } | 521 | } |
520 | }) | 522 | }) |
... | @@ -537,9 +539,8 @@ | ... | @@ -537,9 +539,8 @@ |
537 | this.$emit("updateDetail", _.cloneDeep(val)); | 539 | this.$emit("updateDetail", _.cloneDeep(val)); |
538 | this.$emit("input", false); | 540 | this.$emit("input", false); |
539 | }, | 541 | }, |
540 | // 银行 | ||
541 | /** | 542 | /** |
542 | * @description: 银行 | 543 | * @description: 银行信息搜索 |
543 | * @author: renchao | 544 | * @author: renchao |
544 | */ | 545 | */ |
545 | handleSearchYH () { | 546 | handleSearchYH () { |
... | @@ -554,6 +555,7 @@ | ... | @@ -554,6 +555,7 @@ |
554 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') | 555 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') |
555 | item.sqrmc = item.qymc | 556 | item.sqrmc = item.qymc |
556 | item.txdz = item.dwdz | 557 | item.txdz = item.dwdz |
558 | item.id = getUuid(16) | ||
557 | }) | 559 | }) |
558 | } | 560 | } |
559 | }) | 561 | }) |
... | @@ -618,6 +620,7 @@ | ... | @@ -618,6 +620,7 @@ |
618 | this.$refs.ruleForm.validate((valid) => { | 620 | this.$refs.ruleForm.validate((valid) => { |
619 | if (valid) { | 621 | if (valid) { |
620 | this.$emit("input", false); | 622 | this.$emit("input", false); |
623 | this.ruleForm.id = getUuid(16) | ||
621 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | 624 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); |
622 | this.$refs["ruleForm"].resetFields(); | 625 | this.$refs["ruleForm"].resetFields(); |
623 | } else { | 626 | } else { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-19 15:23:42 | 4 | * @LastEditTime: 2023-09-20 14:09:36 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -298,10 +298,10 @@ | ... | @@ -298,10 +298,10 @@ |
298 | placeholder="持证人" | 298 | placeholder="持证人" |
299 | :disabled="!viewEdit"> | 299 | :disabled="!viewEdit"> |
300 | <el-option | 300 | <el-option |
301 | v-for="item in czrOptions" | 301 | v-for="(item,index) in czrOptions" |
302 | :key="item.zjh" | 302 | :key="index" |
303 | :label="item.sqrmc" | 303 | :label="item.sqrmc" |
304 | :value="item.zjh"> | 304 | :value="item.id"> |
305 | </el-option> | 305 | </el-option> |
306 | </el-select> | 306 | </el-select> |
307 | </el-form-item> | 307 | </el-form-item> |
... | @@ -383,14 +383,21 @@ | ... | @@ -383,14 +383,21 @@ |
383 | }, 200) | 383 | }, 200) |
384 | if (res.code === 200 && res.result) { | 384 | if (res.code === 200 && res.result) { |
385 | that.ruleForm = res.result; | 385 | that.ruleForm = res.result; |
386 | that.czrOptions = this.ruleForm.qlrList; | ||
387 | that.ruleForm.qlrList.forEach((item) => { | 386 | that.ruleForm.qlrList.forEach((item) => { |
388 | if (item.sfczr == 1) { | 387 | item.id = item.bsmSqr |
389 | that.czr = item.zjh | 388 | if (item.sfczr == '1') { |
389 | that.czr = item.bsmSqr | ||
390 | } | 390 | } |
391 | }) | 391 | }) |
392 | that.czrOptions = this.ruleForm.qlrList; | ||
393 | that.isSave = that.viewEdit | ||
392 | } else { | 394 | } else { |
393 | that.$message.error(res.message); | 395 | that.isSave = false |
396 | that.$confirm(res.message, '提示', { | ||
397 | cancelButtonText: '取消', | ||
398 | showConfirmButton: false, | ||
399 | type: 'warning' | ||
400 | }) | ||
394 | } | 401 | } |
395 | }).catch(() => { | 402 | }).catch(() => { |
396 | this.loading = false | 403 | this.loading = false |
... | @@ -402,6 +409,7 @@ | ... | @@ -402,6 +409,7 @@ |
402 | }, | 409 | }, |
403 | data () { | 410 | data () { |
404 | return { | 411 | return { |
412 | isSave: true, | ||
405 | // 键名转换,方法默认是label和children进行树状渲染 | 413 | // 键名转换,方法默认是label和children进行树状渲染 |
406 | normalizer (node) { | 414 | normalizer (node) { |
407 | //方法 | 415 | //方法 |
... | @@ -473,21 +481,21 @@ | ... | @@ -473,21 +481,21 @@ |
473 | item.sfczr = "1"; | 481 | item.sfczr = "1"; |
474 | }); | 482 | }); |
475 | } else { | 483 | } else { |
476 | if (!that.czr) { | 484 | if (that.czr === '') { |
477 | that.$message({ | 485 | that.$message({ |
478 | showClose: true, | 486 | showClose: true, |
479 | message: "请选择持证人", | 487 | message: "请选择持证人", |
480 | type: "error", | 488 | type: "error" |
481 | }); | 489 | }); |
482 | return false; | 490 | return false; |
483 | } | 491 | } |
484 | this.ruleForm.qlrList.forEach((item, index) => { | 492 | this.ruleForm.qlrList.forEach((item, index) => { |
485 | if (item.zjh == that.czr) { | 493 | if (item.id == that.czr) { |
486 | item.sfczr = "1"; | 494 | item.sfczr = "1" |
487 | } else { | 495 | } else { |
488 | item.sfczr = "0"; | 496 | item.sfczr = "0" |
489 | } | 497 | } |
490 | }); | 498 | }) |
491 | } | 499 | } |
492 | } | 500 | } |
493 | 501 | ||
... | @@ -520,7 +528,7 @@ | ... | @@ -520,7 +528,7 @@ |
520 | } | 528 | } |
521 | this.num = 0 | 529 | this.num = 0 |
522 | this.ruleForm.qlrList.forEach(item => { | 530 | this.ruleForm.qlrList.forEach(item => { |
523 | if (item.zjh == this.czr) { | 531 | if (item.id == this.czr) { |
524 | this.num++ | 532 | this.num++ |
525 | } | 533 | } |
526 | }) | 534 | }) | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-09-14 17:20:40 | 4 | * @LastEditTime: 2023-09-20 13:39:05 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -220,16 +220,16 @@ | ... | @@ -220,16 +220,16 @@ |
220 | <el-col | 220 | <el-col |
221 | :span="5" | 221 | :span="5" |
222 | v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> | 222 | v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> |
223 | <el-form-item label="持证人1:"> | 223 | <el-form-item label="持证人:"> |
224 | <el-select | 224 | <el-select |
225 | v-model="czr" | 225 | v-model="czr" |
226 | placeholder="持证人" | 226 | placeholder="持证人" |
227 | :disabled="!viewEdit"> | 227 | :disabled="!viewEdit"> |
228 | <el-option | 228 | <el-option |
229 | v-for="item in czrOptions" | 229 | v-for="(item,index) in czrOptions" |
230 | :key="item.zjh" | 230 | :key="index" |
231 | :label="item.sqrmc" | 231 | :label="item.sqrmc" |
232 | :value="item.zjh"></el-option> | 232 | :value="item.id"></el-option> |
233 | </el-select> | 233 | </el-select> |
234 | </el-form-item> | 234 | </el-form-item> |
235 | </el-col> | 235 | </el-col> |
... | @@ -272,7 +272,7 @@ | ... | @@ -272,7 +272,7 @@ |
272 | </el-row> | 272 | </el-row> |
273 | </div> | 273 | </div> |
274 | </div> | 274 | </div> |
275 | <el-row class="btn" v-if="viewEdit"> | 275 | <el-row class="btn" v-if="isSave"> |
276 | <el-form-item> | 276 | <el-form-item> |
277 | <el-button type="primary" @click="onSubmit">保存</el-button> | 277 | <el-button type="primary" @click="onSubmit">保存</el-button> |
278 | </el-form-item> | 278 | </el-form-item> |
... | @@ -291,6 +291,7 @@ | ... | @@ -291,6 +291,7 @@ |
291 | export default { | 291 | export default { |
292 | mixins: [ywmix], | 292 | mixins: [ywmix], |
293 | mounted () { | 293 | mounted () { |
294 | let that = this | ||
294 | this.loading = true | 295 | this.loading = true |
295 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 296 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
296 | this.propsParam = this.$attrs; | 297 | this.propsParam = this.$attrs; |
... | @@ -303,19 +304,28 @@ | ... | @@ -303,19 +304,28 @@ |
303 | this.loading = false | 304 | this.loading = false |
304 | }, 200) | 305 | }, 200) |
305 | if (res.code === 200 && res.result) { | 306 | if (res.code === 200 && res.result) { |
306 | this.ruleForm = { | 307 | that.ruleForm = { |
307 | ...res.result, | 308 | ...res.result, |
308 | ...res.result.qlxxdatas, | 309 | ...res.result.qlxxdatas, |
309 | }; | 310 | }; |
310 | this.ruleForm.qlrList.forEach((item) => { | 311 | that.ruleForm.qlrList.forEach((item) => { |
311 | if (item.sfczr == 1) { | 312 | item.id = item.bsmSqr |
312 | this.czr = item.zjh | 313 | if (item.sfczr == '1') { |
314 | that.czr = item.bsmSqr | ||
313 | } | 315 | } |
314 | }); | 316 | }); |
315 | this.czrOptions = this.ruleForm.qlrList; | 317 | that.czrOptions = that.ruleForm.qlrList; |
318 | that.isSave = this.viewEdit | ||
316 | } else { | 319 | } else { |
317 | this.$message.error(res.message); | 320 | that.isSave = false |
321 | that.$confirm(res.message, '提示', { | ||
322 | cancelButtonText: '取消', | ||
323 | showConfirmButton: false, | ||
324 | type: 'warning' | ||
325 | }) | ||
318 | } | 326 | } |
327 | }).catch(() => { | ||
328 | this.loading = false | ||
319 | }) | 329 | }) |
320 | }, | 330 | }, |
321 | components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable }, | 331 | components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable }, |
... | @@ -324,6 +334,7 @@ | ... | @@ -324,6 +334,7 @@ |
324 | }, | 334 | }, |
325 | data () { | 335 | data () { |
326 | return { | 336 | return { |
337 | isSave: true, | ||
327 | loading: false, | 338 | loading: false, |
328 | disabled: true, | 339 | disabled: true, |
329 | tdytOption: [], | 340 | tdytOption: [], |
... | @@ -386,7 +397,7 @@ | ... | @@ -386,7 +397,7 @@ |
386 | } | 397 | } |
387 | this.num = 0 | 398 | this.num = 0 |
388 | this.ruleForm.qlrList.forEach(item => { | 399 | this.ruleForm.qlrList.forEach(item => { |
389 | if (item.zjh == this.czr) { | 400 | if (item.id == this.czr) { |
390 | this.num++ | 401 | this.num++ |
391 | } | 402 | } |
392 | }) | 403 | }) |
... | @@ -402,7 +413,6 @@ | ... | @@ -402,7 +413,6 @@ |
402 | updaterow () { | 413 | updaterow () { |
403 | this.czr = ""; | 414 | this.czr = ""; |
404 | }, | 415 | }, |
405 | // 更新权利人信息 | ||
406 | /** | 416 | /** |
407 | * @description: 更新权利人信息 | 417 | * @description: 更新权利人信息 |
408 | * @param {*} val | 418 | * @param {*} val |
... | @@ -461,7 +471,7 @@ | ... | @@ -461,7 +471,7 @@ |
461 | item.sfczr = "1"; | 471 | item.sfczr = "1"; |
462 | }); | 472 | }); |
463 | } else { | 473 | } else { |
464 | if (!that.czr) { | 474 | if (that.czr === '') { |
465 | that.$message({ | 475 | that.$message({ |
466 | showClose: true, | 476 | showClose: true, |
467 | message: "请选择持证人", | 477 | message: "请选择持证人", |
... | @@ -469,16 +479,15 @@ | ... | @@ -469,16 +479,15 @@ |
469 | }); | 479 | }); |
470 | return false; | 480 | return false; |
471 | } | 481 | } |
472 | this.ruleForm.qlrList.forEach((item, index) => { | 482 | this.ruleForm.qlrList.forEach(item => { |
473 | if (item.zjh == that.czr) { | 483 | if (item.id == that.czr) { |
474 | item.sfczr = "1"; | 484 | item.sfczr = "1" |
475 | } else { | 485 | } else { |
476 | item.sfczr = "0"; | 486 | item.sfczr = "0" |
477 | } | 487 | } |
478 | }); | 488 | }) |
479 | } | 489 | } |
480 | } | 490 | } |
481 | |||
482 | saveData(this.ruleForm).then((res) => { | 491 | saveData(this.ruleForm).then((res) => { |
483 | if (res.code === 200) { | 492 | if (res.code === 200) { |
484 | this.$message({ | 493 | this.$message({ |
... | @@ -491,13 +500,13 @@ | ... | @@ -491,13 +500,13 @@ |
491 | this.$message({ | 500 | this.$message({ |
492 | showClose: true, | 501 | showClose: true, |
493 | message: res.message, | 502 | message: res.message, |
494 | type: "error", | 503 | type: "error" |
495 | }); | 504 | }) |
496 | } | 505 | } |
497 | }); | 506 | }) |
498 | }, | 507 | } |
499 | }, | 508 | } |
500 | }; | 509 | } |
501 | </script> | 510 | </script> |
502 | <style scoped lang="scss"> | 511 | <style scoped lang="scss"> |
503 | @import "~@/styles/public.scss"; | 512 | @import "~@/styles/public.scss"; | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-19 16:42:02 | 4 | * @LastEditTime: 2023-09-20 13:32:40 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -355,10 +355,10 @@ | ... | @@ -355,10 +355,10 @@ |
355 | placeholder="持证人" | 355 | placeholder="持证人" |
356 | :disabled="!viewEdit"> | 356 | :disabled="!viewEdit"> |
357 | <el-option | 357 | <el-option |
358 | v-for="item in czrOptions" | 358 | v-for="(item,index) in czrOptions" |
359 | :key="item.zjh" | 359 | :key="index" |
360 | :label="item.sqrmc" | 360 | :label="item.sqrmc" |
361 | :value="item.zjh"> | 361 | :value="item.id"> |
362 | </el-option> | 362 | </el-option> |
363 | </el-select> | 363 | </el-select> |
364 | </el-form-item> | 364 | </el-form-item> |
... | @@ -418,6 +418,7 @@ | ... | @@ -418,6 +418,7 @@ |
418 | export default { | 418 | export default { |
419 | mixins: [ywmix], | 419 | mixins: [ywmix], |
420 | mounted () { | 420 | mounted () { |
421 | let that = this; | ||
421 | this.loading = true | 422 | this.loading = true |
422 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 423 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
423 | this.propsParam = this.$attrs; | 424 | this.propsParam = this.$attrs; |
... | @@ -430,20 +431,21 @@ | ... | @@ -430,20 +431,21 @@ |
430 | this.loading = false | 431 | this.loading = false |
431 | }, 200) | 432 | }, 200) |
432 | if (res.code === 200 && res.result) { | 433 | if (res.code === 200 && res.result) { |
433 | this.ruleForm = { | 434 | that.ruleForm = { |
434 | ...res.result, | 435 | ...res.result, |
435 | ...res.result.qlxxdatas, | 436 | ...res.result.qlxxdatas, |
436 | }; | 437 | }; |
437 | this.ruleForm.qlrList.forEach((item) => { | 438 | that.ruleForm.qlrList.forEach((item) => { |
438 | if (item.sfczr == 1) { | 439 | item.id = item.bsmSqr |
439 | this.czr = item.zjh | 440 | if (item.sfczr == '1') { |
441 | that.czr = item.bsmSqr | ||
440 | } | 442 | } |
441 | }); | 443 | }) |
442 | this.czrOptions = this.ruleForm.qlrList; | 444 | that.czrOptions = that.ruleForm.qlrList; |
443 | this.isSave = this.viewEdit | 445 | that.isSave = that.viewEdit |
444 | } else { | 446 | } else { |
445 | this.isSave = false | 447 | that.isSave = false |
446 | this.$confirm(res.message, '提示', { | 448 | that.$confirm(res.message, '提示', { |
447 | cancelButtonText: '取消', | 449 | cancelButtonText: '取消', |
448 | showConfirmButton: false, | 450 | showConfirmButton: false, |
449 | type: 'warning' | 451 | type: 'warning' |
... | @@ -518,11 +520,13 @@ | ... | @@ -518,11 +520,13 @@ |
518 | * @author: renchao | 520 | * @author: renchao |
519 | */ | 521 | */ |
520 | upDateQlrxxList (val) { | 522 | upDateQlrxxList (val) { |
521 | this.ruleForm.qlrList = _.cloneDeep(val); | 523 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
522 | this.czrOptions = this.ruleForm.qlrList; | 524 | this.ruleForm.qlrList = _.cloneDeep(val); |
525 | this.czrOptions = this.ruleForm.qlrList; | ||
526 | } | ||
523 | this.num = 0 | 527 | this.num = 0 |
524 | this.ruleForm.qlrList.forEach(item => { | 528 | this.ruleForm.qlrList.forEach(item => { |
525 | if (item.zjh == this.czr) { | 529 | if (item.id == this.czr) { |
526 | this.num++ | 530 | this.num++ |
527 | } | 531 | } |
528 | }) | 532 | }) |
... | @@ -598,7 +602,7 @@ | ... | @@ -598,7 +602,7 @@ |
598 | item.sfczr = "1"; | 602 | item.sfczr = "1"; |
599 | }); | 603 | }); |
600 | } else { | 604 | } else { |
601 | if (!that.czr) { | 605 | if (that.czr === '') { |
602 | that.$message({ | 606 | that.$message({ |
603 | showClose: true, | 607 | showClose: true, |
604 | message: "请选择持证人", | 608 | message: "请选择持证人", |
... | @@ -607,7 +611,7 @@ | ... | @@ -607,7 +611,7 @@ |
607 | return false; | 611 | return false; |
608 | } | 612 | } |
609 | this.ruleForm.qlrList.forEach((item, index) => { | 613 | this.ruleForm.qlrList.forEach((item, index) => { |
610 | if (item.zjh == that.czr) { | 614 | if (item.id == that.czr) { |
611 | item.sfczr = "1"; | 615 | item.sfczr = "1"; |
612 | } else { | 616 | } else { |
613 | item.sfczr = "0"; | 617 | item.sfczr = "0"; | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-14 17:20:53 | 4 | * @LastEditTime: 2023-09-20 13:32:47 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -225,10 +225,10 @@ | ... | @@ -225,10 +225,10 @@ |
225 | placeholder="持证人" | 225 | placeholder="持证人" |
226 | :disabled="!viewEdit"> | 226 | :disabled="!viewEdit"> |
227 | <el-option | 227 | <el-option |
228 | v-for="item in czrOptions" | 228 | v-for="(item,index) in czrOptions" |
229 | :key="item.zjh" | 229 | :key="index" |
230 | :label="item.sqrmc" | 230 | :label="item.sqrmc" |
231 | :value="item.zjh"> | 231 | :value="item.id"> |
232 | </el-option> | 232 | </el-option> |
233 | </el-select> | 233 | </el-select> |
234 | </el-form-item> | 234 | </el-form-item> |
... | @@ -258,7 +258,7 @@ | ... | @@ -258,7 +258,7 @@ |
258 | </el-col> | 258 | </el-col> |
259 | </el-row> | 259 | </el-row> |
260 | </div> | 260 | </div> |
261 | <el-row class="btn" v-if="viewEdit"> | 261 | <el-row class="btn" v-if="isSave"> |
262 | <el-form-item> | 262 | <el-form-item> |
263 | <el-button type="primary" @click="onSubmit">保存</el-button> | 263 | <el-button type="primary" @click="onSubmit">保存</el-button> |
264 | </el-form-item> | 264 | </el-form-item> |
... | @@ -275,6 +275,7 @@ | ... | @@ -275,6 +275,7 @@ |
275 | export default { | 275 | export default { |
276 | mixins: [ywmix], | 276 | mixins: [ywmix], |
277 | mounted () { | 277 | mounted () { |
278 | let that = this | ||
278 | this.loading = true | 279 | this.loading = true |
279 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 280 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
280 | this.propsParam = this.$attrs; | 281 | this.propsParam = this.$attrs; |
... | @@ -287,23 +288,31 @@ | ... | @@ -287,23 +288,31 @@ |
287 | this.loading = false | 288 | this.loading = false |
288 | }, 200) | 289 | }, 200) |
289 | if (res.code === 200 && res.result) { | 290 | if (res.code === 200 && res.result) { |
290 | this.ruleForm = { | 291 | that.ruleForm = { |
291 | ...res.result, | 292 | ...res.result, |
292 | ...res.result.zdjbxxdatas, | 293 | ...res.result.zdjbxxdatas, |
293 | ...res.result.qlxxdatas, | 294 | ...res.result.qlxxdatas, |
294 | ...res.result.jsydsyqdatas, | 295 | ...res.result.jsydsyqdatas, |
295 | }; | 296 | }; |
296 | this.ruleForm.qlrList.forEach((item) => { | 297 | that.ruleForm.qlrList.forEach((item) => { |
297 | if (item.sfczr == 1) { | 298 | item.id = item.bsmSqr |
298 | this.czr = item.zjh | 299 | if (item.sfczr == '1') { |
300 | that.czr = item.bsmSqr | ||
299 | } | 301 | } |
300 | }); | 302 | }) |
301 | this.czrOptions = this.ruleForm.qlrList; | 303 | that.czrOptions = that.ruleForm.qlrList; |
304 | that.isSave = that.viewEdit | ||
302 | } else { | 305 | } else { |
303 | this.$message.error(res.message); | 306 | that.isSave = false |
307 | that.$confirm(res.message, '提示', { | ||
308 | cancelButtonText: '取消', | ||
309 | showConfirmButton: false, | ||
310 | type: 'warning' | ||
311 | }) | ||
304 | } | 312 | } |
305 | }).catch(() => { | 313 | }).catch(() => { |
306 | this.loading = false | 314 | this.loading = false |
315 | this.isSave = false | ||
307 | }) | 316 | }) |
308 | }, | 317 | }, |
309 | components: { qlrCommonTable, tdytTable }, | 318 | components: { qlrCommonTable, tdytTable }, |
... | @@ -312,6 +321,7 @@ | ... | @@ -312,6 +321,7 @@ |
312 | }, | 321 | }, |
313 | data () { | 322 | data () { |
314 | return { | 323 | return { |
324 | isSave: true, | ||
315 | loading: false, | 325 | loading: false, |
316 | mjdw: "1", | 326 | mjdw: "1", |
317 | //表单是否可操作 | 327 | //表单是否可操作 |
... | @@ -397,7 +407,6 @@ | ... | @@ -397,7 +407,6 @@ |
397 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 407 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
398 | this.key++; | 408 | this.key++; |
399 | }, | 409 | }, |
400 | // 是否持证人变化 | ||
401 | /** | 410 | /** |
402 | * @description: 是否持证人变化 | 411 | * @description: 是否持证人变化 |
403 | * @param {*} val | 412 | * @param {*} val |
... | @@ -418,7 +427,7 @@ | ... | @@ -418,7 +427,7 @@ |
418 | } | 427 | } |
419 | this.num = 0 | 428 | this.num = 0 |
420 | this.ruleForm.qlrList.forEach(item => { | 429 | this.ruleForm.qlrList.forEach(item => { |
421 | if (item.zjh == this.czr) { | 430 | if (item.id == this.czr) { |
422 | this.num++ | 431 | this.num++ |
423 | } | 432 | } |
424 | }) | 433 | }) |
... | @@ -426,7 +435,6 @@ | ... | @@ -426,7 +435,6 @@ |
426 | this.czr = '' | 435 | this.czr = '' |
427 | } | 436 | } |
428 | }, | 437 | }, |
429 | // 更新权利人信息 | ||
430 | /** | 438 | /** |
431 | * @description: 更新权利人信息 | 439 | * @description: 更新权利人信息 |
432 | * @param {*} val | 440 | * @param {*} val |
... | @@ -486,21 +494,21 @@ | ... | @@ -486,21 +494,21 @@ |
486 | item.sfczr = "1"; | 494 | item.sfczr = "1"; |
487 | }); | 495 | }); |
488 | } else { | 496 | } else { |
489 | if (!that.czr) { | 497 | if (that.czr === '') { |
490 | that.$message({ | 498 | that.$message({ |
491 | showClose: true, | 499 | showClose: true, |
492 | message: "请选择持证人", | 500 | message: "请选择持证人", |
493 | type: "error", | 501 | type: "error" |
494 | }); | 502 | }); |
495 | return false; | 503 | return false; |
496 | } | 504 | } |
497 | this.ruleForm.qlrList.forEach((item, index) => { | 505 | this.ruleForm.qlrList.forEach(item => { |
498 | if (item.zjh == that.czr) { | 506 | if (item.id == that.czr) { |
499 | item.sfczr = "1"; | 507 | item.sfczr = "1" |
500 | } else { | 508 | } else { |
501 | item.sfczr = "0"; | 509 | item.sfczr = "0" |
502 | } | 510 | } |
503 | }); | 511 | }) |
504 | } | 512 | } |
505 | } | 513 | } |
506 | saveData(this.ruleForm).then((res) => { | 514 | saveData(this.ruleForm).then((res) => { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-14 17:20:59 | 4 | * @LastEditTime: 2023-09-20 13:41:15 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
9 | :model="ruleForm" | 9 | :model="ruleForm" |
10 | :rules="rules" | 10 | :rules="rules" |
11 | ref="ruleForm" | 11 | ref="ruleForm" |
12 | v-Loading="loading" | ||
12 | :label-position="flag ? 'top' : ''" | 13 | :label-position="flag ? 'top' : ''" |
13 | :inline="flag" | 14 | :inline="flag" |
14 | label-width="130px"> | 15 | label-width="130px"> |
... | @@ -178,10 +179,10 @@ | ... | @@ -178,10 +179,10 @@ |
178 | placeholder="持证人" | 179 | placeholder="持证人" |
179 | :disabled="!viewEdit"> | 180 | :disabled="!viewEdit"> |
180 | <el-option | 181 | <el-option |
181 | v-for="item in czrOptions" | 182 | v-for="(item,index) in czrOptions" |
182 | :key="item.zjh" | 183 | :key="index" |
183 | :label="item.sqrmc" | 184 | :label="item.sqrmc" |
184 | :value="item.zjh"></el-option> | 185 | :value="item.id"></el-option> |
185 | </el-select> | 186 | </el-select> |
186 | </el-form-item> | 187 | </el-form-item> |
187 | </el-col> | 188 | </el-col> |
... | @@ -210,7 +211,7 @@ | ... | @@ -210,7 +211,7 @@ |
210 | </el-col> | 211 | </el-col> |
211 | </el-row> | 212 | </el-row> |
212 | </div> | 213 | </div> |
213 | <el-row class="btn" v-if="viewEdit"> | 214 | <el-row class="btn" v-if="isSave"> |
214 | <el-form-item> | 215 | <el-form-item> |
215 | <el-button type="primary" @click="onSubmit">保存</el-button> | 216 | <el-button type="primary" @click="onSubmit">保存</el-button> |
216 | </el-form-item> | 217 | </el-form-item> |
... | @@ -231,21 +232,13 @@ | ... | @@ -231,21 +232,13 @@ |
231 | export default { | 232 | export default { |
232 | mixins: [ywmix], | 233 | mixins: [ywmix], |
233 | computed: { | 234 | computed: { |
234 | ...mapGetters(["dictData", "flag"]), | 235 | ...mapGetters(["dictData", "flag"]) |
235 | }, | 236 | }, |
236 | components: { qlrCommonTable }, | 237 | components: { qlrCommonTable }, |
237 | |||
238 | // 更新义务人信息 | ||
239 | /** | ||
240 | * @description: 更新义务人信息 | ||
241 | * @param {*} val | ||
242 | * @author: renchao | ||
243 | */ | ||
244 | upDateYwrxxList (val) { | ||
245 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
246 | }, | ||
247 | data () { | 238 | data () { |
248 | return { | 239 | return { |
240 | isSave: true, | ||
241 | loading: false, | ||
249 | disabled: true, | 242 | disabled: true, |
250 | tdytOption: [], | 243 | tdytOption: [], |
251 | ruleForm: { | 244 | ruleForm: { |
... | @@ -283,6 +276,8 @@ | ... | @@ -283,6 +276,8 @@ |
283 | }; | 276 | }; |
284 | }, | 277 | }, |
285 | mounted (callbackfn, thisArg) { | 278 | mounted (callbackfn, thisArg) { |
279 | let that = this | ||
280 | this.loading = true | ||
286 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 281 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
287 | this.propsParam = this.$attrs; | 282 | this.propsParam = this.$attrs; |
288 | var formdata = new FormData(); | 283 | var formdata = new FormData(); |
... | @@ -291,23 +286,34 @@ | ... | @@ -291,23 +286,34 @@ |
291 | formdata.append("bsmSlsq", this.bsmSlsq); | 286 | formdata.append("bsmSlsq", this.bsmSlsq); |
292 | formdata.append("isEdit", this.viewEdit); | 287 | formdata.append("isEdit", this.viewEdit); |
293 | BatchInit(formdata).then((res) => { | 288 | BatchInit(formdata).then((res) => { |
289 | setTimeout(() => { | ||
290 | this.loading = false | ||
291 | }, 200) | ||
294 | if (res.code == 200) { | 292 | if (res.code == 200) { |
295 | this.ruleForm = res.result; | 293 | this.ruleForm = res.result; |
296 | this.czrOptions = this.ruleForm.qlrList; | 294 | this.czrOptions = this.ruleForm.qlrList; |
297 | this.gyfs = this.ruleForm.sldyList[0].gyfs; | 295 | this.gyfs = this.ruleForm.sldyList[0].gyfs; |
296 | this.ruleForm.qlrList.forEach((item) => { | ||
297 | item.id = item.bsmSqr | ||
298 | if (item.sfczr == '1') { | ||
299 | that.czr = item.bsmSqr | ||
300 | } | ||
301 | }) | ||
302 | that.isSave = this.viewEdit | ||
298 | this.splicingFdcq2Info(); | 303 | this.splicingFdcq2Info(); |
299 | } else { | 304 | } else { |
300 | this.$message.error(res.message); | 305 | that.isSave = false |
306 | that.$confirm(res.message, '提示', { | ||
307 | cancelButtonText: '取消', | ||
308 | showConfirmButton: false, | ||
309 | type: 'warning' | ||
310 | }) | ||
301 | } | 311 | } |
302 | this.ruleForm.qlrList.forEach((item) => { | 312 | }).catch(() => { |
303 | if (item.sfczr == 1) { | 313 | this.loading = false |
304 | this.czr = item.zjh | 314 | }) |
305 | } | ||
306 | }); | ||
307 | }); | ||
308 | }, | 315 | }, |
309 | methods: { | 316 | methods: { |
310 | //组装房地产权通用信息 | ||
311 | /** | 317 | /** |
312 | * @description: 组装房地产权通用信息 | 318 | * @description: 组装房地产权通用信息 |
313 | * @author: renchao | 319 | * @author: renchao |
... | @@ -322,7 +328,6 @@ | ... | @@ -322,7 +328,6 @@ |
322 | fwjgArr.push(fdcq2.fwjgmc); | 328 | fwjgArr.push(fdcq2.fwjgmc); |
323 | jzmj += parseFloat(fdcq2.jzmj); | 329 | jzmj += parseFloat(fdcq2.jzmj); |
324 | }); | 330 | }); |
325 | //将数据转为字符串 | ||
326 | //房屋性质 | 331 | //房屋性质 |
327 | let fwxz = Array.from(new Set(fwxzArr)).join(","); | 332 | let fwxz = Array.from(new Set(fwxzArr)).join(","); |
328 | //房屋结构 | 333 | //房屋结构 |
... | @@ -344,7 +349,7 @@ | ... | @@ -344,7 +349,7 @@ |
344 | } | 349 | } |
345 | this.num = 0 | 350 | this.num = 0 |
346 | this.ruleForm.qlrList.forEach(item => { | 351 | this.ruleForm.qlrList.forEach(item => { |
347 | if (item.zjh == this.czr) { | 352 | if (item.id == this.czr) { |
348 | this.num++ | 353 | this.num++ |
349 | } | 354 | } |
350 | }) | 355 | }) |
... | @@ -352,7 +357,6 @@ | ... | @@ -352,7 +357,6 @@ |
352 | this.czr = '' | 357 | this.czr = '' |
353 | } | 358 | } |
354 | }, | 359 | }, |
355 | // 是否持证人变化 | ||
356 | /** | 360 | /** |
357 | * @description: 是否持证人变化 | 361 | * @description: 是否持证人变化 |
358 | * @param {*} val | 362 | * @param {*} val |
... | @@ -411,21 +415,21 @@ | ... | @@ -411,21 +415,21 @@ |
411 | item.sfczr = "1"; | 415 | item.sfczr = "1"; |
412 | }); | 416 | }); |
413 | } else { | 417 | } else { |
414 | if (!that.czr) { | 418 | if (that.czr === '') { |
415 | that.$message({ | 419 | that.$message({ |
416 | showClose: true, | 420 | showClose: true, |
417 | message: "请选择持证人", | 421 | message: "请选择持证人", |
418 | type: "error", | 422 | type: "error" |
419 | }); | 423 | }); |
420 | return false; | 424 | return false; |
421 | } | 425 | } |
422 | this.ruleForm.qlrList.forEach((item, index) => { | 426 | this.ruleForm.qlrList.forEach((item, index) => { |
423 | if (item.zjh == that.czr) { | 427 | if (item.id == that.czr) { |
424 | item.sfczr = "1"; | 428 | item.sfczr = "1" |
425 | } else { | 429 | } else { |
426 | item.sfczr = "0"; | 430 | item.sfczr = "0" |
427 | } | 431 | } |
428 | }); | 432 | }) |
429 | } | 433 | } |
430 | } | 434 | } |
431 | saveBatchData(this.ruleForm).then((res) => { | 435 | saveBatchData(this.ruleForm).then((res) => { |
... | @@ -440,13 +444,13 @@ | ... | @@ -440,13 +444,13 @@ |
440 | this.$message({ | 444 | this.$message({ |
441 | showClose: true, | 445 | showClose: true, |
442 | message: res.message, | 446 | message: res.message, |
443 | type: "error", | 447 | type: "error" |
444 | }); | 448 | }) |
445 | } | 449 | } |
446 | }); | 450 | }) |
447 | }, | 451 | } |
448 | }, | 452 | } |
449 | }; | 453 | } |
450 | </script> | 454 | </script> |
451 | <style scoped lang="scss"> | 455 | <style scoped lang="scss"> |
452 | @import "~@/styles/public.scss"; | 456 | @import "~@/styles/public.scss"; | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-19 15:55:59 | 4 | * @LastEditTime: 2023-09-20 14:27:29 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -188,17 +188,17 @@ | ... | @@ -188,17 +188,17 @@ |
188 | </el-col> | 188 | </el-col> |
189 | <el-col | 189 | <el-col |
190 | :span="5" | 190 | :span="5" |
191 | v-show="ruleForm.gyfs != '1' && ruleForm.sffbcz == '0'"> | 191 | v-show="ruleForm.gyfs != '0' && ruleForm.sffbcz == '0'"> |
192 | <el-form-item label="持证人:"> | 192 | <el-form-item label="持证人:"> |
193 | <el-select | 193 | <el-select |
194 | v-model="czr" | 194 | v-model="czr" |
195 | placeholder="持证人" | 195 | placeholder="持证人" |
196 | :disabled="!viewEdit"> | 196 | :disabled="!viewEdit"> |
197 | <el-option | 197 | <el-option |
198 | v-for="item in czrOptions" | 198 | v-for="(item,index) in czrOptions" |
199 | :key="item.value" | 199 | :key="index" |
200 | :label="item.label" | 200 | :label="item.sqrmc" |
201 | :value="item.value"> | 201 | :value="item.id"> |
202 | </el-option> | 202 | </el-option> |
203 | </el-select> | 203 | </el-select> |
204 | </el-form-item> | 204 | </el-form-item> |
... | @@ -206,6 +206,7 @@ | ... | @@ -206,6 +206,7 @@ |
206 | </el-row> | 206 | </el-row> |
207 | <qlrCommonTable | 207 | <qlrCommonTable |
208 | :tableData="ruleForm.qlrList" | 208 | :tableData="ruleForm.qlrList" |
209 | @upDateQlrxxList="upDateQlrxxList" | ||
209 | :gyfs="ruleForm.gyfs" | 210 | :gyfs="ruleForm.gyfs" |
210 | :disabled="viewEdit" /> | 211 | :disabled="viewEdit" /> |
211 | <div class="slxx_title title-block"> | 212 | <div class="slxx_title title-block"> |
... | @@ -227,7 +228,7 @@ | ... | @@ -227,7 +228,7 @@ |
227 | </el-col> | 228 | </el-col> |
228 | </el-row> | 229 | </el-row> |
229 | </div> | 230 | </div> |
230 | <el-row class="btn" v-if="viewEdit"> | 231 | <el-row class="btn" v-if="isSave"> |
231 | <el-form-item> | 232 | <el-form-item> |
232 | <el-button type="primary" @click="onSubmit">保存</el-button> | 233 | <el-button type="primary" @click="onSubmit">保存</el-button> |
233 | </el-form-item> | 234 | </el-form-item> |
... | @@ -244,13 +245,16 @@ | ... | @@ -244,13 +245,16 @@ |
244 | export default { | 245 | export default { |
245 | mixins: [ywmix], | 246 | mixins: [ywmix], |
246 | mounted () { | 247 | mounted () { |
248 | let that = this | ||
247 | this.loading = true | 249 | this.loading = true |
248 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 250 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
249 | this.propsParam = this.$attrs; | 251 | this.propsParam = this.$attrs; |
250 | var formdata = new FormData(); | 252 | var formdata = new FormData(); |
251 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 253 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
252 | Init(formdata).then((res) => { | 254 | Init(formdata).then((res) => { |
253 | this.loading = false | 255 | setTimeout(() => { |
256 | this.loading = false | ||
257 | }, 200) | ||
254 | if (res.code === 200 && res.result) { | 258 | if (res.code === 200 && res.result) { |
255 | this.ruleForm = { | 259 | this.ruleForm = { |
256 | ...res.result, | 260 | ...res.result, |
... | @@ -259,16 +263,24 @@ | ... | @@ -259,16 +263,24 @@ |
259 | ...res.result.jsydsyqdatas, | 263 | ...res.result.jsydsyqdatas, |
260 | }; | 264 | }; |
261 | this.ruleForm.qlrList.forEach((item) => { | 265 | this.ruleForm.qlrList.forEach((item) => { |
262 | if (item.sfczr == 1) { | 266 | item.id = item.bsmSqr |
263 | this.czr = item.zjh | 267 | if (item.sfczr == '1') { |
268 | that.czr = item.bsmSqr | ||
264 | } | 269 | } |
265 | }); | 270 | }); |
266 | this.czrOptions = this.ruleForm.qlrList; | 271 | this.czrOptions = this.ruleForm.qlrList; |
272 | that.isSave = this.viewEdit | ||
267 | } else { | 273 | } else { |
268 | this.$message.error(res.message); | 274 | that.isSave = false |
275 | that.$confirm(res.message, '提示', { | ||
276 | cancelButtonText: '取消', | ||
277 | showConfirmButton: false, | ||
278 | type: 'warning' | ||
279 | }) | ||
269 | } | 280 | } |
270 | }).catch(() => { | 281 | }).catch(() => { |
271 | this.loading = false | 282 | this.loading = false |
283 | this.isSave = false | ||
272 | }) | 284 | }) |
273 | }, | 285 | }, |
274 | components: { qlrCommonTable, tdytTable }, | 286 | components: { qlrCommonTable, tdytTable }, |
... | @@ -277,6 +289,7 @@ | ... | @@ -277,6 +289,7 @@ |
277 | }, | 289 | }, |
278 | data () { | 290 | data () { |
279 | return { | 291 | return { |
292 | isSave: true, | ||
280 | // 键名转换,方法默认是label和children进行树状渲染 | 293 | // 键名转换,方法默认是label和children进行树状渲染 |
281 | normalizer (node) { | 294 | normalizer (node) { |
282 | //方法 | 295 | //方法 |
... | @@ -343,7 +356,26 @@ | ... | @@ -343,7 +356,26 @@ |
343 | this.czrOptions = this.ruleForm.qlrData; | 356 | this.czrOptions = this.ruleForm.qlrData; |
344 | this.key++; | 357 | this.key++; |
345 | }, | 358 | }, |
346 | // 是否持证人变化 | 359 | /** |
360 | * @description: 更新权利人信息 | ||
361 | * @param {*} val | ||
362 | * @author: renchao | ||
363 | */ | ||
364 | upDateQlrxxList (val) { | ||
365 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
366 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
367 | this.czrOptions = this.ruleForm.qlrList; | ||
368 | } | ||
369 | this.num = 0 | ||
370 | this.ruleForm.qlrList.forEach(item => { | ||
371 | if (item.id == this.czr) { | ||
372 | this.num++ | ||
373 | } | ||
374 | }) | ||
375 | if (this.num == 0) { | ||
376 | this.czr = '' | ||
377 | } | ||
378 | }, | ||
347 | /** | 379 | /** |
348 | * @description: 是否持证人变化 | 380 | * @description: 是否持证人变化 |
349 | * @param {*} val | 381 | * @param {*} val |
... | @@ -425,21 +457,21 @@ | ... | @@ -425,21 +457,21 @@ |
425 | item.sfczr = "1"; | 457 | item.sfczr = "1"; |
426 | }); | 458 | }); |
427 | } else { | 459 | } else { |
428 | if (!that.czr) { | 460 | if (that.czr === '') { |
429 | that.$message({ | 461 | that.$message({ |
430 | showClose: true, | 462 | showClose: true, |
431 | message: "请选择持证人", | 463 | message: "请选择持证人", |
432 | type: "error", | 464 | type: "error" |
433 | }); | 465 | }) |
434 | return false; | 466 | return false; |
435 | } | 467 | } |
436 | this.ruleForm.qlrList.forEach((item, index) => { | 468 | this.ruleForm.qlrList.forEach((item, index) => { |
437 | if (item.zjh == that.czr) { | 469 | if (item.id == that.czr) { |
438 | item.sfczr = "1"; | 470 | item.sfczr = "1" |
439 | } else { | 471 | } else { |
440 | item.sfczr = "0"; | 472 | item.sfczr = "0" |
441 | } | 473 | } |
442 | }); | 474 | }) |
443 | } | 475 | } |
444 | } | 476 | } |
445 | fristReg(this.ruleForm).then((res) => { | 477 | fristReg(this.ruleForm).then((res) => { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-19 17:19:32 | 4 | * @LastEditTime: 2023-09-20 14:27:17 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
192 | v-for="(item, index) in czrOptions" | 192 | v-for="(item, index) in czrOptions" |
193 | :key="index" | 193 | :key="index" |
194 | :label="item.sqrmc" | 194 | :label="item.sqrmc" |
195 | :value="item.sxh"> | 195 | :value="item.id"> |
196 | </el-option> | 196 | </el-option> |
197 | </el-select> | 197 | </el-select> |
198 | </el-form-item> | 198 | </el-form-item> |
... | @@ -237,7 +237,7 @@ | ... | @@ -237,7 +237,7 @@ |
237 | </el-col> | 237 | </el-col> |
238 | </el-row> | 238 | </el-row> |
239 | </div> | 239 | </div> |
240 | <el-row class="btn" v-if="viewEdit"> | 240 | <el-row class="btn" v-if="isSave"> |
241 | <el-form-item> | 241 | <el-form-item> |
242 | <el-button type="primary" @click="onSubmit">保存</el-button> | 242 | <el-button type="primary" @click="onSubmit">保存</el-button> |
243 | </el-form-item> | 243 | </el-form-item> |
... | @@ -255,10 +255,10 @@ | ... | @@ -255,10 +255,10 @@ |
255 | export default { | 255 | export default { |
256 | mixins: [ywmix], | 256 | mixins: [ywmix], |
257 | mounted () { | 257 | mounted () { |
258 | let that = this | ||
258 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 259 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
259 | this.propsParam = this.$attrs; | 260 | this.propsParam = this.$attrs; |
260 | var formdata = new FormData(); | 261 | var formdata = new FormData(); |
261 | let that = this; | ||
262 | this.loading = true | 262 | this.loading = true |
263 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 263 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
264 | formdata.append("djlx", this.propsParam.djlx); | 264 | formdata.append("djlx", this.propsParam.djlx); |
... | @@ -269,12 +269,13 @@ | ... | @@ -269,12 +269,13 @@ |
269 | }, 200) | 269 | }, 200) |
270 | if (res.code === 200) { | 270 | if (res.code === 200) { |
271 | that.ruleForm = res.result; | 271 | that.ruleForm = res.result; |
272 | that.czrOptions = that.ruleForm.qlrList; | ||
273 | that.ruleForm.qlrList.forEach((item) => { | 272 | that.ruleForm.qlrList.forEach((item) => { |
274 | if (item.sfczr == 1) { | 273 | item.id = item.bsmSqr |
275 | that.czr = item.sxh | 274 | if (item.sfczr == '1') { |
275 | that.czr = item.bsmSqr | ||
276 | } | 276 | } |
277 | }) | 277 | }) |
278 | that.czrOptions = that.ruleForm.qlrList; | ||
278 | that.isSave = that.viewEdit | 279 | that.isSave = that.viewEdit |
279 | } else { | 280 | } else { |
280 | that.isSave = false | 281 | that.isSave = false |
... | @@ -286,6 +287,7 @@ | ... | @@ -286,6 +287,7 @@ |
286 | } | 287 | } |
287 | }).catch(() => { | 288 | }).catch(() => { |
288 | this.loading = false | 289 | this.loading = false |
290 | this.isSave = false | ||
289 | }) | 291 | }) |
290 | }, | 292 | }, |
291 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 293 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, |
... | @@ -338,7 +340,6 @@ | ... | @@ -338,7 +340,6 @@ |
338 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 340 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
339 | this.key++; | 341 | this.key++; |
340 | }, | 342 | }, |
341 | // 更新权利人信息 | ||
342 | /** | 343 | /** |
343 | * @description: 更新权利人信息 | 344 | * @description: 更新权利人信息 |
344 | * @param {*} val | 345 | * @param {*} val |
... | @@ -347,10 +348,9 @@ | ... | @@ -347,10 +348,9 @@ |
347 | upDateQlrxxList (val) { | 348 | upDateQlrxxList (val) { |
348 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)); | 349 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)); |
349 | this.czrOptions = this.ruleForm.qlrList; | 350 | this.czrOptions = this.ruleForm.qlrList; |
350 | this.key++; | ||
351 | this.num = 0 | 351 | this.num = 0 |
352 | this.ruleForm.qlrList.forEach(item => { | 352 | this.ruleForm.qlrList.forEach(item => { |
353 | if (item.sxh == this.czr) { | 353 | if (item.id == this.czr) { |
354 | this.num++ | 354 | this.num++ |
355 | } | 355 | } |
356 | }) | 356 | }) |
... | @@ -358,7 +358,6 @@ | ... | @@ -358,7 +358,6 @@ |
358 | this.czr = '' | 358 | this.czr = '' |
359 | } | 359 | } |
360 | }, | 360 | }, |
361 | // 是否持证人变化 | ||
362 | /** | 361 | /** |
363 | * @description: 是否持证人变化 | 362 | * @description: 是否持证人变化 |
364 | * @param {*} val | 363 | * @param {*} val |
... | @@ -367,7 +366,6 @@ | ... | @@ -367,7 +366,6 @@ |
367 | updaterow () { | 366 | updaterow () { |
368 | this.czr = ""; | 367 | this.czr = ""; |
369 | }, | 368 | }, |
370 | // 更新义务人信息 | ||
371 | /** | 369 | /** |
372 | * @description: 更新义务人信息 | 370 | * @description: 更新义务人信息 |
373 | * @param {*} val | 371 | * @param {*} val |
... | @@ -427,7 +425,7 @@ | ... | @@ -427,7 +425,7 @@ |
427 | item.sfczr = "1"; | 425 | item.sfczr = "1"; |
428 | }); | 426 | }); |
429 | } else { | 427 | } else { |
430 | if (!that.czr) { | 428 | if (that.czr === '') { |
431 | that.$message({ | 429 | that.$message({ |
432 | showClose: true, | 430 | showClose: true, |
433 | message: "请选择持证人", | 431 | message: "请选择持证人", |
... | @@ -436,7 +434,7 @@ | ... | @@ -436,7 +434,7 @@ |
436 | return false; | 434 | return false; |
437 | } | 435 | } |
438 | this.ruleForm.qlrList.forEach((item, index) => { | 436 | this.ruleForm.qlrList.forEach((item, index) => { |
439 | if (item.sxh == that.czr) { | 437 | if (item.id == that.czr) { |
440 | item.sfczr = "1"; | 438 | item.sfczr = "1"; |
441 | } else { | 439 | } else { |
442 | item.sfczr = "0"; | 440 | item.sfczr = "0"; |
... | @@ -460,13 +458,13 @@ | ... | @@ -460,13 +458,13 @@ |
460 | this.$message({ | 458 | this.$message({ |
461 | showClose: true, | 459 | showClose: true, |
462 | message: res.message, | 460 | message: res.message, |
463 | type: "error", | 461 | type: "error" |
464 | }); | 462 | }) |
465 | } | 463 | } |
466 | }); | 464 | }) |
467 | }, | 465 | } |
468 | }, | 466 | } |
469 | }; | 467 | } |
470 | </script> | 468 | </script> |
471 | <style scoped lang="scss"> | 469 | <style scoped lang="scss"> |
472 | @import "~@/styles/public.scss"; | 470 | @import "~@/styles/public.scss"; | ... | ... |
... | @@ -2,14 +2,15 @@ | ... | @@ -2,14 +2,15 @@ |
2 | <!-- | 2 | <!-- |
3 | * @Description: | 3 | * @Description: |
4 | * @Autor: renchao | 4 | * @Autor: renchao |
5 | * @LastEditTime: 2023-09-19 15:45:34 | 5 | * @LastEditTime: 2023-09-20 14:26:30 |
6 | --> | 6 | --> |
7 | <template> | 7 | <template> |
8 | <!-- 受理信息 --> | 8 | <!-- 受理信息 --> |
9 | <div class="slxx loadingtext"> | 9 | <div class="slxx"> |
10 | <el-form | 10 | <el-form |
11 | :model="ruleForm" | 11 | :model="ruleForm" |
12 | :rules="rules" | 12 | :rules="rules" |
13 | v-Loading="loading" | ||
13 | ref="ruleForm" | 14 | ref="ruleForm" |
14 | :label-position="flag ? 'top' : ''" | 15 | :label-position="flag ? 'top' : ''" |
15 | :inline="flag" | 16 | :inline="flag" |
... | @@ -178,10 +179,10 @@ | ... | @@ -178,10 +179,10 @@ |
178 | placeholder="持证人" | 179 | placeholder="持证人" |
179 | :disabled="!viewEdit"> | 180 | :disabled="!viewEdit"> |
180 | <el-option | 181 | <el-option |
181 | v-for="item in czrOptions" | 182 | v-for="(item,index) in czrOptions" |
182 | :key="item.zjh" | 183 | :key="index" |
183 | :label="item.sqrmc" | 184 | :label="item.sqrmc" |
184 | :value="item.zjh"> | 185 | :value="item.id"> |
185 | </el-option> | 186 | </el-option> |
186 | </el-select> | 187 | </el-select> |
187 | </el-form-item> | 188 | </el-form-item> |
... | @@ -211,7 +212,7 @@ | ... | @@ -211,7 +212,7 @@ |
211 | </el-col> | 212 | </el-col> |
212 | </el-row> | 213 | </el-row> |
213 | </div> | 214 | </div> |
214 | <el-row class="btn" v-if="viewEdit"> | 215 | <el-row class="btn" v-if="isSave"> |
215 | <el-form-item> | 216 | <el-form-item> |
216 | <el-button type="primary" @click="onSubmit">保存</el-button> | 217 | <el-button type="primary" @click="onSubmit">保存</el-button> |
217 | </el-form-item> | 218 | </el-form-item> |
... | @@ -228,27 +229,40 @@ | ... | @@ -228,27 +229,40 @@ |
228 | export default { | 229 | export default { |
229 | mixins: [ywmix], | 230 | mixins: [ywmix], |
230 | mounted () { | 231 | mounted () { |
232 | let that = this; | ||
233 | this.loading = true | ||
231 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 234 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
232 | this.propsParam = this.$attrs; | 235 | this.propsParam = this.$attrs; |
233 | var formdata = new FormData(); | 236 | var formdata = new FormData(); |
234 | this.$startLoading(); | ||
235 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 237 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
236 | formdata.append("djlx", this.propsParam.djlx); | 238 | formdata.append("djlx", this.propsParam.djlx); |
237 | formdata.append("isEdit", this.viewEdit); | 239 | formdata.append("isEdit", this.viewEdit); |
238 | Init(formdata).then((res) => { | 240 | Init(formdata).then((res) => { |
241 | setTimeout(() => { | ||
242 | this.loading = false | ||
243 | }, 200) | ||
239 | if (res.code === 200 && res.result) { | 244 | if (res.code === 200 && res.result) { |
240 | this.ruleForm = res.result; | 245 | that.ruleForm = res.result; |
241 | this.czrOptions = this.ruleForm.qlrList; | 246 | that.ruleForm.qlrList.forEach((item) => { |
247 | item.id = item.bsmSqr | ||
248 | if (item.sfczr == '1') { | ||
249 | that.czr = item.bsmSqr | ||
250 | } | ||
251 | }) | ||
252 | that.czrOptions = that.ruleForm.qlrList; | ||
253 | that.isSave = that.viewEdit | ||
242 | } else { | 254 | } else { |
243 | this.$message.error(res.message); | 255 | that.isSave = false |
256 | that.$confirm(res.message, '提示', { | ||
257 | cancelButtonText: '取消', | ||
258 | showConfirmButton: false, | ||
259 | type: 'warning' | ||
260 | }) | ||
244 | } | 261 | } |
245 | this.ruleForm.qlrList.forEach((item) => { | 262 | }).catch(() => { |
246 | if (item.sfczr == 1) { | 263 | this.loading = false |
247 | this.czr = item.zjh | 264 | this.isSave = false |
248 | } | 265 | }) |
249 | }); | ||
250 | this.$endLoading(); | ||
251 | }); | ||
252 | }, | 266 | }, |
253 | components: { qlrCommonTable, tdytTable }, | 267 | components: { qlrCommonTable, tdytTable }, |
254 | computed: { | 268 | computed: { |
... | @@ -256,6 +270,8 @@ | ... | @@ -256,6 +270,8 @@ |
256 | }, | 270 | }, |
257 | data () { | 271 | data () { |
258 | return { | 272 | return { |
273 | isSave: true, | ||
274 | loading: false, | ||
259 | // 键名转换,方法默认是label和children进行树状渲染 | 275 | // 键名转换,方法默认是label和children进行树状渲染 |
260 | normalizer (node) { | 276 | normalizer (node) { |
261 | //方法 | 277 | //方法 |
... | @@ -305,7 +321,7 @@ | ... | @@ -305,7 +321,7 @@ |
305 | } | 321 | } |
306 | this.num = 0 | 322 | this.num = 0 |
307 | this.ruleForm.qlrList.forEach(item => { | 323 | this.ruleForm.qlrList.forEach(item => { |
308 | if (item.zjh == this.czr) { | 324 | if (item.id == this.czr) { |
309 | this.num++ | 325 | this.num++ |
310 | } | 326 | } |
311 | }) | 327 | }) |
... | @@ -313,7 +329,6 @@ | ... | @@ -313,7 +329,6 @@ |
313 | this.czr = '' | 329 | this.czr = '' |
314 | } | 330 | } |
315 | }, | 331 | }, |
316 | // 是否持证人变化 | ||
317 | /** | 332 | /** |
318 | * @description: 是否持证人变化 | 333 | * @description: 是否持证人变化 |
319 | * @param {*} val | 334 | * @param {*} val |
... | @@ -373,7 +388,7 @@ | ... | @@ -373,7 +388,7 @@ |
373 | item.sfczr = "1"; | 388 | item.sfczr = "1"; |
374 | }); | 389 | }); |
375 | } else { | 390 | } else { |
376 | if (!that.czr) { | 391 | if (that.czr === '') { |
377 | that.$message({ | 392 | that.$message({ |
378 | showClose: true, | 393 | showClose: true, |
379 | message: "请选择持证人", | 394 | message: "请选择持证人", |
... | @@ -382,12 +397,12 @@ | ... | @@ -382,12 +397,12 @@ |
382 | return false; | 397 | return false; |
383 | } | 398 | } |
384 | this.ruleForm.qlrList.forEach((item, index) => { | 399 | this.ruleForm.qlrList.forEach((item, index) => { |
385 | if (item.zjh == that.czr) { | 400 | if (item.id == that.czr) { |
386 | item.sfczr = "1"; | 401 | item.sfczr = "1"; |
387 | } else { | 402 | } else { |
388 | item.sfczr = "0"; | 403 | item.sfczr = "0"; |
389 | } | 404 | } |
390 | }); | 405 | }) |
391 | } | 406 | } |
392 | } | 407 | } |
393 | saveData(this.ruleForm).then((res) => { | 408 | saveData(this.ruleForm).then((res) => { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-09-11 11:14:35 | 4 | * @LastEditTime: 2023-09-20 14:25:52 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -171,7 +171,6 @@ | ... | @@ -171,7 +171,6 @@ |
171 | </el-col> | 171 | </el-col> |
172 | <el-col :span="8"> | 172 | <el-col :span="8"> |
173 | <el-form-item label="林地使用(承包)起始时间:"> | 173 | <el-form-item label="林地使用(承包)起始时间:"> |
174 | <!-- <el-input v-model="ruleForm.lq.ldsyqssj"></el-input> --> | ||
175 | <el-date-picker | 174 | <el-date-picker |
176 | class="width100" | 175 | class="width100" |
177 | value-format="yyyy-MM-dd HH:mm:ss" | 176 | value-format="yyyy-MM-dd HH:mm:ss" |
... | @@ -182,7 +181,6 @@ | ... | @@ -182,7 +181,6 @@ |
182 | </el-col> | 181 | </el-col> |
183 | <el-col :span="8"> | 182 | <el-col :span="8"> |
184 | <el-form-item label="林地使用(承包)结束时间:"> | 183 | <el-form-item label="林地使用(承包)结束时间:"> |
185 | <!-- <el-input v-model="ruleForm.lq.ldsyjssj"></el-input> --> | ||
186 | <el-date-picker | 184 | <el-date-picker |
187 | class="width100" | 185 | class="width100" |
188 | value-format="yyyy-MM-dd HH:mm:ss" | 186 | value-format="yyyy-MM-dd HH:mm:ss" |
... | @@ -193,11 +191,6 @@ | ... | @@ -193,11 +191,6 @@ |
193 | </el-col> | 191 | </el-col> |
194 | </el-row> | 192 | </el-row> |
195 | <el-row :gutter="10"> | 193 | <el-row :gutter="10"> |
196 | <!-- <el-col :span="8"> | ||
197 | <el-form-item label="土地用途:"> | ||
198 | <el-input v-model="ruleForm.lq.xdm"></el-input> | ||
199 | </el-form-item> | ||
200 | </el-col> --> | ||
201 | <el-col :span="8"> | 194 | <el-col :span="8"> |
202 | <el-form-item label="林地使用 (承包)期限:"> | 195 | <el-form-item label="林地使用 (承包)期限:"> |
203 | <el-input v-model="ruleForm.lq.ldsyqx" :disabled="!viewEdit"></el-input> | 196 | <el-input v-model="ruleForm.lq.ldsyqx" :disabled="!viewEdit"></el-input> |
... | @@ -216,14 +209,6 @@ | ... | @@ -216,14 +209,6 @@ |
216 | </el-form-item> | 209 | </el-form-item> |
217 | </el-col> | 210 | </el-col> |
218 | </el-row> | 211 | </el-row> |
219 | <!-- <div class="slxx_title title-block"> | ||
220 | 土地用途 | ||
221 | <div class="triangle"></div> | ||
222 | </div> | ||
223 | <tdytTable | ||
224 | :ableOperation="viewEdit" | ||
225 | :tableData="ruleForm.tdytqxList" | ||
226 | @upDateTdytxxList="upDateTdytxxList" /> --> | ||
227 | <div class="slxx_title title-block"> | 212 | <div class="slxx_title title-block"> |
228 | 权利人信息 | 213 | 权利人信息 |
229 | <div class="triangle"></div> | 214 | <div class="triangle"></div> |
... | @@ -264,7 +249,7 @@ | ... | @@ -264,7 +249,7 @@ |
264 | v-for="(item, index) in czrOptions" | 249 | v-for="(item, index) in czrOptions" |
265 | :key="index" | 250 | :key="index" |
266 | :label="item.sqrmc" | 251 | :label="item.sqrmc" |
267 | :value="item.zjh"> | 252 | :value="item.id"> |
268 | </el-option> | 253 | </el-option> |
269 | </el-select> | 254 | </el-select> |
270 | </el-form-item> | 255 | </el-form-item> |
... | @@ -307,7 +292,7 @@ | ... | @@ -307,7 +292,7 @@ |
307 | </el-col> | 292 | </el-col> |
308 | </el-row> | 293 | </el-row> |
309 | </div> | 294 | </div> |
310 | <el-row class="btn" v-if="viewEdit"> | 295 | <el-row class="btn" v-if="isSave"> |
311 | <el-form-item> | 296 | <el-form-item> |
312 | <el-button type="primary" @click="onSubmit">保存</el-button> | 297 | <el-button type="primary" @click="onSubmit">保存</el-button> |
313 | </el-form-item> | 298 | </el-form-item> |
... | @@ -316,15 +301,16 @@ | ... | @@ -316,15 +301,16 @@ |
316 | </div> | 301 | </div> |
317 | </template> | 302 | </template> |
318 | <script> | 303 | <script> |
304 | import { mapGetters } from "vuex"; | ||
319 | import ywmix from "@/views/ywbl/mixin/index"; | 305 | import ywmix from "@/views/ywbl/mixin/index"; |
320 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 306 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
321 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; | 307 | import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; |
322 | import tdytTable from "@/views/workflow/components/tdytTable"; | 308 | import tdytTable from "@/views/workflow/components/tdytTable"; |
323 | import { Init, saveData } from "@/api/workflow/lqFlow.js"; | 309 | import { Init, saveData } from "@/api/workflow/lqFlow.js"; |
324 | import { mapGetters } from "vuex"; | ||
325 | export default { | 310 | export default { |
326 | mixins: [ywmix], | 311 | mixins: [ywmix], |
327 | mounted () { | 312 | mounted () { |
313 | let that = this; | ||
328 | this.loading = true | 314 | this.loading = true |
329 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 315 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
330 | this.propsParam = this.$attrs; | 316 | this.propsParam = this.$attrs; |
... | @@ -333,28 +319,34 @@ | ... | @@ -333,28 +319,34 @@ |
333 | formdata.append("djlx", this.propsParam.djlx); | 319 | formdata.append("djlx", this.propsParam.djlx); |
334 | formdata.append("isEdit", this.viewEdit); | 320 | formdata.append("isEdit", this.viewEdit); |
335 | Init(formdata).then((res) => { | 321 | Init(formdata).then((res) => { |
322 | setTimeout(() => { | ||
323 | this.loading = false | ||
324 | }, 200) | ||
336 | if (res.code === 200 && res.result) { | 325 | if (res.code === 200 && res.result) { |
337 | this.ruleForm = { | 326 | that.ruleForm = { |
338 | ...res.result, | 327 | ...res.result, |
339 | ...res.result.qlxxdatas, | 328 | ...res.result.qlxxdatas |
340 | }; | 329 | }; |
341 | this.ruleForm.qlrList.forEach((item) => { | 330 | that.ruleForm.qlrList.forEach(item => { |
342 | if (item.sfczr == 1) { | 331 | item.id = item.bsmSqr |
343 | this.czr = item.zjh | 332 | if (item.sfczr == '1') { |
333 | that.czr = item.bsmSqr | ||
344 | } | 334 | } |
345 | }); | 335 | }) |
346 | //初始化发证方式,1:小证,2:大正 | 336 | that.czrOptions = that.ruleForm.qlrList; |
347 | this.ruleForm.slsq.fzfs == null | 337 | that.ruleForm.lq.zlnd ? that.$set(that.ruleForm.lq, 'zlnd', that.ruleForm.lq.zlnd.toString()) : that.$set(that.ruleForm.lq, 'zlnd', "") |
348 | ? (this.ruleForm.slsq.fzfs = "1") | 338 | that.isSave = that.viewEdit |
349 | : this.ruleForm.slsq.fzfs; | ||
350 | this.czrOptions = this.ruleForm.qlrList; | ||
351 | this.ruleForm.lq.zlnd ? this.$set(this.ruleForm.lq, 'zlnd', this.ruleForm.lq.zlnd.toString()) : this.$set(this.ruleForm.lq, 'zlnd', "") | ||
352 | setTimeout(() => { | ||
353 | this.loading = false | ||
354 | }, 200) | ||
355 | } else { | 339 | } else { |
356 | this.$message.error(res.message); | 340 | that.isSave = false |
341 | that.$confirm(res.message, '提示', { | ||
342 | cancelButtonText: '取消', | ||
343 | showConfirmButton: false, | ||
344 | type: 'warning' | ||
345 | }) | ||
357 | } | 346 | } |
347 | }).catch(() => { | ||
348 | this.loading = false | ||
349 | this.isSave = false | ||
358 | }) | 350 | }) |
359 | }, | 351 | }, |
360 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 352 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, |
... | @@ -363,6 +355,7 @@ | ... | @@ -363,6 +355,7 @@ |
363 | }, | 355 | }, |
364 | data () { | 356 | data () { |
365 | return { | 357 | return { |
358 | isSave: true, | ||
366 | loading: false, | 359 | loading: false, |
367 | disabled: true, | 360 | disabled: true, |
368 | tdytOption: [], | 361 | tdytOption: [], |
... | @@ -405,7 +398,6 @@ | ... | @@ -405,7 +398,6 @@ |
405 | upDateTdytxxList (val) { | 398 | upDateTdytxxList (val) { |
406 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 399 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
407 | }, | 400 | }, |
408 | // 是否持证人变化 | ||
409 | /** | 401 | /** |
410 | * @description: 是否持证人变化 | 402 | * @description: 是否持证人变化 |
411 | * @param {*} val | 403 | * @param {*} val |
... | @@ -424,7 +416,7 @@ | ... | @@ -424,7 +416,7 @@ |
424 | this.czrOptions = this.ruleForm.qlrList; | 416 | this.czrOptions = this.ruleForm.qlrList; |
425 | this.num = 0 | 417 | this.num = 0 |
426 | this.ruleForm.qlrList.forEach(item => { | 418 | this.ruleForm.qlrList.forEach(item => { |
427 | if (item.zjh == this.czr) { | 419 | if (item.id == this.czr) { |
428 | this.num++ | 420 | this.num++ |
429 | } | 421 | } |
430 | }) | 422 | }) |
... | @@ -482,7 +474,7 @@ | ... | @@ -482,7 +474,7 @@ |
482 | item.sfczr = "1"; | 474 | item.sfczr = "1"; |
483 | }); | 475 | }); |
484 | } else { | 476 | } else { |
485 | if (!that.czr) { | 477 | if (that.czr === '') { |
486 | that.$message({ | 478 | that.$message({ |
487 | showClose: true, | 479 | showClose: true, |
488 | message: "请选择持证人", | 480 | message: "请选择持证人", |
... | @@ -490,13 +482,13 @@ | ... | @@ -490,13 +482,13 @@ |
490 | }); | 482 | }); |
491 | return false; | 483 | return false; |
492 | } | 484 | } |
493 | this.ruleForm.qlrList.forEach((item, index) => { | 485 | this.ruleForm.qlrList.forEach(item => { |
494 | if (item.zjh == that.czr) { | 486 | if (item.id == that.czr) { |
495 | item.sfczr = "1"; | 487 | item.sfczr = "1" |
496 | } else { | 488 | } else { |
497 | item.sfczr = "0"; | 489 | item.sfczr = "0" |
498 | } | 490 | } |
499 | }); | 491 | }) |
500 | } | 492 | } |
501 | } | 493 | } |
502 | saveData(this.ruleForm).then((res) => { | 494 | saveData(this.ruleForm).then((res) => { | ... | ... |
... | @@ -263,10 +263,10 @@ | ... | @@ -263,10 +263,10 @@ |
263 | placeholder="持证人" | 263 | placeholder="持证人" |
264 | :disabled="!viewEdit"> | 264 | :disabled="!viewEdit"> |
265 | <el-option | 265 | <el-option |
266 | v-for="item in czrOptions" | 266 | v-for="(item,index) in czrOptions" |
267 | :key="item.zjh" | 267 | :key="index" |
268 | :label="item.sqrmc" | 268 | :label="item.sqrmc" |
269 | :value="item.zjh"> | 269 | :value="item.id"> |
270 | </el-option> | 270 | </el-option> |
271 | </el-select> | 271 | </el-select> |
272 | </el-form-item> | 272 | </el-form-item> |
... | @@ -305,7 +305,7 @@ | ... | @@ -305,7 +305,7 @@ |
305 | </el-col> | 305 | </el-col> |
306 | </el-row> | 306 | </el-row> |
307 | </div> | 307 | </div> |
308 | <el-row class="btn" v-if="viewEdit"> | 308 | <el-row class="btn" v-if="isSave"> |
309 | <el-form-item> | 309 | <el-form-item> |
310 | <el-button type="primary" @click="onSubmit">保存</el-button> | 310 | <el-button type="primary" @click="onSubmit">保存</el-button> |
311 | </el-form-item> | 311 | </el-form-item> |
... | @@ -322,6 +322,7 @@ | ... | @@ -322,6 +322,7 @@ |
322 | export default { | 322 | export default { |
323 | mixins: [ywmix], | 323 | mixins: [ywmix], |
324 | mounted () { | 324 | mounted () { |
325 | let that = this | ||
325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 326 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
326 | this.propsParam = this.$attrs; | 327 | this.propsParam = this.$attrs; |
327 | this.loading = true | 328 | this.loading = true |
... | @@ -330,16 +331,30 @@ | ... | @@ -330,16 +331,30 @@ |
330 | formdata.append("djlx", this.propsParam.djlx); | 331 | formdata.append("djlx", this.propsParam.djlx); |
331 | formdata.append("isEdit", this.viewEdit); | 332 | formdata.append("isEdit", this.viewEdit); |
332 | Init(formdata).then((res) => { | 333 | Init(formdata).then((res) => { |
333 | this.loading = false | 334 | setTimeout(() => { |
334 | this.ruleForm = res.result; | 335 | that.loading = false |
335 | this.czrOptions = this.ruleForm.qlrList; | 336 | }, 200) |
336 | this.ruleForm.qlrList.forEach((item) => { | 337 | if (res.code === 200) { |
337 | if (item.sfczr == 1) { | 338 | that.ruleForm = res.result; |
338 | this.czr = item.zjh | 339 | that.ruleForm.qlrList.forEach((item) => { |
339 | } | 340 | item.id = item.bsmSqr |
340 | }) | 341 | if (item.sfczr == '1') { |
342 | that.czr = item.bsmSqr | ||
343 | } | ||
344 | }) | ||
345 | that.czrOptions = that.ruleForm.qlrList; | ||
346 | that.isSave = that.viewEdit | ||
347 | } else { | ||
348 | that.isSave = false | ||
349 | that.$confirm(res.message, '提示', { | ||
350 | cancelButtonText: '取消', | ||
351 | showConfirmButton: false, | ||
352 | type: 'warning' | ||
353 | }) | ||
354 | } | ||
341 | }).catch(() => { | 355 | }).catch(() => { |
342 | this.loading = false | 356 | this.loading = false |
357 | this.isSave = false | ||
343 | }) | 358 | }) |
344 | }, | 359 | }, |
345 | components: { qlrCommonTable, JtcyTable }, | 360 | components: { qlrCommonTable, JtcyTable }, |
... | @@ -348,6 +363,7 @@ | ... | @@ -348,6 +363,7 @@ |
348 | }, | 363 | }, |
349 | data () { | 364 | data () { |
350 | return { | 365 | return { |
366 | isSave: true, | ||
351 | // 键名转换,方法默认是label和children进行树状渲染 | 367 | // 键名转换,方法默认是label和children进行树状渲染 |
352 | normalizer (node) { | 368 | normalizer (node) { |
353 | //方法 | 369 | //方法 |
... | @@ -419,16 +435,16 @@ | ... | @@ -419,16 +435,16 @@ |
419 | item.sfczr = "1"; | 435 | item.sfczr = "1"; |
420 | }); | 436 | }); |
421 | } else { | 437 | } else { |
422 | if (!that.czr) { | 438 | if (that.czr === '') { |
423 | that.$message({ | 439 | that.$message({ |
424 | showClose: true, | 440 | showClose: true, |
425 | message: "请选择持证人", | 441 | message: "请选择持证人", |
426 | type: "error", | 442 | type: "error", |
427 | }); | 443 | }) |
428 | return false; | 444 | return false; |
429 | } | 445 | } |
430 | this.ruleForm.qlrList.forEach((item, index) => { | 446 | this.ruleForm.qlrList.forEach((item, index) => { |
431 | if (item.zjh == that.czr) { | 447 | if (item.id == that.czr) { |
432 | item.sfczr = "1"; | 448 | item.sfczr = "1"; |
433 | } else { | 449 | } else { |
434 | item.sfczr = "0"; | 450 | item.sfczr = "0"; |
... | @@ -466,7 +482,7 @@ | ... | @@ -466,7 +482,7 @@ |
466 | } | 482 | } |
467 | this.num = 0 | 483 | this.num = 0 |
468 | this.ruleForm.qlrList.forEach(item => { | 484 | this.ruleForm.qlrList.forEach(item => { |
469 | if (item.zjh == this.czr) { | 485 | if (item.id == this.czr) { |
470 | this.num++ | 486 | this.num++ |
471 | } | 487 | } |
472 | }) | 488 | }) | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | <el-form | 4 | <el-form |
5 | :model="ruleForm" | 5 | :model="ruleForm" |
6 | :rules="rules" | 6 | :rules="rules" |
7 | class="loadingtext" | 7 | v-Loading="loading" |
8 | ref="ruleForm" | 8 | ref="ruleForm" |
9 | :label-position="flag ? 'top' : ''" | 9 | :label-position="flag ? 'top' : ''" |
10 | :inline="flag" | 10 | :inline="flag" |
... | @@ -267,10 +267,10 @@ | ... | @@ -267,10 +267,10 @@ |
267 | placeholder="持证人" | 267 | placeholder="持证人" |
268 | :disabled="!viewEdit"> | 268 | :disabled="!viewEdit"> |
269 | <el-option | 269 | <el-option |
270 | v-for="item in czrOptions" | 270 | v-for="(item,index) in czrOptions" |
271 | :key="item.zjh" | 271 | :key="index" |
272 | :label="item.sqrmc" | 272 | :label="item.sqrmc" |
273 | :value="item.zjh"> | 273 | :value="item.id"> |
274 | </el-option> | 274 | </el-option> |
275 | </el-select> | 275 | </el-select> |
276 | </el-form-item> | 276 | </el-form-item> |
... | @@ -317,7 +317,7 @@ | ... | @@ -317,7 +317,7 @@ |
317 | </el-col> | 317 | </el-col> |
318 | </el-row> | 318 | </el-row> |
319 | </div> | 319 | </div> |
320 | <el-row class="btn" v-if="viewEdit"> | 320 | <el-row class="btn" v-if="isSave"> |
321 | <el-form-item> | 321 | <el-form-item> |
322 | <el-button type="primary" @click="onSubmit">保存</el-button> | 322 | <el-button type="primary" @click="onSubmit">保存</el-button> |
323 | </el-form-item> | 323 | </el-form-item> |
... | @@ -335,23 +335,40 @@ | ... | @@ -335,23 +335,40 @@ |
335 | export default { | 335 | export default { |
336 | mixins: [ywmix], | 336 | mixins: [ywmix], |
337 | mounted () { | 337 | mounted () { |
338 | let that = this | ||
338 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 339 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
339 | this.propsParam = this.$attrs; | 340 | this.propsParam = this.$attrs; |
340 | var formdata = new FormData(); | 341 | var formdata = new FormData(); |
341 | this.$startLoading(); | 342 | this.loading = true |
342 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 343 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
343 | formdata.append("djlx", this.propsParam.djlx); | 344 | formdata.append("djlx", this.propsParam.djlx); |
344 | formdata.append("isEdit", this.viewEdit); | 345 | formdata.append("isEdit", this.viewEdit); |
345 | Init(formdata).then((res) => { | 346 | Init(formdata).then((res) => { |
346 | this.ruleForm = res.result; | 347 | setTimeout(() => { |
347 | this.czrOptions = this.ruleForm.qlrList; | 348 | that.loading = false |
348 | this.ruleForm.qlrList.forEach((item) => { | 349 | }, 200) |
349 | if (item.sfczr == 1) { | 350 | if (res.code === 200) { |
350 | this.czr = item.zjh | 351 | that.ruleForm = res.result; |
351 | } | 352 | that.ruleForm.qlrList.forEach((item) => { |
352 | }); | 353 | item.id = item.bsmSqr |
353 | this.$endLoading(); | 354 | if (item.sfczr == '1') { |
354 | }); | 355 | that.czr = item.bsmSqr |
356 | } | ||
357 | }) | ||
358 | that.czrOptions = that.ruleForm.qlrList | ||
359 | that.isSave = that.viewEdit | ||
360 | } else { | ||
361 | that.isSave = false | ||
362 | that.$confirm(res.message, '提示', { | ||
363 | cancelButtonText: '取消', | ||
364 | showConfirmButton: false, | ||
365 | type: 'warning' | ||
366 | }) | ||
367 | } | ||
368 | }).catch(() => { | ||
369 | this.loading = false | ||
370 | this.isSave = false | ||
371 | }) | ||
355 | }, | 372 | }, |
356 | components: { qlrCommonTable, JtcyTable, ywrCommonTable }, | 373 | components: { qlrCommonTable, JtcyTable, ywrCommonTable }, |
357 | computed: { | 374 | computed: { |
... | @@ -359,6 +376,8 @@ | ... | @@ -359,6 +376,8 @@ |
359 | }, | 376 | }, |
360 | data () { | 377 | data () { |
361 | return { | 378 | return { |
379 | isSave: true, | ||
380 | loading: false, | ||
362 | // 键名转换,方法默认是label和children进行树状渲染 | 381 | // 键名转换,方法默认是label和children进行树状渲染 |
363 | normalizer (node) { | 382 | normalizer (node) { |
364 | //方法 | 383 | //方法 |
... | @@ -424,21 +443,21 @@ | ... | @@ -424,21 +443,21 @@ |
424 | item.sfczr = "1"; | 443 | item.sfczr = "1"; |
425 | }); | 444 | }); |
426 | } else { | 445 | } else { |
427 | if (!that.czr) { | 446 | if (that.czr === '') { |
428 | that.$message({ | 447 | that.$message({ |
429 | showClose: true, | 448 | showClose: true, |
430 | message: "请选择持证人", | 449 | message: "请选择持证人", |
431 | type: "error", | 450 | type: "error" |
432 | }); | 451 | }); |
433 | return false; | 452 | return false; |
434 | } | 453 | } |
435 | this.ruleForm.qlrList.forEach((item, index) => { | 454 | this.ruleForm.qlrList.forEach((item, index) => { |
436 | if (item.zjh == that.czr) { | 455 | if (item.id == that.czr) { |
437 | item.sfczr = "1"; | 456 | item.sfczr = "1" |
438 | } else { | 457 | } else { |
439 | item.sfczr = "0"; | 458 | item.sfczr = "0" |
440 | } | 459 | } |
441 | }); | 460 | }) |
442 | } | 461 | } |
443 | } | 462 | } |
444 | 463 | ||
... | @@ -469,7 +488,7 @@ | ... | @@ -469,7 +488,7 @@ |
469 | this.czrOptions = this.ruleForm.qlrList; | 488 | this.czrOptions = this.ruleForm.qlrList; |
470 | this.num = 0 | 489 | this.num = 0 |
471 | this.ruleForm.qlrList.forEach(item => { | 490 | this.ruleForm.qlrList.forEach(item => { |
472 | if (item.zjh == this.czr) { | 491 | if (item.id == this.czr) { |
473 | this.num++ | 492 | this.num++ |
474 | } | 493 | } |
475 | }) | 494 | }) |
... | @@ -477,7 +496,6 @@ | ... | @@ -477,7 +496,6 @@ |
477 | this.czr = '' | 496 | this.czr = '' |
478 | } | 497 | } |
479 | }, | 498 | }, |
480 | // 是否持证人变化 | ||
481 | /** | 499 | /** |
482 | * @description: 是否持证人变化 | 500 | * @description: 是否持证人变化 |
483 | * @param {*} val | 501 | * @param {*} val | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 房屋多幢受理信息 | 2 | * @Description: 房屋多幢受理信息 |
3 | * @Autor: ssq | 3 | * @Autor: ssq |
4 | * @LastEditTime: 2023-09-11 09:51:59 | 4 | * @LastEditTime: 2023-09-20 14:23:42 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
9 | :model="ruleForm" | 9 | :model="ruleForm" |
10 | :rules="rules" | 10 | :rules="rules" |
11 | ref="ruleForm" | 11 | ref="ruleForm" |
12 | v-Loading="loading" | ||
12 | :label-position="flag ? 'top' : ''" | 13 | :label-position="flag ? 'top' : ''" |
13 | :inline="flag" | 14 | :inline="flag" |
14 | label-width="190px"> | 15 | label-width="190px"> |
... | @@ -262,7 +263,7 @@ | ... | @@ -262,7 +263,7 @@ |
262 | v-for="(item, index) in czrOptions" | 263 | v-for="(item, index) in czrOptions" |
263 | :key="index" | 264 | :key="index" |
264 | :label="item.sqrmc" | 265 | :label="item.sqrmc" |
265 | :value="item.zjh"> | 266 | :value="item.id"> |
266 | </el-option> | 267 | </el-option> |
267 | </el-select> | 268 | </el-select> |
268 | </el-form-item> | 269 | </el-form-item> |
... | @@ -305,7 +306,7 @@ | ... | @@ -305,7 +306,7 @@ |
305 | </el-col> | 306 | </el-col> |
306 | </el-row> | 307 | </el-row> |
307 | </div> | 308 | </div> |
308 | <el-row class="btn" v-if="viewEdit"> | 309 | <el-row class="btn" v-if="isSave"> |
309 | <el-form-item> | 310 | <el-form-item> |
310 | <el-button type="primary" @click="onSubmit">保存</el-button> | 311 | <el-button type="primary" @click="onSubmit">保存</el-button> |
311 | </el-form-item> | 312 | </el-form-item> |
... | @@ -323,32 +324,43 @@ | ... | @@ -323,32 +324,43 @@ |
323 | export default { | 324 | export default { |
324 | mixins: [ywmix], | 325 | mixins: [ywmix], |
325 | mounted () { | 326 | mounted () { |
327 | let that = this | ||
326 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 328 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
327 | this.propsParam = this.$attrs; | 329 | this.propsParam = this.$attrs; |
328 | var formdata = new FormData(); | 330 | var formdata = new FormData(); |
331 | this.loading = true | ||
329 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 332 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
330 | formdata.append("djlx", this.propsParam.djlx); | 333 | formdata.append("djlx", this.propsParam.djlx); |
331 | formdata.append("isEdit", this.viewEdit); | 334 | formdata.append("isEdit", this.viewEdit); |
332 | Init(formdata).then((res) => { | 335 | Init(formdata).then((res) => { |
336 | setTimeout(() => { | ||
337 | this.loading = false | ||
338 | }, 200) | ||
333 | if (res.code === 200 && res.result) { | 339 | if (res.code === 200 && res.result) { |
334 | this.ruleForm = { | 340 | this.ruleForm = { |
335 | ...res.result, | 341 | ...res.result, |
336 | ...res.result.qlxxdatas, | 342 | ...res.result.qlxxdatas, |
337 | }; | 343 | }; |
338 | this.ruleForm.qlrList.forEach((item) => { | 344 | this.ruleForm.qlrList.forEach((item) => { |
339 | if (item.sfczr == 1) { | 345 | item.id = item.bsmSqr |
340 | this.czr = item.zjh | 346 | if (item.sfczr == '1') { |
347 | that.czr = item.bsmSqr | ||
341 | } | 348 | } |
342 | }); | 349 | }) |
343 | //初始化发证方式,1:小证,2:大正 | 350 | that.czrOptions = that.ruleForm.qlrList |
344 | this.ruleForm.slsq.fzfs == null | 351 | that.isSave = that.viewEdit |
345 | ? (this.ruleForm.slsq.fzfs = "1") | ||
346 | : this.ruleForm.slsq.fzfs; | ||
347 | this.czrOptions = this.ruleForm.qlrList; | ||
348 | } else { | 352 | } else { |
349 | this.$message.error(res.message); | 353 | that.isSave = false |
354 | that.$confirm(res.message, '提示', { | ||
355 | cancelButtonText: '取消', | ||
356 | showConfirmButton: false, | ||
357 | type: 'warning' | ||
358 | }) | ||
350 | } | 359 | } |
351 | }); | 360 | }).catch(() => { |
361 | this.loading = false | ||
362 | this.isSave = false | ||
363 | }) | ||
352 | }, | 364 | }, |
353 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 365 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, |
354 | computed: { | 366 | computed: { |
... | @@ -356,6 +368,8 @@ | ... | @@ -356,6 +368,8 @@ |
356 | }, | 368 | }, |
357 | data () { | 369 | data () { |
358 | return { | 370 | return { |
371 | isSave: true, | ||
372 | loading: false, | ||
359 | disabled: true, | 373 | disabled: true, |
360 | tdytOption: [], | 374 | tdytOption: [], |
361 | czrOptions: [], | 375 | czrOptions: [], |
... | @@ -406,11 +420,13 @@ | ... | @@ -406,11 +420,13 @@ |
406 | * @author: renchao | 420 | * @author: renchao |
407 | */ | 421 | */ |
408 | upDateQlrxxList (val) { | 422 | upDateQlrxxList (val) { |
409 | this.ruleForm.qlrList = _.cloneDeep(val); | 423 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
410 | this.czrOptions = this.ruleForm.qlrList; | 424 | this.ruleForm.qlrList = _.cloneDeep(val); |
425 | this.czrOptions = this.ruleForm.qlrList; | ||
426 | } | ||
411 | this.num = 0 | 427 | this.num = 0 |
412 | this.ruleForm.qlrList.forEach(item => { | 428 | this.ruleForm.qlrList.forEach(item => { |
413 | if (item.zjh == this.czr) { | 429 | if (item.id == this.czr) { |
414 | this.num++ | 430 | this.num++ |
415 | } | 431 | } |
416 | }) | 432 | }) |
... | @@ -418,7 +434,6 @@ | ... | @@ -418,7 +434,6 @@ |
418 | this.czr = '' | 434 | this.czr = '' |
419 | } | 435 | } |
420 | }, | 436 | }, |
421 | // 是否持证人变化 | ||
422 | /** | 437 | /** |
423 | * @description: 是否持证人变化 | 438 | * @description: 是否持证人变化 |
424 | * @param {*} val | 439 | * @param {*} val |
... | @@ -473,11 +488,11 @@ | ... | @@ -473,11 +488,11 @@ |
473 | //是否分别持证 | 488 | //是否分别持证 |
474 | if (this.ruleForm.sldy.sqfbcz == "1") { | 489 | if (this.ruleForm.sldy.sqfbcz == "1") { |
475 | //是 | 490 | //是 |
476 | this.ruleForm.qlrList.forEach((item, index) => { | 491 | this.ruleForm.qlrList.forEach(item => { |
477 | item.sfczr = "1"; | 492 | item.sfczr = "1"; |
478 | }); | 493 | }); |
479 | } else { | 494 | } else { |
480 | if (!that.czr) { | 495 | if (that.czr === '') { |
481 | that.$message({ | 496 | that.$message({ |
482 | showClose: true, | 497 | showClose: true, |
483 | message: "请选择持证人", | 498 | message: "请选择持证人", |
... | @@ -485,8 +500,8 @@ | ... | @@ -485,8 +500,8 @@ |
485 | }); | 500 | }); |
486 | return false; | 501 | return false; |
487 | } | 502 | } |
488 | this.ruleForm.qlrList.forEach((item, index) => { | 503 | this.ruleForm.qlrList.forEach(item => { |
489 | if (item.zjh == that.czr) { | 504 | if (item.id == that.czr) { |
490 | item.sfczr = "1"; | 505 | item.sfczr = "1"; |
491 | } else { | 506 | } else { |
492 | item.sfczr = "0"; | 507 | item.sfczr = "0"; |
... | @@ -506,13 +521,13 @@ | ... | @@ -506,13 +521,13 @@ |
506 | this.$message({ | 521 | this.$message({ |
507 | showClose: true, | 522 | showClose: true, |
508 | message: res.message, | 523 | message: res.message, |
509 | type: "error", | 524 | type: "error" |
510 | }); | 525 | }) |
511 | } | 526 | } |
512 | }); | 527 | }) |
513 | }, | 528 | } |
514 | }, | 529 | } |
515 | }; | 530 | } |
516 | </script> | 531 | </script> |
517 | <style scoped lang="scss"> | 532 | <style scoped lang="scss"> |
518 | @import "~@/styles/public.scss"; | 533 | @import "~@/styles/public.scss"; | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-19 17:02:47 | 4 | * @LastEditTime: 2023-09-20 10:52:39 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
... | @@ -289,10 +289,10 @@ | ... | @@ -289,10 +289,10 @@ |
289 | placeholder="持证人" | 289 | placeholder="持证人" |
290 | :disabled="!viewEdit"> | 290 | :disabled="!viewEdit"> |
291 | <el-option | 291 | <el-option |
292 | v-for="item in czrOptions" | 292 | v-for="(item, index) in czrOptions" |
293 | :key="item.sxh" | 293 | :key="index" |
294 | :label="item.sqrmc" | 294 | :label="item.sqrmc" |
295 | :value="item.sxh"> | 295 | :value="item.id"> |
296 | </el-option> | 296 | </el-option> |
297 | </el-select> | 297 | </el-select> |
298 | </el-form-item> | 298 | </el-form-item> |
... | @@ -337,7 +337,7 @@ | ... | @@ -337,7 +337,7 @@ |
337 | </el-col> | 337 | </el-col> |
338 | </el-row> | 338 | </el-row> |
339 | </div> | 339 | </div> |
340 | <el-row class="btn" v-if="viewEdit"> | 340 | <el-row class="btn" v-if="isSave"> |
341 | <el-form-item> | 341 | <el-form-item> |
342 | <el-button type="primary" @click="onSubmit">保存</el-button> | 342 | <el-button type="primary" @click="onSubmit">保存</el-button> |
343 | </el-form-item> | 343 | </el-form-item> |
... | @@ -370,13 +370,14 @@ | ... | @@ -370,13 +370,14 @@ |
370 | }, 200) | 370 | }, 200) |
371 | if (res.code === 200) { | 371 | if (res.code === 200) { |
372 | that.ruleForm = res.result; | 372 | that.ruleForm = res.result; |
373 | that.czrOptions = that.ruleForm.qlrList; | ||
374 | that.ruleForm.qlrList.forEach((item) => { | 373 | that.ruleForm.qlrList.forEach((item) => { |
374 | item.id = item.bsmSqr | ||
375 | if (item.sfczr == '1') { | 375 | if (item.sfczr == '1') { |
376 | that.czr = item.sxh | 376 | that.czr = item.bsmSqr |
377 | } | 377 | } |
378 | }) | 378 | }) |
379 | this.isSave = this.viewEdit | 379 | that.czrOptions = that.ruleForm.qlrList; |
380 | that.isSave = that.viewEdit | ||
380 | } else { | 381 | } else { |
381 | this.isSave = false | 382 | this.isSave = false |
382 | this.$confirm(res.message, '提示', { | 383 | this.$confirm(res.message, '提示', { |
... | @@ -417,7 +418,6 @@ | ... | @@ -417,7 +418,6 @@ |
417 | value: "id", | 418 | value: "id", |
418 | keyword: "keyword", | 419 | keyword: "keyword", |
419 | }, | 420 | }, |
420 | |||
421 | //表单是否可操作 | 421 | //表单是否可操作 |
422 | viewEdit: true, | 422 | viewEdit: true, |
423 | key: 0, | 423 | key: 0, |
... | @@ -450,7 +450,7 @@ | ... | @@ -450,7 +450,7 @@ |
450 | this.czrOptions = this.ruleForm.qlrList; | 450 | this.czrOptions = this.ruleForm.qlrList; |
451 | this.num = 0 | 451 | this.num = 0 |
452 | this.ruleForm.qlrList.forEach(item => { | 452 | this.ruleForm.qlrList.forEach(item => { |
453 | if (item.sxh == this.czr) { | 453 | if (item.id == this.czr) { |
454 | this.num++ | 454 | this.num++ |
455 | } | 455 | } |
456 | }) | 456 | }) |
... | @@ -526,7 +526,7 @@ | ... | @@ -526,7 +526,7 @@ |
526 | item.sfczr = "1"; | 526 | item.sfczr = "1"; |
527 | }) | 527 | }) |
528 | } else { | 528 | } else { |
529 | if (!that.czr) { | 529 | if (that.czr === '') { |
530 | that.$message({ | 530 | that.$message({ |
531 | showClose: true, | 531 | showClose: true, |
532 | message: "请选择持证人", | 532 | message: "请选择持证人", |
... | @@ -535,7 +535,7 @@ | ... | @@ -535,7 +535,7 @@ |
535 | return false | 535 | return false |
536 | } | 536 | } |
537 | this.ruleForm.qlrList.forEach((item, index) => { | 537 | this.ruleForm.qlrList.forEach((item, index) => { |
538 | if (item.sxh == that.czr) { | 538 | if (item.id == that.czr) { |
539 | item.sfczr = "1" | 539 | item.sfczr = "1" |
540 | } else { | 540 | } else { |
541 | item.sfczr = "0" | 541 | item.sfczr = "0" | ... | ... |
... | @@ -226,10 +226,10 @@ | ... | @@ -226,10 +226,10 @@ |
226 | placeholder="持证人" | 226 | placeholder="持证人" |
227 | :disabled="!viewEdit"> | 227 | :disabled="!viewEdit"> |
228 | <el-option | 228 | <el-option |
229 | v-for="item in czrOptions" | 229 | v-for="(item,index) in czrOptions" |
230 | :key="item.zjh" | 230 | :key="index" |
231 | :label="item.sqrmc" | 231 | :label="item.sqrmc" |
232 | :value="item.zjh"> | 232 | :value="item.id"> |
233 | </el-option> | 233 | </el-option> |
234 | </el-select> | 234 | </el-select> |
235 | </el-form-item> | 235 | </el-form-item> |
... | @@ -278,7 +278,7 @@ | ... | @@ -278,7 +278,7 @@ |
278 | </el-col> | 278 | </el-col> |
279 | </el-row> | 279 | </el-row> |
280 | </div> | 280 | </div> |
281 | <el-row class="btn" v-if="viewEdit"> | 281 | <el-row class="btn" v-if="isSave"> |
282 | <el-form-item> | 282 | <el-form-item> |
283 | <el-button type="primary" @click="onSubmit">保存</el-button> | 283 | <el-button type="primary" @click="onSubmit">保存</el-button> |
284 | </el-form-item> | 284 | </el-form-item> |
... | @@ -295,6 +295,7 @@ | ... | @@ -295,6 +295,7 @@ |
295 | export default { | 295 | export default { |
296 | mixins: [ywmix], | 296 | mixins: [ywmix], |
297 | mounted () { | 297 | mounted () { |
298 | let that = this | ||
298 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 299 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
299 | this.propsParam = this.$attrs; | 300 | this.propsParam = this.$attrs; |
300 | this.loading = true | 301 | this.loading = true |
... | @@ -303,26 +304,39 @@ | ... | @@ -303,26 +304,39 @@ |
303 | formdata.append("djlx", this.propsParam.djlx); | 304 | formdata.append("djlx", this.propsParam.djlx); |
304 | formdata.append("isEdit", this.viewEdit); | 305 | formdata.append("isEdit", this.viewEdit); |
305 | Init(formdata).then((res) => { | 306 | Init(formdata).then((res) => { |
307 | setTimeout(() => { | ||
308 | this.loading = false | ||
309 | }, 200) | ||
306 | if (res.code === 200 && res.result) { | 310 | if (res.code === 200 && res.result) { |
307 | this.ruleForm = res.result; | 311 | this.ruleForm = res.result; |
308 | this.czrOptions = this.ruleForm.qlrList; | ||
309 | this.ruleForm.qlrList.forEach((item) => { | 312 | this.ruleForm.qlrList.forEach((item) => { |
310 | if (item.sfczr == 1) { | 313 | item.id = item.bsmSqr |
311 | this.czr = item.sqrmc | 314 | if (item.sfczr == '1') { |
315 | that.czr = item.bsmSqr | ||
312 | } | 316 | } |
313 | }) | 317 | }) |
314 | setTimeout(() => { | 318 | that.czrOptions = this.ruleForm.qlrList |
315 | this.loading = false | 319 | that.isSave = that.viewEdit |
316 | }, 200) | 320 | } else { |
321 | that.isSave = false | ||
322 | that.$confirm(res.message, '提示', { | ||
323 | cancelButtonText: '取消', | ||
324 | showConfirmButton: false, | ||
325 | type: 'warning' | ||
326 | }) | ||
317 | } | 327 | } |
328 | }).catch(() => { | ||
329 | this.isSave = false | ||
330 | this.loading = false | ||
318 | }) | 331 | }) |
319 | }, | 332 | }, |
320 | components: { qlrCommonTable, ywrCommonTable }, | 333 | components: { qlrCommonTable, ywrCommonTable }, |
321 | computed: { | 334 | computed: { |
322 | ...mapGetters(["dictData", "flag"]), | 335 | ...mapGetters(["dictData", "flag"]) |
323 | }, | 336 | }, |
324 | data () { | 337 | data () { |
325 | return { | 338 | return { |
339 | isSave: true, | ||
326 | loading: false, | 340 | loading: false, |
327 | mjdw: "1", | 341 | mjdw: "1", |
328 | //表单是否可操作 | 342 | //表单是否可操作 |
... | @@ -354,7 +368,7 @@ | ... | @@ -354,7 +368,7 @@ |
354 | this.czrOptions = this.ruleForm.qlrList; | 368 | this.czrOptions = this.ruleForm.qlrList; |
355 | this.num = 0 | 369 | this.num = 0 |
356 | this.ruleForm.qlrList.forEach(item => { | 370 | this.ruleForm.qlrList.forEach(item => { |
357 | if (item.zjh == this.czr) { | 371 | if (item.id == this.czr) { |
358 | this.num++ | 372 | this.num++ |
359 | } | 373 | } |
360 | }) | 374 | }) |
... | @@ -370,7 +384,6 @@ | ... | @@ -370,7 +384,6 @@ |
370 | upDateYwrxxList (val) { | 384 | upDateYwrxxList (val) { |
371 | this.ruleForm.ywrList = _.cloneDeep(val); | 385 | this.ruleForm.ywrList = _.cloneDeep(val); |
372 | }, | 386 | }, |
373 | // 是否持证人变化 | ||
374 | /** | 387 | /** |
375 | * @description: 是否持证人变化 | 388 | * @description: 是否持证人变化 |
376 | * @param {*} val | 389 | * @param {*} val |
... | @@ -421,21 +434,21 @@ | ... | @@ -421,21 +434,21 @@ |
421 | item.sfczr = "1"; | 434 | item.sfczr = "1"; |
422 | }); | 435 | }); |
423 | } else { | 436 | } else { |
424 | if (!that.czr) { | 437 | if (that.czr === '') { |
425 | that.$message({ | 438 | that.$message({ |
426 | showClose: true, | 439 | showClose: true, |
427 | message: "请选择持证人", | 440 | message: "请选择持证人", |
428 | type: "error", | 441 | type: "error" |
429 | }); | 442 | }); |
430 | return false; | 443 | return false; |
431 | } | 444 | } |
432 | this.ruleForm.qlrList.forEach((item, index) => { | 445 | this.ruleForm.qlrList.forEach((item, index) => { |
433 | if (item.zjh == that.czr) { | 446 | if (item.id == that.czr) { |
434 | item.sfczr = "1"; | 447 | item.sfczr = "1" |
435 | } else { | 448 | } else { |
436 | item.sfczr = "0"; | 449 | item.sfczr = "0" |
437 | } | 450 | } |
438 | }); | 451 | }) |
439 | } | 452 | } |
440 | } | 453 | } |
441 | saveData(this.ruleForm).then((res) => { | 454 | saveData(this.ruleForm).then((res) => { | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | <el-form | 4 | <el-form |
5 | :model="ruleForm" | 5 | :model="ruleForm" |
6 | :rules="rules" | 6 | :rules="rules" |
7 | class="loadingtext" | 7 | v-Loading="loading" |
8 | ref="ruleForm" | 8 | ref="ruleForm" |
9 | :label-position="flag ? 'top' : ''" | 9 | :label-position="flag ? 'top' : ''" |
10 | :inline="flag" | 10 | :inline="flag" |
... | @@ -152,10 +152,10 @@ | ... | @@ -152,10 +152,10 @@ |
152 | placeholder="持证人" | 152 | placeholder="持证人" |
153 | :disabled="!viewEdit"> | 153 | :disabled="!viewEdit"> |
154 | <el-option | 154 | <el-option |
155 | v-for="item in czrOptions" | 155 | v-for="(item,index) in czrOptions" |
156 | :key="item.zjh" | 156 | :key="index" |
157 | :label="item.sqrmc" | 157 | :label="item.sqrmc" |
158 | :value="item.zjh"> | 158 | :value="item.id"> |
159 | </el-option> | 159 | </el-option> |
160 | </el-select> | 160 | </el-select> |
161 | </el-form-item> | 161 | </el-form-item> |
... | @@ -194,7 +194,7 @@ | ... | @@ -194,7 +194,7 @@ |
194 | </el-col> | 194 | </el-col> |
195 | </el-row> | 195 | </el-row> |
196 | </div> | 196 | </div> |
197 | <el-row class="btn" v-if="viewEdit"> | 197 | <el-row class="btn" v-if="isSave"> |
198 | <el-form-item> | 198 | <el-form-item> |
199 | <el-button type="primary" @click="onSubmit">保存</el-button> | 199 | <el-button type="primary" @click="onSubmit">保存</el-button> |
200 | </el-form-item> | 200 | </el-form-item> |
... | @@ -211,26 +211,39 @@ | ... | @@ -211,26 +211,39 @@ |
211 | export default { | 211 | export default { |
212 | mixins: [ywmix], | 212 | mixins: [ywmix], |
213 | mounted () { | 213 | mounted () { |
214 | let that = this | ||
214 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 215 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
215 | this.propsParam = this.$attrs; | 216 | this.propsParam = this.$attrs; |
216 | var formdata = new FormData(); | 217 | var formdata = new FormData(); |
217 | this.$startLoading(); | 218 | this.loading = true |
218 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 219 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
219 | formdata.append("djlx", this.propsParam.djlx); | 220 | formdata.append("djlx", this.propsParam.djlx); |
220 | formdata.append("isEdit", this.viewEdit); | 221 | formdata.append("isEdit", this.viewEdit); |
221 | Init(formdata).then((res) => { | 222 | Init(formdata).then((res) => { |
223 | setTimeout(() => { | ||
224 | that.loading = false | ||
225 | }, 200) | ||
222 | if (res.code === 200 && res.result) { | 226 | if (res.code === 200 && res.result) { |
223 | this.$endLoading(); | 227 | that.ruleForm = res.result; |
224 | this.ruleForm = res.result; | 228 | that.ruleForm.qlrList.forEach((item) => { |
225 | this.czrOptions = this.ruleForm.qlrList; | 229 | item.id = item.bsmSqr |
226 | this.ruleForm.qlrList.forEach((item) => { | 230 | if (item.sfczr == '1') { |
227 | if (item.sfczr == 1) { | 231 | that.czr = item.bsmSqr |
228 | this.czr = item.zjh | ||
229 | } | 232 | } |
230 | }) | 233 | }) |
234 | that.czrOptions = this.ruleForm.qlrList; | ||
235 | that.isSave = that.viewEdit | ||
231 | } else { | 236 | } else { |
232 | this.$message.error(res.message); | 237 | that.isSave = false |
238 | that.$confirm(res.message, '提示', { | ||
239 | cancelButtonText: '取消', | ||
240 | showConfirmButton: false, | ||
241 | type: 'warning' | ||
242 | }) | ||
233 | } | 243 | } |
244 | }).catch(() => { | ||
245 | that.isSave = false | ||
246 | that.loading = false | ||
234 | }) | 247 | }) |
235 | }, | 248 | }, |
236 | components: { qlrCommonTable, ywrCommonTable }, | 249 | components: { qlrCommonTable, ywrCommonTable }, |
... | @@ -239,6 +252,8 @@ | ... | @@ -239,6 +252,8 @@ |
239 | }, | 252 | }, |
240 | data () { | 253 | data () { |
241 | return { | 254 | return { |
255 | isSave: true, | ||
256 | loading: false, | ||
242 | //表单是否可操作 | 257 | //表单是否可操作 |
243 | viewEdit: true, | 258 | viewEdit: true, |
244 | disabled: true, | 259 | disabled: true, |
... | @@ -274,7 +289,7 @@ | ... | @@ -274,7 +289,7 @@ |
274 | this.czrOptions = this.ruleForm.qlrList; | 289 | this.czrOptions = this.ruleForm.qlrList; |
275 | this.num = 0 | 290 | this.num = 0 |
276 | this.ruleForm.qlrList.forEach(item => { | 291 | this.ruleForm.qlrList.forEach(item => { |
277 | if (item.zjh == this.czr) { | 292 | if (item.id == this.czr) { |
278 | this.num++ | 293 | this.num++ |
279 | } | 294 | } |
280 | }) | 295 | }) |
... | @@ -341,21 +356,21 @@ | ... | @@ -341,21 +356,21 @@ |
341 | item.sfczr = "1"; | 356 | item.sfczr = "1"; |
342 | }); | 357 | }); |
343 | } else { | 358 | } else { |
344 | if (!that.czr) { | 359 | if (that.czr === '') { |
345 | that.$message({ | 360 | that.$message({ |
346 | showClose: true, | 361 | showClose: true, |
347 | message: "请选择持证人", | 362 | message: "请选择持证人", |
348 | type: "error", | 363 | type: "error" |
349 | }); | 364 | }); |
350 | return false; | 365 | return false; |
351 | } | 366 | } |
352 | this.ruleForm.qlrList.forEach((item, index) => { | 367 | this.ruleForm.qlrList.forEach((item, index) => { |
353 | if (item.zjh == that.czr) { | 368 | if (item.id == that.czr) { |
354 | item.sfczr = "1"; | 369 | item.sfczr = "1" |
355 | } else { | 370 | } else { |
356 | item.sfczr = "0"; | 371 | item.sfczr = "0" |
357 | } | 372 | } |
358 | }); | 373 | }) |
359 | } | 374 | } |
360 | } | 375 | } |
361 | saveData(this.ruleForm).then((res) => { | 376 | saveData(this.ruleForm).then((res) => { | ... | ... |
... | @@ -238,10 +238,10 @@ | ... | @@ -238,10 +238,10 @@ |
238 | placeholder="持证人" | 238 | placeholder="持证人" |
239 | :disabled="!viewEdit"> | 239 | :disabled="!viewEdit"> |
240 | <el-option | 240 | <el-option |
241 | v-for="item in czrOptions" | 241 | v-for="(item,index) in czrOptions" |
242 | :key="item.zjh" | 242 | :key="index" |
243 | :label="item.sqrmc" | 243 | :label="item.sqrmc" |
244 | :value="item.zjh"></el-option> | 244 | :value="item.id"></el-option> |
245 | </el-select> | 245 | </el-select> |
246 | </el-form-item> | 246 | </el-form-item> |
247 | </el-col> | 247 | </el-col> |
... | @@ -289,7 +289,7 @@ | ... | @@ -289,7 +289,7 @@ |
289 | </el-col> | 289 | </el-col> |
290 | </el-row> | 290 | </el-row> |
291 | </div> | 291 | </div> |
292 | <el-row class="btn" v-if="viewEdit"> | 292 | <el-row class="btn" v-if="isSave"> |
293 | <el-form-item> | 293 | <el-form-item> |
294 | <el-button type="primary" @click="onSubmit">保存</el-button> | 294 | <el-button type="primary" @click="onSubmit">保存</el-button> |
295 | </el-form-item> | 295 | </el-form-item> |
... | @@ -306,30 +306,40 @@ | ... | @@ -306,30 +306,40 @@ |
306 | export default { | 306 | export default { |
307 | mixins: [ywmix], | 307 | mixins: [ywmix], |
308 | mounted () { | 308 | mounted () { |
309 | let that = this; | ||
309 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 310 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
310 | this.propsParam = this.$attrs; | 311 | this.propsParam = this.$attrs; |
311 | var formdata = new FormData(); | 312 | var formdata = new FormData(); |
312 | let that = this; | ||
313 | this.loading = true; | 313 | this.loading = true; |
314 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 314 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
315 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 315 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
316 | formdata.append("djlx", this.propsParam.djlx); | 316 | formdata.append("djlx", this.propsParam.djlx); |
317 | formdata.append("isEdit", this.viewEdit); | 317 | formdata.append("isEdit", this.viewEdit); |
318 | Init(formdata).then((res) => { | 318 | Init(formdata).then((res) => { |
319 | setTimeout(() => { | ||
320 | that.loading = false | ||
321 | }, 200) | ||
319 | if (res.code === 200 && res.result) { | 322 | if (res.code === 200 && res.result) { |
320 | that.ruleForm = res.result; | 323 | that.ruleForm = res.result; |
321 | that.czrOptions = this.ruleForm.qlrList; | ||
322 | that.ruleForm.qlrList.forEach((item) => { | 324 | that.ruleForm.qlrList.forEach((item) => { |
323 | if (item.sfczr == 1) { | 325 | item.id = item.bsmSqr |
324 | that.czr = item.zjh; | 326 | if (item.sfczr == '1') { |
327 | that.czr = item.bsmSqr | ||
325 | } | 328 | } |
326 | }); | 329 | }) |
327 | setTimeout(() => { | 330 | that.czrOptions = this.ruleForm.qlrList; |
328 | that.loading = false | 331 | that.isSave = that.viewEdit |
329 | }, 200) | ||
330 | } else { | 332 | } else { |
331 | this.$message.error(res.message); | 333 | that.isSave = false |
334 | that.$confirm(res.message, '提示', { | ||
335 | cancelButtonText: '取消', | ||
336 | showConfirmButton: false, | ||
337 | type: 'warning' | ||
338 | }) | ||
332 | } | 339 | } |
340 | }).catch(() => { | ||
341 | this.loading = false | ||
342 | this.isSave = false | ||
333 | }) | 343 | }) |
334 | }, | 344 | }, |
335 | components: { qlrCommonTable, ywrCommonTable }, | 345 | components: { qlrCommonTable, ywrCommonTable }, |
... | @@ -338,6 +348,7 @@ | ... | @@ -338,6 +348,7 @@ |
338 | }, | 348 | }, |
339 | data () { | 349 | data () { |
340 | return { | 350 | return { |
351 | isSave: true, | ||
341 | //表单是否可操作 | 352 | //表单是否可操作 |
342 | viewEdit: true, | 353 | viewEdit: true, |
343 | loading: false, | 354 | loading: false, |
... | @@ -362,7 +373,7 @@ | ... | @@ -362,7 +373,7 @@ |
362 | this.czrOptions = this.ruleForm.qlrList; | 373 | this.czrOptions = this.ruleForm.qlrList; |
363 | this.num = 0 | 374 | this.num = 0 |
364 | this.ruleForm.qlrList.forEach(item => { | 375 | this.ruleForm.qlrList.forEach(item => { |
365 | if (item.zjh == this.czr) { | 376 | if (item.id == this.czr) { |
366 | this.num++ | 377 | this.num++ |
367 | } | 378 | } |
368 | }) | 379 | }) |
... | @@ -427,7 +438,7 @@ | ... | @@ -427,7 +438,7 @@ |
427 | item.sfczr = "1"; | 438 | item.sfczr = "1"; |
428 | }); | 439 | }); |
429 | } else { | 440 | } else { |
430 | if (!that.czr) { | 441 | if (that.czr === '') { |
431 | that.$message({ | 442 | that.$message({ |
432 | showClose: true, | 443 | showClose: true, |
433 | message: "请选择持证人", | 444 | message: "请选择持证人", |
... | @@ -436,7 +447,7 @@ | ... | @@ -436,7 +447,7 @@ |
436 | return false; | 447 | return false; |
437 | } | 448 | } |
438 | this.ruleForm.qlrList.forEach((item, index) => { | 449 | this.ruleForm.qlrList.forEach((item, index) => { |
439 | if (item.zjh == that.czr) { | 450 | if (item.id == that.czr) { |
440 | item.sfczr = "1"; | 451 | item.sfczr = "1"; |
441 | } else { | 452 | } else { |
442 | item.sfczr = "0"; | 453 | item.sfczr = "0"; | ... | ... |
... | @@ -228,10 +228,10 @@ | ... | @@ -228,10 +228,10 @@ |
228 | placeholder="持证人" | 228 | placeholder="持证人" |
229 | :disabled="!viewEdit"> | 229 | :disabled="!viewEdit"> |
230 | <el-option | 230 | <el-option |
231 | v-for="item in czrOptions" | 231 | v-for="(item,index) in czrOptions" |
232 | :key="item.zjh" | 232 | :key="index" |
233 | :label="item.sqrmc" | 233 | :label="item.sqrmc" |
234 | :value="item.zjh"> | 234 | :value="item.id"> |
235 | </el-option> | 235 | </el-option> |
236 | </el-select> | 236 | </el-select> |
237 | </el-form-item> | 237 | </el-form-item> |
... | @@ -284,7 +284,7 @@ | ... | @@ -284,7 +284,7 @@ |
284 | </el-col> | 284 | </el-col> |
285 | </el-row> | 285 | </el-row> |
286 | </div> | 286 | </div> |
287 | <el-row class="btn" v-if="viewEdit"> | 287 | <el-row class="btn" v-if="isSave"> |
288 | <el-form-item> | 288 | <el-form-item> |
289 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 289 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
290 | </el-form-item> | 290 | </el-form-item> |
... | @@ -299,6 +299,7 @@ | ... | @@ -299,6 +299,7 @@ |
299 | import { mapGetters } from "vuex"; | 299 | import { mapGetters } from "vuex"; |
300 | export default { | 300 | export default { |
301 | mounted () { | 301 | mounted () { |
302 | let that = this | ||
302 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 303 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
303 | this.propsParam = this.$attrs; | 304 | this.propsParam = this.$attrs; |
304 | var formdata = new FormData(); | 305 | var formdata = new FormData(); |
... | @@ -308,17 +309,26 @@ | ... | @@ -308,17 +309,26 @@ |
308 | formdata.append("djlx", this.propsParam.djlx); | 309 | formdata.append("djlx", this.propsParam.djlx); |
309 | formdata.append("isEdit", this.viewEdit); | 310 | formdata.append("isEdit", this.viewEdit); |
310 | bacthInit(formdata).then((res) => { | 311 | bacthInit(formdata).then((res) => { |
311 | this.loading = false | 312 | setTimeout(() => { |
313 | that.loading = false | ||
314 | }, 200) | ||
312 | if (res.code === 200 && res.result) { | 315 | if (res.code === 200 && res.result) { |
313 | this.ruleForm = res.result; | 316 | this.ruleForm = res.result; |
314 | this.czrOptions = this.ruleForm.qlrList; | ||
315 | this.ruleForm.qlrList.forEach((item) => { | 317 | this.ruleForm.qlrList.forEach((item) => { |
316 | if (item.sfczr == 1) { | 318 | item.id = item.bsmSqr |
317 | this.czr = item.zjh | 319 | if (item.sfczr == '1') { |
320 | that.czr = item.bsmSqr | ||
318 | } | 321 | } |
319 | }) | 322 | }) |
323 | that.czrOptions = that.ruleForm.qlrList; | ||
324 | that.isSave = that.viewEdit | ||
320 | } else { | 325 | } else { |
321 | this.$message.error(res.message) | 326 | that.isSave = false |
327 | that.$confirm(res.message, '提示', { | ||
328 | cancelButtonText: '取消', | ||
329 | showConfirmButton: false, | ||
330 | type: 'warning' | ||
331 | }) | ||
322 | } | 332 | } |
323 | }).catch(() => { | 333 | }).catch(() => { |
324 | this.loading = false | 334 | this.loading = false |
... | @@ -330,6 +340,7 @@ | ... | @@ -330,6 +340,7 @@ |
330 | }, | 340 | }, |
331 | data () { | 341 | data () { |
332 | return { | 342 | return { |
343 | isSave: true, | ||
333 | loading: false, | 344 | loading: false, |
334 | //表单是否可操作 | 345 | //表单是否可操作 |
335 | viewEdit: true, | 346 | viewEdit: true, |
... | @@ -385,7 +396,7 @@ | ... | @@ -385,7 +396,7 @@ |
385 | item.sfczr = "1" | 396 | item.sfczr = "1" |
386 | }) | 397 | }) |
387 | } else { | 398 | } else { |
388 | if (!that.czr) { | 399 | if (that.czr === '') { |
389 | that.$message({ | 400 | that.$message({ |
390 | showClose: true, | 401 | showClose: true, |
391 | message: "请选择持证人", | 402 | message: "请选择持证人", |
... | @@ -394,7 +405,7 @@ | ... | @@ -394,7 +405,7 @@ |
394 | return false; | 405 | return false; |
395 | } | 406 | } |
396 | this.ruleForm.qlrList.forEach((item, index) => { | 407 | this.ruleForm.qlrList.forEach((item, index) => { |
397 | if (item.zjh == that.czr) { | 408 | if (item.id == that.czr) { |
398 | item.sfczr = "1"; | 409 | item.sfczr = "1"; |
399 | } else { | 410 | } else { |
400 | item.sfczr = "0"; | 411 | item.sfczr = "0"; |
... | @@ -439,7 +450,7 @@ | ... | @@ -439,7 +450,7 @@ |
439 | } | 450 | } |
440 | this.num = 0 | 451 | this.num = 0 |
441 | this.ruleForm.qlrList.forEach(item => { | 452 | this.ruleForm.qlrList.forEach(item => { |
442 | if (item.zjh == this.czr) { | 453 | if (item.id == this.czr) { |
443 | this.num++ | 454 | this.num++ |
444 | } | 455 | } |
445 | }) | 456 | }) | ... | ... |
... | @@ -261,10 +261,10 @@ | ... | @@ -261,10 +261,10 @@ |
261 | placeholder="持证人" | 261 | placeholder="持证人" |
262 | :disabled="!viewEdit"> | 262 | :disabled="!viewEdit"> |
263 | <el-option | 263 | <el-option |
264 | v-for="item in czrOptions" | 264 | v-for="(item,index) in czrOptions" |
265 | :key="item.zjh" | 265 | :key="index" |
266 | :label="item.sqrmc" | 266 | :label="item.sqrmc" |
267 | :value="item.zjh"> | 267 | :value="item.id"> |
268 | </el-option> | 268 | </el-option> |
269 | </el-select> | 269 | </el-select> |
270 | </el-form-item> | 270 | </el-form-item> |
... | @@ -314,7 +314,7 @@ | ... | @@ -314,7 +314,7 @@ |
314 | </el-col> | 314 | </el-col> |
315 | </el-row> | 315 | </el-row> |
316 | </div> | 316 | </div> |
317 | <el-row class="btn" v-if="viewEdit"> | 317 | <el-row class="btn" v-if="isSave"> |
318 | <el-form-item> | 318 | <el-form-item> |
319 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 319 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
320 | </el-form-item> | 320 | </el-form-item> |
... | @@ -328,6 +328,7 @@ | ... | @@ -328,6 +328,7 @@ |
328 | import { mapGetters } from "vuex"; | 328 | import { mapGetters } from "vuex"; |
329 | export default { | 329 | export default { |
330 | mounted () { | 330 | mounted () { |
331 | let that = this | ||
331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 332 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
332 | this.propsParam = this.$attrs; | 333 | this.propsParam = this.$attrs; |
333 | var formdata = new FormData(); | 334 | var formdata = new FormData(); |
... | @@ -339,14 +340,21 @@ | ... | @@ -339,14 +340,21 @@ |
339 | this.loading = false | 340 | this.loading = false |
340 | if (res.code === 200 && res.result) { | 341 | if (res.code === 200 && res.result) { |
341 | this.ruleForm = res.result; | 342 | this.ruleForm = res.result; |
342 | this.czrOptions = this.ruleForm.qlrList; | ||
343 | this.ruleForm.qlrList.forEach((item) => { | 343 | this.ruleForm.qlrList.forEach((item) => { |
344 | if (item.sfczr == 1) { | 344 | item.id = item.bsmSqr |
345 | this.czr = item.zjh | 345 | if (item.sfczr == '1') { |
346 | that.czr = item.bsmSqr | ||
346 | } | 347 | } |
347 | }) | 348 | }) |
349 | that.czrOptions = that.ruleForm.qlrList; | ||
350 | that.isSave = that.viewEdit | ||
348 | } else { | 351 | } else { |
349 | this.$message.error(res.message); | 352 | that.isSave = false |
353 | that.$confirm(res.message, '提示', { | ||
354 | cancelButtonText: '取消', | ||
355 | showConfirmButton: false, | ||
356 | type: 'warning' | ||
357 | }) | ||
350 | } | 358 | } |
351 | }).catch(() => { | 359 | }).catch(() => { |
352 | this.loading = false | 360 | this.loading = false |
... | @@ -358,6 +366,7 @@ | ... | @@ -358,6 +366,7 @@ |
358 | }, | 366 | }, |
359 | data () { | 367 | data () { |
360 | return { | 368 | return { |
369 | isSave: true, | ||
361 | loading: false, | 370 | loading: false, |
362 | //表单是否可操作 | 371 | //表单是否可操作 |
363 | viewEdit: true, | 372 | viewEdit: true, |
... | @@ -424,7 +433,7 @@ | ... | @@ -424,7 +433,7 @@ |
424 | item.sfczr = "1"; | 433 | item.sfczr = "1"; |
425 | }); | 434 | }); |
426 | } else { | 435 | } else { |
427 | if (!that.czr) { | 436 | if (that.czr === '') { |
428 | that.$message({ | 437 | that.$message({ |
429 | showClose: true, | 438 | showClose: true, |
430 | message: "请选择持证人", | 439 | message: "请选择持证人", |
... | @@ -433,7 +442,7 @@ | ... | @@ -433,7 +442,7 @@ |
433 | return false; | 442 | return false; |
434 | } | 443 | } |
435 | this.ruleForm.qlrList.forEach((item, index) => { | 444 | this.ruleForm.qlrList.forEach((item, index) => { |
436 | if (item.zjh == that.czr) { | 445 | if (item.id == that.czr) { |
437 | item.sfczr = "1"; | 446 | item.sfczr = "1"; |
438 | } else { | 447 | } else { |
439 | item.sfczr = "0"; | 448 | item.sfczr = "0"; |
... | @@ -470,7 +479,7 @@ | ... | @@ -470,7 +479,7 @@ |
470 | } | 479 | } |
471 | this.num = 0 | 480 | this.num = 0 |
472 | this.ruleForm.qlrList.forEach(item => { | 481 | this.ruleForm.qlrList.forEach(item => { |
473 | if (item.zjh == this.czr) { | 482 | if (item.id == this.czr) { |
474 | this.num++ | 483 | this.num++ |
475 | } | 484 | } |
476 | }) | 485 | }) | ... | ... |
-
Please register or sign in to post a comment