|
|
@ -425,16 +425,7 @@ export default { |
|
|
this.$message.warning('请选择工序') |
|
|
this.$message.warning('请选择工序') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$confirm('确认提交生产领退料?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.submitIssueReturn() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
// 取消操作 |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.submitIssueReturn() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 提交领退料 |
|
|
// 提交领退料 |
|
|
@ -459,19 +450,19 @@ export default { |
|
|
confirmSave(params).then(({ data }) => { |
|
|
confirmSave(params).then(({ data }) => { |
|
|
this.submitting = false |
|
|
this.submitting = false |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.$message.success('提交成功') |
|
|
|
|
|
|
|
|
this.$message.success('操作成功') |
|
|
|
|
|
|
|
|
// 延迟返回列表 |
|
|
// 延迟返回列表 |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.$router.back() |
|
|
this.$router.back() |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(data.msg || '提交失败') |
|
|
|
|
|
|
|
|
this.$message.error(data.msg || '操作失败') |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
this.submitting = false |
|
|
this.submitting = false |
|
|
console.error('提交失败:', error) |
|
|
|
|
|
this.$message.error('提交失败,请稍后重试') |
|
|
|
|
|
|
|
|
console.error('操作失败:', error) |
|
|
|
|
|
this.$message.error('操作失败,请稍后重试') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|