fix:生产工单自动生成物料需求数据
This commit is contained in:
parent
29a63f2a6d
commit
8ec64c8a66
@ -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">
|
||||||
|
@ -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"/>
|
||||||
@ -23,7 +21,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listItems } from "@/api/mes/pro/workorder";
|
import { listItems } from "@/api/mes/pro/workorder";
|
||||||
export default {
|
export default {
|
||||||
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user