提交 bcf17bc4 编写于 作者: xiaoping.di's avatar xiaoping.di

修改订单

上级 91db5c51
...@@ -54,30 +54,21 @@ ...@@ -54,30 +54,21 @@
onSubmit() { onSubmit() {
if (this.form.orderName && this.submitFlag) { if (this.form.orderName && this.submitFlag) {
this.submitFlag = false; this.submitFlag = false;
getOrderNoFresh(this.form.orderName) getOrderNoFresh(this.form.orderName).then((res) => {
.then((res) => { let tipText = '';
let tipText = ''; if (res.code === '000000') {
if (res.code === '000000') { tipText = '更新订单成功';
tipText = '更新订单成功'; } else {
} else { tipText = res.message;
tipText = res.message; }
} this.form.orderName = '';
this.form.orderName = ''; this.submitFlag = true;
this.submitFlag = true; this.$message({
this.$message({ message: tipText,
message: tipText, type: 'warning',
type: 'warning', duration: 1000,
duration: 1000,
});
})
.cache((err) => {
console.log(err);
this.$message({
message: '服务异常',
type: 'warning',
duration: 1000,
});
}); });
});
} else { } else {
this.$message({ this.$message({
message: '请先输入订单id', message: '请先输入订单id',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册