生产工单界面修改

This commit is contained in:
yinjinlu-pc\尹金路 2023-03-29 10:42:53 +08:00
parent 0c18420d8f
commit 369bcc2ca5

View File

@ -192,6 +192,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改生产工单对话框 --> <!-- 添加或修改生产工单对话框 -->
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
@ -337,7 +344,7 @@
<Workorderbom ref="bomlist" :optType="optType" :workorder="form" @handleAddSub="handleSubAdd" ></Workorderbom> <Workorderbom ref="bomlist" :optType="optType" :workorder="form" @handleAddSub="handleSubAdd" ></Workorderbom>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="物料需求"> <el-tab-pane label="物料需求">
<WorkorderItemList :optType="optType" :workorder="form"></WorkorderItemList>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -381,6 +388,8 @@ export default {
showSearch: true, showSearch: true,
// //
single: true, single: true,
//
total: 0,
// //
multiple: true, multiple: true,
// //
@ -393,6 +402,8 @@ export default {
open: false, open: false,
// //
queryParams: { queryParams: {
pageNum: 1,
pageSize: 10,
workorderCode: null, workorderCode: null,
workorderName: null, workorderName: null,
orderSource: null, orderSource: null,
@ -456,7 +467,8 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
listWorkorder(this.queryParams).then(response => { listWorkorder(this.queryParams).then(response => {
this.workorderList = this.handleTree(response.data, "workorderId", "parentId"); this.workorderList = this.handleTree(response.rows, "workorderId", "parentId");
this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },