|
@@ -56,8 +56,8 @@
|
|
|
v-if="dialogType !== 'view'"
|
|
v-if="dialogType !== 'view'"
|
|
|
@confirm="handleDelInfo($index)"
|
|
@confirm="handleDelInfo($index)"
|
|
|
>
|
|
>
|
|
|
- <template v-slot:reference>
|
|
|
|
|
- <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
|
|
|
|
+ <template v-slot:reference="scope">
|
|
|
|
|
+ <el-link v-if="!scope.row?.id" type="danger" :underline="false" icon="el-icon-delete">
|
|
|
删除
|
|
删除
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</template>
|
|
</template>
|
|
@@ -76,6 +76,7 @@
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
|
|
+ :disabled="row?.id ? true : false"
|
|
|
style="width: 95%"
|
|
style="width: 95%"
|
|
|
v-model="row.paidDate"
|
|
v-model="row.paidDate"
|
|
|
type="date"
|
|
type="date"
|
|
@@ -99,6 +100,7 @@
|
|
|
>
|
|
>
|
|
|
<el-input-number
|
|
<el-input-number
|
|
|
@change="(val, oldVal) => handlePrice(val, oldVal, row, $index)"
|
|
@change="(val, oldVal) => handlePrice(val, oldVal, row, $index)"
|
|
|
|
|
+ :disabled="row?.id ? true : false"
|
|
|
v-model="row.paidTotalPrice"
|
|
v-model="row.paidTotalPrice"
|
|
|
:controls="false"
|
|
:controls="false"
|
|
|
:precision="2"
|
|
:precision="2"
|
|
@@ -110,12 +112,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:files="{ row, $index }">
|
|
<template v-slot:files="{ row, $index }">
|
|
|
<el-form-item :prop="'detailList.' + $index + '.files'">
|
|
<el-form-item :prop="'detailList.' + $index + '.files'">
|
|
|
- <fileMain v-model="row.files" :type="dialogType"></fileMain>
|
|
|
|
|
|
|
+ <fileMain v-model="row.files" :type="dialogType || (row.id ? 'view' : 'add')"></fileMain>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:remark="{ row, $index }" v-if="dialogType !== 'view'">
|
|
<template v-slot:remark="{ row, $index }" v-if="dialogType !== 'view'">
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-input v-model="row.remark" type="textarea"></el-input>
|
|
|
|
|
|
|
+ <el-input :disabled="row?.id ? true : false" v-model="row.remark" type="textarea"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:columnRequired="{ column }">
|
|
<template v-slot:columnRequired="{ column }">
|