🦄 refactor: 封装统一表格组件,便于批量扩展表格能力
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<el-row style="height: 60vh;">
|
||||
<el-col :span="8">
|
||||
<!-- 原材料表格 -->
|
||||
<el-table v-loading="rawMaterialLoading" ref="leftTable" :data="rawMaterialList" style="width: 100%" height="600" class="message-table" stripe @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="rawMaterialLoading" ref="leftTable" :data="rawMaterialList" style="width: 100%" height="600" class="message-table" stripe @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="rawMaterialId" label="原材料" align="center">
|
||||
<template #default="scope">
|
||||
@@ -35,7 +35,7 @@
|
||||
<el-table-column prop="onTheWay" label="在途" align="center" />
|
||||
<el-table-column prop="inventory" label="在库" align="center" />
|
||||
<el-table-column prop="demand" label="所需" align="center" />
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<el-pagination
|
||||
style="margin-top: 10px;"
|
||||
@@ -56,7 +56,7 @@
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<div slot="header" class="section-title">采购单明细</div>
|
||||
<el-table
|
||||
<KLPTable
|
||||
:data="purchaseList"
|
||||
@selection-change="handleRightSelectionChange"
|
||||
style="width: 100%"
|
||||
@@ -94,7 +94,7 @@
|
||||
<el-input v-model="scope.row.remark" size="small" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user