lilei 2 년 전
부모
커밋
619f2f0f8a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/salesManagement/salesQuery/edit.vue

+ 5 - 1
src/views/salesManagement/salesQuery/edit.vue

@@ -708,7 +708,11 @@ export default {
     },
     getShelfQueryByCustomer () {
       queryByCustomerSn({ sn: this.detailData.buyerSn }).then(res => {
-        this.shelfInfo = Object.assign(res.data, { salePriceType: this.$route.params.priceType, salesBillSn: this.salesBillSn })
+        if (res.data) {
+          this.shelfInfo = Object.assign(res.data, { salePriceType: this.$route.params.priceType, salesBillSn: this.salesBillSn })
+        } else {
+          this.shelfInfo = null
+        }
       })
     },
     // 提交销售单