|
|
|
@ -1,6 +1,13 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
|
|
|
|
|
<el-form
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
size="small"
|
|
|
|
|
:inline="true"
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
label-width="88px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="BOM单号" prop="bomCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.bomCode"
|
|
|
|
@ -10,8 +17,16 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleQuery"
|
|
|
|
|
>搜索</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
|
|
>重置</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -56,42 +71,166 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['wms:bom:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
>导出</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
<right-toolbar
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
@queryTable="getList"
|
|
|
|
|
></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="bomList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
row-key="handle"
|
|
|
|
|
:indent="indent"
|
|
|
|
|
:data="bomList"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
default-expand-all
|
|
|
|
|
lazy
|
|
|
|
|
:load="load"
|
|
|
|
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<!-- 序号 -->
|
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号" fixed/>
|
|
|
|
|
<el-table-column label="BOM单号" align="center" prop="bomCode" width="120" fixed/>
|
|
|
|
|
<el-table-column label="产品号" align="center" prop="productCode" width="120"/>
|
|
|
|
|
<el-table-column label="产品名称" align="center" prop="productDescZh" width="350"/>
|
|
|
|
|
<el-table-column label="组件编码" align="center" prop="component" width="120"/>
|
|
|
|
|
<el-table-column label="组件名称" align="center" prop="componentDescZh" width="350"/>
|
|
|
|
|
<el-table-column label="组件上层编码" align="center" prop="cumc" width="120"/>
|
|
|
|
|
<el-table-column label="可选BOM" align="center" prop="optionalBom" width="120"/>
|
|
|
|
|
<el-table-column label="可选BOM文本" align="center" prop="optionalBomText" width="120"/>
|
|
|
|
|
<el-table-column label="生产版本" align="center" prop="productionVersion" width="120"/>
|
|
|
|
|
<el-table-column label="生产版本有效期" align="center" prop="pvvd" width="180">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="index"
|
|
|
|
|
width="90"
|
|
|
|
|
align="center"
|
|
|
|
|
:index="indexMethod"
|
|
|
|
|
label="序号"
|
|
|
|
|
fixed
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM单号"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomCode"
|
|
|
|
|
width="200"
|
|
|
|
|
fixed
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM层次"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomHierarchy"
|
|
|
|
|
width="100"
|
|
|
|
|
fixed
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="产品号"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="productCode"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="产品名称"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="productDescZh"
|
|
|
|
|
width="350"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="组件编码"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="component"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="组件名称"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="componentDescZh"
|
|
|
|
|
width="350"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="组件上层编码"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="cumc"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="可选BOM"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="optionalBom"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="可选BOM文本"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="optionalBomText"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产版本"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="productionVersion"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产版本有效期"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="pvvd"
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.pvvd, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
<span>{{ parseTime(scope.row.pvvd, "{y}-{m}-{d}") }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="生产版本截止日期" align="center" prop="pved" width="180">
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产版本截止日期"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="pved"
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.pved, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
<span>{{ parseTime(scope.row.pved, "{y}-{m}-{d}") }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="BOM计算数量" align="center" prop="bomCalculateNumber" width="120"/>
|
|
|
|
|
<el-table-column label="BOM计算单位" align="center" prop="bomCalculateUnit" width="120"/>
|
|
|
|
|
<el-table-column label="BOM基本数量" align="center" prop="bomBaseNumber" width="120"/>
|
|
|
|
|
<el-table-column label="BOM基本单位" align="center" prop="bomBaseUnit" width="120"/>
|
|
|
|
|
<el-table-column label="组件数量单位" align="center" prop="componentUnit" width="120"/>
|
|
|
|
|
<el-table-column label="组件采购标志" align="center" prop="componentProFlag" width="120"/>
|
|
|
|
|
<el-table-column label="物料供应标识" align="center" prop="msi" width="120"/>
|
|
|
|
|
<el-table-column label="成本核算标识相关" align="center" prop="sanka" width="150"/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM计算数量"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomCalculateNumber"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM计算单位"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomCalculateUnit"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM基本数量"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomBaseNumber"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="BOM基本单位"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="bomBaseUnit"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="组件数量单位"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="componentUnit"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="组件采购标志"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="componentProFlag"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料供应标识"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="msi"
|
|
|
|
|
width="120"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="成本核算标识相关"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="sanka"
|
|
|
|
|
width="150"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -127,7 +266,10 @@
|
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入工厂" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="生产版本" prop="productionVersion">
|
|
|
|
|
<el-input v-model="form.productionVersion" placeholder="请输入生产版本" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.productionVersion"
|
|
|
|
|
placeholder="请输入生产版本"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="BOM单号" prop="bomCode">
|
|
|
|
|
<el-input v-model="form.bomCode" placeholder="请输入BOM单号" />
|
|
|
|
@ -136,41 +278,66 @@
|
|
|
|
|
<el-input v-model="form.optionalBom" placeholder="请输入可选BOM" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="可选BOM文本" prop="optionalBomText">
|
|
|
|
|
<el-input v-model="form.optionalBomText" placeholder="请输入可选BOM文本" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.optionalBomText"
|
|
|
|
|
placeholder="请输入可选BOM文本"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="生产版本有效期" prop="pvvd">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
<el-date-picker
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.pvvd"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择生产版本有效期">
|
|
|
|
|
placeholder="请选择生产版本有效期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="生产版本截止日期" prop="pved">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
<el-date-picker
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.pved"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择生产版本截止日期">
|
|
|
|
|
placeholder="请选择生产版本截止日期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="BOM计算数量" prop="bomCalculateNumber">
|
|
|
|
|
<el-input v-model="form.bomCalculateNumber" placeholder="请输入BOM计算数量" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.bomCalculateNumber"
|
|
|
|
|
placeholder="请输入BOM计算数量"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="BOM计算单位" prop="bomCalculateUnit">
|
|
|
|
|
<el-input v-model="form.bomCalculateUnit" placeholder="请输入BOM计算单位" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.bomCalculateUnit"
|
|
|
|
|
placeholder="请输入BOM计算单位"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="BOM基本数量" prop="bomBaseNumber">
|
|
|
|
|
<el-input v-model="form.bomBaseNumber" placeholder="请输入BOM基本数量" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.bomBaseNumber"
|
|
|
|
|
placeholder="请输入BOM基本数量"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="BOM基本单位" prop="bomBaseUnit">
|
|
|
|
|
<el-input v-model="form.bomBaseUnit" placeholder="请输入BOM基本单位" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.bomBaseUnit"
|
|
|
|
|
placeholder="请输入BOM基本单位"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="组件数量单位" prop="componentUnit">
|
|
|
|
|
<el-input v-model="form.componentUnit" placeholder="请输入组件数量单位" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.componentUnit"
|
|
|
|
|
placeholder="请输入组件数量单位"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="组件采购标志" prop="componentProFlag">
|
|
|
|
|
<el-input v-model="form.componentProFlag" placeholder="请输入组件采购标志" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.componentProFlag"
|
|
|
|
|
placeholder="请输入组件采购标志"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料供应标识" prop="msi">
|
|
|
|
|
<el-input v-model="form.msi" placeholder="请输入物料供应标识" />
|
|
|
|
@ -188,7 +355,10 @@
|
|
|
|
|
<el-input v-model="form.attr3" placeholder="请输入预留字段3" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否在用" prop="currentVersion">
|
|
|
|
|
<el-input v-model="form.currentVersion" placeholder="请输入是否在用" />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.currentVersion"
|
|
|
|
|
placeholder="请输入是否在用"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
|
|
|
@ -231,6 +401,10 @@ export default {
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
component: null,
|
|
|
|
|
productCode: null,
|
|
|
|
|
bomHierarchy: null,
|
|
|
|
|
handle:null,
|
|
|
|
|
factoryCode: null,
|
|
|
|
|
productionVersion: null,
|
|
|
|
|
bomCode: null,
|
|
|
|
@ -256,9 +430,9 @@ export default {
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
bomCode: [
|
|
|
|
|
{ required: true, message: "BOM单号不能为空", trigger: "blur" }
|
|
|
|
|
{ required: true, message: "BOM单号不能为空", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -272,7 +446,8 @@ export default {
|
|
|
|
|
/** 查询BOM管理 列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listBom(this.queryParams).then(response => {
|
|
|
|
|
this.queryParams.bomHierarchy = "0";
|
|
|
|
|
listBom(this.queryParams).then((response) => {
|
|
|
|
|
this.bomList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -309,7 +484,7 @@ export default {
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
currentVersion: null,
|
|
|
|
|
remark: null
|
|
|
|
|
remark: null,
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -325,9 +500,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.factoryCode)
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
this.ids = selection.map((item) => item.factoryCode);
|
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
@ -338,8 +513,8 @@ export default {
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const factoryCode = row.factoryCode || this.ids
|
|
|
|
|
getBom(factoryCode).then(response => {
|
|
|
|
|
const factoryCode = row.factoryCode || this.ids;
|
|
|
|
|
getBom(factoryCode).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改BOM管理 ";
|
|
|
|
@ -347,16 +522,16 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.factoryCode != null) {
|
|
|
|
|
updateBom(this.form).then(response => {
|
|
|
|
|
updateBom(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
addBom(this.form).then(response => {
|
|
|
|
|
addBom(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
@ -368,19 +543,54 @@ export default {
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const factoryCodes = row.factoryCode || this.ids;
|
|
|
|
|
this.$modal.confirm('是否确认删除BOM管理 编号为"' + factoryCodes + '"的数据项?').then(function() {
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认删除BOM管理 编号为"' + factoryCodes + '"的数据项?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return delBom(factoryCodes);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|
this.download('wms/bom/export', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `bom_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
this.download(
|
|
|
|
|
"wms/bom/export",
|
|
|
|
|
{
|
|
|
|
|
...this.queryParams,
|
|
|
|
|
},
|
|
|
|
|
`bom_${new Date().getTime()}.xlsx`
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
load(tree, treeNode, resolve) {
|
|
|
|
|
this.queryParams.pageNum = null;
|
|
|
|
|
this.queryParams.pageSize = null;
|
|
|
|
|
if(tree.bomHierarchy == " " || tree.bomHierarchy == null){
|
|
|
|
|
this.queryParams.bomHierarchy = "1";
|
|
|
|
|
this.queryParams.cumc = tree.cumc;
|
|
|
|
|
this.queryParams.component = tree.component;
|
|
|
|
|
this.queryParams.bomCode = tree.bomCode;
|
|
|
|
|
}else if(tree.bomHierarchy == "1"){
|
|
|
|
|
this.queryParams.bomHierarchy = "2";
|
|
|
|
|
this.queryParams.component = tree.component;
|
|
|
|
|
this.queryParams.bomCode = tree.bomCode;
|
|
|
|
|
}else if(tree.bomHierarchy == "2"){
|
|
|
|
|
this.queryParams.bomHierarchy = "3";
|
|
|
|
|
this.queryParams.component = tree.component;
|
|
|
|
|
this.queryParams.bomCode = tree.bomCode;
|
|
|
|
|
}else if(tree.bomHierarchy == "3"){
|
|
|
|
|
this.queryParams.bomHierarchy = "4";
|
|
|
|
|
this.queryParams.component = tree.component;
|
|
|
|
|
this.queryParams.bomCode = tree.bomCode;
|
|
|
|
|
}
|
|
|
|
|
listBom(this.queryParams).then(response => {
|
|
|
|
|
resolve(response.rows)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|