Commit 9731b9d5 by yancanhua

fix: 车辆佣金只能输入正整数

1 parent d72cd9b6
......@@ -85,7 +85,7 @@ export default class ViewAuction extends PaginationComponent<AuctionVehicle> {
{title: '最高价', dataIndex: 'highestPrice', key: 'highestPrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '起拍价', dataIndex: ['vehicle', 'startingBidPrice'], key: 'startingBidPrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '保留价', dataIndex: ['vehicle', 'reservePrice'], key: 'reservePrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '车辆佣金', dataIndex: ['vehicle', 'fixedCommission'], key: 'fixedCommission', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '佣金金额', dataIndex: ['vehicle', 'fixedCommission'], key: 'fixedCommission', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '参考价', dataIndex: ['vehicle', 'referencePrice'], key: 'referencePrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '拍卖状态', dataIndex: 'auctionState', key: 'auctionState', align: 'center', fixed: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
];
......
......@@ -19,7 +19,7 @@
<a-descriptions-item label="保留价" name="referencePrice">
¥{{ appraisePrice.reservePrice }}元
</a-descriptions-item>
<a-descriptions-item label="车辆佣金" name="referencePrice">
<a-descriptions-item label="佣金金额" name="referencePrice">
¥{{ appraisePrice.fixedCommission || '-' }}元
</a-descriptions-item>
</a-descriptions>
......
......@@ -22,7 +22,7 @@
<a-switch v-model:checked="formState.fixedCommissionSwitch" />
</a-form-item>
<a-form-item v-if="formState.fixedCommissionSwitch" label="固定佣金" name="fixedCommission" :rules="[{ required: true, message: '请输入金额' }]">
<a-input-number v-model:value="formState.fixedCommission" addon-after="元" :min="0" :max="100000" :maxlength="6" placeholder="请输入金额"/>
<a-input-number v-model:value="formState.fixedCommission" addon-after="元" :min="0" :max="100000" :maxlength="6" :precision="0" placeholder="请输入金额"/>
</a-form-item>
<a-form-item label="评估备注" name="appraisalRemark" :rules="[{max: 120, message: '最多不能超过120个字符!' },]">
<a-textarea v-model:value="formState.appraisalRemark" rows="6" placeholder="请输入评估备注"/>
......
......@@ -13,7 +13,7 @@
</template>
<template v-if="column.key === 'fixedCommission'">
{{ record.fixedCommission || '-' }}
¥ {{ record.fixedCommission || '-' }}
</template>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!