diff --git a/manager/src/views/order/order/orderDetail.vue b/manager/src/views/order/order/orderDetail.vue
index c8cafcbd..2df88231 100644
--- a/manager/src/views/order/order/orderDetail.vue
+++ b/manager/src/views/order/order/orderDetail.vue
@@ -274,6 +274,42 @@
{{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice("¥") }}
+
+
+
+
+
+
+
+
+
+ 优惠详情: |
+
+
+
+
+ {{item.promotionName}}: |
+ ¥{{ item.discountPrice | unitPrice }} |
+
+
+
+
+
+
+
优惠详情:
+
+
+
+
运费:
{{
@@ -515,6 +551,8 @@ export default {
},
data() {
return {
+ typeList:[],
+ showPrices:false,
printHiddenFlag:false,//隐藏信息
printInfoObj:{
id: "printInfo",//要打印的id名 无#号
@@ -699,6 +737,9 @@ export default {
},
},
methods: {
+ gotoHomes(){
+ return false
+ },
//修改地址
regionClick() {
this.showRegion = true;
@@ -722,6 +763,28 @@ export default {
},
});
},
+ getOrderPrice(){
+ if(this.showPrices){
+ this.showPrices = false
+ }else if(!this.showPrices){
+ this.showPrices = true
+ }
+ },
+ getContentPrice(){
+ for (let i = 0; i < this.typeList.length; i++) {
+ for (let j = i + 1; j < this.typeList.length; j++) {
+ if (this.typeList[i].promotionId === this.typeList[j].promotionId) {
+ this.typeList[i].discountPrice = this.typeList[i].discountPrice + this.typeList[j].discountPrice
+ this.typeList.splice(j, 1)
+ }
+ }
+ }
+ console.log(this.typeList)
+ if(this.typeList.length >= 3){
+ console.log(123123)
+ this.getContentPrice()
+ }
+ },
// 获取订单详情
getDataList() {
this.loading = true;
@@ -731,6 +794,9 @@ export default {
this.orderInfo = res.result;
this.allowOperation = res.result.allowOperationVO;
this.data = res.result.orderItems;
+ this.typeList = JSON.parse(JSON.stringify(res.result.order.priceDetailDTO.discountPriceDetail));
+ this.getContentPrice()
+ this.getOrderPrice()
}
});
},
@@ -899,7 +965,7 @@ export default {
.goods-total {
padding: 20px;
- height: 150px;
+ height: 220px;
width: 100%;
ul {
@@ -916,11 +982,13 @@ export default {
.label {
float: left;
width: 500px;
+ font-size: 14px;
text-align: right;
}
.txt {
float: left;
+ font-size: 14px;
width: 130px;
text-align: right;
font-family: verdana;
diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue
index a1215072..5fd939fb 100644
--- a/seller/src/views/order/order/orderDetail.vue
+++ b/seller/src/views/order/order/orderDetail.vue
@@ -228,6 +228,31 @@
优惠券金额:
{{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice('¥') }}
+
+
+
+
+
+
+
+
+
+ 优惠详情: |
+
+
+
+
+ {{item.promotionName}}: |
+ ¥{{ item.discountPrice | unitPrice }} |
+
+
+
+
+
+
+
优惠详情:
+
+
运费:
{{
@@ -238,18 +263,31 @@
修改金额:
¥{{ orderInfo.order.priceDetailDTO.updatePrice | unitPrice }}
+
使用积分:
{{
orderInfo.order.priceDetailDTO.payPoint
}}
-
应付金额:
¥{{ orderInfo.order.flowPrice | unitPrice }}
+
@@ -568,6 +606,8 @@ export default {
},
data() {
return {
+ typeList:[],
+ showPrices:false,
printHiddenFlag:false,//隐藏信息
printInfoObj:{
id: "printInfo",//要打印的id名 无#号
@@ -804,6 +844,28 @@ export default {
}
});
},
+ getOrderPrice(){
+ if(this.showPrices){
+ this.showPrices = false
+ }else if(!this.showPrices){
+ this.showPrices = true
+ }
+ },
+ getContentPrice(){
+ for (let i = 0; i < this.typeList.length; i++) {
+ for (let j = i + 1; j < this.typeList.length; j++) {
+ if (this.typeList[i].promotionId === this.typeList[j].promotionId) {
+ this.typeList[i].discountPrice = this.typeList[i].discountPrice + this.typeList[j].discountPrice
+ this.typeList.splice(j, 1)
+ }
+ }
+ }
+ console.log(this.typeList)
+ if(this.typeList.length >= 3){
+ console.log(123123)
+ this.getContentPrice()
+ }
+ },
//获取订单详细信息
getDataDetail() {
this.loading = true;
@@ -814,6 +876,9 @@ export default {
this.allowOperation = res.result.allowOperationVO;
this.data = res.result.orderItems;
this.orderLogData = res.result.orderLogs;
+ this.typeList = JSON.parse(JSON.stringify(res.result.order.priceDetailDTO.discountPriceDetail));
+ this.getContentPrice()
+ this.getOrderPrice()
}
});
},
@@ -1055,7 +1120,7 @@ dl dt {
.goods-total {
padding: 20px;
- height: 150px;
+ height: 220px;
width: 100%;
ul {
@@ -1069,12 +1134,14 @@ dl dt {
.label {
float: left;
width: 500px;
+ font-size: 14px;
text-align: right;
}
.txt {
float: left;
width: 130px;
+ font-size: 14px;
text-align: right;
font-family: verdana;
}