代码优化

This commit is contained in:
BianLzhaoMin 2024-12-18 13:11:40 +08:00
parent 23adf1910e
commit 488ce70086
1 changed files with 23 additions and 3 deletions

View File

@ -97,6 +97,7 @@
v-model="row.repairPrice"
placeholder="请输入"
v-if="row.isEdit"
:disabled="row.scrapPrice > 0 || row.lossPrice > 0"
/>
<span v-else>
{{ row.repairPrice }}
@ -119,7 +120,12 @@
@onFileChange="onRepairFileChange"
>
<template v-slot:default>
<el-button type="primary" size="small" class="primary-lease">
<el-button
:disabled="scope.row.scrapPrice > 0 || scope.row.lossPrice > 0"
type="primary"
size="small"
class="primary-lease"
>
上传
</el-button>
</template>
@ -144,6 +150,7 @@
inputmode="numeric"
v-model="row.scrapPrice"
placeholder="请输入"
:disabled="row.repairPrice > 0 || row.lossPrice > 0"
/>
<span v-else>
{{ row.scrapPrice }}
@ -166,7 +173,12 @@
@onFileChange="onScrapFileChange"
>
<template v-slot:default>
<el-button type="primary" size="small" class="primary-lease">
<el-button
:disabled="scope.row.repairPrice > 0 || scope.row.lossPrice > 0"
type="primary"
size="small"
class="primary-lease"
>
上传
</el-button>
</template>
@ -191,6 +203,7 @@
v-model="row.lossPrice"
placeholder="请输入"
v-if="row.isEdit"
:disabled="row.repairPrice > 0 || row.scrapPrice > 0"
/>
<span v-else>
@ -214,7 +227,14 @@
@onFileChange="onLossFileChange"
>
<template v-slot:default>
<el-button type="primary" size="small" class="primary-lease">
<el-button
:disabled="
scope.row.repairPrice > 0 || scope.row.scrapPrice > 0
"
type="primary"
size="small"
class="primary-lease"
>
上传
</el-button>
</template>