From 743afa8dcdeecff893b04bc3eed4c63f64052c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 7 Feb 2026 13:17:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(gltTicketOrder):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用 formatDay 函数格式化配送时间为 yyyy-MM-dd 格式 - 添加图片预览功能,将留档图片链接替换为 a-image 组件 - 新增 formatDay 工具函数用于日期格式化 - 移除 nickname 列的固定宽度设置 - 为送水数量列添加固定宽度 120px - 注释掉开发环境中的 VITE_API_URL 配置项 --- .env.development | 2 +- src/views/glt/gltTicketOrder/index.vue | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index fbcc74b..b8ccd8b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理(开发环境) -VITE_API_URL=http://127.0.0.1:9200/api +#VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api diff --git a/src/views/glt/gltTicketOrder/index.vue b/src/views/glt/gltTicketOrder/index.vue index d726b38..81118a2 100644 --- a/src/views/glt/gltTicketOrder/index.vue +++ b/src/views/glt/gltTicketOrder/index.vue @@ -43,7 +43,7 @@ @@ -313,6 +313,10 @@ return value ? toDateString(value, 'yyyy-MM-dd HH:mm:ss') : '-'; }; + const formatDay = (value?: string) => { + return value ? toDateString(value, 'yyyy-MM-dd') : '-'; + }; + const getOrderStatus = (record: any) => { const { sendTime, arriveTime, signTime } = getOrderTimes(record); if (signTime) return { value: 3, label: '已签收', color: 'red' }; @@ -355,8 +359,7 @@ { title: '订水用户', dataIndex: 'nickname', - key: 'nickname', - width: 360 + key: 'nickname' }, // { // title: '送货地址', @@ -377,7 +380,8 @@ title: '送水数量(桶)', dataIndex: 'totalNum', key: 'totalNum', - align: 'center' + align: 'center', + width: 120 }, // { // title: '买家留言',