Commit 8ccf5975 authored by 卢均锐's avatar 卢均锐

style: 在线竞价 报价历史样式

parent 9ff28854
......@@ -4,7 +4,7 @@
font-size: 12px;
color: #909399;
align-items: center;
margin-bottom: 10px;
margin-bottom: 6.5px;
.left{
width: 19px;
background-color: #F7F8FA;
......
......@@ -17,6 +17,11 @@ interface DetailBottomDrawerProps {
detail: any
}
const transforType = {
1: '是',
0: '否'
}
const DetailBottomDrawer: React.FC<DetailBottomDrawerProps> = (props: any) => {
const { visible, onClose, detail } = props;
const { awardProcess = [], materiels = [], offerCount, isOpenPurchase, isOpenRanking } = detail;
......@@ -61,13 +66,21 @@ const DetailBottomDrawer: React.FC<DetailBottomDrawerProps> = (props: any) => {
title: '含税/税率',
dataIndex: 'isTax',
key: 'isTax',
render: (text: any, record: any) => <Input value={record.taxRate} onChange={(e) => { _changeTax(record, e.target.value) }} addonAfter="%" />
render: (text: any, record: any) => (activeItem ?
<Space direction='vertical'>
<Text type='secondary' key={'isTax_1'} >{transforType[record.isTax]}</Text>
<Text type='secondary' key={'isTax_2'} >{record.taxRate ? `${record.taxRate}%` : '-'}</Text>
</Space>
: <Input value={record.taxRate} onChange={(e) => { _changeTax(record, e.target.value) }} addonAfter="%" />)
},
{
title: '单价(含税)',
dataIndex: 'unitPrice',
key: 'unitPrice',
render: (text: any, record: any) => <Input value={record.unitPrice} onChange={(e) => { _changeUnitPrice(record, e.target.value) }} addonBefore="¥" />
render: (text: any, record: any) => (activeItem ?
<Text type='secondary' key={'unitPrice_1'} >¥{priceFormat(record.unitPrice)}</Text>
:
<Input value={record.unitPrice} onChange={(e) => { _changeUnitPrice(record, e.target.value) }} addonBefore="¥" />)
},
{
title: '金额(含税)',
......@@ -122,7 +135,7 @@ const DetailBottomDrawer: React.FC<DetailBottomDrawerProps> = (props: any) => {
}
const bidOk = () => {
if(btnLoading){
if (btnLoading) {
return;
}
const _price = dataSource2.reduce((total: any, cur: any) => total + Number(cur.price), 0);
......
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