lilei 1 year ago
parent
commit
3001b48e81

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

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