Commit 946962b6 authored by 卢均锐's avatar 卢均锐

feat: 采购竞价 修改字段

parent f9f29378
...@@ -37,6 +37,7 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => { ...@@ -37,6 +37,7 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => {
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
{ {
title: '物料编号/名称', title: '物料编号/名称',
key: 'number',
dataIndex: 'number', dataIndex: 'number',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<Space direction='vertical'> <Space direction='vertical'>
...@@ -45,12 +46,13 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => { ...@@ -45,12 +46,13 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => {
</Space> </Space>
) )
}, },
{ title: '规格型号', dataIndex: 'model', }, { title: '规格型号',key: 'model', dataIndex: 'model', },
{ title: '品类', dataIndex: 'category', }, { title: '品类',key: 'category', dataIndex: 'category', },
{ title: '品牌', dataIndex: 'brand', }, { title: '品牌',key: 'brand', dataIndex: 'brand', },
{ {
title: '采购数量/单位', title: '采购数量/单位',
dataIndex: 'unit', dataIndex: 'unit',
key: 'unit',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<Space direction='vertical'> <Space direction='vertical'>
<Text type='secondary' key={'unit_1'} >{record.purchaseCount}</Text> <Text type='secondary' key={'unit_1'} >{record.purchaseCount}</Text>
...@@ -61,6 +63,7 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => { ...@@ -61,6 +63,7 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => {
{ {
title: '含税/税率', title: '含税/税率',
dataIndex: 'isTax', dataIndex: 'isTax',
key: 'isTax',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<Space direction='vertical'> <Space direction='vertical'>
<Text type='secondary' key={'isTax_1'} >{transforType[text]}</Text> <Text type='secondary' key={'isTax_1'} >{transforType[text]}</Text>
...@@ -70,12 +73,14 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => { ...@@ -70,12 +73,14 @@ const BidDetailLayout: React.FC<BidDetailLayoutProps> = (props: any) => {
}, },
{ {
title: '单价(含税)', title: '单价(含税)',
dataIndex: 'price', dataIndex: 'unitPrice',
key: 'unitPrice',
render: (text: any, record: any) => <Text type='secondary'>¥{priceFormat(text)}</Text> render: (text: any, record: any) => <Text type='secondary'>¥{priceFormat(text)}</Text>
}, },
{ {
title: '金额(含税)', title: '金额(含税)',
dataIndex: 'price', dataIndex: 'price',
key: 'price',
render: (text: any, record: any) => <Text type='secondary'>¥{priceFormat(text)}</Text> render: (text: any, record: any) => <Text type='secondary'>¥{priceFormat(text)}</Text>
}, },
] ]
......
...@@ -114,7 +114,7 @@ const LowestQuotationRecord: React.FC<TableCommonLayoutProps> = (props: any) => ...@@ -114,7 +114,7 @@ const LowestQuotationRecord: React.FC<TableCommonLayoutProps> = (props: any) =>
</div> </div>
<div className={selfStyles.baseItem}> <div className={selfStyles.baseItem}>
<h5 className={selfStyles.label}>报价总额(含税): </h5> <h5 className={selfStyles.label}>报价总额(含税): </h5>
<h5 className={selfStyles.content}>{effect?.reportPrice ? priceFormat(effect?.reportPrice) : '-'}</h5> <h5 className={selfStyles.content}>{effect?.reportPrice ? `¥ ${priceFormat(effect?.reportPrice)}` : '-'}</h5>
</div> </div>
<StandardTable <StandardTable
currentRef={currentRef} currentRef={currentRef}
......
...@@ -113,7 +113,7 @@ const SearchDetail = () => { ...@@ -113,7 +113,7 @@ const SearchDetail = () => {
setResultEffect([ setResultEffect([
{ {
col: [ col: [
{ label: '中标金额(含税)', extra: data?.sumAwardPrice ? priceFormat(data?.sumAwardPrice) : '-', type: 'text' }, { label: '中标金额(含税)', extra: data?.sumAwardPrice ? ${priceFormat(data?.sumAwardPrice)}` : '-', type: 'text' },
{ label: '中标理由', extra: '价格最低', type: 'text' }, { label: '中标理由', extra: '价格最低', type: 'text' },
] ]
}, },
......
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