-
@@ -537,18 +539,10 @@ components: { addAct,wangEditor,upimg},
pageSize: 10,
ggXin: false,
fenlei:[],
- formInline: {
- merchantName: '', // 商家名称
- storeId: '', // 编码
- contacts: '', // 联系人
- businessEntity: '', //经营主体
- page: 1, // 当前页
- pageSize: 10 // 每页记录数
- },
tableData: [],
multipleSelection:[],
pageindex: {
- pageNumber: 1,
+ pageNumber: 0,
pageSize: 10,
},
rules:{
@@ -621,7 +615,7 @@ components: { addAct,wangEditor,upimg},
async getAll() {
const res = await tuiGetAll(this.pageindex)
this.tableData = res.data.content
- this.total = res.data.content.length
+ this.total = res.data.totalElements
let page = {
pageNumber: 1,
pageSize: 10,
@@ -708,11 +702,11 @@ components: { addAct,wangEditor,upimg},
if (this.planName != '') {
const res = await tuiGetAll({
schemeTitle: this.planName,
- pageNumber: 1,
+ pageNumber: 0,
pageSize: 10,
})
this.tableData = res.data.content
- this.total = res.data.content.length
+ this.total = res.data.totalElements
}
},
//详情点击
@@ -757,7 +751,8 @@ components: { addAct,wangEditor,upimg},
return Object.keys(obj).length === 0 && obj.constructor === Object;
},
handleCurrentChange(val) {
- this.currentPage = val
+ this.pageindex.pageNumber = val -1
+ this.getAll()
},
handleSizeChange(val) {
this.pageSize = val
@@ -1097,6 +1092,33 @@ this.$refs.mulTable.clearSelection(); // 清除所有选项
})
},
+ xiajia(ids,val){
+ const h = this.$createElement;
+ this.$msgbox({
+ title: '消息',
+ message: h('p', null, [
+ h('span', null, '是否处理 '),
+ ]),
+ showCancelButton: true,
+ showClose: false,
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ customClass: 'oe-dialog-btn',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ editTui({
+ id: ids,
+ state: val
+ }).then(res => {
+ this.getAll()
+ })
+ done();
+ } else {
+ done();
+ }
+ }
+ })
+ }
}
}
@@ -1413,7 +1435,7 @@ this.$refs.mulTable.clearSelection(); // 清除所有选项
}
::v-deep .tableList {
- width: 81%;
+ width: 100%;
.el-button:hover {
border: none
diff --git a/admin-web-master/src/views/online/reconciliationAnalysis/index.vue b/admin-web-master/src/views/online/reconciliationAnalysis/index.vue
index c3f36e7..e676307 100644
--- a/admin-web-master/src/views/online/reconciliationAnalysis/index.vue
+++ b/admin-web-master/src/views/online/reconciliationAnalysis/index.vue
@@ -273,11 +273,11 @@
formatIsoToDateTime(isoTime) {
// 1. 空值/非法值处理
if (!isoTime) return '';
- if (typeof isoTime !== 'string') return '时间格式错误';
+ if (typeof isoTime !== 'string') return '';
// 2. 解析时间(兼容带时区的ISO格式,如2025-03-11T14:19:54+08:00)
const date = new Date(isoTime.replace('T', ' ').replace(/-/g, '/'));
- if (isNaN(date.getTime())) return '时间格式错误';
+ if (isNaN(date.getTime())) return '';
// 3. 补零函数(确保两位数)
const pad = (num) => num.toString().padStart(2, '0');
diff --git a/admin-web-master/src/views/online/reconciliationDetails/index.vue b/admin-web-master/src/views/online/reconciliationDetails/index.vue
index a4d7360..342bc65 100644
--- a/admin-web-master/src/views/online/reconciliationDetails/index.vue
+++ b/admin-web-master/src/views/online/reconciliationDetails/index.vue
@@ -153,7 +153,7 @@
formatIsoToDateTime(isoTime) {
// 1. 空值/非法值处理
if (!isoTime) return '';
- if (typeof isoTime !== 'string') return '时间格式错误';
+ if (typeof isoTime !== 'string') return '';
// 2. 解析时间(兼容带时区的ISO格式,如2025-03-11T14:19:54+08:00)
const date = new Date(isoTime.replace('T', ' ').replace(/-/g, '/'));
diff --git a/admin-web-master/src/views/promotion/audit.vue b/admin-web-master/src/views/promotion/audit.vue
index 5cacbc0..37cfaf3 100644
--- a/admin-web-master/src/views/promotion/audit.vue
+++ b/admin-web-master/src/views/promotion/audit.vue
@@ -37,7 +37,7 @@
-
@@ -68,7 +68,7 @@
@@ -501,7 +501,7 @@ components: { wangEditor},
}],
tableData2: [],
pageindex: {
- pageNumber: 1,
+ pageNumber: 0,
pageSize: 10,
},
options: [{
@@ -551,7 +551,7 @@ components: { wangEditor},
async getAll() {
const res = await tuiGetAll(this.pageindex)
this.tableData = res.data.content
- this.total = res.data.content.length
+ this.total = res.data.totalElements
let page = {
pageNumber: 1,
pageSize: 10,
@@ -566,11 +566,11 @@ components: { wangEditor},
if (this.planName != '') {
const res = await tuiGetAll({
schemeTitle: this.planName,
- pageNumber: 1,
+ pageNumber: 0,
pageSize: 10,
})
this.tableData = res.data.content
- this.total = res.data.content.length
+ this.total = res.data.totalElements
}
},
transformData(data) {
@@ -629,7 +629,8 @@ components: { wangEditor},
},
handleCurrentChange(val) {
- this.currentPage = val
+ this.pageindex.pageNumber= val-1
+ this.getAll()
},
handleSizeChange(val) {
this.pageSize = val
diff --git a/admin-web-master/src/views/revenue/details/index.vue b/admin-web-master/src/views/revenue/details/index.vue
index 8d8d605..695cda2 100644
--- a/admin-web-master/src/views/revenue/details/index.vue
+++ b/admin-web-master/src/views/revenue/details/index.vue
@@ -125,15 +125,15 @@ export default {
mounted() {
this.getAll()
getSalesParticular(this.pageIndex).then(res=>{
- this.type = this.extractAndDeduplicateTicketChannels(res.data)
- this.listType = this.listype(res.data)
+ this.type = this.extractAndDeduplicateTicketChannels(res.data.content)
+ this.listType = this.listype(res.data.content)
})
},
methods: {
async getAll(){
let res = await getSalesParticular(this.pageIndex)
- this.tableData = res.data
- this.total = res.data.length
+ this.tableData = res.data.content
+ this.total = res.data.numberOfElements
},
@@ -188,7 +188,7 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
- return prev + curr;
+ return parseFloat((prev + value).toFixed(2));
} else {
return prev;
}
diff --git a/admin-web-master/src/views/revenue/totalsales/index.vue b/admin-web-master/src/views/revenue/totalsales/index.vue
index 5513626..dd7d265 100644
--- a/admin-web-master/src/views/revenue/totalsales/index.vue
+++ b/admin-web-master/src/views/revenue/totalsales/index.vue
@@ -84,7 +84,7 @@
-->
单位:张
-
+
@@ -102,7 +102,7 @@
-->
单位:元
-
+