Commit b2f20ed0 authored by 黄奎's avatar 黄奎

11

parent 0c8b6b81
This diff is collapsed.
...@@ -11,24 +11,15 @@ ...@@ -11,24 +11,15 @@
</div> </div>
<div class="row q-mb-sm items-center"> <div class="row q-mb-sm items-center">
<div class="q-mr-lg">優惠金額</div> <div class="q-mr-lg">優惠金額</div>
<div <div class="text-subtitle2 text-weight-bolder text-teal" v-if="DiscountMoney > 0">
class="text-subtitle2 text-weight-bolder text-teal"
v-if="DiscountMoney > 0"
>
CNY - {{ moneyFormat(DiscountMoney, 2) }} CNY - {{ moneyFormat(DiscountMoney, 2) }}
</div> </div>
<div class="text-grey-5" v-else>暫無優惠</div> <div class="text-grey-5" v-else>暫無優惠</div>
</div> </div>
<!-- <div class="row q-mb-sm items-center">
<div class="q-mr-lg">支付金額</div>
<div class="text-h6 text-weight-bolder product-price">
CNY {{ moneyFormat(TotalPrice, 2) }}
</div>
</div> -->
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
orderInfo: { orderInfo: {
type: Object, type: Object,
...@@ -38,8 +29,8 @@ export default { ...@@ -38,8 +29,8 @@ export default {
data() { data() {
return { return {
details: null, details: null,
sumPrice: 0,//总金额 sumPrice: 0, //总金额
DiscountMoney: 0,//优惠金额 DiscountMoney: 0, //优惠金额
TotalPrice: 0, // 支付金額 TotalPrice: 0, // 支付金額
} }
}, },
...@@ -49,25 +40,23 @@ export default { ...@@ -49,25 +40,23 @@ export default {
methods: { methods: {
// 获取团的详情 // 获取团的详情
getGroupData() { getGroupData() {
// this.$q.loading.show(); if (!this.orderInfo.ErpOrderId) return this.sumPrice = this.orderInfo.TotalPrice
if(!this.orderInfo.ErpOrderId) return this.sumPrice = this.orderInfo.TotalPrice
this.apipost( this.apipost(
"dmc_post_GetThirdHotelOrder", "dmc_post_GetThirdHotelOrder", {
{ OrderID: this.orderInfo.ErpOrderId }, OrderID: this.orderInfo.ErpOrderId
},
(r) => { (r) => {
if (r.data.resultCode == 1) { if (r.data.resultCode == 1) {
this.dataList = r.data.data; this.dataList = r.data.data;
const {DiscountMoney,TotalPrice} = r.data.data; const {
// sumPrice: 0,//总金额 DiscountMoney,
// DiscountMoney: 0,//优惠金额 TotalPrice
// TotalPrice: 0, // 支付金額 } = r.data.data;
// MailingState: '',//邮寄状态 1自取 2邮寄
this.TotalPrice = TotalPrice; this.TotalPrice = TotalPrice;
this.DiscountMoney = DiscountMoney this.DiscountMoney = DiscountMoney
this.sumPrice = TotalPrice + DiscountMoney this.sumPrice = TotalPrice + DiscountMoney
// this.sumPrice = this.moneyFormat(this.sumPrice, 2)
// this.TotalPrice = this.moneyFormat(this.TotalPrice, 2)
// this.DiscountMoney = this.moneyFormat(this.DiscountMoney, 2)
} else { } else {
this.$q.notify({ this.$q.notify({
type: "negative", type: "negative",
...@@ -76,11 +65,11 @@ export default { ...@@ -76,11 +65,11 @@ export default {
timeout: 2000, // 以毫秒为单位; 0意味着没有超时 timeout: 2000, // 以毫秒为单位; 0意味着没有超时
}); });
} }
// this.$q.loading.hide();
}, },
null null
); );
}, },
} }
} }
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment