|
@@ -369,6 +369,7 @@ export default {
|
|
updateData (priceType) {
|
|
updateData (priceType) {
|
|
// 价格类型变更
|
|
// 价格类型变更
|
|
if (priceType != this.$route.params.priceType) {
|
|
if (priceType != this.$route.params.priceType) {
|
|
|
|
+ this.getOrderDetail(true)
|
|
this.$router.push({ name: 'salesEdit', params: { id: this.orderId, sn: this.salesBillSn, priceType: priceType } })
|
|
this.$router.push({ name: 'salesEdit', params: { id: this.orderId, sn: this.salesBillSn, priceType: priceType } })
|
|
} else {
|
|
} else {
|
|
this.getOrderDetail(true)
|
|
this.getOrderDetail(true)
|
|
@@ -708,7 +709,11 @@ export default {
|
|
},
|
|
},
|
|
getShelfQueryByCustomer () {
|
|
getShelfQueryByCustomer () {
|
|
queryByCustomerSn({ sn: this.detailData.buyerSn }).then(res => {
|
|
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
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 提交销售单
|
|
// 提交销售单
|
|
@@ -804,10 +809,6 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- deactivated () {
|
|
|
|
- // this.dataSource = []
|
|
|
|
- // this.showPage = false
|
|
|
|
- },
|
|
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {})
|
|
next(vm => {})
|
|
}
|
|
}
|