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
+21 -5
View File
@@ -70,6 +70,17 @@
class="etc-record-page__input"
/>
</template>
<template #transactionAmountForm>
<el-input
v-model="form.transactionAmount"
:disabled="boxType === 'view'"
inputmode="decimal"
placeholder="请输入"
@input="value => normalizeDecimalInput('transactionAmount', value)"
>
<template #suffix></template>
</el-input>
</template>
<template #attachments="{ row }">
<span>{{ formatAttachments(row.attachments) }}</span>
</template>
@@ -209,6 +220,13 @@ export default {
isEmpty(value) {
return value === undefined || value === null || value === '';
},
normalizeDecimalInput(prop, value) {
const sanitized = String(value ?? '').replace(/[^\d.]/g, '');
const [integerPart, ...decimalParts] = sanitized.split('.');
this.form[prop] = decimalParts.length
? `${integerPart || '0'}.${decimalParts.join('').slice(0, 2)}`
: integerPart;
},
normalizeRow(row) {
const values = { ...row };
values.dataSource = values.dataSource || '手工录入';
@@ -379,11 +397,9 @@ export default {
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(
'/blade-transport/etc-record/export-etc-record',
this.buildExportParams(),
{ feedback: true }
)
exportBlob('/blade-transport/etc-record/export-etc-record', this.buildExportParams(), {
feedback: true,
})
.then(res => {
downloadXls(res.data, `ETC记录${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
})