Commit e37810a9 by yancanhua

fix: 车辆佣金金额功能开发

1 parent cf3d2d87
......@@ -6,7 +6,7 @@
<link rel="icon" href="/favicon/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>专电优拍</title>
<script type="module" crossorigin src="https://aus.test.glsx.com.cn/assets/index-TuVIvskA.js"></script>
<script type="module" crossorigin src="https://aus.test.glsx.com.cn/assets/index-BDDlMR8l.js"></script>
<link rel="stylesheet" crossorigin href="https://aus.test.glsx.com.cn/assets/index-CAAxcolk.css">
<!-- <script type="module" crossorigin src="https://aus.glsx.com.cn/assets/index-pxQEYXWe.js"></script>
<link rel="stylesheet" crossorigin href="https://aus.glsx.com.cn/assets/index-CAAxcolk.css"> -->
......
......@@ -277,9 +277,10 @@ export default class AuctionForm extends FormComponent<Auction> {
},
{title: '车辆VIN码', dataIndex: ['vehicle', 'baseInfo', "vin"], key: 'vin', width: 170, resizable: true, ellipsis: true, sorter: false},
{title: '车牌号', dataIndex: ['vehicle', 'baseInfo', "licensePlate"], key: 'licensePlate', width: 130, resizable: true, ellipsis: true, sorter: false},
{title: '所属门店', dataIndex: ['vehicle', 'venue', 'venueName'], key: 'venueName', align: 'right', width: 130, resizable: true, ellipsis: true, sorter: false},
{title: '起拍价', dataIndex: ['vehicle', 'startingBidPrice'], key: 'startingBidPrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: false},
{title: '保留价', dataIndex: ['vehicle', 'reservePrice'], key: 'reservePrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: false},
{title: '所属门店', dataIndex: ['vehicle', 'venue', 'venueName'], key: 'venueName', align: 'center', width: 130, resizable: true, ellipsis: true, sorter: false},
{title: '起拍价', dataIndex: ['vehicle', 'startingBidPrice'], key: 'startingBidPrice', align: 'center', width: 100, resizable: true, ellipsis: true, sorter: false},
{title: '保留价', dataIndex: ['vehicle', 'reservePrice'], key: 'reservePrice', align: 'center', width: 100, resizable: true, ellipsis: true, sorter: false},
{title: '佣金金额', dataIndex: ['vehicle', 'fixedCommission'], key: 'fixedCommission', align: 'center', width: 100, resizable: true, ellipsis: true, sorter: false},
{title: '预展时间', dataIndex: 'previewStartTime', key: 'previewStartTime', align: 'center', fixed: 'right', width: 240, resizable: false, ellipsis: true, sorter: false},
{title: '起拍时间', dataIndex: 'auctionStartTime', key: 'auctionStartTime', align: 'center', fixed: 'right', width: 240, resizable: false, ellipsis: true, sorter: false},
{title: '拍卖结束时间', dataIndex: 'auctionEndTime', key: 'auctionEndTime', align: 'center', fixed: 'right', width: 240, resizable: false, ellipsis: true, sorter: false},
......
......@@ -85,6 +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', '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},
];
......
......@@ -107,6 +107,7 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
{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', '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},
{title: '操作', key: 'action', width: 260, align: 'center', fixed: 'right'},
......
......@@ -19,6 +19,9 @@
<a-descriptions-item label="保留价" name="referencePrice">
¥{{ appraisePrice.reservePrice }}元
</a-descriptions-item>
<a-descriptions-item label="车辆佣金" name="referencePrice">
¥{{ appraisePrice.fixedCommission }}元
</a-descriptions-item>
</a-descriptions>
<a-divider>审批记录</a-divider>
<approve-history-timeline approve-type="APPRAISE_PRICE" :approve-id="appraisePrice.appraiseId" :create-time="appraisePrice.createTime"
......
......@@ -18,6 +18,12 @@
:rules="[{ required: true, message: '请输入保留价!' },{validator: verifyReservePrice,message: '保留价必须不小于起拍价'}]">
<a-input-number v-model:value="formState.reservePrice" addon-after="元" :min="0" :max="99999999" :maxlength="8" placeholder="请输入保留价"/>
</a-form-item>
<a-form-item label="自定义佣金" name="fixedCommissionSwitch">
<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-form-item>
<a-form-item label="评估备注" name="appraisalRemark" :rules="[{max: 120, message: '最多不能超过120个字符!' },]">
<a-textarea v-model:value="formState.appraisalRemark" rows="6" placeholder="请输入评估备注"/>
</a-form-item>
......@@ -54,6 +60,9 @@ export default class AppraisePriceForm extends EnhanceFormComponent<AppraisePric
});
this.formState = reactive<AppraisePrice>(new AppraisePrice());
this.formState.referencePrice = 0;
this.formState.fixedCommissionSwitch = this.formState.fixedCommissionSwitch == 1 ? true : false;
this.formState.fixedCommission = this.formState.fixedCommission || 0;
PriceRuleController.getReferencePriceByVehicleId(this.axios, this.vehicle.vehicleId).then(res => {
this.formState.referencePrice = res.data;
// if (this.formState.referencePrice <= 0) {
......@@ -101,7 +110,7 @@ export default class AppraisePriceForm extends EnhanceFormComponent<AppraisePric
onValidSuccess(formValue: AppraisePrice): void {
formValue.vehicle = this.vehicle;
AppraiseController.addAppraisePrice(this.axios, formValue).then(res => {
AppraiseController.addAppraisePrice(this.axios, { ...formValue, fixedCommissionSwitch: formValue.fixedCommissionSwitch ? 1 : 0 }).then(res => {
message.success('提交成功');
this.$emit('handleOk', res.data);
}).finally(() => this.submitted = false);
......
......@@ -76,6 +76,7 @@ export default class AppraiseVehiclePage extends PaginationComponent<AppraisePri
title: "定价方案", children: [
{title: '申请起拍价', dataIndex: 'startingBidPrice', key: 'startingBidPrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true},
{title: '申请保留价', dataIndex: 'reservePrice', key: 'reservePrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true},
{title: '佣金金额', dataIndex: 'fixedCommission', key: 'fixedCommission', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true},
]
},
{
......
......@@ -54,6 +54,7 @@ export default class AppraiseVehicleTable extends Vue {
}
},
{title: '评估人', dataIndex: ['user', 'realName'], key: 'realName', width: 120, resizable: true, ellipsis: true, sorter: true},
{title: '佣金金额', dataIndex: 'fixedCommission', key: 'fixedCommission', width: 130, resizable: true, ellipsis: true, sorter: true},
{title: '评估备注', dataIndex: 'appraisalRemark', key: 'appraisalRemark', resizable: true, ellipsis: true, sorter: true},
{title: '提交时间', dataIndex: 'createTime', key: 'createTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true},
{title: '评估时间', dataIndex: 'updateTime', key: 'updateTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true},
......
......@@ -76,6 +76,7 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
vehicleBaseInfoColumns,
{title: '起拍价', dataIndex: 'startingBidPrice', key: 'startingBidPrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '保留价', dataIndex: 'reservePrice', key: 'reservePrice', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '佣金金额', dataIndex: 'fixedCommission', key: 'fixedCommission', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '状态', dataIndex: 'vehicleState', key: 'vehicleState', align: 'center', fixed: 'right', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '操作', key: 'action', width: 100, align: 'center', fixed: 'right'},
];
......
......@@ -62,6 +62,11 @@ export default class VehiclePicker extends PaginationComponent<Vehicle> {
return '¥' + text;
}
},
{title: '佣金金额', dataIndex: 'fixedCommission', key: 'fixedCommission', align: 'right', width: 100, resizable: true, ellipsis: true, sorter: true,
customRender: ({text, record, index, column}) => {
return text ? '¥' + text : '-';
}
},
];
/**
......
......@@ -43,5 +43,14 @@ export class AppraisePrice extends AuditingEntity {
// region 前端扩展定义属性及方法区
// endregion
/**
* 固定佣金开关
*/
fixedCommissionSwitch: number;
/**
* 固定佣金
*/
fixedCommission: number;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!