This commit is contained in:
2026-01-23 11:10:04 +08:00
parent e5cea4a818
commit 6d5394f565
11 changed files with 176 additions and 379 deletions

View File

@@ -50,7 +50,7 @@
</el-form-item>
</el-col>
</el-row>
<el-table v-loading="loading" :data="billList" :row-class-name="tableBillRowClassName" @row-dblclick="billClick"
<el-table v-loading="loading" ref="billTableRef" :data="billList" highlight-current-row @row-click="tableBillRowClick" :row-class-name="tableBillRowClassName" @row-dblclick="billClick"
@current-change="uploadSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="单据号" align="center" prop="billNo" width="180" />
@@ -1126,6 +1126,12 @@ const delData = (row) => {
});
}
// 单击单据
const billTableRef = ref(null);
const tableBillRowClick = (row, event, column) => {
billTableRef.value.setCurrentRow(row)
}
//双击单据,查询明细
const billDoubleClickObj = ref({});
const detailLoading = ref(false); //加载列表详情
@@ -1705,16 +1711,6 @@ function isAudit() {
isAudit();
</script>
<style scoped lang="scss">
:deep(.el-table .success-row) {
background-color: #f8fdf5 !important;
}
.el-table {
/* 核心:把 hover 背景色设为和默认行背景色一致 */
// --el-table-row-hover-bg-color: transparent;
/* 或设为和表格背景色相同(比如白色),更通用 */
/* --el-table-row-hover-bg-color: #ffffff; */
}
.printMeBox {
div {