Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
37 changed files
with
818 additions
and
561 deletions
| 1 | /* | 1 | /* |
| 2 | * @Description: 企业银行接口 | 2 | * @Description: 企业银行接口 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-13 17:08:10 | 4 | * @LastEditTime: 2023-09-20 14:49:22 |
| 5 | */ | 5 | */ |
| 6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
| ... | @@ -108,4 +108,20 @@ export function editCompanyMaterialList (data, bsmCompany) { | ... | @@ -108,4 +108,20 @@ export function editCompanyMaterialList (data, bsmCompany) { |
| 108 | method: 'post', | 108 | method: 'post', |
| 109 | data | 109 | data |
| 110 | }) | 110 | }) |
| 111 | } | ||
| 112 | |||
| 113 | /** | ||
| 114 | * @description: 是否覆盖才材料信息 | ||
| 115 | * @author: renchao | ||
| 116 | */ | ||
| 117 | export function replace (bsmCompany, bsmSldy, bsmSlsq) { | ||
| 118 | return request({ | ||
| 119 | url: SERVER.SERVERAPI + '/rest/sys/company/replace', | ||
| 120 | method: 'get', | ||
| 121 | params: { | ||
| 122 | bsmCompany: bsmCompany, | ||
| 123 | bsmSldy: bsmSldy, | ||
| 124 | bsmSlsq: bsmSlsq | ||
| 125 | } | ||
| 126 | }) | ||
| 111 | } | 127 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:32:45 | 4 | * @LastEditTime: 2023-09-20 10:24:29 |
| 5 | */ | 5 | */ |
| 6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
| ... | @@ -108,3 +108,19 @@ export function sjClmxDelete (bsmClmx) { | ... | @@ -108,3 +108,19 @@ export function sjClmxDelete (bsmClmx) { |
| 108 | method: 'delete' | 108 | method: 'delete' |
| 109 | }) | 109 | }) |
| 110 | } | 110 | } |
| 111 | |||
| 112 | |||
| 113 | /** | ||
| 114 | * @description: 获取自然幢列表 | ||
| 115 | * @param {*} data | ||
| 116 | * @author: renchao | ||
| 117 | */ | ||
| 118 | export function getZrzListByBsmSlsq (params) { | ||
| 119 | return request({ | ||
| 120 | url: SERVER.SERVERAPI + '/rest/ywbl/zjgcdy/getZrzListByBsmSlsq', | ||
| 121 | method: 'get', | ||
| 122 | params | ||
| 123 | }) | ||
| 124 | } | ||
| 125 | |||
| 126 | ... | ... |
| ... | @@ -245,4 +245,15 @@ | ... | @@ -245,4 +245,15 @@ |
| 245 | // 弹框层级 | 245 | // 弹框层级 |
| 246 | .messageIndex { | 246 | .messageIndex { |
| 247 | z-index: 8000 !important; | 247 | z-index: 8000 !important; |
| 248 | } | ||
| 249 | |||
| 250 | // el-link一直显示下划线 | ||
| 251 | .el-link.is-underline::after { | ||
| 252 | content: ""; | ||
| 253 | position: absolute; | ||
| 254 | left: 0; | ||
| 255 | right: 0; | ||
| 256 | height: 0; | ||
| 257 | bottom: 0; | ||
| 258 | border-bottom: 1px solid #1890ff; | ||
| 248 | } | 259 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -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 | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | /* | 2 | /* |
| 3 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 | 3 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 |
| 4 | * @Autor: renchao | 4 | * @Autor: renchao |
| 5 | * @LastEditTime: 2023-08-16 15:16:49 | 5 | * @LastEditTime: 2023-09-20 14:20:39 |
| 6 | */ | 6 | */ |
| 7 | import axios from 'axios' | 7 | import axios from 'axios' |
| 8 | import Router from '@/router' | 8 | import Router from '@/router' |
| ... | @@ -77,7 +77,7 @@ service.interceptors.response.use( | ... | @@ -77,7 +77,7 @@ service.interceptors.response.use( |
| 77 | Router.replace({ | 77 | Router.replace({ |
| 78 | path: '/login', | 78 | path: '/login', |
| 79 | query: { | 79 | query: { |
| 80 | redirect: Router.currentRoute.value.fullPath | 80 | redirect: Router.currentRoute.fullPath |
| 81 | } | 81 | } |
| 82 | }) | 82 | }) |
| 83 | return false | 83 | return false | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: yangwei | 2 | * @Author: yangwei |
| 3 | * @Date: 2023-02-28 15:47:12 | 3 | * @Date: 2023-02-28 15:47:12 |
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
| 5 | * @LastEditTime: 2023-09-15 14:52:50 | 5 | * @LastEditTime: 2023-09-20 17:14:39 |
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| ... | @@ -16,16 +16,14 @@ | ... | @@ -16,16 +16,14 @@ |
| 16 | border="1" | 16 | border="1" |
| 17 | cellspacing="0" | 17 | cellspacing="0" |
| 18 | cellpadding="0" | 18 | cellpadding="0" |
| 19 | v-show="ch.length" | 19 | v-show="ch.length"> |
| 20 | > | ||
| 21 | <tr v-for="(cs, csIndex) in ch" :key="csIndex"> | 20 | <tr v-for="(cs, csIndex) in ch" :key="csIndex"> |
| 22 | <!-- 显示层数 --> | 21 | <!-- 显示层数 --> |
| 23 | <td | 22 | <td |
| 24 | class="floor" | 23 | class="floor" |
| 25 | ref="cBsm" | 24 | ref="cBsm" |
| 26 | @contextmenu.prevent="openMenu($event, cs, 'c')" | 25 | @contextmenu.prevent="openMenu($event, cs, 'c')" |
| 27 | @click="handleClickC($event, cs)" | 26 | @click="handleClickC($event, cs)"> |
| 28 | > | ||
| 29 | {{ cs.sjc }}层 | 27 | {{ cs.sjc }}层 |
| 30 | </td> | 28 | </td> |
| 31 | <!-- 显示户 --> | 29 | <!-- 显示户 --> |
| ... | @@ -41,18 +39,11 @@ | ... | @@ -41,18 +39,11 @@ |
| 41 | :class="hs.select ? 'tdSelect' : ''" | 39 | :class="hs.select ? 'tdSelect' : ''" |
| 42 | @click="handleClickH($event.target, hs.bsm, hs)" | 40 | @click="handleClickH($event.target, hs.bsm, hs)" |
| 43 | @dblclick="dbclick(hs.bsm)" | 41 | @dblclick="dbclick(hs.bsm)" |
| 44 | @contextmenu.prevent="openMenu($event, hs, 'h')" | 42 | @contextmenu.prevent="openMenu($event, hs, 'h')"> |
| 45 | > | ||
| 46 | {{ hs.shbw }} | 43 | {{ hs.shbw }} |
| 47 | <span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'" | 44 | <span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'">临</span> |
| 48 | >临</span | 45 | <span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'">正</span> |
| 49 | > | 46 | <span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'">现</span> |
| 50 | <span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'" | ||
| 51 | >正</span | ||
| 52 | > | ||
| 53 | <span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'" | ||
| 54 | >现</span | ||
| 55 | > | ||
| 56 | <ul @click.stop="hDyztClick($event, hs.bsm, hs)" class="dyzt"> | 47 | <ul @click.stop="hDyztClick($event, hs.bsm, hs)" class="dyzt"> |
| 57 | <li style="background-color: #6edee1" v-show="hs.qqzt == '1'"> | 48 | <li style="background-color: #6edee1" v-show="hs.qqzt == '1'"> |
| 58 | 确 | 49 | 确 |
| ... | @@ -318,92 +309,91 @@ export default { | ... | @@ -318,92 +309,91 @@ export default { |
| 318 | }, | 309 | }, |
| 319 | }; | 310 | }; |
| 320 | </script> | 311 | </script> |
| 321 | |||
| 322 | <style lang="scss" scoped> | 312 | <style lang="scss" scoped> |
| 323 | .ch-wrap { | 313 | .ch-wrap { |
| 324 | display: flex; | 314 | display: flex; |
| 325 | flex-direction: column-reverse; | 315 | flex-direction: column-reverse; |
| 326 | .chTable { | 316 | .chTable { |
| 327 | // margin-left: -1px; | 317 | // margin-left: -1px; |
| 328 | border-color: #e4ebf4 !important; | 318 | border-color: #e4ebf4 !important; |
| 329 | border-collapse: collapse; | 319 | border-collapse: collapse; |
| 330 | border-spacing: 0; | 320 | border-spacing: 0; |
| 331 | // position: relative; | 321 | // position: relative; |
| 332 | tr { | 322 | tr { |
| 333 | .floor { | ||
| 334 | min-width: 56px; | ||
| 335 | background: #e8f2ff; | ||
| 336 | border: 1px solid #acbae8; | ||
| 337 | } | ||
| 338 | &:first-child { | ||
| 339 | .floor { | 323 | .floor { |
| 340 | border-radius: 4px 0px 0px 1px; | 324 | min-width: 56px; |
| 341 | } | 325 | background: #e8f2ff; |
| 342 | } | 326 | border: 1px solid #acbae8; |
| 343 | td { | ||
| 344 | min-width: 138px; | ||
| 345 | height: 64px; | ||
| 346 | line-height: 64px; | ||
| 347 | text-align: center; | ||
| 348 | cursor: pointer; | ||
| 349 | position: relative; | ||
| 350 | .hqszt { | ||
| 351 | display: inline-block; | ||
| 352 | width: 16px; | ||
| 353 | height: 16px; | ||
| 354 | font-size: 12px; | ||
| 355 | line-height: 16px; | ||
| 356 | position: absolute; | ||
| 357 | left: 6px; | ||
| 358 | top: 6px; | ||
| 359 | border: 1px solid; | ||
| 360 | border-radius: 3px 0px 3px 0px; | ||
| 361 | } | 327 | } |
| 362 | .lin { | 328 | &:first-child { |
| 363 | color: #f7b500; | 329 | .floor { |
| 364 | border-color: #f7b500; | 330 | border-radius: 4px 0px 0px 1px; |
| 365 | } | 331 | } |
| 366 | .zheng { | ||
| 367 | color: #1ad6e1; | ||
| 368 | border-color: #1ad6e1; | ||
| 369 | } | ||
| 370 | .xian { | ||
| 371 | color: #45aefd; | ||
| 372 | border-color: #45aefd; | ||
| 373 | } | 332 | } |
| 374 | .dyzt { | 333 | td { |
| 375 | user-select: none; | 334 | min-width: 138px; |
| 376 | width: 138px; | 335 | height: 64px; |
| 377 | height: 18px; | 336 | line-height: 64px; |
| 378 | position: absolute; | 337 | text-align: center; |
| 379 | bottom: 28px; | 338 | cursor: pointer; |
| 380 | box-sizing: border-box; | 339 | position: relative; |
| 381 | padding: 0 6px; | 340 | .hqszt { |
| 382 | li { | ||
| 383 | display: inline-block; | 341 | display: inline-block; |
| 384 | width: 18px; | 342 | width: 16px; |
| 385 | height: 18px; | 343 | height: 16px; |
| 386 | font-size: 12px; | 344 | font-size: 12px; |
| 387 | line-height: 18px; | 345 | line-height: 16px; |
| 388 | color: #ffffff; | 346 | position: absolute; |
| 347 | left: 6px; | ||
| 348 | top: 6px; | ||
| 389 | border: 1px solid; | 349 | border: 1px solid; |
| 390 | border-radius: 9px; | 350 | border-radius: 3px 0px 3px 0px; |
| 351 | } | ||
| 352 | .lin { | ||
| 353 | color: #f7b500; | ||
| 354 | border-color: #f7b500; | ||
| 355 | } | ||
| 356 | .zheng { | ||
| 357 | color: #1ad6e1; | ||
| 358 | border-color: #1ad6e1; | ||
| 359 | } | ||
| 360 | .xian { | ||
| 361 | color: #45aefd; | ||
| 362 | border-color: #45aefd; | ||
| 363 | } | ||
| 364 | .dyzt { | ||
| 365 | user-select: none; | ||
| 366 | width: 138px; | ||
| 367 | height: 18px; | ||
| 368 | position: absolute; | ||
| 369 | bottom: 28px; | ||
| 370 | box-sizing: border-box; | ||
| 371 | padding: 0 6px; | ||
| 372 | li { | ||
| 373 | display: inline-block; | ||
| 374 | width: 18px; | ||
| 375 | height: 18px; | ||
| 376 | font-size: 12px; | ||
| 377 | line-height: 18px; | ||
| 378 | color: #ffffff; | ||
| 379 | border: 1px solid; | ||
| 380 | border-radius: 9px; | ||
| 381 | } | ||
| 391 | } | 382 | } |
| 392 | } | 383 | } |
| 393 | } | 384 | .tdSelect { |
| 394 | .tdSelect { | 385 | border: 1px solid; |
| 395 | border: 1px solid ; | 386 | border-color: #5a78de !important; |
| 396 | border-color: #5A78DE !important; | 387 | background-image: url("./images/tdSelect.png"); |
| 397 | background-image: url("./images/tdSelect.png"); | 388 | background-repeat: no-repeat; |
| 398 | background-repeat: no-repeat; | 389 | background-position: right top; |
| 399 | background-position: right top; | 390 | background-size: 30px; |
| 400 | background-size: 30px; | 391 | } |
| 401 | } | 392 | .hasBorder { |
| 402 | .hasBorder { | 393 | border-width: 1px; |
| 403 | border-width: 1px; | 394 | border-style: solid; |
| 404 | border-style: solid; | 395 | } |
| 405 | } | 396 | } |
| 406 | } | 397 | } |
| 407 | } | 398 | } |
| 408 | } | ||
| 409 | </style> | 399 | </style> | ... | ... |
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | }}</el-checkbox> | 19 | }}</el-checkbox> |
| 20 | </p> | 20 | </p> |
| 21 | <el-button type="primary" class="save-btn" v-if="!onlyShow && showSave" @click="saveLpb">保存</el-button> | 21 | <el-button type="primary" class="save-btn" v-if="!onlyShow && showSave" @click="saveLpb">保存</el-button> |
| 22 | <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="submitForm" :loading="loading">发起申请</el-button> | 22 | <el-button type="primary" class="save-btn" v-if="!onlyShow && !showSave" @click="submitForm" :loading="loading">发起申请</el-button> |
| 23 | <!-- 右键菜单 --> | 23 | <!-- 右键菜单 --> |
| 24 | <ul | 24 | <ul |
| 25 | v-show="lpbChVisible" | 25 | v-show="lpbChVisible" | ... | ... |
src/views/lpb/zjgcdy.vue
0 → 100644
This diff is collapsed.
Click to expand it.
| ... | @@ -41,11 +41,24 @@ | ... | @@ -41,11 +41,24 @@ |
| 41 | { | 41 | { |
| 42 | prop: "bdcdyh", | 42 | prop: "bdcdyh", |
| 43 | label: "不动产单元号", | 43 | label: "不动产单元号", |
| 44 | width: '250', | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | prop: "qllxmc", | ||
| 48 | label: "权利类型", | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | prop: "jzwmc", | ||
| 52 | label: "建筑物名称", | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | prop: "xmmc", | ||
| 56 | label: "项目名称", | ||
| 44 | }, | 57 | }, |
| 45 | { | 58 | { |
| 46 | prop: "zl", | 59 | prop: "zl", |
| 47 | label: "坐落", | 60 | label: "坐落", |
| 48 | }, | 61 | } |
| 49 | ], | 62 | ], |
| 50 | dataList: [], | 63 | dataList: [], |
| 51 | selectBdcdy: [], | 64 | selectBdcdy: [], | ... | ... |
| 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 16:07:43 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <dialogBox | 7 | <dialogBox |
| ... | @@ -286,13 +286,12 @@ | ... | @@ -286,13 +286,12 @@ |
| 286 | </el-table-column> | 286 | </el-table-column> |
| 287 | <el-table-column label="操作" width="50"> | 287 | <el-table-column label="操作" width="50"> |
| 288 | <template slot-scope="scope"> | 288 | <template slot-scope="scope"> |
| 289 | <el-button type="text" @click="handlesQYSelect(scope.row)">使用</el-button> | 289 | <el-button type="text" @click="handleSelect(scope.row)">使用</el-button> |
| 290 | </template> | 290 | </template> |
| 291 | </el-table-column> | 291 | </el-table-column> |
| 292 | </el-table> | 292 | </el-table> |
| 293 | <el-pagination background layout="prev, pager, next,total" :total="tableDataQy.total" | 293 | <el-pagination background layout="prev, pager, next,total" :total="tableDataQy.total" |
| 294 | @current-change="handleQYCurrentChange"></el-pagination> | 294 | @current-change="handleQYCurrentChange"></el-pagination> |
| 295 | |||
| 296 | </div> | 295 | </div> |
| 297 | 296 | ||
| 298 | <div v-if="activeName==3" class="padding10"> | 297 | <div v-if="activeName==3" class="padding10"> |
| ... | @@ -327,7 +326,7 @@ | ... | @@ -327,7 +326,7 @@ |
| 327 | </el-table-column> | 326 | </el-table-column> |
| 328 | <el-table-column label="操作" width="50"> | 327 | <el-table-column label="操作" width="50"> |
| 329 | <template slot-scope="scope"> | 328 | <template slot-scope="scope"> |
| 330 | <el-button type="text" @click="handlesYHSelect(scope.row)">使用</el-button> | 329 | <el-button type="text" @click="handleSelect(scope.row)">使用</el-button> |
| 331 | </template> | 330 | </template> |
| 332 | </el-table-column> | 331 | </el-table-column> |
| 333 | </el-table> | 332 | </el-table> |
| ... | @@ -340,6 +339,8 @@ | ... | @@ -340,6 +339,8 @@ |
| 340 | <script> | 339 | <script> |
| 341 | import { mapGetters } from "vuex"; | 340 | import { mapGetters } from "vuex"; |
| 342 | import store from '@/store/index.js' | 341 | import store from '@/store/index.js' |
| 342 | import { getUuid } from "@/utils/operation.js" | ||
| 343 | import { replace } from "@/api/company.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 | }) |
| ... | @@ -533,13 +535,34 @@ | ... | @@ -533,13 +535,34 @@ |
| 533 | * @param {*} val | 535 | * @param {*} val |
| 534 | * @author: renchao | 536 | * @author: renchao |
| 535 | */ | 537 | */ |
| 536 | handlesQYSelect (val) { | 538 | handleSelect (val) { |
| 537 | this.$emit("updateDetail", _.cloneDeep(val)); | 539 | let that = this |
| 538 | this.$emit("input", false); | 540 | let bsmSldy = window.currentSelect.bsmSldy ? window.currentSelect.bsmSldy : '' |
| 541 | this.$confirm('是否同步材料信息?', '提示', { | ||
| 542 | confirmButtonText: '确定', | ||
| 543 | cancelButtonText: '取消', | ||
| 544 | }).then(() => { | ||
| 545 | replace(val.bsmCompany, this.$route.query.bsmSlsq, bsmSldy).then(res => { | ||
| 546 | that.$emit("updateDetail", _.cloneDeep(val)); | ||
| 547 | that.$emit("input", false); | ||
| 548 | if (res.code == 200) { | ||
| 549 | that.$message({ | ||
| 550 | type: 'success', | ||
| 551 | message: '同步成功!' | ||
| 552 | }) | ||
| 553 | } else { | ||
| 554 | this.$message.error(res.message); | ||
| 555 | } | ||
| 556 | }) | ||
| 557 | }).catch(() => { | ||
| 558 | this.$message({ | ||
| 559 | type: 'info', | ||
| 560 | message: '已取消' | ||
| 561 | }) | ||
| 562 | }) | ||
| 539 | }, | 563 | }, |
| 540 | // 银行 | ||
| 541 | /** | 564 | /** |
| 542 | * @description: 银行 | 565 | * @description: 银行信息搜索 |
| 543 | * @author: renchao | 566 | * @author: renchao |
| 544 | */ | 567 | */ |
| 545 | handleSearchYH () { | 568 | handleSearchYH () { |
| ... | @@ -554,6 +577,7 @@ | ... | @@ -554,6 +577,7 @@ |
| 554 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') | 577 | item.zjzlMc = this.dicStatus(item.zjzl, 'A30') |
| 555 | item.sqrmc = item.qymc | 578 | item.sqrmc = item.qymc |
| 556 | item.txdz = item.dwdz | 579 | item.txdz = item.dwdz |
| 580 | item.id = getUuid(16) | ||
| 557 | }) | 581 | }) |
| 558 | } | 582 | } |
| 559 | }) | 583 | }) |
| ... | @@ -568,15 +592,6 @@ | ... | @@ -568,15 +592,6 @@ |
| 568 | this.handleSearchQY() | 592 | this.handleSearchQY() |
| 569 | }, | 593 | }, |
| 570 | /** | 594 | /** |
| 571 | * @description: handlesYHSelect | ||
| 572 | * @param {*} val | ||
| 573 | * @author: renchao | ||
| 574 | */ | ||
| 575 | handlesYHSelect (val) { | ||
| 576 | this.$emit("updateDetail", _.cloneDeep(val)); | ||
| 577 | this.$emit("input", false); | ||
| 578 | }, | ||
| 579 | /** | ||
| 580 | * @description: 身份证打卡器 | 595 | * @description: 身份证打卡器 |
| 581 | * @author: renchao | 596 | * @author: renchao |
| 582 | */ | 597 | */ |
| ... | @@ -608,7 +623,9 @@ | ... | @@ -608,7 +623,9 @@ |
| 608 | */ | 623 | */ |
| 609 | closeDialog () { | 624 | closeDialog () { |
| 610 | this.$emit("input", false); | 625 | this.$emit("input", false); |
| 611 | this.$refs["ruleForm"].resetFields(); | 626 | this.$nextTick(() => { |
| 627 | this.$refs["ruleForm"].resetFields(); | ||
| 628 | }) | ||
| 612 | }, | 629 | }, |
| 613 | /** | 630 | /** |
| 614 | * @description: submitForm | 631 | * @description: submitForm |
| ... | @@ -618,6 +635,7 @@ | ... | @@ -618,6 +635,7 @@ |
| 618 | this.$refs.ruleForm.validate((valid) => { | 635 | this.$refs.ruleForm.validate((valid) => { |
| 619 | if (valid) { | 636 | if (valid) { |
| 620 | this.$emit("input", false); | 637 | this.$emit("input", false); |
| 638 | this.ruleForm.id = getUuid(16) | ||
| 621 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | 639 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); |
| 622 | this.$refs["ruleForm"].resetFields(); | 640 | this.$refs["ruleForm"].resetFields(); |
| 623 | } else { | 641 | } else { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-19 16:13:24 | 4 | * @LastEditTime: 2023-09-20 15:46:25 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
| ... | @@ -209,6 +209,7 @@ | ... | @@ -209,6 +209,7 @@ |
| 209 | * @author: renchao | 209 | * @author: renchao |
| 210 | */ | 210 | */ |
| 211 | batchUnitClick () { | 211 | batchUnitClick () { |
| 212 | window.currentSelect = {} | ||
| 212 | this.currentSelectProps.batchOperation = true; | 213 | this.currentSelectProps.batchOperation = true; |
| 213 | this.activeIndex = "-1"; | 214 | this.activeIndex = "-1"; |
| 214 | this.$parent.stepForm(0); | 215 | this.$parent.stepForm(0); |
| ... | @@ -230,6 +231,7 @@ | ... | @@ -230,6 +231,7 @@ |
| 230 | * @author: renchao | 231 | * @author: renchao |
| 231 | */ | 232 | */ |
| 232 | unitClick (index) { | 233 | unitClick (index) { |
| 234 | window.currentSelect = this.unitData[index] | ||
| 233 | if (this.unitData.length == 0) return | 235 | if (this.unitData.length == 0) return |
| 234 | this.currentSelectProps = this.unitData[index]; | 236 | this.currentSelectProps = this.unitData[index]; |
| 235 | this.currentSelectProps.batchOperation = false; | 237 | this.currentSelectProps.batchOperation = false; | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: workFrame左侧菜单列表-分割 | 2 | * @Description: workFrame左侧菜单列表-分割 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-19 16:15:15 | 4 | * @LastEditTime: 2023-09-20 15:33:05 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
| ... | @@ -218,6 +218,7 @@ | ... | @@ -218,6 +218,7 @@ |
| 218 | * @author: renchao | 218 | * @author: renchao |
| 219 | */ | 219 | */ |
| 220 | unitClick (index) { | 220 | unitClick (index) { |
| 221 | window.currentSelect = this.unitData[index] | ||
| 221 | this.activeHIndex = '-1' | 222 | this.activeHIndex = '-1' |
| 222 | this.currentSelectProps = this.aroundUnitData[index]; | 223 | this.currentSelectProps = this.aroundUnitData[index]; |
| 223 | this.currentSelectProps.issave = '1' | 224 | this.currentSelectProps.issave = '1' |
| ... | @@ -234,6 +235,7 @@ | ... | @@ -234,6 +235,7 @@ |
| 234 | * @author: renchao | 235 | * @author: renchao |
| 235 | */ | 236 | */ |
| 236 | handleAfterunitClick (index) { | 237 | handleAfterunitClick (index) { |
| 238 | window.currentSelect = this.unitData[index] | ||
| 237 | this.activeIndex = '-1' | 239 | this.activeIndex = '-1' |
| 238 | this.currentSelectProps = this.afterUnitData[index]; | 240 | this.currentSelectProps = this.afterUnitData[index]; |
| 239 | this.currentSelectProps.batchOperation = false; | 241 | this.currentSelectProps.batchOperation = false; | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-18 11:11:19 | 4 | * @LastEditTime: 2023-09-20 16:56:46 |
| 5 | */ | 5 | */ |
| 6 | import { getPrintTemplateByCode } from "@/api/print"; | 6 | import { getPrintTemplateByCode } from "@/api/print"; |
| 7 | import { uploadUndo } from "@/api/clxx"; | 7 | import { uploadUndo } from "@/api/clxx"; |
| ... | @@ -157,20 +157,30 @@ export default { | ... | @@ -157,20 +157,30 @@ export default { |
| 157 | ) | 157 | ) |
| 158 | break; | 158 | break; |
| 159 | case "B8": | 159 | case "B8": |
| 160 | getZrzbsmList(this.bsmSlsq).then((res) => { | 160 | !window.djlx && getZrzbsmList(this.bsmSlsq).then((res) => { |
| 161 | if (res.code === 200) { | 161 | if (res.code === 200) { |
| 162 | this.$popupDialog('楼盘表', 'lpb/index', { | 162 | this.$popupDialog('楼盘表', 'lpb/index', { |
| 163 | bsm: res.result[0], | 163 | bsm: res.result[0], |
| 164 | onlyShow: false, | 164 | onlyShow: false, |
| 165 | unitData: window.unitData | 165 | unitData: window.unitData, |
| 166 | bsmSlsq:this.bsmSlsq, | ||
| 167 | showSave:true, | ||
| 168 | djlx: window.djlx | ||
| 166 | }, '90%', true) | 169 | }, '90%', true) |
| 167 | } else { | 170 | } else { |
| 168 | this.$message.error(res.message) | 171 | this.$message.error(res.message) |
| 169 | } | 172 | } |
| 170 | }) | 173 | }) |
| 171 | .catch((err) => { | 174 | .catch((err) => { |
| 172 | this.$message.error(err) | 175 | this.$message.error(err) |
| 173 | }); | 176 | }); |
| 177 | window.djlx && this.$popupDialog('楼盘表', 'lpb/zjgcdy', { | ||
| 178 | onlyShow: false, | ||
| 179 | unitData: window.unitData, | ||
| 180 | bsmSlsq:this.bsmSlsq, | ||
| 181 | showSave:true, | ||
| 182 | djlx: window.djlx | ||
| 183 | }, '90%', true) | ||
| 174 | break; | 184 | break; |
| 175 | // 图形定位 | 185 | // 图形定位 |
| 176 | case "B-TXDW": | 186 | case "B-TXDW": | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-18 11:13:06 | 4 | * @LastEditTime: 2023-09-20 17:30:41 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="container"> | 7 | <div class="container"> |
| ... | @@ -117,27 +117,24 @@ | ... | @@ -117,27 +117,24 @@ |
| 117 | * @author: renchao | 117 | * @author: renchao |
| 118 | */ | 118 | */ |
| 119 | stepForm (index) { | 119 | stepForm (index) { |
| 120 | let that = this | ||
| 120 | this.currentSelectProps.type = "READ_ONLY" | 121 | this.currentSelectProps.type = "READ_ONLY" |
| 121 | getStepFormInfo(this.currentSelectProps).then((res) => { | 122 | getStepFormInfo(this.currentSelectProps).then((res) => { |
| 122 | if (res.code === 200) { | 123 | if (res.code === 200) { |
| 123 | //获取单元对应的所有表单信息 | 124 | //获取单元对应的所有表单信息 |
| 124 | this.tabList = res.result; | 125 | this.tabList = res.result; |
| 125 | //默认加载第一个表单信息 | 126 | //默认加载第一个表单信息 |
| 126 | let arr = res.result.filter(item => item.defaultForm) | 127 | if (res.result.length > 0) { |
| 127 | if (arr.length > 0) { | 128 | that.tabName = res.result[0].value; |
| 128 | this.tabName = arr[0].value; | ||
| 129 | } else { | ||
| 130 | this.tabName = res.result[0].value; | ||
| 131 | } | 129 | } |
| 132 | if (sessionStorage.getItem('activeName') == this.tabName) { | 130 | if (sessionStorage.getItem('activeName') == this.tabName) { |
| 133 | this.fresh++; | 131 | that.fresh++; |
| 134 | } | 132 | } |
| 135 | this.ableOperation = this.tabList[0].ableOperation | 133 | this.ableOperation = this.tabList[0].ableOperation |
| 136 | //批量操作无分屏按钮 | 134 | //批量操作无分屏按钮 |
| 137 | if (index != null) { | 135 | if (index != null) { |
| 138 | //处理分屏材料信息 | 136 | //处理分屏材料信息 |
| 139 | let that = this; | 137 | that.tabList.forEach(function (item, index) { |
| 140 | this.tabList.forEach(function (item, index) { | ||
| 141 | if (item.value == "clxx") { | 138 | if (item.value == "clxx") { |
| 142 | that.clxxIndex = index | 139 | that.clxxIndex = index |
| 143 | that.clxxForm = getForm(item.value) | 140 | that.clxxForm = getForm(item.value) | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-28 15:48:06 | 4 | * @LastEditTime: 2023-09-20 17:17:22 |
| 5 | */ | 5 | */ |
| 6 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
| 7 | let vm = null | 7 | let vm = null |
| ... | @@ -62,7 +62,7 @@ class data extends filter { | ... | @@ -62,7 +62,7 @@ class data extends filter { |
| 62 | align: 'center', | 62 | align: 'center', |
| 63 | minWidth: '100', | 63 | minWidth: '100', |
| 64 | render: (h, scope) => { | 64 | render: (h, scope) => { |
| 65 | return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button> | 65 | return <el-link type="primary" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-link> |
| 66 | } | 66 | } |
| 67 | }, | 67 | }, |
| 68 | { | 68 | { | ... | ... |
| 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 14:30:39 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -227,7 +227,7 @@ | ... | @@ -227,7 +227,7 @@ |
| 227 | style="width: 500%" | 227 | style="width: 500%" |
| 228 | :disabled="!viewEdit" | 228 | :disabled="!viewEdit" |
| 229 | oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> | 229 | oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> |
| 230 | <el-select v-model="ruleForm.fdcq2.jedw" :disabled="!viewEdit"> | 230 | <el-select v-model="ruleForm.fdcq2.jedw" disabled> |
| 231 | <el-option | 231 | <el-option |
| 232 | v-for="item in dictData['A57']" | 232 | v-for="item in dictData['A57']" |
| 233 | :key="item.dcode" | 233 | :key="item.dcode" |
| ... | @@ -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"; | ... | ... |
| ... | @@ -204,7 +204,6 @@ | ... | @@ -204,7 +204,6 @@ |
| 204 | </el-radio-group> | 204 | </el-radio-group> |
| 205 | </el-form-item> | 205 | </el-form-item> |
| 206 | </el-col> | 206 | </el-col> |
| 207 | |||
| 208 | <el-col :span="5" v-show="ruleForm.sldyList[0].gyfs != '0'"> | 207 | <el-col :span="5" v-show="ruleForm.sldyList[0].gyfs != '0'"> |
| 209 | <el-form-item label="是否分别持证:"> | 208 | <el-form-item label="是否分别持证:"> |
| 210 | <el-radio-group | 209 | <el-radio-group |
| ... | @@ -228,10 +227,10 @@ | ... | @@ -228,10 +227,10 @@ |
| 228 | placeholder="持证人" | 227 | placeholder="持证人" |
| 229 | :disabled="!viewEdit"> | 228 | :disabled="!viewEdit"> |
| 230 | <el-option | 229 | <el-option |
| 231 | v-for="item in czrOptions" | 230 | v-for="(item,index) in czrOptions" |
| 232 | :key="item.zjh" | 231 | :key="index" |
| 233 | :label="item.sqrmc" | 232 | :label="item.sqrmc" |
| 234 | :value="item.zjh"> | 233 | :value="item.id"> |
| 235 | </el-option> | 234 | </el-option> |
| 236 | </el-select> | 235 | </el-select> |
| 237 | </el-form-item> | 236 | </el-form-item> |
| ... | @@ -284,7 +283,7 @@ | ... | @@ -284,7 +283,7 @@ |
| 284 | </el-col> | 283 | </el-col> |
| 285 | </el-row> | 284 | </el-row> |
| 286 | </div> | 285 | </div> |
| 287 | <el-row class="btn" v-if="viewEdit"> | 286 | <el-row class="btn" v-if="isSave"> |
| 288 | <el-form-item> | 287 | <el-form-item> |
| 289 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 288 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
| 290 | </el-form-item> | 289 | </el-form-item> |
| ... | @@ -299,6 +298,7 @@ | ... | @@ -299,6 +298,7 @@ |
| 299 | import { mapGetters } from "vuex"; | 298 | import { mapGetters } from "vuex"; |
| 300 | export default { | 299 | export default { |
| 301 | mounted () { | 300 | mounted () { |
| 301 | let that = this | ||
| 302 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 302 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 303 | this.propsParam = this.$attrs; | 303 | this.propsParam = this.$attrs; |
| 304 | var formdata = new FormData(); | 304 | var formdata = new FormData(); |
| ... | @@ -308,17 +308,26 @@ | ... | @@ -308,17 +308,26 @@ |
| 308 | formdata.append("djlx", this.propsParam.djlx); | 308 | formdata.append("djlx", this.propsParam.djlx); |
| 309 | formdata.append("isEdit", this.viewEdit); | 309 | formdata.append("isEdit", this.viewEdit); |
| 310 | bacthInit(formdata).then((res) => { | 310 | bacthInit(formdata).then((res) => { |
| 311 | this.loading = false | 311 | setTimeout(() => { |
| 312 | that.loading = false | ||
| 313 | }, 200) | ||
| 312 | if (res.code === 200 && res.result) { | 314 | if (res.code === 200 && res.result) { |
| 313 | this.ruleForm = res.result; | 315 | this.ruleForm = res.result; |
| 314 | this.czrOptions = this.ruleForm.qlrList; | ||
| 315 | this.ruleForm.qlrList.forEach((item) => { | 316 | this.ruleForm.qlrList.forEach((item) => { |
| 316 | if (item.sfczr == 1) { | 317 | item.id = item.bsmSqr |
| 317 | this.czr = item.zjh | 318 | if (item.sfczr == '1') { |
| 319 | that.czr = item.bsmSqr | ||
| 318 | } | 320 | } |
| 319 | }) | 321 | }) |
| 322 | that.czrOptions = that.ruleForm.qlrList; | ||
| 323 | that.isSave = that.viewEdit | ||
| 320 | } else { | 324 | } else { |
| 321 | this.$message.error(res.message) | 325 | that.isSave = false |
| 326 | that.$confirm(res.message, '提示', { | ||
| 327 | cancelButtonText: '取消', | ||
| 328 | showConfirmButton: false, | ||
| 329 | type: 'warning' | ||
| 330 | }) | ||
| 322 | } | 331 | } |
| 323 | }).catch(() => { | 332 | }).catch(() => { |
| 324 | this.loading = false | 333 | this.loading = false |
| ... | @@ -330,6 +339,7 @@ | ... | @@ -330,6 +339,7 @@ |
| 330 | }, | 339 | }, |
| 331 | data () { | 340 | data () { |
| 332 | return { | 341 | return { |
| 342 | isSave: true, | ||
| 333 | loading: false, | 343 | loading: false, |
| 334 | //表单是否可操作 | 344 | //表单是否可操作 |
| 335 | viewEdit: true, | 345 | viewEdit: true, |
| ... | @@ -362,7 +372,7 @@ | ... | @@ -362,7 +372,7 @@ |
| 362 | if (this.ruleForm.qlrList.length > 1) { | 372 | if (this.ruleForm.qlrList.length > 1) { |
| 363 | this.$message({ | 373 | this.$message({ |
| 364 | showClose: true, | 374 | showClose: true, |
| 365 | message: "共有方式:单独所有,权利人只能是一个人", | 375 | message: "共有方式:单独所有,抵押权人只能是一个人", |
| 366 | type: "error", | 376 | type: "error", |
| 367 | }); | 377 | }); |
| 368 | return false; | 378 | return false; |
| ... | @@ -373,7 +383,7 @@ | ... | @@ -373,7 +383,7 @@ |
| 373 | this.$message({ | 383 | this.$message({ |
| 374 | showClose: true, | 384 | showClose: true, |
| 375 | message: | 385 | message: |
| 376 | "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", | 386 | "共有方式:共同所有,按份所有,其他所有,抵押权人必须是两个以上", |
| 377 | type: "error", | 387 | type: "error", |
| 378 | }); | 388 | }); |
| 379 | return false; | 389 | return false; |
| ... | @@ -385,7 +395,7 @@ | ... | @@ -385,7 +395,7 @@ |
| 385 | item.sfczr = "1" | 395 | item.sfczr = "1" |
| 386 | }) | 396 | }) |
| 387 | } else { | 397 | } else { |
| 388 | if (!that.czr) { | 398 | if (that.czr === '') { |
| 389 | that.$message({ | 399 | that.$message({ |
| 390 | showClose: true, | 400 | showClose: true, |
| 391 | message: "请选择持证人", | 401 | message: "请选择持证人", |
| ... | @@ -394,7 +404,7 @@ | ... | @@ -394,7 +404,7 @@ |
| 394 | return false; | 404 | return false; |
| 395 | } | 405 | } |
| 396 | this.ruleForm.qlrList.forEach((item, index) => { | 406 | this.ruleForm.qlrList.forEach((item, index) => { |
| 397 | if (item.zjh == that.czr) { | 407 | if (item.id == that.czr) { |
| 398 | item.sfczr = "1"; | 408 | item.sfczr = "1"; |
| 399 | } else { | 409 | } else { |
| 400 | item.sfczr = "0"; | 410 | item.sfczr = "0"; |
| ... | @@ -428,7 +438,7 @@ | ... | @@ -428,7 +438,7 @@ |
| 428 | this.czr = ""; | 438 | this.czr = ""; |
| 429 | }, | 439 | }, |
| 430 | /** | 440 | /** |
| 431 | * @description: 更新权利人信息 | 441 | * @description: 更新抵押权人信息 |
| 432 | * @param {*} val | 442 | * @param {*} val |
| 433 | * @author: renchao | 443 | * @author: renchao |
| 434 | */ | 444 | */ |
| ... | @@ -439,7 +449,7 @@ | ... | @@ -439,7 +449,7 @@ |
| 439 | } | 449 | } |
| 440 | this.num = 0 | 450 | this.num = 0 |
| 441 | this.ruleForm.qlrList.forEach(item => { | 451 | this.ruleForm.qlrList.forEach(item => { |
| 442 | if (item.zjh == this.czr) { | 452 | if (item.id == this.czr) { |
| 443 | this.num++ | 453 | this.num++ |
| 444 | } | 454 | } |
| 445 | }) | 455 | }) | ... | ... |
| ... | @@ -143,17 +143,19 @@ | ... | @@ -143,17 +143,19 @@ |
| 143 | <el-row :gutter="10"> | 143 | <el-row :gutter="10"> |
| 144 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> | 144 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> |
| 145 | <el-form-item label="被担保主债权数额:"> | 145 | <el-form-item label="被担保主债权数额:"> |
| 146 | <el-input | 146 | <div style="display:flex"> |
| 147 | v-model="ruleForm.diyaq.bdbzzqse" | 147 | <el-input |
| 148 | :disabled="!viewEdit"></el-input> | 148 | v-model="ruleForm.diyaq.bdbzzqse" |
| 149 | <el-select v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit"> | 149 | :disabled="!viewEdit"></el-input> |
| 150 | <el-option | 150 | <el-select style="width: 68px" v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit"> |
| 151 | v-for="item in dictData['A57']" | 151 | <el-option |
| 152 | :key="item.dcode" | 152 | v-for="item in dictData['A57']" |
| 153 | :label="item.dname" | 153 | :key="item.dcode" |
| 154 | :value="item.dcode"> | 154 | :label="item.dname" |
| 155 | </el-option> | 155 | :value="item.dcode"> |
| 156 | </el-select> | 156 | </el-option> |
| 157 | </el-select> | ||
| 158 | </div> | ||
| 157 | </el-form-item> | 159 | </el-form-item> |
| 158 | </el-col> | 160 | </el-col> |
| 159 | 161 | ||
| ... | @@ -229,7 +231,7 @@ | ... | @@ -229,7 +231,7 @@ |
| 229 | <div class="triangle"></div> | 231 | <div class="triangle"></div> |
| 230 | </div> | 232 | </div> |
| 231 | <el-row :gutter="10"> | 233 | <el-row :gutter="10"> |
| 232 | <el-col :span="14"> | 234 | <el-col :span="12"> |
| 233 | <el-form-item label="共有方式:"> | 235 | <el-form-item label="共有方式:"> |
| 234 | <el-radio-group | 236 | <el-radio-group |
| 235 | :disabled="!viewEdit" | 237 | :disabled="!viewEdit" |
| ... | @@ -261,10 +263,10 @@ | ... | @@ -261,10 +263,10 @@ |
| 261 | placeholder="持证人" | 263 | placeholder="持证人" |
| 262 | :disabled="!viewEdit"> | 264 | :disabled="!viewEdit"> |
| 263 | <el-option | 265 | <el-option |
| 264 | v-for="item in czrOptions" | 266 | v-for="(item,index) in czrOptions" |
| 265 | :key="item.zjh" | 267 | :key="index" |
| 266 | :label="item.sqrmc" | 268 | :label="item.sqrmc" |
| 267 | :value="item.zjh"> | 269 | :value="item.id"> |
| 268 | </el-option> | 270 | </el-option> |
| 269 | </el-select> | 271 | </el-select> |
| 270 | </el-form-item> | 272 | </el-form-item> |
| ... | @@ -314,7 +316,7 @@ | ... | @@ -314,7 +316,7 @@ |
| 314 | </el-col> | 316 | </el-col> |
| 315 | </el-row> | 317 | </el-row> |
| 316 | </div> | 318 | </div> |
| 317 | <el-row class="btn" v-if="viewEdit"> | 319 | <el-row class="btn" v-if="isSave"> |
| 318 | <el-form-item> | 320 | <el-form-item> |
| 319 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 321 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
| 320 | </el-form-item> | 322 | </el-form-item> |
| ... | @@ -328,6 +330,7 @@ | ... | @@ -328,6 +330,7 @@ |
| 328 | import { mapGetters } from "vuex"; | 330 | import { mapGetters } from "vuex"; |
| 329 | export default { | 331 | export default { |
| 330 | mounted () { | 332 | mounted () { |
| 333 | let that = this | ||
| 331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 334 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 332 | this.propsParam = this.$attrs; | 335 | this.propsParam = this.$attrs; |
| 333 | var formdata = new FormData(); | 336 | var formdata = new FormData(); |
| ... | @@ -339,14 +342,23 @@ | ... | @@ -339,14 +342,23 @@ |
| 339 | this.loading = false | 342 | this.loading = false |
| 340 | if (res.code === 200 && res.result) { | 343 | if (res.code === 200 && res.result) { |
| 341 | this.ruleForm = res.result; | 344 | this.ruleForm = res.result; |
| 345 | window.djlx = res.result.sldy.djlx | ||
| 342 | this.czrOptions = this.ruleForm.qlrList; | 346 | this.czrOptions = this.ruleForm.qlrList; |
| 343 | this.ruleForm.qlrList.forEach((item) => { | 347 | this.ruleForm.qlrList.forEach((item) => { |
| 344 | if (item.sfczr == 1) { | 348 | item.id = item.bsmSqr |
| 345 | this.czr = item.zjh | 349 | if (item.sfczr == '1') { |
| 350 | that.czr = item.bsmSqr | ||
| 346 | } | 351 | } |
| 347 | }) | 352 | }) |
| 353 | that.czrOptions = that.ruleForm.qlrList; | ||
| 354 | that.isSave = that.viewEdit | ||
| 348 | } else { | 355 | } else { |
| 349 | this.$message.error(res.message); | 356 | that.isSave = false |
| 357 | that.$confirm(res.message, '提示', { | ||
| 358 | cancelButtonText: '取消', | ||
| 359 | showConfirmButton: false, | ||
| 360 | type: 'warning' | ||
| 361 | }) | ||
| 350 | } | 362 | } |
| 351 | }).catch(() => { | 363 | }).catch(() => { |
| 352 | this.loading = false | 364 | this.loading = false |
| ... | @@ -358,6 +370,7 @@ | ... | @@ -358,6 +370,7 @@ |
| 358 | }, | 370 | }, |
| 359 | data () { | 371 | data () { |
| 360 | return { | 372 | return { |
| 373 | isSave: true, | ||
| 361 | loading: false, | 374 | loading: false, |
| 362 | //表单是否可操作 | 375 | //表单是否可操作 |
| 363 | viewEdit: true, | 376 | viewEdit: true, |
| ... | @@ -424,7 +437,7 @@ | ... | @@ -424,7 +437,7 @@ |
| 424 | item.sfczr = "1"; | 437 | item.sfczr = "1"; |
| 425 | }); | 438 | }); |
| 426 | } else { | 439 | } else { |
| 427 | if (!that.czr) { | 440 | if (that.czr === '') { |
| 428 | that.$message({ | 441 | that.$message({ |
| 429 | showClose: true, | 442 | showClose: true, |
| 430 | message: "请选择持证人", | 443 | message: "请选择持证人", |
| ... | @@ -433,7 +446,7 @@ | ... | @@ -433,7 +446,7 @@ |
| 433 | return false; | 446 | return false; |
| 434 | } | 447 | } |
| 435 | this.ruleForm.qlrList.forEach((item, index) => { | 448 | this.ruleForm.qlrList.forEach((item, index) => { |
| 436 | if (item.zjh == that.czr) { | 449 | if (item.id == that.czr) { |
| 437 | item.sfczr = "1"; | 450 | item.sfczr = "1"; |
| 438 | } else { | 451 | } else { |
| 439 | item.sfczr = "0"; | 452 | item.sfczr = "0"; |
| ... | @@ -470,7 +483,7 @@ | ... | @@ -470,7 +483,7 @@ |
| 470 | } | 483 | } |
| 471 | this.num = 0 | 484 | this.num = 0 |
| 472 | this.ruleForm.qlrList.forEach(item => { | 485 | this.ruleForm.qlrList.forEach(item => { |
| 473 | if (item.zjh == this.czr) { | 486 | if (item.id == this.czr) { |
| 474 | this.num++ | 487 | this.num++ |
| 475 | } | 488 | } |
| 476 | }) | 489 | }) | ... | ... |
| ... | @@ -54,9 +54,9 @@ class data extends filter { | ... | @@ -54,9 +54,9 @@ class data extends filter { |
| 54 | }, | 54 | }, |
| 55 | { | 55 | { |
| 56 | label: "业务号", | 56 | label: "业务号", |
| 57 | width: '90', | 57 | width: '100', |
| 58 | render: (h, scope) => { | 58 | render: (h, scope) => { |
| 59 | return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button> | 59 | return <el-link type="primary" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-link> |
| 60 | } | 60 | } |
| 61 | }, | 61 | }, |
| 62 | { | 62 | { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-18 16:22:28 | 4 | * @LastEditTime: 2023-09-21 08:56:07 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -53,8 +53,8 @@ | ... | @@ -53,8 +53,8 @@ |
| 53 | 53 | ||
| 54 | <el-col :span="3" class="btnColRight"> | 54 | <el-col :span="3" class="btnColRight"> |
| 55 | <el-form-item> | 55 | <el-form-item> |
| 56 | <el-button type="primary" @click="resetForm(true)">重置</el-button> | ||
| 57 | <el-button type="primary" @click="handleSearch">查询</el-button> | 56 | <el-button type="primary" @click="handleSearch">查询</el-button> |
| 57 | <el-button type="primary" @click="resetForm(true)">重置</el-button> | ||
| 58 | </el-form-item> | 58 | </el-form-item> |
| 59 | </el-col> | 59 | </el-col> |
| 60 | </el-row> | 60 | </el-row> |
| ... | @@ -88,7 +88,7 @@ | ... | @@ -88,7 +88,7 @@ |
| 88 | </el-input> | 88 | </el-input> |
| 89 | </el-form-item> | 89 | </el-form-item> |
| 90 | </el-col> | 90 | </el-col> |
| 91 | <el-col :span="10" class="btnColRight"> | 91 | <el-col :span="10" class="btnColRight"> |
| 92 | <el-form-item> | 92 | <el-form-item> |
| 93 | <el-button type="primary" @click="resetForm(true)">重置</el-button> | 93 | <el-button type="primary" @click="resetForm(true)">重置</el-button> |
| 94 | <el-button type="primary" @click="handleSearch">查询</el-button> | 94 | <el-button type="primary" @click="handleSearch">查询</el-button> |
| ... | @@ -304,11 +304,11 @@ | ... | @@ -304,11 +304,11 @@ |
| 304 | */ | 304 | */ |
| 305 | handleLpbClick (item) { | 305 | handleLpbClick (item) { |
| 306 | ywPopupDialog('楼盘表', 'lpb/index', { | 306 | ywPopupDialog('楼盘表', 'lpb/index', { |
| 307 | bsm: item.bsm, | 307 | bsm: item.bsm, |
| 308 | bsmSqyw:this.sqywInfo.bsmSqyw, | 308 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 309 | onlyShow: false, | 309 | onlyShow: false, |
| 310 | scyclx:1 | 310 | scyclx: 1 |
| 311 | }, '85%', true,false) | 311 | }, '85%', true, false) |
| 312 | }, | 312 | }, |
| 313 | /** | 313 | /** |
| 314 | * @description: select | 314 | * @description: select |
| ... | @@ -336,7 +336,7 @@ | ... | @@ -336,7 +336,7 @@ |
| 336 | let refs = 'table1'; | 336 | let refs = 'table1'; |
| 337 | if (this.activeName == 'dz') { | 337 | if (this.activeName == 'dz') { |
| 338 | refs = 'table'; | 338 | refs = 'table'; |
| 339 | }else{ | 339 | } else { |
| 340 | this.sqywInfo.djywbm !== 'B37100' && this.$refs[refs].clearSelection() | 340 | this.sqywInfo.djywbm !== 'B37100' && this.$refs[refs].clearSelection() |
| 341 | } | 341 | } |
| 342 | const bdcdysz = this.bdcdysz | 342 | const bdcdysz = this.bdcdysz |
| ... | @@ -344,7 +344,7 @@ | ... | @@ -344,7 +344,7 @@ |
| 344 | bdcdysz.forEach(item => { | 344 | bdcdysz.forEach(item => { |
| 345 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 345 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 346 | if (item == row) { | 346 | if (item == row) { |
| 347 | this.$nextTick(()=>{this.$refs[refs].toggleRowSelection(row, false);}) | 347 | this.$nextTick(() => { this.$refs[refs].toggleRowSelection(row, false); }) |
| 348 | } | 348 | } |
| 349 | // 不然就让当前的一行勾选 | 349 | // 不然就让当前的一行勾选 |
| 350 | else { | 350 | else { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-02 09:59:52 | 4 | * @LastEditTime: 2023-09-21 08:59:20 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 主体权利信息查询 --> | 7 | <!-- 主体权利信息查询 --> |
| ... | @@ -10,27 +10,26 @@ | ... | @@ -10,27 +10,26 @@ |
| 10 | <div class="from-clues-header"> | 10 | <div class="from-clues-header"> |
| 11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | 11 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> |
| 12 | <el-row> | 12 | <el-row> |
| 13 | <el-col :span="8"> | 13 | <el-col :span="6"> |
| 14 | <el-form-item label="不动产权证号"> | 14 | <el-form-item label="不动产权证号"> |
| 15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px"> | 15 | <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100"> |
| 16 | </el-input> | 16 | </el-input> |
| 17 | </el-form-item> | 17 | </el-form-item> |
| 18 | </el-col> | 18 | </el-col> |
| 19 | <el-col :span="8"> | 19 | <el-col :span="6"> |
| 20 | <el-form-item label="不动产单元号"> | 20 | <el-form-item label="不动产单元号"> |
| 21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width200px"> | 21 | <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100"> |
| 22 | </el-input> | 22 | </el-input> |
| 23 | </el-form-item> | 23 | </el-form-item> |
| 24 | </el-col> | 24 | </el-col> |
| 25 | <el-col :span="6"> | 25 | <el-col :span="6"> |
| 26 | <el-form-item label="坐落"> | 26 | <el-form-item label="坐落"> |
| 27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width200px"> | 27 | <el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width100"> |
| 28 | </el-input> | 28 | </el-input> |
| 29 | </el-form-item> | 29 | </el-form-item> |
| 30 | </el-col> | 30 | </el-col> |
| 31 | <el-col :span="2" class="btnColRight"> | 31 | <el-col :span="6" class="btnColRight"> |
| 32 | <el-form-item> | 32 | <el-form-item> |
| 33 | <!-- <el-button type="primary" @click="resetForm">重置</el-button> --> | ||
| 34 | <el-button type="primary" @click="handleSearch">查询</el-button> | 33 | <el-button type="primary" @click="handleSearch">查询</el-button> |
| 35 | </el-form-item> | 34 | </el-form-item> |
| 36 | </el-col> | 35 | </el-col> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-13 10:01:27 | 4 | * @LastEditTime: 2023-09-20 17:08:30 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 主体权利信息查询 --> | 7 | <!-- 主体权利信息查询 --> |
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | </div> | 38 | </div> |
| 39 | <!-- 表格 --> | 39 | <!-- 表格 --> |
| 40 | <div class="loadingtext"> | 40 | <div class="loadingtext"> |
| 41 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="210" | 41 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="this.zrzbsm ? 390 : 290" |
| 42 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" | 42 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" |
| 43 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 43 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 44 | :data="tableData.data"> | 44 | :data="tableData.data"> |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | </template> | 52 | </template> |
| 53 | <script> | 53 | <script> |
| 54 | import store from '@/store/index.js' | 54 | import store from '@/store/index.js' |
| 55 | import { ywPopupDialog,ywPopupCacel } from "@/utils/popup.js"; | 55 | import { ywPopupDialog,popupCacel } from "@/utils/popup.js"; |
| 56 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; | 56 | import { datas, sendThis } from "../javascript/selectAllHInfo.js"; |
| 57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
| ... | @@ -64,7 +64,10 @@ | ... | @@ -64,7 +64,10 @@ |
| 64 | props: { | 64 | props: { |
| 65 | isJump: { type: Boolean, default: false }, | 65 | isJump: { type: Boolean, default: false }, |
| 66 | sqywInfo: { type: Object, default: () => { } }, | 66 | sqywInfo: { type: Object, default: () => { } }, |
| 67 | 67 | zrzbsm: { | |
| 68 | type: String, | ||
| 69 | default: "", | ||
| 70 | }, | ||
| 68 | }, | 71 | }, |
| 69 | data () { | 72 | data () { |
| 70 | return { | 73 | return { |
| ... | @@ -88,7 +91,7 @@ | ... | @@ -88,7 +91,7 @@ |
| 88 | */ | 91 | */ |
| 89 | queryClick () { | 92 | queryClick () { |
| 90 | this.$startLoading(); | 93 | this.$startLoading(); |
| 91 | this.queryForm.zrzbsm = this.sqywInfo.bsm; | 94 | this.queryForm.zrzbsm = this.zrzbsm || this.sqywInfo.bsm; |
| 92 | // this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; | 95 | // this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; |
| 93 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { | 96 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 94 | this.$endLoading(); | 97 | this.$endLoading(); |
| ... | @@ -143,7 +146,7 @@ | ... | @@ -143,7 +146,7 @@ |
| 143 | * @author: renchao | 146 | * @author: renchao |
| 144 | */ | 147 | */ |
| 145 | close(){ | 148 | close(){ |
| 146 | ywPopupCacel() | 149 | popupCacel() |
| 147 | }, | 150 | }, |
| 148 | /** | 151 | /** |
| 149 | * @description: handleSelectionChange | 152 | * @description: handleSelectionChange | ... | ... |
-
Please register or sign in to post a comment