|
@@ -223,7 +223,7 @@ export default {
|
|
purchaseDetailBySn({ sn: this.outBizSn || this.$route.params.sn }).then(res => {
|
|
purchaseDetailBySn({ sn: this.outBizSn || this.$route.params.sn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
const dataInfo = res.data
|
|
const dataInfo = res.data
|
|
- if (dataInfo.totalOrigAmount && dataInfo.totalAmount) {
|
|
|
|
|
|
+ if (dataInfo.totalOrigAmount && (dataInfo.totalAmount || dataInfo.totalAmount == 0)) {
|
|
dataInfo.discountAmount = dataInfo.totalOrigAmount - dataInfo.totalAmount
|
|
dataInfo.discountAmount = dataInfo.totalOrigAmount - dataInfo.totalAmount
|
|
} else {
|
|
} else {
|
|
dataInfo.discountAmount = null
|
|
dataInfo.discountAmount = null
|