Commit 06d5c944 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

🐞 fix(11):

parent c6d177b9
......@@ -13,14 +13,14 @@ export const useSelfTable = () => {
const callForBidColumns: any[] = [
{
title: '序号',
align: 'center',
align: 'left',
dataIndex: 'id',
key: 'id',
render: (text, record, index) => index + 1
},
{
title: '招标编号/项目',
align: 'center',
align: 'left',
dataIndex: 'code',
key: 'code',
render: (text, record) => <>
......@@ -32,21 +32,21 @@ export const useSelfTable = () => {
},
{
title: '采购类型',
align: 'center',
align: 'left',
dataIndex: 'purchaseType',
key: 'purchaseType',
render: (t) => PURCHASE_TYPE[t]
},
{
title: '招标方式',
align: 'center',
align: 'left',
dataIndex: 'inviteTenderType',
key: 'inviteTenderType',
render: (t) => CALLFORBID_TYPE[t]
},
{
title: '发布时间',
align: 'center',
align: 'left',
dataIndex: 'createTime',
key: 'createTime',
render: (text, record) => formatTimeString(record.createTime),
......@@ -54,7 +54,7 @@ export const useSelfTable = () => {
},
{
title: '报名开始/截止时间',
align: 'center',
align: 'left',
dataIndex: 'registerStartTime',
key: 'registerStartTime',
render: (text, record) => <>
......@@ -65,7 +65,7 @@ export const useSelfTable = () => {
},
{
title: '资格预审开始/截止时间',
align: 'center',
align: 'left',
dataIndex: 'checkStartTime',
key: 'checkStartTime',
render: (text, record) => <>
......@@ -76,7 +76,7 @@ export const useSelfTable = () => {
},
{
title: '投标开始/截止时间',
align: 'center',
align: 'left',
dataIndex: 'inviteTenderStartTime',
key: 'inviteTenderStartTime',
render: (text, record) => <>
......@@ -87,14 +87,14 @@ export const useSelfTable = () => {
},
{
title: '外部状态',
align: 'center',
align: 'left',
dataIndex: 'tenderOutStatus',
key: 'tenderOutStatus',
render: text => <CustomTag status={text} type='out' />
},
// {
// title: '内部状态',
// align: 'center',
// align: 'left',
// dataIndex: 'inviteTenderInStatus',
// key: 'inviteTenderInStatus',
// render: (text) => <CustomBadge status={text} type='inside' />
......
......@@ -54,47 +54,47 @@ const FirstCheckedBid:React.FC<FirstCheckedBidProps> = (props) => {
}
}
return <Card>
<StandardTable
fetchTableData={params => fetchTableData(params)}
rowSelection={rowSelection}
columns={columns}
currentRef={ref}
rowKey={'id'}
formilyLayouts={{
justify: 'space-between'
}}
formilyProps={{
ctx: {
inline: false,
schema: tableListSchema,
effects: ($, actions) => {
useStateFilterSearchLinkageEffect(
$,
actions,
'code',
FORM_FILTER_PATH,
);
},
components: {
DateRangePickerUnix,
Submit
}
<StandardTable
fetchTableData={params => fetchTableData(params)}
rowSelection={rowSelection}
columns={columns}
currentRef={ref}
rowKey={'id'}
formilyLayouts={{
justify: 'space-between'
}}
formilyProps={{
ctx: {
inline: false,
schema: tableListSchema,
effects: ($, actions) => {
useStateFilterSearchLinkageEffect(
$,
actions,
'inviteTenderCode',
FORM_FILTER_PATH,
);
},
layouts: {
order: 2,
span: 24
components: {
DateRangePickerUnix,
Submit
}
}}
formilyChilds={{
children: <Space>
<Button onClick={handleSubmitBatch} loading={loading}>批量审核通过</Button>
</Space>,
layouts: {
span: 8
}
}}
/>
</Card>
},
layouts: {
order: 2,
span: 16
}
}}
formilyChilds={{
children: <Space>
<Button onClick={handleSubmitBatch} loading={loading}>批量审核通过</Button>
</Space>,
layouts: {
span: 8
}
}}
/>
</Card>
}
FirstCheckedBid.defaultProps = {}
......
......@@ -18,7 +18,7 @@ export const useSelfTable = () => {
const secondColumns: any[] = baseBidListColumns.concat([
{
title: '操作',
align: 'center',
align: 'left',
dataIndex: 'ctl',
key: 'ctl',
render: (text, record) => <Button type='link' onClick={() => handleSubmit(record)}>审核</Button>
......
......@@ -7,7 +7,7 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
export const tableListSchema: ISchema = {
type: 'object',
properties: {
code: {
inviteTenderCode: {
type: 'string',
"x-component": 'SearchFilter',
'x-component-props': {
......
......@@ -10,14 +10,14 @@ export const useSelfTable = () => {
const callForBidColumns: any[] = [
{
title: '序号',
align: 'center',
align: 'left',
dataIndex: 'id',
key: 'id',
render: (text, record, index) => index + 1
},
{
title: '招标编号/项目',
align: 'center',
align: 'left',
dataIndex: 'memberId',
key: 'memberId',
render: (text, record) => <>
......@@ -29,7 +29,7 @@ export const useSelfTable = () => {
},
{
title: '投标编号/会员',
align: 'center',
align: 'left',
dataIndex: 'code',
key: 'code',
render: (text, record) => <>
......@@ -41,7 +41,7 @@ export const useSelfTable = () => {
},
{
title: '投标时间',
align: 'center',
align: 'left',
dataIndex: 'inviteTender',
key: 'inviteTender',
render: (text, record) => formatTimeString(record.inviteTender.inviteTenderStartTime),
......@@ -49,7 +49,7 @@ export const useSelfTable = () => {
},
{
title: '开标时间',
align: 'center',
align: 'left',
dataIndex: 'inviteTender',
key: 'inviteTender',
render: (text, record) => formatTimeString(record.inviteTender.openTenderTime),
......@@ -57,21 +57,21 @@ export const useSelfTable = () => {
},
{
title: '是否中标',
align: 'center',
align: 'left',
dataIndex: 'isWin',
key: 'isWin',
render: (text) => text ? '是' : '否'
},
{
title: '外部状态',
align: 'center',
align: 'left',
dataIndex: 'inviteTender',
key: 'inviteTender',
render: (text, record) => <CustomTag status={record.inviteTender.tenderOutStatus} type='out' />
},
// {
// title: '内部状态',
// align: 'center',
// align: 'left',
// dataIndex: 'interiorState',
// key: 'interiorState',
// render: (text) => <CustomBadge status={text} type='inside' />
......
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