|
@@ -131,24 +131,25 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
values.verifyImages = this.verifyImages
|
|
values.verifyImages = this.verifyImages
|
|
- const self = this
|
|
|
|
// 日期处理
|
|
// 日期处理
|
|
if (this.model.type === 1) {
|
|
if (this.model.type === 1) {
|
|
returnRepair(values)
|
|
returnRepair(values)
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$message.info('已驳回维修,2s后返回【报修审核】')
|
|
this.$message.info('已驳回维修,2s后返回【报修审核】')
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ this.handleCancel(values)
|
|
|
|
+ /* setTimeout(() => {
|
|
self.$router.push({ path: '/repair/caller/check' })
|
|
self.$router.push({ path: '/repair/caller/check' })
|
|
- }, 2000)
|
|
|
|
|
|
+ }, 2000) */
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.confirmLoading = false
|
|
this.confirmLoading = false
|
|
})
|
|
})
|
|
} else if (this.model.type === 2) {
|
|
} else if (this.model.type === 2) {
|
|
examine(values).then(() => {
|
|
examine(values).then(() => {
|
|
this.$message.info('已提交,请等待审核')
|
|
this.$message.info('已提交,请等待审核')
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ this.handleCancel(values)
|
|
|
|
+ /* setTimeout(() => {
|
|
self.$router.push({ path: '/repair/manager/check' })
|
|
self.$router.push({ path: '/repair/manager/check' })
|
|
- }, 1000)
|
|
|
|
|
|
+ }, 1000) */
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.confirmLoading = false
|
|
this.confirmLoading = false
|
|
})
|
|
})
|
|
@@ -161,6 +162,8 @@ export default {
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
if (this.BaseTool.Object.isNotBlank(values)) {
|
|
if (this.BaseTool.Object.isNotBlank(values)) {
|
|
this.$emit('ok')
|
|
this.$emit('ok')
|
|
|
|
+ } else {
|
|
|
|
+ this.$emit('ok')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|