From a3d94ae50b7905482939079c8e210351214a4c89 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 24 Apr 2026 01:05:06 +0800 Subject: [PATCH] =?UTF-8?q?wo=E5=BF=AB=E9=80=9F=E5=88=87=E6=8D=A2=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/my_work/routers/apiPurchase.go | 2 +- frontend/ops_vue_js/src/views/purchase/PurchaseList.vue | 3 ++- frontend/ops_vue_js/src/views/work_order/ShowWorkOrder.vue | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/my_work/routers/apiPurchase.go b/backend/my_work/routers/apiPurchase.go index f54f9ce..245d8c2 100644 --- a/backend/my_work/routers/apiPurchase.go +++ b/backend/my_work/routers/apiPurchase.go @@ -447,7 +447,7 @@ func ApiPurchase(r *gin.RouterGroup) { //读取条目 var getorders []TabPurchaseOrder - query.Order("created_at DESC").Offset(jsondata.Entries * (jsondata.Page - 1)).Limit(jsondata.Entries).Find(&getorders) + query.Order("updated_at DESC, id DESC").Offset(jsondata.Entries * (jsondata.Page - 1)).Limit(jsondata.Entries).Find(&getorders) ReturnJson(ctx, "apiOK", map[string]interface{}{ "all_count": count, diff --git a/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue b/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue index 26effa1..0f7a09f 100644 --- a/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue +++ b/frontend/ops_vue_js/src/views/purchase/PurchaseList.vue @@ -162,8 +162,8 @@ onMounted(fetchOrders) No. {{ t('purchase.item_name') }} {{ t('purchase.purpose') }} - {{ t('purchase.created_at') }} + {{ t('purchase.updated_at') }} {{ t('purchase.status') }} @@ -187,6 +187,7 @@ onMounted(fetchOrders) {{ order.Title }} {{ order.Remark || '-' }} {{ formatDate(order.CreatedAt) }} + {{ formatDate(order.UpdatedAt) }} { -
@@ -418,7 +418,7 @@ onUnmounted(() => { {{ t(opt.labelKey) }} -
+ -->