🎨 style: 优化订单列表展示

This commit is contained in:
wangsongsole 2023-12-19 17:19:05 +08:00
parent 81d4329581
commit 193ac52d0b
1 changed files with 6 additions and 2 deletions

View File

@ -657,7 +657,9 @@ export default class orderList extends React.Component {
}} }}
></font> ></font>
{rowData.status_text} {rowData.status_text}
{rowData.type === 2 ? `${rowData.received_num}/${rowData.num}` : ""} {rowData.type === 2 && rowData.status === 2
? `${rowData.received_num}/${rowData.num}`
: ""}
</span> </span>
</p> </p>
) )
@ -700,7 +702,9 @@ export default class orderList extends React.Component {
}} }}
></font> ></font>
{this.usageFunction(rowData.orderVoucher?.status)} {this.usageFunction(rowData.orderVoucher?.status)}
{rowData.type === 2 ? `${rowData.used_num}/${rowData.num}` : ""} {rowData.type === 2 && rowData.orderVoucher?.status === 2
? `${rowData.used_num}/${rowData.num}`
: ""}
</span> </span>
</p> </p>
) )