+
-
+
{
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('调动成功')