|
|
@ -498,7 +498,8 @@ export default { |
|
|
|
}, 2000) |
|
|
|
this.$refs['ref_form'].validate((valid, messageObj) => { |
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj) |
|
|
|
// app.util.validateRule(messageObj) |
|
|
|
console.log('error submit!') |
|
|
|
|
|
|
|
} else { |
|
|
|
if (this.dataForm.type === 'in') { |
|
|
@ -522,7 +523,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async saveForm () { |
|
|
|
const url = '/epmetuser/changeRelocation/saveOutOfInfo' |
|
|
|
|
|
|
|
// saveOutOfInfo |
|
|
|
const url = '/epmetuser/changeRelocation/moveOutHome' |
|
|
|
let noData = new Date() |
|
|
|
noData = util.dateFormatter(noData, 'time') |
|
|
|
this.dataForm.transferTime = noData |
|
|
@ -530,7 +533,7 @@ export default { |
|
|
|
const { data, code, msg } = await requestPost(url, this.dataForm) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.$message.success('调动成功') |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.handleCancle() |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|