Commit 6b6e8145 authored by Gavin Peng's avatar Gavin Peng

feat: 添加计划送货详情常量

parent 3391029c
......@@ -30,6 +30,16 @@ const Material: AnchorsItem = {
name: "送货物料"
}
const Circulation: AnchorsItem = {
key: 'Circulation',
name: "流转进度"
}
const PlanMaterial: AnchorsItem = {
key: 'PlanMaterial',
name: "计划送货物料"
}
const DeliveryNoteQuery: AnchorsItem[] = [
BaseInfo,
Distribution,
......@@ -39,6 +49,12 @@ const DeliveryNoteQuery: AnchorsItem[] = [
Material
]
const DeliveryPlanDetails: AnchorsItem[] = [
Circulation,
BaseInfo,
PlanMaterial,
]
export {
BaseInfo,
BillsInfo,
......@@ -46,5 +62,8 @@ export {
LogisticsInfo,
Material,
Distribution,
DeliveryNoteQuery
Circulation,
PlanMaterial,
DeliveryNoteQuery,
DeliveryPlanDetails
}
\ No newline at end of file
......@@ -6,32 +6,31 @@ import React, { useState } from 'react'
import { history } from 'umi'
import { Card, Descriptions, Steps } from 'antd'
import AnchorPage from '@/components/AnchorPage'
import { AnchorsItem } from "@/components/AnchorPage"
import BaseInfo from '@/components/BaseInfo/BaseInfo'
import FlowSwitchSteps from '@/components/FlowSwitchSteps/FlowSwitchSteps'
import { BaseInfo as base_Info, Circulation, DeliveryPlanDetails, PlanMaterial } from '../../constants'
const DeliveryPlanManagementDetails: React.FC = () => {
const [iAnchors, setiAnchors] = useState<AnchorsItem[]>(DeliveryPlanDetails)
const [details, setDetails] = useState<any>({})
return (
<AnchorPage
title={details?.name || '没有title'}
onBack={() => history.goBack()}
anchors={[
{ key: 'taskList', name: '流转进度' },
{ key: 'taskList2', name: '基本信息' },
{ key: 'taskList3', name: '计划送货物料' },
]}
anchors={iAnchors}
>
<BaseInfo id="taskList" className="mt-10" title='流转进度' cols={1}>
<BaseInfo className="mt-10" title={Circulation.name} id={Circulation.key}>
<Steps progressDot current={0}>
<Steps.Step title='采购商' description='提交送货计划' />
<Steps.Step title='供应商' description='确认送货计划' />
</Steps>
</BaseInfo>
<BaseInfo id="taskList2" className="mt-10" title='基本信息'>
<BaseInfo className="mt-10" title={base_Info.name} id={base_Info.key}>
9999
</BaseInfo>
<BaseInfo id="taskList" className="mt-10" title='计划送货物料'>
<BaseInfo className="mt-10" title={PlanMaterial.name} id={PlanMaterial.key}>
计划送货物料
</BaseInfo>
</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