diff --git a/src/views/mail/order/add.vue b/src/views/mail/order/add.vue index 2bd27372..9ba45fbc 100644 --- a/src/views/mail/order/add.vue +++ b/src/views/mail/order/add.vue @@ -2482,10 +2482,14 @@ } // this.form.stockArticleList = this.packageList; console.log('>>>>>>>>', this.form); + console.log("this.reservationId >>>>>",this.reservationId) if (this.reservationId) { + console.log('>>>>>>>> update'); this.form.warehouseId = this.warehouseId; this.form.id = this.reservationId; - update(this.form).then(() => { + update(this.form).then((res) => { + if(res.data.code !== 200) return + this.$router.go(-1); this.$message({ type: 'success', @@ -2493,8 +2497,10 @@ }); }); } else { + console.log('>>>>>>>> add'); this.form.warehouseId = this.warehouseId; - add(this.form).then(() => { + add(this.form).then((res) => { + if(res.data.code !== 200) return this.$message({ type: 'success', message: '操作成功!',