import { View } from "@tarojs/components"; import { Fragment } from "react"; export default function OtherInfo(props: { module: any }) { const { module } = props; const { config } = module; return ( 车次: {config.vehicleNumber} 收货地: {config.destination} {config.showShippingFrom && ( 产地: {config.shippingFrom} )} 供应商: {config.accountCompany} 发车时间: {config.date} {config.showEstimatedArrivalTime && ( 到达时间: {config.estimatedArrivalTime} )} {config.data?.map((item: any, number: number) => { return ( {config.showGrade && ( 品名: {item.watermelonGrade} )} 发货重量: 以公司入库重量为准。 净瓜单价: {item.unitPrice} {config.unitPriceUnit === "1" ? "元/斤" : "元/公斤"} ); })} 大约重量: {config.data?.reduce((acc: any, cur: any) => acc + cur.netWeight, 0)} 箱数 {config.data?.reduce((acc: any, cur: any) => acc + cur.boxCount, 0)} 车号: {config.licensePlate} 手机号: {config.driverPhone} ); }