10.11 标书费功能优化,增加免费选项

This commit is contained in:
jl-zhoujl2
2022-10-12 10:19:08 +08:00
parent 8ae7936eea
commit 53632cf00e
4 changed files with 43 additions and 25 deletions

View File

@ -43,13 +43,15 @@ const Complete: React.FC<{}> = () => {
{ title: '费用内容描述', dataIndex: 'commodityDescribe', width: '25%' },
{ title: '下单时间', dataIndex: 'createDate', width: '10%', valueType: 'dateTime' },
{ title: '支付时间', dataIndex: 'paymentTime', width: '10%', valueType: 'dateTime' },
{ title: '金额(元)', dataIndex: 'amount', width: '4%' },
{ title: '金额(元)', dataIndex: 'amount', width: '6%', render: (_, record) => record.chargeType == "0" ? "免费" : record.amount },
{
title: '操作',
dataIndex: 'option',
width: '3%',
valueType: 'option',
render: (_, record) => {
if (record.chargeType == "0") {//免费无需申请发票
return null;
}
if (record.bidInvoice == null) {
return <Button
type="text"
@ -97,10 +99,11 @@ const Complete: React.FC<{}> = () => {
options={false}
rowSelection={{
getCheckboxProps: (record) => ({
disabled: record.bidInvoice == null ? false : true
disabled: record.bidInvoice == null ? record.chargeType == "0" : true
}),
columnWidth: '1px',
fixed: true,
preserveSelectedRowKeys: true,
// columnWidth: '50px',
// fixed: true,
}}
pagination={{ defaultPageSize: 10 }} //默认显示条数
// bordered