🦄 refactor: 封装统一表格组件,便于批量扩展表格能力
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="processeList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" :data="processeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="工艺ID" align="center" prop="processId" v-if="false"/>
|
||||
<el-table-column label="工艺编码" align="center" prop="processCode" />
|
||||
@@ -114,7 +114,7 @@
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="productionLineList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" :data="productionLineList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="产线编号" align="center" prop="lineCode" />
|
||||
<el-table-column label="产线名称" align="center" prop="lineName" />
|
||||
@@ -113,7 +113,7 @@
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="schedulePlanList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" :data="schedulePlanList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="排产计划ID" align="center" prop="planId" v-if="true"/> -->
|
||||
<el-table-column label="排产计划编号" align="center" prop="planCode" />
|
||||
@@ -140,7 +140,7 @@
|
||||
>详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="batchList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" :data="batchList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="生产任务ID" align="center" prop="batchId" v-if="true" />
|
||||
<el-table-column label="生产任务编号" align="center" prop="batchNo" />
|
||||
@@ -87,7 +87,7 @@
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<!-- 添加或修改批次(合并相同工艺的任务)对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
@@ -127,7 +127,7 @@
|
||||
</el-dialog>
|
||||
|
||||
<el-drawer title="生成生产任务" direction="btt" size="90vh" :visible.sync="batchGenerateDialogVisible" append-to-body>
|
||||
<el-table :data="generateBatchList" style="width: 100%;" border>
|
||||
<KLPTable :data="generateBatchList" style="width: 100%;" border>
|
||||
<el-table-column label="生产任务编号" align="center" prop="batchNo">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.batchNo" />
|
||||
@@ -161,7 +161,7 @@
|
||||
<el-button type="primary" size="mini" @click="handleAddBatch(scope.row)">创建生产任务</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
<KLPTable
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
border
|
||||
@@ -28,10 +28,10 @@
|
||||
<el-button type="text" @click="handleProcessTask(scope.row)">工序</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<el-dialog title="工序" :visible.sync="processTaskDialogVisible" width="80%">
|
||||
<el-table
|
||||
<KLPTable
|
||||
:data="processTaskList"
|
||||
border
|
||||
style="width: 100%"
|
||||
@@ -97,7 +97,7 @@
|
||||
<el-button type="text" size="small" @click="handleSave(scope.row)">保存</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<!-- 新增按钮区域 -->
|
||||
<div style="margin-top: 15px; text-align: right;">
|
||||
|
||||
Reference in New Issue
Block a user