Commit f47a91d2 by chenwq

style(financeManage): 调整表格样式和字体大小

- 统一表格单元格字体大小为12px
- 优化输入框和选择器的样式
- 移除不必要的固定列设置
- 调整列宽和间距
- 清理无用代码和注释
1 parent 349c60a1
......@@ -28,7 +28,7 @@
</div>
<el-table v-loading="loading" :data="tableList" style="width: 100%" height="652px" ref="billMutiTable" show-summary :summary-method="getSummaries" :span-method="arraySpanMethod" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="55"></el-table-column>
<el-table-column :fixed="[0, 1, 2].includes(idx)" v-for="(item, idx) in tableHeader" :key="idx" :label="item.moduleName">
<el-table-column v-for="(item, idx) in tableHeader" :key="idx" :label="item.moduleName">
<el-table-column v-for="(subItem, subIdx) in item.items" :key="subIdx" :prop="subItem.fieldCode" :label="subItem.fieldName" :width="subItem.width || '120px'">
<div class="tb-header-cell" slot="header" slot-scope="scope">
<span>{{subItem.fieldName}}</span>
......@@ -41,8 +41,8 @@
<template v-if="subItem.editType == 'input'">
<span v-if="judgeDisable(scope.$index, subItem.extInfo.source || 'ORDER', subItem) && ['partnerFeeCalculateCoefficient'].includes(subItem.fieldCode)">-</span>
<el-input v-else :style="{ 'width': subItem.extInfo.width || '110px' }" :placeholder="item.placeholder || '请输入'" v-bind="subItem.attrs ? subItem.attrs : {}" v-on="subItem.listeners ? subItem.listeners : {}" :prefix-icon="subItem.prefixIcon" :disabled="judgeDisable(scope.$index, subItem.extInfo.source || 'ORDER', subItem)" v-model.trim="scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode]" :maxlength="subItem.maxlength" :type="subItem.inputType || 'text'" @input="(e) => handleInputDown(e, scope.$index, subItem.extInfo.source || 'ORDER', subItem)" @blur="modifyAdd(scope.$index, subItem.extInfo.source || 'ORDER', subItem.fieldCode, subItem)" :class="{ 'is-error': hasError(scope.$index, subItem.extInfo.source || 'ORDER', subItem.fieldCode) }">
<span v-if="subItem.editObj.prepend" slot="prepend">{{ subItem.editObj.prepend }}</span>
<span v-if="subItem.editObj.append" slot="suffix">{{ subItem.append }}</span>
<span v-if="subItem.editObj.prepend" slot="prepend" style="font-size: 12px;">{{ subItem.editObj.prepend }}</span>
<span v-if="subItem.editObj.append" slot="suffix" style="font-size: 12px;">{{ subItem.append }}</span>
</el-input>
<div v-if="hasError(scope.$index, subItem.extInfo.source || 'ORDER', subItem.fieldCode)" class="el-form-item__error">
{{ getErrorMessage(scope.$index, subItem.extInfo.source || 'ORDER', subItem.fieldCode) }}
......@@ -96,7 +96,7 @@
</div>
</el-table-column>
</el-table-column>
<el-table-column label="操作">
<el-table-column label="操作" :width=" billTypeStr == 'traffic' ? '50px' : ''">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template>
......@@ -125,7 +125,7 @@
</el-drawer>
<!-- 批量輸入 -->
<d2-dialog :title="headObj.fieldCode == 'payType' ? '备注' : ('批量设置' + headObj.fieldName)" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm">
<d2-dialog v-if="batchVisible" :title="headObj.fieldCode == 'payType' ? '备注' : ('批量设置' + headObj.fieldName)" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm">
<div class="batch-box">
<!-- 输入框 -->
<template v-if="headObj.editType == 'input'">
......@@ -773,33 +773,6 @@ export default {
confId: 7,
confLabel: "其他收款"
}],
// divisionTypeList: [{
// confId: 1,
// confLabel: '线下对账'
// }, {
// confId: 2,
// confLabel: '线上分账'
// }],
// divisionStatusList: [{
// confId: 1,
// confLabel: '待分账'
// }, {
// confId: 2,
// confLabel: '分账中'
// }, {
// confId: 3,
// confLabel: '分账成功'
// }, {
// confId: 4,
// confLabel: '分账失败'
// }],
// reconcileStatusList: [{
// confId: 1,
// confLabel: '未对账'
// }, {
// confId: 2,
// confLabel: '已对账'
// }],
payTypeList: payTypeList,
trafficFeeCalculateTypeList: [{
confId: 1,
......@@ -964,7 +937,6 @@ export default {
getMetaTmpl() {
const tmplName = this.localTmplList.find(item => item.type == this.infoForm.tmplType)?.name || 'trafficTmpl'
var list = JSON.parse(localStorage.getItem(tmplName))
console.log(list, 'list0000000')
if (list) {
this.dealFieldsJson(list)
} else {
......@@ -1125,7 +1097,7 @@ export default {
})
return params
},
billComputePage(noChangeFixedSum = false, fn) {
billComputePage(noChangeFixedSum = false, fn = null) {
console.log(this.tableList, 'this.tableList---')
this.loading = true
console.log(this.tableModifyList, 'this.tableModifyList----')
......@@ -1414,23 +1386,23 @@ export default {
if (editList.includes(k.fieldCode)) {
if (this.editObj.select.attrList.includes(k.fieldCode)) {
k.editType = 'select'
k.width = '150px'
k.width = '120px'
k.editObj = {
...this.editObj.select.defaultConf[k.fieldCode],
width: '140px'
width: '110px'
}
}
if (this.editObj.input.attrList.includes(k.fieldCode)) {
k.editType = 'input'
k.inputType = this.editObj.input.defaultConf[k.fieldCode].inputType || 'number'
k.maxlength = this.editObj.input.defaultConf[k.fieldCode].maxlength || ''
k.width = '110px'
k.width = '100px'
k.editObj = {
...this.editObj.input.defaultConf[k.fieldCode],
width: '100px'
width: '90px'
}
if (k.fieldCode == 'partnerFeeCalculateCoefficient') {
k.width = '200px'
k.width = '180px'
// k.editObj.width = '110px'
}
}
......@@ -1445,11 +1417,9 @@ export default {
k.width = '193px'
}
} else {
k.width = '100px'
k.width = '80px'
if (k.fieldCode == 'serialNo') {
k.width = '60px'
} else if (['orderCode', 'tradeNo'].includes(k.fieldCode)) {
k.width = '110px'
k.width = '40px'
}
}
......@@ -1484,12 +1454,12 @@ export default {
})
}
})
console.log(this.tableHeader, 'v---')
this.dealTableData(this.tableHeader)
// console.log(this.tableHeader, 'v---')
this.dealTableData()
},
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
dealTableData(fn) {
dealTableData(fn = null) {
this.tableList = []
let serialNo = 0
const txtList = this[this.billTypeStr + 'ChangeTxtList']
......@@ -1679,7 +1649,7 @@ export default {
this.batchVisible = !this.batchVisible
},
handleBatchClose() {
this.dialogErrors = {};
this.dialogErrors = {}
this.handelBatchVisible()
this.headObj = {}
},
......@@ -1707,8 +1677,8 @@ export default {
this.dealModify(rowIdx, this.headObj.extInfo.source, this.headObj.fieldCode)
})
this.$nextTick(() => {
this.billCompute()
this.handleBatchClose()
this.billCompute()
})
}
},
......@@ -1932,6 +1902,12 @@ export default {
border-left-color: #dcdfe6;
}
}
.el-input-group__prepend {
.el-input__inner {
font-size: 12px;
}
}
}
}
::v-deep .el-input__suffix .inputSuffix {
......@@ -1939,6 +1915,7 @@ export default {
left: -12px;
top: 8px;
// transition: all 0.3s;
font-size: 12px;
}
::v-deep input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
......@@ -1949,25 +1926,50 @@ export default {
/*设置number类型的input外观*/
::v-deep input[type="number"] {
-moz-appearance: textfield;
padding: 0 8px;
}
.tb-header-cell {
box-sizing: border-box;
text-align: center;
// white-space: nowrap;
display: inline-block; /* 或者 inline */
font-size: 12px;
}
.tb-cell {
padding: 0px 6px;
padding: 0;
text-align: center;
font-size: 12px;
}
::v-deep .el-table .cell {
padding: 0px 6px !important;
text-align: center;
font-size: 12px;
}
::v-deep .el-select .el-input__inner {
font-size: 12px;
padding-left: 8px;
}
::v-deep .el-input__inner {
font-size: 12px;
padding: 0 8px;
}
::v-deep .el-select-dropdown__item {
font-size: 12px;
}
::v-deep .el-table th {
font-size: 12px;
}
::v-deep .el-table .el-table__header th {
font-size: 12px;
}
::v-deep .el-table__footer-wrapper tbody td {
padding: 14px;
text-align: center;
font-size: 12px;
}
.total-box {
display: flex;
......
<!-- 下载对账单 -->
<template>
<d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm">
<el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill">系统对账</el-button>
<el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill" :loading="$store.state.d2admin.loading.value">系统对账</el-button>
<el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading">
<el-form-item label="商户类型:" prop="merchantType">
<el-radio-group v-model="infoForm.merchantType" @change="changeType">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!