添加工艺中BOM配置

This commit is contained in:
JinLu.Yin 2022-09-12 22:45:02 +08:00
parent 21c0677161
commit 6f744f7537
2 changed files with 24 additions and 4 deletions

View File

@ -168,6 +168,11 @@
</el-col>
</el-row>
</el-form>
<el-tabs type="border-card" v-if="form.recordId != null">
<el-tab-pane v-for="(process,index) in processList" :key="index" :label="process.processName">
<Routeproductbom :routeId="form.routeId" :productId="form.productId" :processId="process.processId" :optType="optType"></Routeproductbom>
</el-tab-pane>
</el-tabs>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="cancel" v-if="optType =='view'">返回</el-button>
<el-button type="primary" @click="submitForm" v-else> </el-button>
@ -179,11 +184,13 @@
<script>
import { listRouteproduct, getRouteproduct, delRouteproduct, addRouteproduct, updateRouteproduct, moveRouteproduct } from "@/api/mes/pro/routeproduct";
import { listRouteprocess} from "@/api/mes/pro/routeprocess";
import Routeproductbom from "./routeproductbom.vue"
import ItemSelect from "@/components/itemSelect/single.vue";
export default {
name: "Routeproduct",
dicts: ['mes_time_type'],
components: {ItemSelect},
components: {ItemSelect,Routeproductbom},
data() {
return {
//
@ -200,6 +207,8 @@ export default {
total: 0,
//
routeproductList: [],
//
processList: [],
//
title: "",
//
@ -245,6 +254,15 @@ export default {
this.loading = false;
});
},
//
getProcess(){
let param = {
routeId: this.form.routeId
};
listRouteprocess(param).then(response => {
this.processList = response.rows;
});
},
//
handleSelectProduct(){
this.$refs.itemSelect.showFlag = true;
@ -283,6 +301,7 @@ export default {
updateBy: null,
updateTime: null
};
this.getProcess();//
this.resetForm("form");
},
/** 搜索按钮操作 */

View File

@ -1,13 +1,13 @@
<template>
<div class="app-container">
<el-row :gutter="10" class="mb8">
<el-row :gutter="10" v-if="optType!='view'" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
@click="handleAdd"
v-hasPermi="['mes:pro:proroute:add']"
>新增</el-button>
</el-col>
@ -32,7 +32,7 @@
<el-table-column label="规格型号" align="center" prop="specification" />
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="用料比例" align="center" prop="quantity" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" v-if="optType!='view'" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
@ -112,6 +112,7 @@ export default {
routeId: null,
productId: null,
processId: null,
optType: null
},
data() {
return {