|
@@ -140,6 +140,62 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <div style="margin: 60px 0px 20px 0px">
|
|
|
|
|
+ <span class="font-small">费用信息</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-descriptions :column="4" border>
|
|
|
|
|
+ <el-descriptions-item label="商品合计">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.totalPrice.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="应付金额">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.payPrice.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="运费">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.payPostage.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="优惠券">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.couponPrice.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="活动名称" v-if="orderPromotion != null">
|
|
|
|
|
+ <span>{{ orderPromotion.activityTitle }}</span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="活动类型" v-if="orderPromotion != null">
|
|
|
|
|
+ <span>{{ orderPromotion.tierTypeLabel }}</span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="活动档位" v-if="orderPromotion != null">
|
|
|
|
|
+ <span>{{ orderPromotion.matchedTierDesc }}</span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="活动优惠" v-if="orderPromotion != null">
|
|
|
|
|
+ <span class="color-danger">
|
|
|
|
|
+ ¥{{ formatPromotionDiscount(orderPromotion.promotionDiscountAmount) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="积分抵扣">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.deductionPrice.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="实付金额">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.payMoney.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="代收金额">
|
|
|
|
|
+ <span v-if="order != null">
|
|
|
|
|
+ ¥{{ order.payDelivery.toFixed(2) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ </el-descriptions>
|
|
|
|
|
+
|
|
|
<div style="margin-top: 20px">
|
|
<div style="margin-top: 20px">
|
|
|
<span class="font-small">操作信息</span>
|
|
<span class="font-small">操作信息</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -205,6 +261,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import {getStoreAfterSales,cancel,refund,audit,updateStoreAfterSales } from "@/api/hisStore/storeAfterSales";
|
|
import {getStoreAfterSales,cancel,refund,audit,updateStoreAfterSales } from "@/api/hisStore/storeAfterSales";
|
|
|
|
|
+import { getOrderPromotionDetail } from "@/api/hisStore/storePromotion";
|
|
|
|
|
|
|
|
import productOrder from "./productOrder";
|
|
import productOrder from "./productOrder";
|
|
|
export default {
|
|
export default {
|
|
@@ -238,6 +295,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
order:null,
|
|
order:null,
|
|
|
|
|
+ orderPromotion: null,
|
|
|
user:null,
|
|
user:null,
|
|
|
serviceTypeOptions:[],
|
|
serviceTypeOptions:[],
|
|
|
salesStatusOptions:[],
|
|
salesStatusOptions:[],
|
|
@@ -286,6 +344,12 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ formatPromotionDiscount(amount) {
|
|
|
|
|
+ if (amount == null || amount === '') {
|
|
|
|
|
+ return '0.00';
|
|
|
|
|
+ }
|
|
|
|
|
+ return Number(amount).toFixed(2);
|
|
|
|
|
+ },
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
var id=this.afterSales.id;
|
|
var id=this.afterSales.id;
|
|
|
this.addForm.id = id;
|
|
this.addForm.id = id;
|
|
@@ -360,13 +424,24 @@ export default {
|
|
|
}).catch(function() {});
|
|
}).catch(function() {});
|
|
|
},
|
|
},
|
|
|
getStoreAfterSales(id){
|
|
getStoreAfterSales(id){
|
|
|
|
|
+ this.orderPromotion = null;
|
|
|
getStoreAfterSales(id).then(response => {
|
|
getStoreAfterSales(id).then(response => {
|
|
|
this.afterSales = response.afterSales;
|
|
this.afterSales = response.afterSales;
|
|
|
this.logs = response.logs;
|
|
this.logs = response.logs;
|
|
|
this.items = response.items;
|
|
this.items = response.items;
|
|
|
this.user=response.user;
|
|
this.user=response.user;
|
|
|
this.order=response.order;
|
|
this.order=response.order;
|
|
|
|
|
+ if (this.order && this.order.id) {
|
|
|
|
|
+ this.loadOrderPromotion(this.order.id);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ loadOrderPromotion(orderId) {
|
|
|
|
|
+ getOrderPromotionDetail(orderId).then(response => {
|
|
|
|
|
+ this.orderPromotion = response.data || null;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.orderPromotion = null;
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|