fix:生产工单自动生成物料需求数据
This commit is contained in:
parent
29a63f2a6d
commit
8ec64c8a66
@ -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">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user