This commit is contained in:
2025-11-05 19:38:06 +08:00
parent 283cfbbfc8
commit 3ea26320cc
2 changed files with 26 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ export function delJDOrder(ids) {
method: 'delete'
})
}
1
// 手动获取物流信息(用于调试)
export function fetchLogisticsManually(data) {
return request({

View File

@@ -128,7 +128,7 @@
</el-table-column>
<el-table-column label="订单号" align="center" prop="orderId" width="120" />
<el-table-column label="商品名称" align="center" prop="skuName" :show-overflow-tooltip="true" min-width="200" />
<el-table-column label="计佣金额" align="center" prop="estimateCosPrice" width="100">
<el-table-column label="计佣金额" align="center" prop="estimateCosPrice" width="100" sortable="custom" @sort-change="handleSortChange">
<template slot-scope="scope">
<span>¥{{ scope.row.estimateCosPrice }}</span>
</template>
@@ -328,7 +328,9 @@ export default {
orderId: null,
skuName: null,
validCode: null,
statusGroup: null // 新增
statusGroup: null, // 新增
orderBy: null, // 排序字段
orderSort: null // 排序方向asc/desc
},
// 管理员列表
adminList: [],
@@ -668,8 +670,29 @@ export default {
// 重置时恢复默认分页条数
this.queryParams.pageSize = 10;
this.queryParams.pageNum = 1;
// 重置排序
this.queryParams.orderBy = null;
this.queryParams.orderSort = null;
this.getList();
},
/** 排序变化处理 */
handleSortChange(column) {
if (column.prop === 'estimateCosPrice') {
if (column.order === 'ascending') {
this.queryParams.orderBy = 'estimateCosPrice';
this.queryParams.orderSort = 'asc';
} else if (column.order === 'descending') {
this.queryParams.orderBy = 'estimateCosPrice';
this.queryParams.orderSort = 'desc';
} else {
// 取消排序
this.queryParams.orderBy = null;
this.queryParams.orderSort = null;
}
this.queryParams.pageNum = 1;
this.getList();
}
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)