fix : 审批记录样式优化, 上传费用,新增分摊输入框宽度固定

This commit is contained in:
2024-06-20 16:55:15 +08:00
parent 57f27c2b84
commit a6476c359d
7 changed files with 118 additions and 78 deletions

View File

@@ -18,7 +18,8 @@
</el-table-column>
</template>
<template v-else>
<template v-if="column.prop === 'totalSeparation' || column.prop === 'totalSeparationCost'">
<template
v-if="(column.prop === 'totalSeparation' || column.prop === 'totalSeparationCost') && (tableData.length- 1) !== scope.$index">
{{ getTotalSeparation(scope.row, column.prop) }}
</template>
<template v-else>
@@ -92,7 +93,7 @@ const getTotalSeparation = (row, prop) => {
}
}
if (totalSeparation !== 0) {
return totalSeparation;
return totalSeparation.toFixed(2);
} else {
return "/"
}
@@ -165,6 +166,6 @@ const exportTable = () => {
if (!$table) {
$table = $e
}
exportExcel($table, tableData.value[0], "四川省国有资产经营投资管理有限责任公司科技创新项目人工成本分摊明细表")
exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目人工成本分摊明细表")
}
</script>

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div style="display: block">
<slot name="pre"></slot>
<div class="user-audit">
<div class="circle-user">
@@ -13,17 +13,12 @@
</el-icon>
</div>
</div>
<div class="username" v-if="user.auditOpinion">
<div style="margin-bottom: 10px;color: #909399">{{user.operationTime}}</div>
<Tooltip :content="user.auditOpinion" placement="bottom-start" width="140" :lines="true"/>
</div>
</div>
</div>
</template>
<script setup>
import {Loading, Close, CircleCheckFilled, MoreFilled} from '@element-plus/icons-vue'
import {defineProps} from "vue";
const props = defineProps({
row: {
@@ -90,15 +85,16 @@ init()
align-items: center;
.circle-user {
width: 50px;
height: 50px;
width: 46px;
height: 46px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
border: 1px solid #ACACAC;
position: relative;
background-color: #8a7243;
color: #fff;
.el-timeline-item__node {
position: absolute;
bottom: 0;
@@ -106,21 +102,6 @@ init()
}
}
.username {
//width: 90px;
margin-top: 10px;
background: #f5f5f5;
padding: 5px;
.el-tooltip__trigger {
width: 90px;
text-align: center;
//padding-top: 2px;
//text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden
}
}
}
</style>