Commit a1437fd6 authored by rainbowmorel@163.com's avatar rainbowmorel@163.com

add lable

parent c5e179c5
...@@ -19,7 +19,7 @@ function BaseInfo({ title, className, children, cols = 2, id }: BaseInfoPorps) { ...@@ -19,7 +19,7 @@ function BaseInfo({ title, className, children, cols = 2, id }: BaseInfoPorps) {
<Card <Card
id={id} id={id}
title={title} title={title}
className={className} className={`mt-15 ${className}`}
> >
<div className={`base_info grid grid-cols-${cols} gap-4`}> <div className={`base_info grid grid-cols-${cols} gap-4`}>
{children} {children}
......
...@@ -2,7 +2,7 @@ import { Form, FormItemProps } from "antd"; ...@@ -2,7 +2,7 @@ import { Form, FormItemProps } from "antd";
function FormItem<values = any>(prosp: FormItemProps<values>) { function FormItem<values = any>(prosp: FormItemProps<values>) {
return ( return (
<Form.Item {...prosp} style={{ margin: 0 }} /> <Form.Item {...prosp} style={{ margin: 0 }} className="w-full" />
); );
} }
......
export * from './anchors' export * from './anchors'
export * from './label'
\ No newline at end of file
export const ReceiptAddLabel = '新增收货单';
export const ReceiptAbstractLabel = '收货单摘要';
export const SupplyMembersLabel = '供应会员';
export const NoteLabel = '备注';
export const ConsigneeLabel = '收货人';
export const ConsigneeTimeLable = '收货时间';
export const ConsigneePhoneLabel = '收货人电话';
export const DeliveryOrderNoLabel = '送货订单号';
export const DeliveryTimeLabel = '发货时间';
export const DeliveryAddrLabel = '送货自提地址';
export const LogisticsCompanyLable = '物流公司';
export const LogisticsCarNoLable = '车牌号码';
export const LogisticsNoLable = '物流单号';
import AnchorPage, { AnchorsItem } from "@/components/AnchorPage" import AnchorPage, { AnchorsItem } from "@/components/AnchorPage"
import { BaseInfo } from "@/components/BaseInfo" import { BaseInfo } from "@/components/BaseInfo"
import { useState } from "react" import { useState } from "react"
import { BillsInfo, DeliveryInfo, LogisticsInfo, Harvest, HarvestMaterial } from '../columns' import {
BillsInfo, DeliveryInfo, LogisticsInfo, Harvest, HarvestMaterial,
ReceiptAddLabel, ReceiptAbstractLabel, SupplyMembersLabel, NoteLabel, DeliveryTimeLabel,
ConsigneeLabel, DeliveryAddrLabel, DeliveryOrderNoLabel, ConsigneePhoneLabel, ConsigneeTimeLable, LogisticsCompanyLable, LogisticsCarNoLable, LogisticsNoLable
} from '../../constants'
import { DatePicker, Form, Input } from 'antd' import { DatePicker, Form, Input } from 'antd'
import { FormItem } from '@/components/FormItem' import { FormItem } from '@/components/FormItem'
...@@ -19,50 +23,69 @@ function DeliveryNoteAddForm() { ...@@ -19,50 +23,69 @@ function DeliveryNoteAddForm() {
}) })
return ( return (
<AnchorPage title="新增收获单" <AnchorPage title={ReceiptAddLabel}
anchors={anchors}> anchors={anchors}>
<BaseInfo title={BillsInfo.name} id={BillsInfo.key}> <BaseInfo title={BillsInfo.name} id={BillsInfo.key}>
<BaseInfo.BaseInfoItem label="收货单摘要"> <BaseInfo.BaseInfoItem label={ReceiptAbstractLabel}>
<FormItem> <FormItem>
<Input /> <Input />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="供应会员"> <BaseInfo.BaseInfoItem label={SupplyMembersLabel}>
<FormItem> <FormItem>
<Input /> <Input />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="备注"> <BaseInfo.BaseInfoItem label={NoteLabel}>
<FormItem> <FormItem>
<Input /> <Input />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
</BaseInfo> </BaseInfo>
<BaseInfo title={DeliveryInfo.name} id={DeliveryInfo.key}> <BaseInfo title={Harvest.name} id={Harvest.key}>
<BaseInfo.BaseInfoItem label="发货时间"> <BaseInfo.BaseInfoItem label={ConsigneeTimeLable}>
<FormItem> <FormItem>
<DatePicker className="w-full" /> <DatePicker className="w-full" />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="收货人"> <BaseInfo.BaseInfoItem label={ConsigneeLabel}>
<FormItem> <FormItem>
<Input /> <Input />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="收货人电话"> <BaseInfo.BaseInfoItem label={ConsigneePhoneLabel}>
<FormItem> <FormItem>
<Input /> <Input />
</FormItem> </FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
</BaseInfo> </BaseInfo>
<BaseInfo title={DeliveryInfo.name} id={DeliveryInfo.key}>
<BaseInfo.BaseInfoItem label={DeliveryOrderNoLabel}>
HF200019343344
</BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={DeliveryAddrLabel}>
<div className="#LogisticsAddr">
<div className="#LogisticsAddrDisc leading-10">
广东省广州市海珠区新港东路1068号中洲中心
</div>
<div className="#LogisticsAddrName">
张三/13400001999
</div>
</div>
</BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={DeliveryTimeLabel}>
2012 / 09 / 10
</BaseInfo.BaseInfoItem>
</BaseInfo>
<BaseInfo title={LogisticsInfo.name} id={LogisticsInfo.key}> <BaseInfo title={LogisticsInfo.name} id={LogisticsInfo.key}>
<BaseInfo.BaseInfoItem label=" 送货订单号"> <BaseInfo.BaseInfoItem label={LogisticsCompanyLable}>
HF200019343344 HF200019343344
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="送货自提地址"> <BaseInfo.BaseInfoItem label={LogisticsCarNoLable}>
<div className="#LogisticsAddr"> <div className="#LogisticsAddr">
<div className="#LogisticsAddrDisc leading-10"> <div className="#LogisticsAddrDisc leading-10">
广东省广州市海珠区新港东路1068号中洲中心 广东省广州市海珠区新港东路1068号中洲中心
...@@ -72,13 +95,13 @@ function DeliveryNoteAddForm() { ...@@ -72,13 +95,13 @@ function DeliveryNoteAddForm() {
</div> </div>
</div> </div>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label="收货人电话"> <BaseInfo.BaseInfoItem label={LogisticsNoLable}>
<FormItem> 2012 / 09 / 10
<Input />
</FormItem>
</BaseInfo.BaseInfoItem> </BaseInfo.BaseInfoItem>
</BaseInfo> </BaseInfo>
</AnchorPage> </AnchorPage>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment