From 4b9d0002d738fb9ae1b565113c9474dec35151b4 Mon Sep 17 00:00:00 2001 From: shenyifei Date: Mon, 29 Dec 2025 15:19:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(order):=20=E4=BC=98=E5=8C=96=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=E5=92=8C=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复经销商信息显示逻辑,正确处理名称和瓜品等级的显示 - 移除PDF自动保存功能,仅保留下载成功提示 - 更新按钮样式为外框样式,改善视觉效果 - 优化箱重计算精度,添加小数位处理 - 移除货币格式化,直接显示数值 - 添加供应商银行名称字段并优化验证逻辑 - 改进供应商信息表单的空值处理 - 优化车次号获取逻辑,支持强制重新获取 - 实现包装信息表格的可编辑功能,支持销售单价修改 - 修复表格渲染逻辑,正确处理合计行显示 - 更新应用版本号至v0.0.61 - 优化PDF模板中经销商和目的地信息的显示逻辑 - 修复订单转换器中的价格计算逻辑 - 调整发货单转换器中的包装分组逻辑 --- .../src/components/delivery/Step3Success.tsx | 29 +- .../delivery/section/DealerInfo.tsx | 10 +- .../purchase/module/MadePreview.tsx | 6 +- .../purchase/module/MarketPreview.tsx | 6 +- .../purchase/module/SupplierInfo.tsx | 11 +- .../purchase/section/BasicInfoSection.tsx | 24 +- .../purchase/section/PackageInfoSection.tsx | 279 ++++++++++++------ packages/app-client/src/constant/app.ts | 2 +- .../utils/classes/templates/PdfTemplate.ts | 11 +- .../src/utils/converters/orderConverter.ts | 17 +- .../utils/converters/orderShipConverter.ts | 5 +- 11 files changed, 256 insertions(+), 144 deletions(-) diff --git a/packages/app-client/src/components/delivery/Step3Success.tsx b/packages/app-client/src/components/delivery/Step3Success.tsx index 3b58807..2ecb43d 100644 --- a/packages/app-client/src/components/delivery/Step3Success.tsx +++ b/packages/app-client/src/components/delivery/Step3Success.tsx @@ -65,25 +65,11 @@ export default function Step3Success(props: Step3SuccessProps) { if (downloadRes.tempFilePath) { setTempFilePath(downloadRes.tempFilePath); - - // 保存PDF到手机 - if (Taro.saveFile) { - await Taro.saveFile({ - tempFilePath: downloadRes.tempFilePath, - }); - - Taro.showToast({ - title: "PDF下载成功", - icon: "success", - duration: 2000, - }); - } else { - // 如果不支持saveFile,直接提示下载完成 - Taro.openDocument({ - filePath: downloadRes.tempFilePath, - showMenu: true, - }); - } + Taro.showToast({ + title: "PDF下载成功", + icon: "success", + duration: 2000, + }); } } catch (error) { console.error("下载PDF失败:", error); @@ -173,8 +159,9 @@ export default function Step3Success(props: Step3SuccessProps) { {tempFilePath && (