Browse Source

debug 1

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
956410816f
  1. 10
      src/views/mail/order/add.vue

10
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: '操作成功!',

Loading…
Cancel
Save