|
@@ -42,7 +42,7 @@
|
|
|
<el-table-column prop="receivablePremium" label="应收总额"></el-table-column>
|
|
<el-table-column prop="receivablePremium" label="应收总额"></el-table-column>
|
|
|
<el-table-column prop="reconciliationAmount" label="对账金额">
|
|
<el-table-column prop="reconciliationAmount" label="对账金额">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="flex items-center cursor-pointer" @click="handleEdit(scope.row)"
|
|
|
|
|
|
|
+ <div class="flex items-center cursor-pointer" @click="handleEdit(scope.row,scope.$index)"
|
|
|
@mouseenter="scope.row.showEdit = true" @mouseleave="scope.row.showEdit = false">
|
|
@mouseenter="scope.row.showEdit = true" @mouseleave="scope.row.showEdit = false">
|
|
|
¥{{ scope.row.reconciliationAmount || 0 }}
|
|
¥{{ scope.row.reconciliationAmount || 0 }}
|
|
|
<el-icon class="m-l-4px " v-if="scope.row.showEdit">
|
|
<el-icon class="m-l-4px " v-if="scope.row.showEdit">
|
|
@@ -153,7 +153,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button class="border-[#0083FF] color-[#0083FF]" plain @click="editShow = false">取消</el-button>
|
|
<el-button class="border-[#0083FF] color-[#0083FF]" plain @click="editShow = false">取消</el-button>
|
|
|
- <el-button type="primary" @click="editShow = false">确定</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="handelComfirmEdit" >确定</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-image-viewer v-if="imageShow" :url-list="[bigImageUrl]" @close="imageShow = false" />
|
|
<el-image-viewer v-if="imageShow" :url-list="[bigImageUrl]" @close="imageShow = false" />
|
|
@@ -179,9 +179,11 @@ const countForm = ref({
|
|
|
})
|
|
})
|
|
|
const editShow = ref(false)
|
|
const editShow = ref(false)
|
|
|
const editForm = ref({})
|
|
const editForm = ref({})
|
|
|
-const handleEdit = (row) => {
|
|
|
|
|
|
|
+const rowIndex = ref(0)
|
|
|
|
|
+const handleEdit = (row: any, index: number) => {
|
|
|
editShow.value = true
|
|
editShow.value = true
|
|
|
editForm.value = {...row}
|
|
editForm.value = {...row}
|
|
|
|
|
+ rowIndex.value = index
|
|
|
}
|
|
}
|
|
|
const companyIdprops = {
|
|
const companyIdprops = {
|
|
|
expandTrigger: 'hover' as const,
|
|
expandTrigger: 'hover' as const,
|
|
@@ -407,7 +409,10 @@ const initCompany = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+const handelComfirmEdit = () => {
|
|
|
|
|
+ tableData.value[rowIndex.value].reconciliationAmount = editForm.value.reconciliationAmount
|
|
|
|
|
+ editShow.value = false
|
|
|
|
|
+}
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
initData()
|
|
initData()
|
|
|
initCompany()
|
|
initCompany()
|