linwenxin 9 månader sedan
förälder
incheckning
a59dbe52ad
1 ändrade filer med 15 tillägg och 9 borttagningar
  1. 15 9
      src/views/auxiliaryFittings/GoodsTransferPeceipt/index.vue

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

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