1、车船模块fix bug

2、运力模块fix bug
3、新增设备台账
4、其他bug 修复
5、调整组织、人员模块
This commit is contained in:
2026-08-07 08:28:21 +08:00
parent 1e4de76978
commit 6a02e9126b
37 changed files with 2593 additions and 645 deletions
+47 -1
View File
@@ -82,6 +82,50 @@
class="mileage-record-page__input"
/>
</template>
<template #previousMonthMileageForm>
<el-input
v-model="form.previousMonthMileage"
:disabled="boxType === 'view'"
inputmode="numeric"
placeholder="请输入"
@input="value => normalizeIntegerInput('previousMonthMileage', value)"
>
<template #suffix>km</template>
</el-input>
</template>
<template #currentMonthMileageForm>
<el-input
v-model="form.currentMonthMileage"
:disabled="boxType === 'view'"
inputmode="numeric"
placeholder="请输入"
@input="value => normalizeIntegerInput('currentMonthMileage', value)"
>
<template #suffix>km</template>
</el-input>
</template>
<template #monthlyMileageForm>
<el-input
v-model="form.monthlyMileage"
:disabled="boxType === 'view'"
inputmode="numeric"
placeholder="请输入"
@input="value => normalizeIntegerInput('monthlyMileage', value)"
>
<template #suffix>km</template>
</el-input>
</template>
<template #totalMileageForm>
<el-input
v-model="form.totalMileage"
:disabled="boxType === 'view'"
inputmode="numeric"
placeholder="请输入"
@input="value => normalizeIntegerInput('totalMileage', value)"
>
<template #suffix>km</template>
</el-input>
</template>
<template #totalMileageStart-search="{ row }">
<div class="mileage-record-page__range">
<el-input
@@ -224,7 +268,6 @@ export default {
Object.keys(labelMap).forEach(prop => {
const column = this.findColumn(this.option.column, prop);
column.label = labelMap[prop];
column.append = unit;
});
vehicleTypeColumn.disabled = Boolean(this.form.id);
const unitColumn = this.findColumn(this.option.column, 'mileageUnit');
@@ -304,6 +347,9 @@ export default {
toMoney(value) {
return Math.round(Number(value) * 100) / 100;
},
normalizeIntegerInput(prop, value) {
this.form[prop] = String(value ?? '').replace(/\D/g, '');
},
normalizeRow(row) {
const values = { ...row };
values.vehicleType = values.vehicleType || '车辆';