代码优化
This commit is contained in:
parent
23adf1910e
commit
488ce70086
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue