From 12146fb2e0971ba6041a04249663b8a4bd9855a0 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Wed, 6 Jul 2022 10:15:38 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=BF=81=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/plugins/change/verifyForm.vue | 93 ++++++++++++++-----
1 file changed, 70 insertions(+), 23 deletions(-)
diff --git a/src/views/modules/plugins/change/verifyForm.vue b/src/views/modules/plugins/change/verifyForm.vue
index 99c19afec..fb9151e90 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 }}
-
+ -->
当前人员已不在该房屋
+
+
+ 需要
+ 不需要
+
+
-->
-
+
+
+
+
+ {{ detailInfo.newGridName }}
+
+
+ {{ detailInfo.newHomeName }}
+
+
+
+
+ {{ detailInfo.moveOutDate }}
+
+
+
+
+
-
其他
-
+ -->
-
+
-
+
{
this.loadingForm = false
@@ -500,9 +539,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 +702,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 +733,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) {
@@ -715,12 +759,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('调动成功')