优化
This commit is contained in:
@@ -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({});
|
||||
|
||||
Reference in New Issue
Block a user