lilei 2 years ago
parent
commit
4c19c4abd4

+ 6 - 4
src/views/inventoryManagement/intelligentReplenishment/detailModal.vue

@@ -26,6 +26,7 @@
             :loading="loading"
             :scroll="{ y: 400 }"
             :pagination="false"
+            v-if="detailData&&detailData.stockPredictRange == 0"
             bordered>
           </a-table>
         </div>
@@ -92,6 +93,8 @@ export default {
           this.detailData = res.data
           if (this.detailData.stockPredictRange == 0) { //  自选产品
             this.getPredictRange()
+          }else{
+            this.loadData = []
           }
         } else {
           this.detailData = null
@@ -161,10 +164,9 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-      }
-    },
-    itemSn (newValue, oldValue) {
-      if (this.isShow && newValue) {
+        this.detailData = null
+         this.loadData = []
+      }else{
         this.getDetail()
       }
     }