材料站-退料保存后刷新
This commit is contained in:
parent
fe302379bb
commit
fad4f0dc06
|
|
@ -336,7 +336,7 @@ export default {
|
||||||
teamId: null,
|
teamId: null,
|
||||||
proId: null,
|
proId: null,
|
||||||
agreementId: null, //协议id
|
agreementId: null, //协议id
|
||||||
agreementIds:[],
|
agreementIds: [],
|
||||||
agreementCode: null, //协议code
|
agreementCode: null, //协议code
|
||||||
// companyId: '', //登录信息中取
|
// companyId: '', //登录信息中取
|
||||||
// createBy: '', //用户名
|
// createBy: '', //用户名
|
||||||
|
|
@ -668,6 +668,14 @@ export default {
|
||||||
this.$message.error('退料数量不能为空!')
|
this.$message.error('退料数量不能为空!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 弹框二次确认
|
||||||
|
this.$confirm(`是否确认${isBack == 1 ? '退料' : '暂存'}`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(async () => {
|
||||||
|
const loading = this.$loading()
|
||||||
|
try {
|
||||||
this.queryParams.backApplyInfo = {
|
this.queryParams.backApplyInfo = {
|
||||||
id: this.rowId,
|
id: this.rowId,
|
||||||
backPerson: this.queryParams.backPerson,
|
backPerson: this.queryParams.backPerson,
|
||||||
|
|
@ -688,8 +696,10 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({ type: 'success', message: res.msg })
|
this.$message({ type: 'success', message: res.msg })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$emit('goBackPage')
|
// this.$emit('goBackPage')
|
||||||
}, 1000)
|
// 刷新页面
|
||||||
|
this.$tab.refreshPage({ path: '/materialsStation/toolsBack/back' })
|
||||||
|
}, 500)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let params = {
|
let params = {
|
||||||
|
|
@ -700,10 +710,17 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({ type: 'success', message: res.msg })
|
this.$message({ type: 'success', message: res.msg })
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$emit('goBackPage')
|
// this.$emit('goBackPage')
|
||||||
}, 1000)
|
this.$tab.refreshPage({ path: '/materialsStation/toolsBack/back' })
|
||||||
|
}, 500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.log('🚀 ~ handleAdd ~ error:', error)
|
||||||
|
} finally {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue