From bd62a07a73c45f9b3bb2c0ee35dc28b1b5a261c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?=
<14166000+zhangtonghai@user.noreply.gitee.com>
Date: Tue, 11 Jun 2024 10:24:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=AF=B9=E8=B4=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CodeCheckBill/TenantAuditStepModal.vue | 61 ++++++++-----------
src/views/baseinfo/CodeCheckBill/index2.vue | 28 +++++++++
2 files changed, 55 insertions(+), 34 deletions(-)
create mode 100644 src/views/baseinfo/CodeCheckBill/index2.vue
diff --git a/src/views/baseinfo/CodeCheckBill/TenantAuditStepModal.vue b/src/views/baseinfo/CodeCheckBill/TenantAuditStepModal.vue
index ff4ad011..2b88ccb3 100644
--- a/src/views/baseinfo/CodeCheckBill/TenantAuditStepModal.vue
+++ b/src/views/baseinfo/CodeCheckBill/TenantAuditStepModal.vue
@@ -16,30 +16,30 @@
新增费用字段
删除费用字段
-
+
+
@@ -224,7 +224,7 @@
]
const Lsettings = {
height: '400',
- width: '100%',
+ // width: '100%',
autoWrapRow: true,
autoWrapCol: true,
// 每行的高度
@@ -320,43 +320,36 @@
},
]
const Rsettings = {
- height: '200',
- width: '100%',
+ height: '400',
+ // width: '100%',
autoWrapRow: true,
autoWrapCol: true,
// 每行的高度
rowHeights: 32,
fixedColumnsLeft: 1,
-
- // 控制回车移动
- enterMoves: 'row',
+ // 需要隐藏的列
+ // hiddenColumns: {
+ // columns: [1],
+ // indicators: true,
+ // },
columnSorting: true,
+ // 设置排序的列和方向
+ // columnSorting: {
+ // column: 2, // 根据第三列排序
+ // sortOrder: ['asc', 'desc'] // 允许升序和降序排序
+ // },
+ // 如果通过复制或者填写校验出现错误,清空输入框
+ // afterValidate: function (isValid, value, row, prop, source) {
+ // if (!isValid) {
+ // hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
+ // }
+ // },
columns: RColumns,
- //只读
- readOnly: true,
// 此行直接复制,必须(非商用)
licenseKey: 'non-commercial-and-evaluation',
+ enterMoves: 'row',
// 定义所有单元格发生变化的回调处理
- afterChange(changes, source) {
- // if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
- // // 控制表格单选
- // if (changes[0][1] == 'selected' && changes[0][3]) {
- // let Arr: any = []
- // moreTList.value.forEach((e, i) => {
- // if (i !== changes[0][0]) {
- // Arr.push({ ...e, selected: false })
- // } else {
- // moreSelectNum.value = i
- // Arr.push({ ...e, selected: true })
- // }
- // })
- // moreTList.value.splice(0)
- // Arr.forEach((e) => {
- // moreTList.value.push(e)
- // })
- // }
- // }
- },
+ afterChange(changes, source) {},
}