koushanshan 1 rok temu
rodzic
commit
16b8aa1db3

+ 7 - 18
src/view/ivt/entry-handle/index.vue

@@ -418,12 +418,7 @@
       currentChange({row}) {
         this.loading = true
         this.id = row.intoId
-        this.excuteNoParam(this.$service.otherInboundService, this.$service.otherInboundService.selectInboundItem, [row.intoId], false).then(res => {
-          if (res.code === this.$config.SUCCESS_CODE) {
-            this.detailTableData = res.data.itemList
-          }
-          this.loading = false
-        })
+        this.getDetail(1)
         //订单附件
         this.fileTableData = row.annexPaths
       },
@@ -466,18 +461,12 @@
        */
       getDetail(val) {
         this.detailModel = val
-        if (val == 'goodsDetail') {
-          this.loading = true
-          this.excuteNoParam(this.$service.otherInboundService, this.$service.otherInboundService.selectInboundItem, [this.id], false).then(res => {
-            if (res.code === this.$config.SUCCESS_CODE) {
-              this.detailTableData = res.data.itemList
-            }
-          })
-        }
-        //附件
-        else if (val == 'filesDetail') {
-          //todo
-        }
+        this.loading = true
+        this.excuteNoParam(this.$service.otherInboundService, this.$service.otherInboundService.selectInboundItem, [this.id], false).then(res => {
+          if (res.code === this.$config.SUCCESS_CODE) {
+            this.detailTableData = res.data.itemList
+          }
+        })
       },
       /**
        *   @desc   : 入库撤回

+ 7 - 18
src/view/ivt/out-handle/index.vue

@@ -415,12 +415,7 @@ export default {
     currentChange({row}) {
       this.loading = true
       this.id = row.outId
-      this.excuteNoParam(this.$service.otherOutboundService, this.$service.otherOutboundService.selectOutboundItem, [row.outId], false).then(res => {
-        if (res.code === this.$config.SUCCESS_CODE) {
-          this.detailTableData = res.data.itemList
-        }
-        this.loading = false
-      })
+      this.getDetail(1)
       //订单附件
       this.fileTableData = row.annexPaths
     },
@@ -463,18 +458,12 @@ export default {
      */
     getDetail(val) {
       this.detailModel = val
-      if (val == 'goodsDetail') {
-        this.loading = true
-        this.excuteNoParam(this.$service.otherOutboundService, this.$service.otherOutboundService.selectOutboundItem, [this.id], false).then(res => {
-          if (res.code === this.$config.SUCCESS_CODE) {
-            this.detailTableData = res.data.itemList
-          }
-        })
-      }
-      //附件
-      else if (val == 'filesDetail') {
-        //todo
-      }
+      this.loading = true
+      this.excuteNoParam(this.$service.otherOutboundService, this.$service.otherOutboundService.selectOutboundItem, [this.id], false).then(res => {
+        if (res.code === this.$config.SUCCESS_CODE) {
+          this.detailTableData = res.data.itemList
+        }
+      })
     },
     /**
      *   @desc   : 出库撤回