This commit is contained in:
2026-01-27 09:27:46 +08:00
parent 78ec95c313
commit 279a99afbe
10 changed files with 187 additions and 359 deletions

View File

@@ -50,7 +50,7 @@
</el-form-item>
</el-col>
</el-row>
<el-table v-loading="loading" ref="billTableRef" :data="billList" highlight-current-row @row-click="tableBillRowClick" :row-class-name="tableBillRowClassName" @row-dblclick="billClick"
<el-table v-loading="loading" ref="billTableRef" :data="billList" highlight-current-row @row-click="(row) => tableInfoRowClick(row, billTableRef)" :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" />
@@ -128,7 +128,7 @@
<el-button type="primary" plain icon="Delete" @click="handleOneClickStockDel">一键删除</el-button>
</el-col>
</el-row>
<el-table v-loading="detailLoading" show-overflow-tooltip border :data="stockList"
<el-table v-loading="detailLoading" ref="infoTableRef" highlight-current-row @row-click="(row) => tableInfoRowClick(row, infoTableRef)" show-overflow-tooltip border :data="stockList"
@selection-change="printSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" type="index" width="70" />
@@ -1128,9 +1128,11 @@ const delData = (row) => {
// 单击单据
const billTableRef = ref(null);
const tableBillRowClick = (row, event, column) => {
billTableRef.value.setCurrentRow(row)
}
// 单击列表的颜色
const infoTableRef = ref(null);
// const tableInfoRowClick = (row, ref) => {
// ref.setCurrentRow(row)
// }
//双击单据,查询明细
const billDoubleClickObj = ref({});