linwenxin 9 ヶ月 前
コミット
c75725a126
1 ファイル変更11 行追加8 行削除
  1. 11 8
      src/views/auxiliaryFittings/GoodsTransferPeceipt/index.vue

+ 11 - 8
src/views/auxiliaryFittings/GoodsTransferPeceipt/index.vue

@@ -453,15 +453,18 @@ export default {
             })
           } else {
             goodsMoveUpdate({ ...this.formData }).then(res => {
-              goodsMoveSubmit({ id: this.formData.id }).then(res => {
-                goodsMoveConfirm({ id: this.formData.id, statusEnum: 'OK' }).then(res => {
-                  this.$message({
-                    type: 'success',
-                    message: `审核成功!`
+              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: `审核成功!`
+                    })
+                    cancel('list')
+                    this.$refs.pageRef.refreshList()
+                    // 备注
                   })
-                  cancel('list')
-                  this.$refs.pageRef.refreshList()
-                  // 备注
                 })
               })
             })