Browse Source

修改bug

chenrui 6 months ago
parent
commit
4cbcefdc1b

+ 3 - 1
src/views/salesManagement/salesQueryNew/comps/dealerStockModal.vue

@@ -107,7 +107,9 @@ export default {
     },
     cancel () {
       this.dealerList = [{ dealerName: '其他经销商', dealerSn: 'a1' }]
-      this.$refs.dealerSubareaScopeList[0].resetForm()
+      if (this.$refs && Object.keys(this.$refs).length) {
+        this.$refs.dealerSubareaScopeList[0].resetForm()
+      }
       this.chooseVal = null
       this.isShow = false
     }