diff --git a/src/views/bl/massage/massagePackage.vue b/src/views/bl/massage/massagePackage.vue index 25f69d9..dcd5ecf 100644 --- a/src/views/bl/massage/massagePackage.vue +++ b/src/views/bl/massage/massagePackage.vue @@ -2208,20 +2208,20 @@ export default { }, //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<服务项目<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< - showBuyView(row){ - this.packageId = row.id; - this.userId = 400; - this.quantity = 5; - this.couponId = "2636,2635"; - this.packagePrice = row.price;//单价 - - this.vipRate = 90; - this.oldSumMoney = 835; - this.sumMoney = 751.5; - - this.dialogFormVisibleBuy = true; - }, - + // showBuyView(row){ + // this.packageId = row.id; + // this.userId = 400; + // this.quantity = 5; + // this.couponId = "2636,2635"; + // this.packagePrice = row.price;//单价 + // + // this.vipRate = 90; + // this.oldSumMoney = 835; + // this.sumMoney = 751.5; + // + // this.dialogFormVisibleBuy = true; + // }, + // // handleBuy(){ // if(this.quantity <= 0){ // this.$message({ diff --git a/src/views/bl/order/packageOrder.vue b/src/views/bl/order/packageOrder.vue index 984c89f..14b2a37 100644 --- a/src/views/bl/order/packageOrder.vue +++ b/src/views/bl/order/packageOrder.vue @@ -66,6 +66,7 @@ 待支付 已支付 已退款 + 已取消 @@ -88,8 +89,8 @@ size="mini" type="primary" style="margin: 5px" - @click="showDetailView(scope.row)" - >项目详情 + @click="showPackageView(scope.row)" + >服务包 + + + + + + + + + + + + + + + + + + + @@ -151,14 +189,6 @@ 订单号: {{ ordersNo }} -
- 服务类型: - {{ showDictValue(type, typeDictData) }} -
-
- 服务名称: - {{ packageName }} -
支付金额: {{ payMoney }} @@ -204,6 +234,10 @@ export default { couponTableDataLoading: false,//代金券loading couponTableData: [],//代金券表格数据 + dialogVisiblePackage: false,//服务包弹窗 + packageTableDataLoading: false,//服务包loading + packageTableData: [],//服务包 + dialogVisibleDetail: false,//详情弹窗 detailTableDataLoading: false,//详情loading @@ -312,6 +346,23 @@ export default { }); }, + showPackageView(row){ + this.dialogVisiblePackage = true; + this.packageTableDataLoading = true; + this.$http({ + url: this.$http.adornUrl("user/package/findList"), + method: "get", + params: this.$http.adornParams({ + ordersId: row.ordersId, + status: row.status + }), + }).then(({data}) => { + this.packageTableData = data.data; + + this.packageTableDataLoading = false; + }); + }, + //显示订单项目详情 showDetailView(row){ this.dialogVisibleDetail = true; @@ -320,7 +371,8 @@ export default { url: this.$http.adornUrl("user/package/detail/findDetailUsedQuantity"), method: "get", params: this.$http.adornParams({ - ordersId: row.ordersId, + mainId: row.id, + status: row.status }), }).then(({data}) => { this.detailTableData = data.data; @@ -332,8 +384,6 @@ export default { showRefundView(row){ this.ordersId = row.ordersId; this.ordersNo = row.ordersNo; - this.type = row.type; - this.packageName = row.packageName; this.payMoney = row.payMoney; this.dialogFormVisibleRefund = true; },