Commit fa73769b by chenwq

feat(财务管理系统): 优化表格样式和交互细节

- 替换删除按钮为文本样式并添加删除文字
- 修改退款标识为图片显示
- 调整表格单元格间距和padding
- 统一金额显示添加"元"单位
- 优化批量操作下拉框宽度
- 修复数字输入框样式问题
- 调整总计区域布局为换行显示
1 parent 391573e5
......@@ -30,7 +30,7 @@
<el-table-column label="操作" width="120" align="center" v-if="isEdit">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="deleteRow(scope.$index)" icon="el-icon-delete"></el-button>
<el-button size="mini" type="text" @click="deleteRow(scope.$index)">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -144,12 +144,16 @@ export default {
}
</script>
<style scoped>
<style lang="scss">
.dynamic-table-container {
padding: 20px;
}
padding: 20px 20px 0 20px;
.el-table--medium td {
padding: 4px 16px !important;
}
.el-form-item {
margin-bottom: 0;
.el-form-item {
margin-bottom: 0;
}
}
</style>
......@@ -18,9 +18,10 @@
{{scope.row[subItem.extInfo.source || 'ORDER'][subItem.txtObj.selectField] ? (scope.row[subItem.extInfo.source || 'ORDER'][subItem.txtObj.selectField] + (scope.row[subItem.extInfo.source || 'ORDER'][subItem.txtObj.inputField] + '')) : '-'}}
</div>
<!-- 普通文本显示 -->
<div v-else>
<div v-if="subItem.fieldCode == 'orderCode' && scope.row.ORDER.sourceType != 1">
<div class="refund-txt">退</div>{{ scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] || '-' }}
<div v-else class="flex-center">
<div v-if="subItem.fieldCode == 'orderCode'" class="flex-center" style="margin-left: 12px;">
<img v-if="scope.row.ORDER.sourceType != 1" class="refund-img" src="@/assets/retrun.png">
<div>{{ scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] || '-' }}</div>
</div>
<span v-else-if="subItem.fieldCode == 'tradeNo'" :class="['trade-no', scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length ? 'txt-blue': '' ]" @click="handleReviewImg(scope.row)">
{{ scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] || '-' }}
......@@ -36,16 +37,15 @@
</el-pagination> -->
<DynamicAddTable v-if="billTypeStr == 'traffic'" ref="dynamicReceiveAdd" :configObj="{'title': '应收'}" :receivableAdjustments="receivableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<DynamicAddTable ref="dynamicAdd" :adjustments="payableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
</div>
<div class="footer">
<div class="total-box">
<div>订单总数:{{ totalOrderCount }}</div>
<div>总产值:{{ totalAmount }}</div>
<div>总产值:{{ totalAmount }}元</div>
<div v-if="billTypeStr == 'traffic'">应收总额:{{ totalReceivable }}元</div>
<div>应付总额:{{ totalPayable }}元</div>
<div>线上分账总额:{{ totalSplitPaidAmount }}</div>
<div>线下已付总额:{{ totalOfflinePaidAmount }}</div>
<div>线上分账总额:{{ totalSplitPaidAmount }}元</div>
<div>线下已付总额:{{ totalOfflinePaidAmount }}元</div>
<div v-if="billTypeStr == 'traffic'">线下对账总额:{{ totalOfflineReconciliation }}元</div>
</div>
<div class="btn-box">
......@@ -672,18 +672,18 @@ export default {
display: flex;
align-items: center;
}
.refund-txt {
.refund-img {
display: inline-block;
box-sizing: border-box;
width: 16px;
height: 16px;
line-height: 16px;
font-size: 8px;
padding: 2px;
// font-size: 8px;
// padding: 2px;
border-radius: 3px;
color: #ffffff;
margin: 0 8px 0 20px;
background: linear-gradient(#ff8496 0%, #ff4e61 100%);
margin: 0 2px 0 0;
// background: linear-gradient(#ff8496 0%, #ff4e61 100%);
}
.el-form-item__error {
......@@ -737,6 +737,17 @@ export default {
top: 8px;
// transition: all 0.3s;
}
::v-deep input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
::v-deep input::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
/*设置number类型的input外观*/
::v-deep input[type="number"] {
-moz-appearance: textfield;
padding: 0 8px;
}
.tb-header-cell {
box-sizing: border-box;
text-align: center;
......@@ -744,10 +755,11 @@ export default {
display: inline-block; /* 或者 inline */
}
.tb-cell {
padding: 8px;
padding: 6px;
text-align: center;
}
::v-deep .el-table .cell {
padding: 6px !important;
text-align: center;
}
::v-deep .el-table__footer-wrapper tbody td {
......@@ -756,13 +768,16 @@ export default {
}
.total-box {
display: flex;
// flex-wrap: wrap;
flex-wrap: wrap;
width: calc(100% - 200px);
div {
flex: 1;
width: 25%;
padding: 2px 0;
// flex: 1;
}
}
.batch-box {
text-align: center;
margin: 10px 36px;
}
.red-txt {
......@@ -798,6 +813,7 @@ export default {
// text-align: right;
padding: 0 30px;
.btn-box {
background: #ffffff;
width: 200px;
text-align: right;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!