修改9.06bug

This commit is contained in:
ljx
2025-09-06 18:18:31 +08:00
parent dd594676ac
commit 52342e6623
6 changed files with 31 additions and 14 deletions

View File

@ -59,8 +59,8 @@
</transition>
<el-card shadow="never" class="mb8">
<el-table ref="tableAllRef" v-loading="loading" :data="tableData" row-key="id" border lazy :expand-row-keys="expandRowKeys">
<el-table-column prop="num" label="编号" />
<el-table-column prop="name" label="工程或费用名称" />
<el-table-column prop="num" label="编号" align="center" />
<el-table-column prop="name" label="工程或费用名称" align="center" />
<el-table-column prop="unit" label="单位" align="center" />
<el-table-column prop="specification" label="规格" align="center" />
@ -92,7 +92,7 @@
{{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }}
</template>
</el-table-column>
<el-table-column prop="taxRate" label="税率" width="100">
<el-table-column prop="taxRate" label="税率" width="100" align="center">
<template #default="scope">
{{ scope.row.taxRate !== false ? scope.row.taxRate : '' }}
</template>

View File

@ -198,9 +198,11 @@
? activeTab == 2
? 0
: ''
: (scope.row.quantity ? Number(scope.row.quantity) : 0) -
(scope.row.selectNum ? Number(scope.row.selectNum) : 0) -
(scope.row.useQuantity ? Number(scope.row.useQuantity) : 0)
: (
(scope.row.quantity ? Number(scope.row.quantity) : 0) -
(scope.row.selectNum ? Number(scope.row.selectNum) : 0) -
(scope.row.useQuantity ? Number(scope.row.useQuantity) : 0)
).toFixed(2)
}}
</template>
</el-table-column>