Merge branch 'dev'
Showing
9 changed files
with
123 additions
and
50 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-13 13:51:33 | 4 | * @LastEditTime: 2023-09-13 14:21:14 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
| ... | @@ -104,7 +104,7 @@ | ... | @@ -104,7 +104,7 @@ |
| 104 | that.currentSelectProps = res.result[0]; | 104 | that.currentSelectProps = res.result[0]; |
| 105 | that.$emit('getCurrentSelectProps', this.currentSelectProps); | 105 | that.$emit('getCurrentSelectProps', this.currentSelectProps); |
| 106 | that.judgeBatchShow(); | 106 | that.judgeBatchShow(); |
| 107 | if (sessionStorage.getItem('keyPath')) { | 107 | if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { |
| 108 | that.unitClick(sessionStorage.getItem('keyPath') - 0) | 108 | that.unitClick(sessionStorage.getItem('keyPath') - 0) |
| 109 | } else { | 109 | } else { |
| 110 | that.unitClick(0) | 110 | that.unitClick(0) |
| ... | @@ -123,7 +123,7 @@ | ... | @@ -123,7 +123,7 @@ |
| 123 | this.currentSelectProps = res.result[0]; | 123 | this.currentSelectProps = res.result[0]; |
| 124 | this.$emit('getCurrentSelectProps', this.currentSelectProps); | 124 | this.$emit('getCurrentSelectProps', this.currentSelectProps); |
| 125 | this.judgeBatchShow(); | 125 | this.judgeBatchShow(); |
| 126 | if (sessionStorage.getItem('keyPath')) { | 126 | if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { |
| 127 | that.unitClick(sessionStorage.getItem('keyPath') - 0) | 127 | that.unitClick(sessionStorage.getItem('keyPath') - 0) |
| 128 | } else { | 128 | } else { |
| 129 | that.unitClick(0) | 129 | that.unitClick(0) |
| ... | @@ -208,6 +208,7 @@ | ... | @@ -208,6 +208,7 @@ |
| 208 | this.currentSelectProps.batchOperation = true; | 208 | this.currentSelectProps.batchOperation = true; |
| 209 | this.activeIndex = "-1"; | 209 | this.activeIndex = "-1"; |
| 210 | this.$parent.stepForm(0); | 210 | this.$parent.stepForm(0); |
| 211 | sessionStorage.setItem('keyPath', this.activeIndex); | ||
| 211 | }, | 212 | }, |
| 212 | /** | 213 | /** |
| 213 | * @description: 批量操作 | 214 | * @description: 批量操作 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-12 09:56:07 | 4 | * @LastEditTime: 2023-09-13 14:16:46 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -410,9 +410,19 @@ | ... | @@ -410,9 +410,19 @@ |
| 410 | * @author: renchao | 410 | * @author: renchao |
| 411 | */ | 411 | */ |
| 412 | upDateQlrxxList (val) { | 412 | upDateQlrxxList (val) { |
| 413 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
| 413 | this.ruleForm.qlrList = _.cloneDeep(val); | 414 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 414 | this.czrOptions = this.ruleForm.qlrList; | 415 | this.czrOptions = this.ruleForm.qlrList; |
| 415 | this.key++; | 416 | } |
| 417 | this.num = 0 | ||
| 418 | this.ruleForm.qlrList.forEach(item => { | ||
| 419 | if (item.zjh == this.czr) { | ||
| 420 | this.num++ | ||
| 421 | } | ||
| 422 | }) | ||
| 423 | if (this.num == 0) { | ||
| 424 | this.czr = '' | ||
| 425 | } | ||
| 416 | }, | 426 | }, |
| 417 | // 更新权利人信息 | 427 | // 更新权利人信息 |
| 418 | /** | 428 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-24 15:32:19 | 4 | * @LastEditTime: 2023-09-13 14:31:33 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -336,11 +336,20 @@ | ... | @@ -336,11 +336,20 @@ |
| 336 | * @author: renchao | 336 | * @author: renchao |
| 337 | */ | 337 | */ |
| 338 | upDateQlrxxList (val) { | 338 | upDateQlrxxList (val) { |
| 339 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
| 339 | this.ruleForm.qlrList = _.cloneDeep(val); | 340 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 340 | this.czrOptions = this.ruleForm.qlrList; | 341 | this.czrOptions = this.ruleForm.qlrList; |
| 342 | } | ||
| 343 | this.num = 0 | ||
| 344 | this.ruleForm.qlrList.forEach(item => { | ||
| 345 | if (item.zjh == this.czr) { | ||
| 346 | this.num++ | ||
| 347 | } | ||
| 348 | }) | ||
| 349 | if (this.num == 0) { | ||
| 350 | this.czr = '' | ||
| 351 | } | ||
| 341 | }, | 352 | }, |
| 342 | |||
| 343 | |||
| 344 | // 是否持证人变化 | 353 | // 是否持证人变化 |
| 345 | /** | 354 | /** |
| 346 | * @description: 是否持证人变化 | 355 | * @description: 是否持证人变化 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-24 15:32:28 | 4 | * @LastEditTime: 2023-09-13 14:31:42 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -10,6 +10,7 @@ | ... | @@ -10,6 +10,7 @@ |
| 10 | :model="ruleForm" | 10 | :model="ruleForm" |
| 11 | :rules="rules" | 11 | :rules="rules" |
| 12 | ref="ruleForm" | 12 | ref="ruleForm" |
| 13 | v-Loading="loading" | ||
| 13 | :label-position="flag ? 'top' : ''" | 14 | :label-position="flag ? 'top' : ''" |
| 14 | :inline="flag" | 15 | :inline="flag" |
| 15 | label-width="120px"> | 16 | label-width="120px"> |
| ... | @@ -243,11 +244,13 @@ | ... | @@ -243,11 +244,13 @@ |
| 243 | export default { | 244 | export default { |
| 244 | mixins: [ywmix], | 245 | mixins: [ywmix], |
| 245 | mounted () { | 246 | mounted () { |
| 247 | this.loading = true | ||
| 246 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 248 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 247 | this.propsParam = this.$attrs; | 249 | this.propsParam = this.$attrs; |
| 248 | var formdata = new FormData(); | 250 | var formdata = new FormData(); |
| 249 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 251 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 250 | Init(formdata).then((res) => { | 252 | Init(formdata).then((res) => { |
| 253 | this.loading = false | ||
| 251 | if (res.code === 200 && res.result) { | 254 | if (res.code === 200 && res.result) { |
| 252 | this.ruleForm = { | 255 | this.ruleForm = { |
| 253 | ...res.result, | 256 | ...res.result, |
| ... | @@ -262,7 +265,9 @@ | ... | @@ -262,7 +265,9 @@ |
| 262 | }); | 265 | }); |
| 263 | this.czrOptions = this.ruleForm.qlrList; | 266 | this.czrOptions = this.ruleForm.qlrList; |
| 264 | } | 267 | } |
| 265 | }); | 268 | }).catch(() => { |
| 269 | this.loading = false | ||
| 270 | }) | ||
| 266 | }, | 271 | }, |
| 267 | components: { qlrCommonTable, tdytTable }, | 272 | components: { qlrCommonTable, tdytTable }, |
| 268 | computed: { | 273 | computed: { |
| ... | @@ -270,6 +275,7 @@ | ... | @@ -270,6 +275,7 @@ |
| 270 | }, | 275 | }, |
| 271 | data () { | 276 | data () { |
| 272 | return { | 277 | return { |
| 278 | loading: false, | ||
| 273 | //表单是否可操作 | 279 | //表单是否可操作 |
| 274 | viewEdit: false, | 280 | viewEdit: false, |
| 275 | disabled: true, | 281 | disabled: true, |
| ... | @@ -314,7 +320,6 @@ | ... | @@ -314,7 +320,6 @@ |
| 314 | }; | 320 | }; |
| 315 | }, | 321 | }, |
| 316 | methods: { | 322 | methods: { |
| 317 | // 更新土地用途信息 | ||
| 318 | /** | 323 | /** |
| 319 | * @description: 更新土地用途信息 | 324 | * @description: 更新土地用途信息 |
| 320 | * @param {*} val | 325 | * @param {*} val | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-11 16:28:26 | 4 | * @LastEditTime: 2023-09-13 14:06:17 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | :model="ruleForm" | 10 | :model="ruleForm" |
| 11 | :rules="rules" | 11 | :rules="rules" |
| 12 | :class="{ readonly: editDisabled }" | 12 | :class="{ readonly: editDisabled }" |
| 13 | class="loadingtext" | 13 | v-Loading="loading" |
| 14 | ref="ruleForm" | 14 | ref="ruleForm" |
| 15 | :label-position="flag ? 'top' : ''" | 15 | :label-position="flag ? 'top' : ''" |
| 16 | :inline="flag" | 16 | :inline="flag" |
| ... | @@ -252,14 +252,14 @@ | ... | @@ -252,14 +252,14 @@ |
| 252 | this.propsParam = this.$attrs; | 252 | this.propsParam = this.$attrs; |
| 253 | var formdata = new FormData(); | 253 | var formdata = new FormData(); |
| 254 | let that = this; | 254 | let that = this; |
| 255 | this.$startLoading(); | 255 | this.loading = true |
| 256 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 256 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 257 | formdata.append("djlx", this.propsParam.djlx); | 257 | formdata.append("djlx", this.propsParam.djlx); |
| 258 | formdata.append("isEdit", this.viewEdit); | 258 | formdata.append("isEdit", this.viewEdit); |
| 259 | Init(formdata).then((res) => { | 259 | Init(formdata).then((res) => { |
| 260 | this.loading = false | ||
| 260 | this.$nextTick(() => { | 261 | this.$nextTick(() => { |
| 261 | that.ruleForm = res.result; | 262 | that.ruleForm = res.result; |
| 262 | that.$endLoading(); | ||
| 263 | that.isShow = true; | 263 | that.isShow = true; |
| 264 | this.czrOptions = this.ruleForm.qlrList; | 264 | this.czrOptions = this.ruleForm.qlrList; |
| 265 | this.ruleForm.qlrList.forEach((item) => { | 265 | this.ruleForm.qlrList.forEach((item) => { |
| ... | @@ -267,9 +267,11 @@ | ... | @@ -267,9 +267,11 @@ |
| 267 | this.czr = item.zjh | 267 | this.czr = item.zjh |
| 268 | console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr); | 268 | console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr); |
| 269 | } | 269 | } |
| 270 | }); | 270 | }) |
| 271 | }); | 271 | }) |
| 272 | }); | 272 | }).catch(() => { |
| 273 | this.loading = false | ||
| 274 | }) | ||
| 273 | }, | 275 | }, |
| 274 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 276 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, |
| 275 | computed: { | 277 | computed: { |
| ... | @@ -285,6 +287,7 @@ | ... | @@ -285,6 +287,7 @@ |
| 285 | }, | 287 | }, |
| 286 | data () { | 288 | data () { |
| 287 | return { | 289 | return { |
| 290 | loading: false, | ||
| 288 | mjdw: "1", | 291 | mjdw: "1", |
| 289 | //表单是否可操作 | 292 | //表单是否可操作 |
| 290 | viewEdit: true, | 293 | viewEdit: true, | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <!-- | 2 | <!-- |
| 3 | * @Description: | 3 | * @Description: |
| 4 | * @Autor: renchao | 4 | * @Autor: renchao |
| 5 | * @LastEditTime: 2023-08-22 16:25:54 | 5 | * @LastEditTime: 2023-09-13 14:17:49 |
| 6 | --> | 6 | --> |
| 7 | <template> | 7 | <template> |
| 8 | <!-- 受理信息 --> | 8 | <!-- 受理信息 --> |
| ... | @@ -286,9 +286,19 @@ | ... | @@ -286,9 +286,19 @@ |
| 286 | * @author: renchao | 286 | * @author: renchao |
| 287 | */ | 287 | */ |
| 288 | upDateQlrxxList (val) { | 288 | upDateQlrxxList (val) { |
| 289 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
| 289 | this.ruleForm.qlrList = _.cloneDeep(val); | 290 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 290 | this.czrOptions = this.ruleForm.qlrList; | 291 | this.czrOptions = this.ruleForm.qlrList; |
| 291 | this.key++; | 292 | } |
| 293 | this.num = 0 | ||
| 294 | this.ruleForm.qlrList.forEach(item => { | ||
| 295 | if (item.zjh == this.czr) { | ||
| 296 | this.num++ | ||
| 297 | } | ||
| 298 | }) | ||
| 299 | if (this.num == 0) { | ||
| 300 | this.czr = '' | ||
| 301 | } | ||
| 292 | }, | 302 | }, |
| 293 | // 是否持证人变化 | 303 | // 是否持证人变化 |
| 294 | /** | 304 | /** | ... | ... |
| ... | @@ -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" |
| ... | @@ -324,21 +324,23 @@ | ... | @@ -324,21 +324,23 @@ |
| 324 | mounted () { | 324 | mounted () { |
| 325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 326 | this.propsParam = this.$attrs; | 326 | this.propsParam = this.$attrs; |
| 327 | this.$startLoading(); | 327 | this.loading = true |
| 328 | var formdata = new FormData(); | 328 | var formdata = new FormData(); |
| 329 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 329 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 330 | formdata.append("djlx", this.propsParam.djlx); | 330 | formdata.append("djlx", this.propsParam.djlx); |
| 331 | formdata.append("isEdit", this.viewEdit); | 331 | formdata.append("isEdit", this.viewEdit); |
| 332 | Init(formdata).then((res) => { | 332 | Init(formdata).then((res) => { |
| 333 | this.loading = false | ||
| 333 | this.ruleForm = res.result; | 334 | this.ruleForm = res.result; |
| 334 | this.czrOptions = this.ruleForm.qlrList; | 335 | this.czrOptions = this.ruleForm.qlrList; |
| 335 | this.ruleForm.qlrList.forEach((item) => { | 336 | this.ruleForm.qlrList.forEach((item) => { |
| 336 | if (item.sfczr == 1) { | 337 | if (item.sfczr == 1) { |
| 337 | this.czr = item.zjh | 338 | this.czr = item.zjh |
| 338 | } | 339 | } |
| 339 | }); | 340 | }) |
| 340 | this.$endLoading(); | 341 | }).catch(() => { |
| 341 | }); | 342 | this.loading = false |
| 343 | }) | ||
| 342 | }, | 344 | }, |
| 343 | components: { qlrCommonTable, JtcyTable }, | 345 | components: { qlrCommonTable, JtcyTable }, |
| 344 | computed: { | 346 | computed: { |
| ... | @@ -346,6 +348,7 @@ | ... | @@ -346,6 +348,7 @@ |
| 346 | }, | 348 | }, |
| 347 | data () { | 349 | data () { |
| 348 | return { | 350 | return { |
| 351 | loading: false, | ||
| 349 | disabled: true, | 352 | disabled: true, |
| 350 | //持证人选项 | 353 | //持证人选项 |
| 351 | czrOptions: [], | 354 | czrOptions: [], |
| ... | @@ -446,10 +449,20 @@ | ... | @@ -446,10 +449,20 @@ |
| 446 | * @author: renchao | 449 | * @author: renchao |
| 447 | */ | 450 | */ |
| 448 | upDateQlrxxList (val) { | 451 | upDateQlrxxList (val) { |
| 452 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
| 449 | this.ruleForm.qlrList = _.cloneDeep(val); | 453 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 450 | this.czrOptions = this.ruleForm.qlrList; | 454 | this.czrOptions = this.ruleForm.qlrList; |
| 455 | } | ||
| 456 | this.num = 0 | ||
| 457 | this.ruleForm.qlrList.forEach(item => { | ||
| 458 | if (item.zjh == this.czr) { | ||
| 459 | this.num++ | ||
| 460 | } | ||
| 461 | }) | ||
| 462 | if (this.num == 0) { | ||
| 463 | this.czr = '' | ||
| 464 | } | ||
| 451 | }, | 465 | }, |
| 452 | // 是否持证人变化 | ||
| 453 | /** | 466 | /** |
| 454 | * @description: 是否持证人变化 | 467 | * @description: 是否持证人变化 |
| 455 | * @param {*} val | 468 | * @param {*} val | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <!-- 受理信息 --> | 2 | <!-- 受理信息 --> |
| 3 | <div class="slxx"> | 3 | <div class="slxx"> |
| 4 | <el-form | 4 | <el-form |
| 5 | class="loadingtext" | 5 | v-Loading="loading" |
| 6 | :label-position="flag ? 'top' : ''" | 6 | :label-position="flag ? 'top' : ''" |
| 7 | :inline="flag" | 7 | :inline="flag" |
| 8 | label-width="140px"> | 8 | label-width="140px"> |
| ... | @@ -211,8 +211,8 @@ | ... | @@ -211,8 +211,8 @@ |
| 211 | v-model="ruleForm.sldyList[0].sqfbcz" | 211 | v-model="ruleForm.sldyList[0].sqfbcz" |
| 212 | :disabled="!viewEdit" | 212 | :disabled="!viewEdit" |
| 213 | @input="updaterow()"> | 213 | @input="updaterow()"> |
| 214 | <el-radio label="1">是</el-radio> | 214 | <el-radio :label="1">是</el-radio> |
| 215 | <el-radio label="0">否</el-radio> | 215 | <el-radio :label="0">否</el-radio> |
| 216 | </el-radio-group> | 216 | </el-radio-group> |
| 217 | </el-form-item> | 217 | </el-form-item> |
| 218 | </el-col> | 218 | </el-col> |
| ... | @@ -229,9 +229,9 @@ | ... | @@ -229,9 +229,9 @@ |
| 229 | :disabled="!viewEdit"> | 229 | :disabled="!viewEdit"> |
| 230 | <el-option | 230 | <el-option |
| 231 | v-for="item in czrOptions" | 231 | v-for="item in czrOptions" |
| 232 | :key="item.value" | 232 | :key="item.zjh" |
| 233 | :label="item.label" | 233 | :label="item.sqrmc" |
| 234 | :value="item.value"> | 234 | :value="item.zjh"> |
| 235 | </el-option> | 235 | </el-option> |
| 236 | </el-select> | 236 | </el-select> |
| 237 | </el-form-item> | 237 | </el-form-item> |
| ... | @@ -303,12 +303,12 @@ | ... | @@ -303,12 +303,12 @@ |
| 303 | this.propsParam = this.$attrs; | 303 | this.propsParam = this.$attrs; |
| 304 | var formdata = new FormData(); | 304 | var formdata = new FormData(); |
| 305 | 305 | ||
| 306 | this.$startLoading(); | 306 | this.loading = true |
| 307 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 307 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
| 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.$endLoading(); | 311 | this.loading = false |
| 312 | if (res.code === 200 && res.result) { | 312 | if (res.code === 200 && res.result) { |
| 313 | this.ruleForm = res.result; | 313 | this.ruleForm = res.result; |
| 314 | this.czrOptions = this.ruleForm.qlrList; | 314 | this.czrOptions = this.ruleForm.qlrList; |
| ... | @@ -316,11 +316,13 @@ | ... | @@ -316,11 +316,13 @@ |
| 316 | if (item.sfczr == 1) { | 316 | if (item.sfczr == 1) { |
| 317 | this.czr = item.zjh | 317 | this.czr = item.zjh |
| 318 | } | 318 | } |
| 319 | }); | 319 | }) |
| 320 | } else { | 320 | } else { |
| 321 | this.$message.error(res.message); | 321 | this.$message.error(res.message) |
| 322 | } | 322 | } |
| 323 | }); | 323 | }).catch(() => { |
| 324 | this.loading = false | ||
| 325 | }) | ||
| 324 | }, | 326 | }, |
| 325 | components: { qlrCommonTable, qjhTable }, | 327 | components: { qlrCommonTable, qjhTable }, |
| 326 | computed: { | 328 | computed: { |
| ... | @@ -328,6 +330,7 @@ | ... | @@ -328,6 +330,7 @@ |
| 328 | }, | 330 | }, |
| 329 | data () { | 331 | data () { |
| 330 | return { | 332 | return { |
| 333 | loading: false, | ||
| 331 | //表单是否可操作 | 334 | //表单是否可操作 |
| 332 | viewEdit: true, | 335 | viewEdit: true, |
| 333 | disabled: true, | 336 | disabled: true, |
| ... | @@ -355,7 +358,7 @@ | ... | @@ -355,7 +358,7 @@ |
| 355 | }); | 358 | }); |
| 356 | return false; | 359 | return false; |
| 357 | } | 360 | } |
| 358 | if (ruleForm.sldyList[0].gyfs == "0") { | 361 | if (this.ruleForm.sldyList[0].gyfs == "0") { |
| 359 | if (this.ruleForm.qlrList.length > 1) { | 362 | if (this.ruleForm.qlrList.length > 1) { |
| 360 | this.$message({ | 363 | this.$message({ |
| 361 | showClose: true, | 364 | showClose: true, |
| ... | @@ -379,8 +382,8 @@ | ... | @@ -379,8 +382,8 @@ |
| 379 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { | 382 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { |
| 380 | //是 | 383 | //是 |
| 381 | this.ruleForm.qlrList.forEach((item, index) => { | 384 | this.ruleForm.qlrList.forEach((item, index) => { |
| 382 | item.sfczr = "1"; | 385 | item.sfczr = "1" |
| 383 | }); | 386 | }) |
| 384 | } else { | 387 | } else { |
| 385 | if (!that.czr) { | 388 | if (!that.czr) { |
| 386 | that.$message({ | 389 | that.$message({ |
| ... | @@ -416,7 +419,6 @@ | ... | @@ -416,7 +419,6 @@ |
| 416 | } | 419 | } |
| 417 | }); | 420 | }); |
| 418 | }, | 421 | }, |
| 419 | // 是否持证人变化 | ||
| 420 | /** | 422 | /** |
| 421 | * @description: 是否持证人变化 | 423 | * @description: 是否持证人变化 |
| 422 | * @param {*} val | 424 | * @param {*} val |
| ... | @@ -435,6 +437,15 @@ | ... | @@ -435,6 +437,15 @@ |
| 435 | this.ruleForm.qlrList = _.cloneDeep(val); | 437 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 436 | this.czrOptions = this.ruleForm.qlrList; | 438 | this.czrOptions = this.ruleForm.qlrList; |
| 437 | } | 439 | } |
| 440 | this.num = 0 | ||
| 441 | this.ruleForm.qlrList.forEach(item => { | ||
| 442 | if (item.zjh == this.czr) { | ||
| 443 | this.num++ | ||
| 444 | } | ||
| 445 | }) | ||
| 446 | if (this.num == 0) { | ||
| 447 | this.czr = '' | ||
| 448 | } | ||
| 438 | }, | 449 | }, |
| 439 | /** | 450 | /** |
| 440 | * @description: 更新义务人信息 | 451 | * @description: 更新义务人信息 |
| ... | @@ -445,9 +456,9 @@ | ... | @@ -445,9 +456,9 @@ |
| 445 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | 456 | if (!_.isEqual(val, this.ruleForm.ywrList)) { |
| 446 | this.ruleForm.ywrList = _.cloneDeep(val); | 457 | this.ruleForm.ywrList = _.cloneDeep(val); |
| 447 | } | 458 | } |
| 448 | }, | 459 | } |
| 449 | }, | 460 | } |
| 450 | }; | 461 | } |
| 451 | </script> | 462 | </script> |
| 452 | <style scoped lang="scss"> | 463 | <style scoped lang="scss"> |
| 453 | @import "~@/styles/public.scss"; | 464 | @import "~@/styles/public.scss"; | ... | ... |
| ... | @@ -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" |
| ... | @@ -331,11 +331,12 @@ | ... | @@ -331,11 +331,12 @@ |
| 331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 332 | this.propsParam = this.$attrs; | 332 | this.propsParam = this.$attrs; |
| 333 | var formdata = new FormData(); | 333 | var formdata = new FormData(); |
| 334 | this.$startLoading(); | 334 | this.loading = true |
| 335 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 335 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 336 | formdata.append("djlx", this.propsParam.djlx); | 336 | formdata.append("djlx", this.propsParam.djlx); |
| 337 | formdata.append("isEdit", this.viewEdit); | 337 | formdata.append("isEdit", this.viewEdit); |
| 338 | Init(formdata).then((res) => { | 338 | Init(formdata).then((res) => { |
| 339 | this.loading = false | ||
| 339 | if (res.code === 200 && res.result) { | 340 | if (res.code === 200 && res.result) { |
| 340 | this.ruleForm = res.result; | 341 | this.ruleForm = res.result; |
| 341 | this.czrOptions = this.ruleForm.qlrList; | 342 | this.czrOptions = this.ruleForm.qlrList; |
| ... | @@ -343,10 +344,11 @@ | ... | @@ -343,10 +344,11 @@ |
| 343 | if (item.sfczr == 1) { | 344 | if (item.sfczr == 1) { |
| 344 | this.czr = item.zjh | 345 | this.czr = item.zjh |
| 345 | } | 346 | } |
| 346 | }); | 347 | }) |
| 347 | this.$endLoading(); | ||
| 348 | } | 348 | } |
| 349 | }); | 349 | }).catch(() => { |
| 350 | this.loading = false | ||
| 351 | }) | ||
| 350 | }, | 352 | }, |
| 351 | components: { qlrCommonTable }, | 353 | components: { qlrCommonTable }, |
| 352 | computed: { | 354 | computed: { |
| ... | @@ -354,6 +356,7 @@ | ... | @@ -354,6 +356,7 @@ |
| 354 | }, | 356 | }, |
| 355 | data () { | 357 | data () { |
| 356 | return { | 358 | return { |
| 359 | loading: false, | ||
| 357 | //表单是否可操作 | 360 | //表单是否可操作 |
| 358 | viewEdit: true, | 361 | viewEdit: true, |
| 359 | disabled: true, | 362 | disabled: true, |
| ... | @@ -453,7 +456,6 @@ | ... | @@ -453,7 +456,6 @@ |
| 453 | } | 456 | } |
| 454 | }); | 457 | }); |
| 455 | }, | 458 | }, |
| 456 | |||
| 457 | /** | 459 | /** |
| 458 | * @description: 更新权利人信息 | 460 | * @description: 更新权利人信息 |
| 459 | * @param {*} val | 461 | * @param {*} val |
| ... | @@ -464,6 +466,15 @@ | ... | @@ -464,6 +466,15 @@ |
| 464 | this.ruleForm.qlrList = _.cloneDeep(val); | 466 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 465 | this.czrOptions = this.ruleForm.qlrList; | 467 | this.czrOptions = this.ruleForm.qlrList; |
| 466 | } | 468 | } |
| 469 | this.num = 0 | ||
| 470 | this.ruleForm.qlrList.forEach(item => { | ||
| 471 | if (item.zjh == this.czr) { | ||
| 472 | this.num++ | ||
| 473 | } | ||
| 474 | }) | ||
| 475 | if (this.num == 0) { | ||
| 476 | this.czr = '' | ||
| 477 | } | ||
| 467 | }, | 478 | }, |
| 468 | // 是否持证人变化 | 479 | // 是否持证人变化 |
| 469 | /** | 480 | /** | ... | ... |
-
Please register or sign in to post a comment