소스 검색

bug修复

chenrui 4 년 전
부모
커밋
acfa8f36b4

+ 1 - 1
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -114,7 +114,7 @@ export default {
       this.fetching = true
       dealerSubareaScopeList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
         if (res.status == 200) {
-          this.dealerData = res.data.list
+          this.dealerData = res.data.list || []
           this.fetching = false
         } else {
           this.dealerData = []

+ 1 - 1
src/views/purchasingManagement/bulkWarehousingOrder/productModal.vue

@@ -158,7 +158,7 @@ export default {
       }
       supplierProductList(params).then(res => {
         if (res.status == 200) {
-          this.productData = res.data.list
+          this.productData = res.data.list || []
           this.fetching = false
         } else {
           this.productData = []

+ 1 - 1
src/views/salesManagement/salesReturn/chooseCustomModal.vue

@@ -120,7 +120,7 @@ export default {
       this.fetching = true
       dealerSubareaScopeList({ nameLike: value, pageNo: 1, pageSize: 20 }).then(res => {
         if (res.status == 200) {
-          this.dealerData = res.data.list
+          this.dealerData = res.data.list || []
           this.fetching = false
         } else {
           this.dealerData = []