Commit 78291ab6 authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'v2-220418-order' into 'v2-220418'

fix: 修复送货计划管理、协同细节问题 See merge request linkseeks-design/pro-platform!520
parents 5bcb1a74 ae45ff0e
import { Button, Col, Drawer, Form, Input, message, Pagination, Radio, Row, Table } from "antd" import { Button, Col, Drawer, Form, Input, message, Pagination, Radio, Row, Space, Table } from "antd"
import { useCallback, useEffect, useState } from "react" import { useCallback, useEffect, useState } from "react"
import { TableMemberColumn } from "./columns" import { TableMemberColumn } from "./columns"
import { LinkOutlined } from "@ant-design/icons" import { LinkOutlined } from "@ant-design/icons"
...@@ -101,7 +101,7 @@ function RoleSelect(props: RoleSelectProps) { ...@@ -101,7 +101,7 @@ function RoleSelect(props: RoleSelectProps) {
<RowStyleLayout> <RowStyleLayout>
<Input.Group compact> <Input.Group compact>
<Input value={value?.name} disabled /> <Input value={value?.name} disabled />
{ !localDisabled && <Button type='primary' icon={<LinkOutlined />} disabled={localDisabled} onClick={showDrawer}></Button> } {!localDisabled && <Button type='primary' icon={<LinkOutlined />} disabled={localDisabled} onClick={showDrawer}></Button>}
</Input.Group> </Input.Group>
</RowStyleLayout> </RowStyleLayout>
...@@ -111,14 +111,14 @@ function RoleSelect(props: RoleSelectProps) { ...@@ -111,14 +111,14 @@ function RoleSelect(props: RoleSelectProps) {
onClose={closeDrawer} onClose={closeDrawer}
width="50vw" width="50vw"
footer={ footer={
<Button.Group> <Space style={{ width: '100%', justifyContent: 'flex-end' }}>
<Button type="primary" onClick={handleSubmit}> <Button type="primary" onClick={handleSubmit}>
确定 确定
</Button> </Button>
<Button onClick={closeDrawer}> <Button onClick={closeDrawer}>
取消 取消
</Button> </Button>
</Button.Group> </Space>
} }
> >
<Form form={form}> <Form form={form}>
...@@ -149,7 +149,7 @@ function RoleSelect(props: RoleSelectProps) { ...@@ -149,7 +149,7 @@ function RoleSelect(props: RoleSelectProps) {
columns={TableMemberColumn} columns={TableMemberColumn}
dataSource={dataSource} dataSource={dataSource}
pagination={{ pagination={{
position: ['bottomCenter'], position: ['bottomRight'],
total, total,
pageSize, pageSize,
current, current,
...@@ -164,7 +164,7 @@ function RoleSelect(props: RoleSelectProps) { ...@@ -164,7 +164,7 @@ function RoleSelect(props: RoleSelectProps) {
}} }}
/> />
</Radio.Group> </Radio.Group>
</Drawer> </Drawer>
</> </>
); );
......
...@@ -157,7 +157,7 @@ const DeliveryPlanCollaborationAwaitDetails: React.FC = () => { ...@@ -157,7 +157,7 @@ const DeliveryPlanCollaborationAwaitDetails: React.FC = () => {
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
<BaseInfo.BaseInfoItem label={PlanNumber}> {details?.planNo} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={PlanNumber}> {details?.planNo} </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={BuyerLabel}> {details?.vendorMemberName} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={BuyerLabel}> {details?.buyerMemberName} </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={PlanSummary}> {details?.digest} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={PlanSummary}> {details?.digest} </BaseInfo.BaseInfoItem>
......
...@@ -245,7 +245,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => { ...@@ -245,7 +245,7 @@ const DeliveryPlanCollaborationDetails: React.FC = () => {
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
<BaseInfo.BaseInfoItem label={PlanNumber}> {details?.planNo} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={PlanNumber}> {details?.planNo} </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={BuyerLabel}> {details?.vendorMemberName} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={BuyerLabel}> {details?.buyerMemberName} </BaseInfo.BaseInfoItem>
<BaseInfo.BaseInfoItem label={PlanSummary}> {details?.digest} </BaseInfo.BaseInfoItem> <BaseInfo.BaseInfoItem label={PlanSummary}> {details?.digest} </BaseInfo.BaseInfoItem>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
import React, { useEffect, useRef, useState } from 'react' import React, { useEffect, useRef, useState } from 'react'
import AnchorPage, { AnchorsItem } from '@/components/AnchorPage' import AnchorPage, { AnchorsItem } from '@/components/AnchorPage'
import { history } from 'umi' import { history } from 'umi'
import { Circulation, ConfirmDeliveryPlan, Purchaser, SubmitDeliveryPlan, BaseInfo as base_Info, Supplier, PlanningCycle, SupplyMembersLabel, PlanSummary, Remarks, PlannedDelivery, DeliveryPlanText, DeliveryPlanRemark, CreateDeliveryPlanTitleB2B } from '../../constants' import { BaseInfo as base_Info, PlanningCycle, SupplyMembersLabel, PlanSummary, Remarks, PlannedDelivery, DeliveryPlanText, DeliveryPlanRemark, CreateDeliveryPlanTitleB2B } from '../../constants'
import { Button, DatePicker, Form, Input, InputNumber, message, Space, Spin, Steps, Table } from 'antd' import { Button, DatePicker, Form, Input, InputNumber, message, Space, Spin, Steps, Table } from 'antd'
import { CaretDownOutlined, CaretRightOutlined, SaveOutlined } from '@ant-design/icons' import { CaretDownOutlined, CaretRightOutlined, SaveOutlined } from '@ant-design/icons'
import BaseInfo from '@/components/BaseInfo/BaseInfo' import BaseInfo from '@/components/BaseInfo/BaseInfo'
...@@ -51,7 +51,7 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => { ...@@ -51,7 +51,7 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => {
const expandedRowRender = (record, index) => { const expandedRowRender = (record, index) => {
return <div> return <div>
<Table rowKey={'orderProductId'} columns={expandIconColumn} dataSource={record.orders} pagination={false} tableLayout="fixed" /> <Table rowKey={'orderProductId'} columns={expandIconColumn} dataSource={record.orders} pagination={false} tableLayout="fixed" scroll={{ x: '100%' }}/>
</div> </div>
} }
...@@ -124,7 +124,7 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => { ...@@ -124,7 +124,7 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => {
const dates = getDayAll(startDate, endDate) const dates = getDayAll(startDate, endDate)
datesRef.current = dates datesRef.current = dates
setSelectedDate([startDate, endDate]) setSelectedDate([startDate, endDate])
const datesColumn = dates.map((item, i) => ({ title: item.substr(1), dataIndex: item, key: item, width: 120, align: 'center', })) const datesColumn = dates.map((item, i) => ({ title: item.substr(1), dataIndex: item, key: item, width: 90, align: 'center', }))
const datesExpandIconColumn = dates.map((item, i) => ({ const datesExpandIconColumn = dates.map((item, i) => ({
title: item.substr(1), title: item.substr(1),
dataIndex: item, dataIndex: item,
...@@ -215,12 +215,6 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => { ...@@ -215,12 +215,6 @@ const DeliveryPlanAwaitB2BCreate: React.FC = () => {
labelAlign='left' labelAlign='left'
form={form} form={form}
> >
{/* <BaseInfo className='mt-0' title={Circulation.name} id={Circulation.key} cols={1}>
<Steps progressDot current={0}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} />
</Steps>
</BaseInfo> */}
<BaseInfo className='mt-0' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-0' title={base_Info.name} id={base_Info.key}>
<Form.Item <Form.Item
{...formItemLayout} {...formItemLayout}
......
...@@ -128,8 +128,8 @@ const DeliveryPlanAwaitB2BDetails: React.FC = () => { ...@@ -128,8 +128,8 @@ const DeliveryPlanAwaitB2BDetails: React.FC = () => {
} }
> >
<Steps progressDot current={details?.outerStatus - 1}> <Steps progressDot current={details?.outerStatus - 1}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} /> <Steps.Step title={SubmitDeliveryPlan} description={Purchaser} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} /> <Steps.Step title={ConfirmDeliveryPlan} description={Supplier} />
</Steps> </Steps>
</BaseInfo> </BaseInfo>
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
......
...@@ -199,8 +199,8 @@ const DeliveryPlanAwaitB2BUpdate: React.FC = () => { ...@@ -199,8 +199,8 @@ const DeliveryPlanAwaitB2BUpdate: React.FC = () => {
} }
> >
<Steps progressDot current={0}> <Steps progressDot current={0}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} /> <Steps.Step title={SubmitDeliveryPlan} description={Purchaser} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} /> <Steps.Step title={ConfirmDeliveryPlan} description={Supplier} />
</Steps> </Steps>
</BaseInfo> </BaseInfo>
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
......
...@@ -123,8 +123,8 @@ const DeliveryPlanAwaitSRMDetails: React.FC = () => { ...@@ -123,8 +123,8 @@ const DeliveryPlanAwaitSRMDetails: React.FC = () => {
} }
> >
<Steps progressDot current={details?.outerStatus - 1}> <Steps progressDot current={details?.outerStatus - 1}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} /> <Steps.Step title={SubmitDeliveryPlan} description={Purchaser} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} /> <Steps.Step title={ConfirmDeliveryPlan} description={Supplier} />
</Steps> </Steps>
</BaseInfo> </BaseInfo>
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
......
...@@ -200,8 +200,8 @@ const DeliveryPlanAwaitSRMUpdate: React.FC = () => { ...@@ -200,8 +200,8 @@ const DeliveryPlanAwaitSRMUpdate: React.FC = () => {
} }
> >
<Steps progressDot current={0}> <Steps progressDot current={0}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} /> <Steps.Step title={SubmitDeliveryPlan} description={Purchaser} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} /> <Steps.Step title={ConfirmDeliveryPlan} description={Supplier} />
</Steps> </Steps>
</BaseInfo> </BaseInfo>
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
......
...@@ -202,8 +202,8 @@ const DeliveryPlanManagementUpdate: React.FC = () => { ...@@ -202,8 +202,8 @@ const DeliveryPlanManagementUpdate: React.FC = () => {
} }
> >
<Steps progressDot current={details?.status === 4 ? 1 : 0}> <Steps progressDot current={details?.status === 4 ? 1 : 0}>
<Steps.Step title={Purchaser} description={SubmitDeliveryPlan} /> <Steps.Step title={SubmitDeliveryPlan} description={Purchaser} />
<Steps.Step title={Supplier} description={ConfirmDeliveryPlan} /> <Steps.Step title={ConfirmDeliveryPlan} description={Supplier} />
</Steps> </Steps>
</BaseInfo> </BaseInfo>
<BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}> <BaseInfo className='mt-16' title={base_Info.name} id={base_Info.key}>
......
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