- 添加 DealerInfo、WeightInfo 等多个发货单据信息展示组件 - 实现 Template 类用于将模块配置转换为 HTML 字符串 - 更新 OrderVehicle 组件以简化经销商数据设置逻辑 - 移除冗余的单据类型判断逻辑,统一处理发货单据生成流程 - 导出新增的 DeliveryStep 和 PurchaseStep 相关组件 - 在发货列表页集成新的发货单据生成功能并优化界面交互
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import { View } from "@tarojs/components";
|
|
|
|
export default function DealerInfo(props: { module: any }) {
|
|
const { module } = props;
|
|
const { config } = module;
|
|
return (
|
|
<View
|
|
key={module.id}
|
|
className={"preview grid w-full grid-cols-8 gap-0 text-lg font-bold"}
|
|
>
|
|
<View className="col-span-1"></View>
|
|
{config.showDealerName || config.showWatermelonGrade ? (
|
|
<View className="col-span-3 flex items-end justify-center border-b border-black">
|
|
{config.showWatermelonGrade
|
|
? `${config.dealerName}-${config.watermelonGrade}`
|
|
: config.dealerName}
|
|
</View>
|
|
) : (
|
|
<View className="col-span-3"></View>
|
|
)}
|
|
{config.showDestination || config.showVehicleNumber ? (
|
|
<View className="col-span-3 flex items-end justify-center border-b border-black">
|
|
{config.destination}
|
|
{config.vehicleNumber}
|
|
</View>
|
|
) : (
|
|
<View className="col-span-3"></View>
|
|
)}
|
|
<View className="col-span-1"></View>
|
|
</View>
|
|
);
|
|
}
|