Commit e0431a40 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 采购能力 -> 采购竞价国际化

parent 62166fe8
const PurchaseLocales = {
// table
'table.purchase.added': '新建',
'table.purchase.more': '更多',
'table.purchase.eidt': '修改',
'table.purchase.submit': '提交',
'table.purchase.delete': '删除',
......@@ -103,7 +104,29 @@ const PurchaseLocales = {
'table.purchase.moduleWarning1': '请先创建采购门户!',
// detail
'detail.purchase.email': '电子邮箱',
'detail.purchase.unitAddress': '单位地址',
'detail.purchase.startSignUp': '报名要求时间',
'detail.purchase.demandUrls': '报名要求附件',
'detail.purchase.biddingStartTime': '竞价时间',
'detail.purchase.startingPrice': '起拍价',
'detail.purchase.targetPrice': '目标价',
'detail.purchase.minPrice': '最小价差',
'detail.purchase.allowPurchaseCount': '允许报价次数',
'detail.purchase.isOpenPurchase': '公开当前最低报价',
'detail.purchase.isOpenRanking': '公开报价排名',
'detail.purchase.externalLogStates': '外部流转',
'detail.purchase.interiorLogStates': '内部流转',
'detail.purchase.examineInteriorLogStates': '竞价结果内部流转',
'detail.purchase.biddingNo': '竞价单号',
'detail.purchase.awardResults': '中标公示',
'detail.purchase.biddingDetails': '竞价单摘要',
'detail.purchase.progressLayout': '流转进度',
'detail.purchase.bidResultLayout': '竞价结果',
'detail.purchase.bidRulesLayout': '竞价规则',
'detail.purchase.signUpLayout': '报名要求',
'detail.purchase.signUpMsgLayout': '报名信息',
'detail.purchase.signUpFileLayout': '报名文件',
'detail.purchase.basicLayout': '基本信息',
'detail.purchase.basicLayout1': '基本流程',
'detail.purchase.offerLayout': '报价信息',
......@@ -218,6 +241,7 @@ const PurchaseLocales = {
'detail.purchase.demendSend': '需求发送',
'detail.purchase.entryMall': '进入店铺',
'detail.purchase.jointType': '对接方式',
'detail.purchase.seeBidStep': '查看竞价过程',
'detail.purchase.modalTitle': '公开招标',
'detail.purchase.modalTitle1': '选择货品',
......@@ -230,6 +254,9 @@ const PurchaseLocales = {
'detail.purchase.modalTitle8': '选择货品添加',
'detail.purchase.modalTitle9': '导入货品生成',
'detail.purchase.modalTitle10': '汇总生成采购计划',
'detail.purchase.modalTitle11': '确认竞价结果',
'detail.purchase.modalTitle12': '提交竞价结果',
'detail.purchase.modalTitle13': '报价明细',
'detail.purchase.message1': '投标开始时间必须大于报名截止时间',
'detail.purchase.message2': '投标开始时间必须大于资质预审截止时间',
......@@ -296,6 +323,14 @@ const PurchaseLocales = {
'detail.purchase.tips6': '需求发布至采购门户',
'detail.purchase.tips7': '选择与当前会员有归属关系的会员且角色类型为服务提供的会员(供应商),需求只发送给指定会员',
'detail.purchase.tips8': '是否将选择的需求计划汇总生成采购计划?生成采购计划后如需重新生成,需要先删除已生成的采购计划',
'detail.purchase.tips9': '初始起拍价,首次报价要低于或等于起拍价',
'detail.purchase.tips10': '期望成交价格',
'detail.purchase.tips11': '每次报价降价幅度须大于或等于最小价差',
'detail.purchase.tips12': '允许每个供应商最多可以报价的次数',
'detail.purchase.tips13': '选择公开当前最低报价,竞价过程中将供应商所报当前最低价在竞价页面即时公开。',
'detail.purchase.tips14': '选择公开报价排名,竞价过程中将供应商当前报价排名在竞价页面即时公开。',
'detail.purchase.isMix1': '公开当前最低',
'detail.purchase.isMix2': '报价',
}
export default PurchaseLocales
......@@ -300,7 +300,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
<Text strong>{(fetchdata && fetchdata.memberName) && fetchdata.memberName}</Text>
</Form.Item>
<Form.Item
label='单据时间'
label={intl.formatMessage({ id: 'table.purchase.dementCreateTime' })}
name='createTime'
>
<Text strong>{(fetchdata && fetchdata.createTime) && formatTimeString(fetchdata.createTime)}</Text>
......@@ -312,7 +312,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
<Text strong>{(fetchdata && fetchdata.biddingNo) && fetchdata.biddingNo}</Text>
</Form.Item>
<Form.Item
label='外部状态'
label={intl.formatMessage({ id: 'table.purchase.externalStatus' })}
name='externalState'
>
<Text type="warning" strong>{(fetchdata && fetchdata.externalState) && fetchdata.externalStateName}</Text>
......
......@@ -25,7 +25,7 @@ const ReadyAdd = () => {
const ref = useRef<any>({});
const [rowkeys, setRowKeys] = useState<Array<number>>([]);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -35,7 +35,7 @@ const ReadyAdd = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -44,13 +44,13 @@ const ReadyAdd = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......@@ -64,18 +64,18 @@ const ReadyAdd = () => {
key: 'operate',
dataIndex: 'operate',
render: (text: any, record: any) => <>
{record.button === 1 && <Popconfirm title="确定要提交审核吗?" okText="是" cancelText="否" onConfirm={() => fetchSubmitBatch(record.id)}>
{record.button === 1 && <Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm1' })} okText={intl.formatMessage({ id: 'table.purchase.okText' })} cancelText={intl.formatMessage({ id: 'table.purchase.cancelText' })} onConfirm={() => fetchSubmitBatch(record.id)}>
<Button type='link'>
提交
{intl.formatMessage({ id: 'table.purchase.submit' })}
</Button>
</Popconfirm>}
<Dropdown overlay={() => (
<Menu onClick={(e) => handleMenuClick(e, record)}>
<Menu.Item key="1">编辑</Menu.Item>
<Menu.Item key="2" disabled={!(record.button === 1)}>删除</Menu.Item>
<Menu.Item key="1">{intl.formatMessage({ id: 'detail.purchase.edit' })}</Menu.Item>
<Menu.Item key="2" disabled={!(record.button === 1)}>{intl.formatMessage({ id: 'table.purchase.delete' })}</Menu.Item>
</Menu>
)}>
<Button type='link'>更多<CaretDownOutlined /></Button>
<Button type='link'>{intl.formatMessage({ id: 'table.purchase.more' })}<CaretDownOutlined /></Button>
</Dropdown>
</>
}];
......@@ -137,19 +137,19 @@ const ReadyAdd = () => {
type="primary"
icon={<PlusOutlined />}
>
新建
{intl.formatMessage({ id: 'table.purchase.added' })}
</Button>
<Button
onClick={() => fetchSubmitBatch()}
disabled={rowkeys.length === 0}
>
批量提交审核
{intl.formatMessage({ id: 'table.purchase.submitBatch' })}
</Button>
<Button
onClick={() => fetchDeleteBatch()}
disabled={rowkeys.length === 0}
>
批量删除
{intl.formatMessage({ id: 'table.purchase.deleteBatch' })}
</Button>
</Space>
</Col>
......
......@@ -29,7 +29,7 @@ const ReadyBid = () => {
key: 'id',
render: (t, r, i) => ++i
}, {
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -39,7 +39,7 @@ const ReadyBid = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -48,13 +48,13 @@ const ReadyBid = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -34,7 +34,7 @@ const ReadyConfirm = () => {
key: 'id',
render: (t, r, i) => ++i
}, {
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -51,7 +51,7 @@ const ReadyConfirm = () => {
<EyePreview url={`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`}>{text}</EyePreview>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -60,13 +60,13 @@ const ReadyConfirm = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -29,7 +29,7 @@ const ReadyExamineOne = () => {
const [id, setId] = useState<any>();
const [visible, setVisible] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -39,7 +39,7 @@ const ReadyExamineOne = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -48,13 +48,13 @@ const ReadyExamineOne = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -28,7 +28,7 @@ const ReadyExamineResultOne = () => {
const [id, setId] = useState<any>();
const [visible, setVisible] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -45,7 +45,7 @@ const ReadyExamineResultOne = () => {
<EyePreview url={`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`}>{text}</EyePreview>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -54,13 +54,13 @@ const ReadyExamineResultOne = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -28,7 +28,7 @@ const ReadyExamineResultTwo = () => {
const [id, setId] = useState<any>();
const [visible, setVisible] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -45,7 +45,7 @@ const ReadyExamineResultTwo = () => {
<EyePreview url={`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`}>{text}</EyePreview>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -54,13 +54,13 @@ const ReadyExamineResultTwo = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -33,7 +33,7 @@ const ReadyExamineSignUp = () => {
key: 'id',
render: (t, r, i) => ++i
}, {
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -62,13 +62,13 @@ const ReadyExamineSignUp = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -29,7 +29,7 @@ const ReadyExamineTwo = () => {
const [id, setId] = useState<any>();
const [visible, setVisible] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -39,7 +39,7 @@ const ReadyExamineTwo = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -48,13 +48,13 @@ const ReadyExamineTwo = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -29,7 +29,7 @@ const ReadySubmit = () => {
const [id, setId] = useState<any>();
const [visible, setVisible] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -39,7 +39,7 @@ const ReadySubmit = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -48,13 +48,13 @@ const ReadySubmit = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -29,7 +29,7 @@ const ReadySubmitExamineResult = () => {
const [visible, setVisible] = useState<boolean>(false);
const [confirmLoading, setConfirmLoading] = useState<boolean>(false);
const columns: ColumnType<any>[] = [{
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -46,7 +46,7 @@ const ReadySubmitExamineResult = () => {
<EyePreview url={`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`}>{text}</EyePreview>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -55,13 +55,13 @@ const ReadySubmitExamineResult = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
......@@ -32,7 +32,7 @@ const Search = () => {
key: 'id',
render: (t, r, i) => ++i
}, {
title: '竞价单号/摘要',
title: intl.formatMessage({ id: 'table.purchase.biddingNo' }),
key: 'biddingNo',
dataIndex: 'biddingNo',
render: (text: any, record: any) => (
......@@ -43,7 +43,7 @@ const Search = () => {
</Space>
)
}, {
title: '竞价开始/结束时间',
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
key: 'biddingStartTime',
dataIndex: 'biddingStartTime',
render: (text: any, record: any) => <>
......@@ -52,13 +52,13 @@ const Search = () => {
</>,
width: 180
}, {
title: '单据时间',
title: intl.formatMessage({ id: 'table.purchase.dementCreateTime' }),
key: 'createTime',
dataIndex: 'createTime',
render: (text: any, record: any) => formatTimeString(text),
width: 180
}, {
title: '外部状态',
title: intl.formatMessage({ id: 'table.purchase.externalStatus' }),
key: 'externalState',
dataIndex: 'externalState',
render: (text: any, record: any) => <StatusTag type={BID_EXTERNALSTATE_COLOR(text)} title={record.externalStateName} />
......
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