1
This commit is contained in:
@@ -166,7 +166,7 @@ export function delJDOrder(ids) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
1
|
||||||
// 手动获取物流信息(用于调试)
|
// 手动获取物流信息(用于调试)
|
||||||
export function fetchLogisticsManually(data) {
|
export function fetchLogisticsManually(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="订单号" align="center" prop="orderId" width="120" />
|
<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="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">
|
<template slot-scope="scope">
|
||||||
<span>¥{{ scope.row.estimateCosPrice }}</span>
|
<span>¥{{ scope.row.estimateCosPrice }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -328,7 +328,9 @@ export default {
|
|||||||
orderId: null,
|
orderId: null,
|
||||||
skuName: null,
|
skuName: null,
|
||||||
validCode: null,
|
validCode: null,
|
||||||
statusGroup: null // 新增
|
statusGroup: null, // 新增
|
||||||
|
orderBy: null, // 排序字段
|
||||||
|
orderSort: null // 排序方向:asc/desc
|
||||||
},
|
},
|
||||||
// 管理员列表
|
// 管理员列表
|
||||||
adminList: [],
|
adminList: [],
|
||||||
@@ -668,8 +670,29 @@ export default {
|
|||||||
// 重置时恢复默认分页条数
|
// 重置时恢复默认分页条数
|
||||||
this.queryParams.pageSize = 10;
|
this.queryParams.pageSize = 10;
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
|
// 重置排序
|
||||||
|
this.queryParams.orderBy = null;
|
||||||
|
this.queryParams.orderSort = null;
|
||||||
this.getList();
|
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) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item.id)
|
this.ids = selection.map(item => item.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user