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>
</el-tab-pane>
<el-tab-pane label="物料需求">
<WorkorderItemList ref="itemlist" :workorder="form"></WorkorderItemList>
</el-tab-pane>
</el-tabs>
<div slot="footer" class="dialog-footer">

View File

@ -1,8 +1,6 @@
<template>
<div class="app-container">
<el-table v-loading="loading" :data="productBomList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table v-loading="loading" :data="productBomList">
<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="规格型号" align="center" prop="bomItemSpec" :show-overflow-tooltip="true"/>
@ -23,7 +21,7 @@
/>
</div>
</template>
<script>
import { listItems } from "@/api/mes/pro/workorder";
export default {
@ -32,9 +30,7 @@
data() {
return {
//
loading: true,
//
ids: [],
loading: false,
//
single: true,
//
@ -79,7 +75,6 @@
this.queryParams.productId = this.workorder.productId;
this.queryParams.quantity = this.workorder.quantity;
listItems(this.queryParams).then(response => {
debugger;
this.productBomList = response.rows;
this.total = response.total;
this.loading = false;
@ -88,4 +83,3 @@
}
};
</script>