From 630d46b27994a238be153d80e25add69662a8da3 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Wed, 10 Jun 2026 16:47:02 +0800 Subject: [PATCH] 1 --- .../app/business/logistics/logistics.vue | 66 +++++++++++-------- .../problemFeedback/problemFeedback.vue | 8 ++- 2 files changed, 44 insertions(+), 30 deletions(-) diff --git a/src/views/app/business/logistics/logistics.vue b/src/views/app/business/logistics/logistics.vue index f2e8c25..f3fb364 100644 --- a/src/views/app/business/logistics/logistics.vue +++ b/src/views/app/business/logistics/logistics.vue @@ -287,7 +287,8 @@ render: (h, params) => { let re = "", color = ""; - if (this.getTimeDifference(params.row.mustFinishTime) > 15 && (params.row.orderStatus == + if (this.getTimeDifference(params.row.mustFinishTime) > 15 && (params.row + .orderStatus == "0" || params.row.orderStatus == "1")) { re = params.row.mustFinishTime; color = "red"; @@ -340,34 +341,43 @@ align: "center", fixed: "right", render: (h, params) => { - return h("div", [ - h( - "a", { - on: { - click: () => { - this.orderDetail(params.row); - }, + // 公共部分:订单详情链接 + const orderDetailLink = h( + "a", { + on: { + click: () => { + this.orderDetail(params.row); }, }, - "订单详情" - ), - h("Divider", { - props: { - type: "vertical", - }, - }), - h( - "a", { - on: { - click: () => { - this.unbind(params.row); + }, + "订单详情" + ); + + // 根据 status == 10 决定是否渲染“改派订单”及分隔符 + if (params.row.status != 3) { + return h("div", [ + orderDetailLink, + h("Divider", { + props: { + type: "vertical" + } + }), + h( + "a", { + on: { + click: () => { + this.unbind(params.row); + }, }, }, - }, - "改派订单" - ), - ]); - }, + "改派订单" + ), + ]); + } else { + // status 不为 10 时只显示订单详情(不加分隔符和改派订单) + return h("div", [orderDetailLink]); + } + } }, ], chooseColumns: [], @@ -398,8 +408,8 @@ runshOrder({ deliveryId: this.orderId, newWorkerId: item.workerId, - newWorkerName:item.workerName, - newWorkerPhone:item.mobile, + newWorkerName: item.workerName, + newWorkerPhone: item.mobile, }).then((res) => { this.loading = false; if (res.success) { @@ -500,7 +510,7 @@ this.importColumns = []; this.uploadfile = {}; }, - + showDetail(v) { // 转换null为"" for (let attr in v) { diff --git a/src/views/app/business/problemFeedback/problemFeedback.vue b/src/views/app/business/problemFeedback/problemFeedback.vue index bd6136a..e1655c2 100644 --- a/src/views/app/business/problemFeedback/problemFeedback.vue +++ b/src/views/app/business/problemFeedback/problemFeedback.vue @@ -7,8 +7,12 @@
- - + +
+
完成
+ +
  单后免单
+