From 956410816f86c326c9e0509778ea5fda73e947bf Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Tue, 5 Dec 2023 21:43:22 +0800 Subject: [PATCH] debug 1 --- src/views/mail/order/add.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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: '操作成功!',