|
@@ -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
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 提交销售单
|