diff --git a/src/views/modules/base/collect.vue b/src/views/modules/base/collect.vue index bd19c5e0..3d6cdb81 100644 --- a/src/views/modules/base/collect.vue +++ b/src/views/modules/base/collect.vue @@ -110,7 +110,7 @@ prop="houseType" align="center" width="100" - label="自有/租住" + label="房屋状态" > @@ -447,6 +450,10 @@ export default { console.log('searchH----', this.$refs.searchCard.$el.offsetHeight) }, methods: { + filterEdit (id) { + const { user } = this.$store.state + return id === user.agencyId + }, handleClearVillage() { this.fmData.buildId = '' this.fmData.homeId = '' diff --git a/src/views/modules/plugins/change/verifyForm.vue b/src/views/modules/plugins/change/verifyForm.vue index 99c19afe..1efb046a 100644 --- a/src/views/modules/plugins/change/verifyForm.vue +++ b/src/views/modules/plugins/change/verifyForm.vue @@ -34,7 +34,7 @@ {{ detailInfo.villageName + detailInfo.buildName + detailInfo.unitName + detailInfo.homeName }} - + - {{ detailInfo.moveOutDate }} - + --> - + - + 当前人员已不在该房屋 + + + 需要 + 不需要 + + @@ -126,9 +139,35 @@ --> - + + + + + + {{ detailInfo.moveOutDate }} + + + + + - 其他 - + --> -
+
-
+ { this.loadingForm = false @@ -500,9 +542,9 @@ export default { async getAgencylist() { const url = '/gov/org/customeragency/rootagencygridtree' - + const { agencyId } = this.$store.state.user const params = { - agencyId: this.rootAgency.id + agencyId: agencyId } const { data, code, msg } = await requestPost(url, params) if (code === 0) { @@ -663,6 +705,10 @@ export default { setTimeout(() => { this.btnDisable = false }, 2000) + if (this.isMoveOut == 0) { + this.saveForm() + return + } this.$refs['ref_form'].validate((valid, messageObj) => { if (!valid) { // app.util.validateRule(messageObj) @@ -690,6 +736,7 @@ export default { let params = { id: this.detailInfo.id, confirmResult: this.confirmResult, + isMoveOut: this.isMoveOut, reason: this.reason } if (this.confirmResult == 1 && this.detailInfo.isInHome) { @@ -700,7 +747,8 @@ export default { buildName: this.dataForm.buildName, unitName: this.dataForm.unitName, homeName: this.dataForm.homeName, - xxdz: this.dataForm.address + xxdz: this.dataForm.address, + moveOutDate: this.dataForm.outOfTime } } @@ -715,12 +763,15 @@ export default { } }, async saveForm() { - const url = '/epmetuser/changeRelocation/moveOutHome' + const url = '/epmetuser/changeRelocation/moveOutHomeConfirm' let noData = new Date() noData = util.dateFormatter(noData, 'time') this.dataForm.transferTime = noData - - const { data, code, msg } = await requestPost(url, this.dataForm) + const _data = { + ...this.dataForm, + isMoveOut: this.isMoveOut + } + const { data, code, msg } = await requestPost(url, _data) if (code === 0) { // this.$message.success('调动成功')