发货添加错误反馈

This commit is contained in:
@fawn-nine
2024-09-09 14:45:07 +08:00
parent d2278e817e
commit 99f7de1018
2 changed files with 30 additions and 31 deletions

View File

@@ -261,15 +261,20 @@ export default {
// 传orderid
}).then(({ data }) => {
if (data && data.code === 0) {
loading.close();
// loading.close();
// console.log(data)
this.beforeCloseDialog()
return this.$message.success('发货成功')
}
else{
this.$message.error(data.msg)
}
loading.close();
}).catch((e) => {
loading.close();
console.log('e',e)
this.$message.error('发货失败')
this.$message.error(e.msg)
})
}else{
this.$message.error('请先选择物流公司')
@@ -329,25 +334,19 @@ export default {
}).then(({ data }) => {
if(data && data.code === 0){
// console.log(data)
loading.close()
this.beforeCloseDialog()
return this.$message.success('发货成功')
}else{
this.$message.error(data.msg)
}
loading.close()
}).catch(({e}) => {
this.$message.error(e.msg)
loading.close();
console.log('e',e)
})
// this.$message({
// type: 'success',
// message: '发货成功!'
// });
}).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消删除'
// });
});
})
//this.beforeCloseDialog()
}
})