From b2d3fec6c8ef66bbcd2a2c1c6aed3e1fe3a1ca0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Thu, 23 Apr 2026 17:32:27 +0800 Subject: [PATCH] up --- frontend/ops_vue_js/src/i18n/en.json | 4 +- frontend/ops_vue_js/src/i18n/zh-CN.json | 4 +- .../src/views/purchase/ShowOrder.vue | 6 +-- .../src/views/work_order/ShowWorkOrder.vue | 41 +++++++++++++++++-- 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/frontend/ops_vue_js/src/i18n/en.json b/frontend/ops_vue_js/src/i18n/en.json index e889665..92c6909 100644 --- a/frontend/ops_vue_js/src/i18n/en.json +++ b/frontend/ops_vue_js/src/i18n/en.json @@ -86,7 +86,7 @@ "items": "orders.", "order_detail": "Order Detail", "back": "Back", - "back_to_list": "Back to List", + "back_to_list": "Go Back", "order_not_found": "Order Not Found", "delete_order": "Delete Order", "confirm_delete": "Are you sure you want to delete this order? This action cannot be undone.", @@ -144,7 +144,7 @@ "submit_commit": "Submit", "edit": "Edit", "delete": "Delete", - "back_to_list": "Back to List", + "back_to_list": "Go Back", "not_found": "Work order not found", "confirm_delete": "Are you sure you want to delete this work order? This action cannot be undone.", "confirm_delete_commit": "Are you sure you want to delete this progress?", diff --git a/frontend/ops_vue_js/src/i18n/zh-CN.json b/frontend/ops_vue_js/src/i18n/zh-CN.json index 865dbdd..bb8203c 100644 --- a/frontend/ops_vue_js/src/i18n/zh-CN.json +++ b/frontend/ops_vue_js/src/i18n/zh-CN.json @@ -86,7 +86,7 @@ "items": "个订单", "order_detail": "订单详情", "back": "返回", - "back_to_list": "返回列表", + "back_to_list": "返回", "order_not_found": "订单不存在", "delete_order": "删除订单", "confirm_delete": "确定要删除此订单吗?此操作不可撤销。", @@ -144,7 +144,7 @@ "submit_commit": "提交", "edit": "编辑", "delete": "删除", - "back_to_list": "返回列表", + "back_to_list": "返回", "not_found": "工单不存在", "confirm_delete": "确定要删除此工单吗?此操作不可撤销。", "confirm_delete_commit": "确定要删除此进度吗?", diff --git a/frontend/ops_vue_js/src/views/purchase/ShowOrder.vue b/frontend/ops_vue_js/src/views/purchase/ShowOrder.vue index 656aa2f..47337d4 100644 --- a/frontend/ops_vue_js/src/views/purchase/ShowOrder.vue +++ b/frontend/ops_vue_js/src/views/purchase/ShowOrder.vue @@ -341,13 +341,13 @@ onMounted(fetchOrder);
- {{ t("purchase.back_to_list") }} - + { return hasSelectedOrders || hasComment || hasPhotos }) +// 所有 commits 中关联的采购订单(去重) +const allPurchaseOrders = computed(() => { + const map = new Map() + for (const commit of commits.value) { + if (commit.purchaseOrders) { + for (const po of commit.purchaseOrders) { + if (!map.has(po.id)) { + map.set(po.id, po) + } + } + } + } + return [...map.values()] +}) + // 点击外部关闭下拉框 function onDocumentClick(e) { if (purchaseDropdownRef.value && !purchaseDropdownRef.value.contains(e.target)) { @@ -309,13 +324,13 @@ onUnmounted(() => {
- {{ t('work_order.back_to_list') }} - + {

{{ order.Description }}

+ +
+ +
+ + #{{ po.id }} {{ po.title || '' }} + + {{ getPurchaseStatusLabel(po.status) }} + + +
+