diff --git a/admin-web-master/src/api/piaowu.js b/admin-web-master/src/api/piaowu.js
index 2d5cba0..7678e78 100644
--- a/admin-web-master/src/api/piaowu.js
+++ b/admin-web-master/src/api/piaowu.js
@@ -27,7 +27,7 @@ export function getCertificatePurchase(data) {
// 退票
export function getRefundData(data) {
return request({
- url: '/ticket/getRefundData',
+ url: '/youZan/getRefundData',
method: 'post',
data
})
@@ -35,7 +35,7 @@ export function getRefundData(data) {
// 销售总额
export function getTotalSales(data) {
return request({
- url: '/ticket/getTotalSales',
+ url: '/youZan/getTotalSales',
method: 'post',
data
})
@@ -43,7 +43,7 @@ export function getTotalSales(data) {
// 销售明细
export function getSalesParticular(data) {
return request({
- url: '/ticket/getSalesParticular',
+ url: '/youZan/getSalesParticular',
method: 'post',
data
})
@@ -60,7 +60,7 @@ export function excelToGetCertificatePurchase(data) {
// 销售明细导出
export function excelToSalesParticular(data) {
return request({
- url: '/ticket/excelToSalesParticular',
+ url: '/youZan/excelSalesParticular',
method: 'post',
data,
responseType: 'blob'
@@ -70,7 +70,7 @@ export function excelToSalesParticular(data) {
// 销售排名导出
export function excelToSalesSituation(data) {
return request({
- url: '/ticket/excelToSalesSituation',
+ url: '/youZan/excelToSalesSituation',
method: 'post',
data,
responseType: 'blob'
@@ -81,7 +81,7 @@ export function excelToSalesSituation(data) {
// 票种销售情况导出
export function excelToTicketTypeSalesSituation(data) {
return request({
- url: '/ticket/excelToTicketTypeSalesSituation',
+ url: '/youZan/excelToTicketTypeSalesSituation',
method: 'post',
data,
responseType: 'blob'
@@ -91,7 +91,7 @@ export function excelToTicketTypeSalesSituation(data) {
// 退票情况导出
export function excelToRefundData(data) {
return request({
- url: '/ticket/excelToRefundData',
+ url: '/youZan/excelToRefundData',
method: 'post',
data,
responseType: 'blob'
@@ -102,7 +102,7 @@ export function excelToRefundData(data) {
// 总销售额导出
export function excelToTotalSales(data) {
return request({
- url: '/ticket/excelToTotalSales',
+ url: '/youZan/excelToTotalSales',
method: 'post',
data,
responseType: 'blob'
diff --git a/admin-web-master/src/utils/request.js b/admin-web-master/src/utils/request.js
index f5e55d7..89f59ca 100644
--- a/admin-web-master/src/utils/request.js
+++ b/admin-web-master/src/utils/request.js
@@ -18,7 +18,7 @@ if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost
// baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server';
// baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1;
- baseURL = 'http://128.10.249.47:9003';
+ baseURL = 'http://128.10.249.48:9003';
} else {
console.error('---------------------')
diff --git a/admin-web-master/src/views/activity/activityHis.vue b/admin-web-master/src/views/activity/activityHis.vue
index 6f1396e..3a0f9e5 100644
--- a/admin-web-master/src/views/activity/activityHis.vue
+++ b/admin-web-master/src/views/activity/activityHis.vue
@@ -67,12 +67,13 @@
+
-
-
+
@@ -115,12 +116,12 @@
-
+
销售排名
@@ -97,6 +97,7 @@ import {QuestionGetAll,excelToSalesSituation} from '@/api/piaowu'
export default {
data() {
return {
+ flag:false,
list: [],
total: 1,
pageSize: 10,
@@ -118,13 +119,16 @@ export default {
},
mounted() {
this.getAll()
+ QuestionGetAll(this.pageIndex).then(res=>{
+ this.type = this.extractAndDeduplicateTicketChannels(res.data)
+ })
},
methods: {
async getAll(){
let res = await QuestionGetAll(this.pageIndex)
this.tableData = res.data
this.total = res.data.length
- this.type = this.extractAndDeduplicateTicketChannels(res.data)
+
},
search(){
if(this.list.length !=0){
diff --git a/admin-web-master/src/views/analysis/refund/index.vue b/admin-web-master/src/views/analysis/refund/index.vue
index 53cb564..fe98080 100644
--- a/admin-web-master/src/views/analysis/refund/index.vue
+++ b/admin-web-master/src/views/analysis/refund/index.vue
@@ -14,18 +14,14 @@
-
-
-
-
+
-
-
+
@@ -54,11 +50,11 @@
退票总数(张)
@@ -70,7 +66,7 @@
平均退票率(%)
-
38.43%
+
{{tuilv}}%
@@ -85,23 +81,26 @@
导出
+
-
+
{{scope.$index +1}}
-
-
+
+
+ {{scope.row.ticketChannel == '1'?'有赞':'其他'}}
+
-
-
+
+
@@ -137,6 +136,7 @@ import {getRefundData,excelToRefundData} from '@/api/piaowu'
export default {
data() {
return {
+ flag:false,
list: [],
total: 1,
pageSize: 10,
@@ -155,31 +155,59 @@ export default {
},
numOne:0,
moyeOne:0,
+ tuilv:0,
+ quNum:0,
+ zhongNum:0,
+ type: [],
+ listType: [],
}
},
mounted() {
this.getAll()
+ getRefundData(this.pageIndex).then(res=>{
+ this.type = this.extractAndDeduplicateTicketChannels(res.data)
+ this.listType = this.listype(res.data)
+ })
},
methods: {
async getAll(){
let res = await getRefundData(this.pageIndex)
- this.tableData = res.data.list
- this.total = res.data.total
-
+ this.tableData = res.data
+ this.total = res.data.length
+ this.quNum = this.extractAndDeduplicateTicketChannels(res.data).length
+ this.zhongNum = this.listype(res.data).length
let numOne= 0
let moyeOne =0
+ let tuilv =0
this.tableData.map(item=>{
- if(item.type == '1'){
- numOne += item.num
- moyeOne +=Number(item.price)
- }
-
+ numOne += item.num
+ moyeOne +=Number(item.price)
+ tuilv += Number(item.refundRate)
})
this.numOne = numOne
this.moyeOne = moyeOne
+ this.tuilv = tuilv
},
+ extractAndDeduplicateTicketChannels(arr) {
+ const ticketChannels = [];
+ for (let i = 0; i < arr.length; i++) {
+ if (arr[i].hasOwnProperty('ticketChannel')) {
+ ticketChannels.push(arr[i].ticketChannel);
+ }
+ }
+ return [...new Set(ticketChannels)];
+ },
+ listype(arr) {
+ const ticketChannels = [];
+ for (let i = 0; i < arr.length; i++) {
+ if (arr[i].hasOwnProperty('ticketType')) {
+ ticketChannels.push(arr[i].ticketType);
+ }
+ }
+ return [...new Set(ticketChannels)];
+ },
search(){
if(this.pageIndex.list.length !=0){
this.pageIndex.startTime = this.pageIndex.list[0]
@@ -238,7 +266,7 @@ export default {
sums[index] = '总计';
return;
}
- if (['退票数(张)', '退票金额(元)'].includes(column.label)) {
+ if (['退票数(张)', '退票金额(元)','退票率(%)'].includes(column.label)) {
const values = data.map(item => Number(item[column.property]));
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
@@ -275,21 +303,21 @@ export default {
handleSizeChange(val) {
this.pageSize = val
},
- objectSpanMethod({ row, column, rowIndex, columnIndex }) {
- if (columnIndex === 0) {
- if (rowIndex % 2 === 0) {
- return {
- rowspan: 2,
- colspan: 1
- };
- } else {
- return {
- rowspan: 0,
- colspan: 0
- };
- }
- }
- }
+ // objectSpanMethod({ row, column, rowIndex, columnIndex }) {
+ // if (columnIndex === 0) {
+ // if (rowIndex % 2 === 0) {
+ // return {
+ // rowspan: 2,
+ // colspan: 1
+ // };
+ // } else {
+ // return {
+ // rowspan: 0,
+ // colspan: 0
+ // };
+ // }
+ // }
+ // }
}
}
diff --git a/admin-web-master/src/views/analysis/statistics/index.vue b/admin-web-master/src/views/analysis/statistics/index.vue
index d573aeb..4435d17 100644
--- a/admin-web-master/src/views/analysis/statistics/index.vue
+++ b/admin-web-master/src/views/analysis/statistics/index.vue
@@ -1,345 +1,377 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
电影票销售数量(张)
-
{{numTwo}}
-
-
-
电影票销售总额(元)
-
{{moyeTwo}}
-
-
-
演唱会票销售数量(张)
-
{{numOne}}
-
-
-
演唱会票销售总额(元)
-
{{moyeOne}}
-
-
-
-
-
-
各渠道票种销售数据
-
+
+
+
+
+
+
{{item.ticketType}}销售数量(张)
+
{{item.sumNum}}
+
+
+
{{item.ticketType}}销售总额(元)
+
{{item.moyeTwo}}
+
+
+
+
+
+
+
-
-
-
-
- {{scope.$index +1}}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{scope.$index +1}}
+
+
+
+
+ {{scope.row.ticketChannel == '1'?'有赞':'其他'}}
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+ .el-tooltip__popper {
+ max-width: 50%;
+ }
+
\ No newline at end of file
diff --git a/admin-web-master/src/views/atmosphere/atmosphereGl.vue b/admin-web-master/src/views/atmosphere/atmosphereGl.vue
index fcbcf1d..d4a5201 100644
--- a/admin-web-master/src/views/atmosphere/atmosphereGl.vue
+++ b/admin-web-master/src/views/atmosphere/atmosphereGl.vue
@@ -123,12 +123,12 @@