|
@@ -60,8 +60,10 @@
|
|
<div style="display: inline-block;" v-if="$hasPermissions('M_ShowAllCost')">
|
|
<div style="display: inline-block;" v-if="$hasPermissions('M_ShowAllCost')">
|
|
采购金额合计:<strong>{{ detail && (detail.discountedAmount || detail.discountedAmount==0) ? toThousands(detail.discountedAmount,2) : '--' }}</strong>,
|
|
采购金额合计:<strong>{{ detail && (detail.discountedAmount || detail.discountedAmount==0) ? toThousands(detail.discountedAmount,2) : '--' }}</strong>,
|
|
审核订单金额:<strong>{{ detail && (detail.totalPushedAmount || detail.totalPushedAmount==0) ? toThousands(detail.totalPushedAmount,2) : '--' }}</strong>,
|
|
审核订单金额:<strong>{{ detail && (detail.totalPushedAmount || detail.totalPushedAmount==0) ? toThousands(detail.totalPushedAmount,2) : '--' }}</strong>,
|
|
- 已取消金额:<strong>{{ detail && (detail.totalCancelAmount || detail.totalCancelAmount==0) ? toThousands(detail.totalCancelAmount,2) : '--' }}</strong>
|
|
|
|
|
|
+ 已取消金额:<strong>{{ detail && (detail.totalCancelAmount || detail.totalCancelAmount==0) ? toThousands(detail.totalCancelAmount,2) : '--' }}</strong>,
|
|
|
|
+ 优惠金额:<strong>{{ detail && (detail.discountAmount || detail.discountAmount==0) ? toThousands(detail.discountAmount,2) : '--' }}</strong>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</a-alert>
|
|
</a-alert>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -236,7 +238,13 @@ export default {
|
|
getDetail () {
|
|
getDetail () {
|
|
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) {
|
|
- this.detail = res.data
|
|
|
|
|
|
+ const dataInfo = res.data
|
|
|
|
+ if (dataInfo.totalOrigAmount && dataInfo.totalAmount) {
|
|
|
|
+ dataInfo.discountAmount = dataInfo.totalOrigAmount - dataInfo.totalAmount
|
|
|
|
+ } else {
|
|
|
|
+ dataInfo.discountAmount = null
|
|
|
|
+ }
|
|
|
|
+ this.detail = dataInfo
|
|
} else {
|
|
} else {
|
|
this.detail = null
|
|
this.detail = null
|
|
}
|
|
}
|