linwenxin 9 ماه پیش
والد
کامیت
df30769593
1فایلهای تغییر یافته به همراه15 افزوده شده و 9 حذف شده
  1. 15 9
      src/views/auxiliaryFittings/AuxiliaryAccessoriesWarehouse/index.vue

+ 15 - 9
src/views/auxiliaryFittings/AuxiliaryAccessoriesWarehouse/index.vue

@@ -453,17 +453,23 @@ export default {
             websitGoodsMoveAdd({ ...this.formData }).then(res => {
               websitGoodsMoveDetail({ id: this.formData.id }).then(res => {
                 Object.assign(this.formData, res.data)
-                websitGoodsMoveSubmit({ id: this.formData.id }).then(res => {
-                  websitGoodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
-                    this.$message({
-                      type: 'success',
-                      message: `审核成功!`
+                websitGoodsMoveSubmit({ id: this.formData.id })
+                  .then(res => {
+                    websitGoodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
+                      this.$message({
+                        type: 'success',
+                        message: `审核成功!`
+                      })
+                      cancel('list')
+                      this.$refs.pageRef.refreshList()
+                      // 备注
+                    })
+                  })
+                  .catch(() => {
+                    websitGoodsMoveDetail({ id: this.formData.id }).then(res => {
+                      Object.assign(this.formData, res.data)
                     })
-                    cancel('list')
-                    this.$refs.pageRef.refreshList()
-                    // 备注
                   })
-                })
               })
             })
           }