fix:生产工单自动生成物料需求数据

This commit is contained in:
zhangxuanming 2025-01-16 15:06:09 +08:00
parent 29a63f2a6d
commit 8ec64c8a66
2 changed files with 4 additions and 10 deletions

View File

@ -398,7 +398,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 ref="itemlist" :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">

View File

@ -1,8 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-table v-loading="loading" :data="productBomList">
<el-table v-loading="loading" :data="productBomList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="物料编号" width="120" align="center" prop="bomItemCode" /> <el-table-column label="物料编号" width="120" align="center" prop="bomItemCode" />
<el-table-column label="物料名称" width="200" align="center" prop="bomItemName" :show-overflow-tooltip="true"/> <el-table-column label="物料名称" width="200" align="center" prop="bomItemName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="bomItemSpec" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="bomItemSpec" :show-overflow-tooltip="true"/>
@ -32,9 +30,7 @@
data() { data() {
return { return {
// //
loading: true, loading: false,
//
ids: [],
// //
single: true, single: true,
// //
@ -79,7 +75,6 @@
this.queryParams.productId = this.workorder.productId; this.queryParams.productId = this.workorder.productId;
this.queryParams.quantity = this.workorder.quantity; this.queryParams.quantity = this.workorder.quantity;
listItems(this.queryParams).then(response => { listItems(this.queryParams).then(response => {
debugger;
this.productBomList = response.rows; this.productBomList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -88,4 +83,3 @@
} }
}; };
</script> </script>