lilei 1 년 전
부모
커밋
3001b48e81
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

+ 7 - 5
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -476,7 +476,7 @@ export default {
     },
     // 获取页面统计数据
     getStatisticsData () {
-      this.getBasicsData()
+      this.getBasicsData(true)
       queryPageCount({ sparePartsReturnSn: this.sparePartsReturnSn }).then(res => {
         if (res.status == 200) {
           if (res.data) {
@@ -491,7 +491,7 @@ export default {
       })
     },
     // 获取基础信息
-    getBasicsData () {
+    getBasicsData (flag) {
       sparePartsReturnInfo({ sn: this.sparePartsReturnSn }).then(res => {
         if (res.status == 200) {
           this.detailsData = res.data
@@ -499,9 +499,11 @@ export default {
           this.detailsData = null
         }
         const _this = this
-        this.$nextTick(() => {
-          _this.getChooseList()
-        })
+        if(!flag){
+          this.$nextTick(() => {
+            _this.getChooseList()
+          })
+        }
       })
     }
   },