diff --git a/src/api/system/jdorder.js b/src/api/system/jdorder.js index 259003a..329aec3 100644 --- a/src/api/system/jdorder.js +++ b/src/api/system/jdorder.js @@ -166,7 +166,7 @@ export function delJDOrder(ids) { method: 'delete' }) } - +1 // 手动获取物流信息(用于调试) export function fetchLogisticsManually(data) { return request({ diff --git a/src/views/system/orderrows/index.vue b/src/views/system/orderrows/index.vue index bbad772..05b0831 100644 --- a/src/views/system/orderrows/index.vue +++ b/src/views/system/orderrows/index.vue @@ -128,7 +128,7 @@ - + @@ -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)