|
|
@ -1,22 +1,32 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-form-item label="物料编号" prop="materialCode">
|
|
|
|
<el-form-item label="成品物料编号" prop="materialCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.materialCode"
|
|
|
|
v-model="queryParams.materialCode"
|
|
|
|
placeholder="请输入物料编号"
|
|
|
|
placeholder="请输入成品物料编号"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
<el-form-item label="成品物料名称" prop="materialName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.materialName"
|
|
|
|
v-model="queryParams.materialName"
|
|
|
|
placeholder="请输入物料名称"
|
|
|
|
placeholder="请输入成品物料名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否可生产" prop="isPlanToStation">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.isPlanToStation" placeholder="请选择是否可生产" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.is_release"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</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-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@ -100,9 +110,9 @@
|
|
|
|
<el-table-column label="工厂名称" align="center" prop="plantName" v-if="columns[7].visible"/>
|
|
|
|
<el-table-column label="工厂名称" align="center" prop="plantName" v-if="columns[7].visible"/>
|
|
|
|
<!-- <el-table-column label="产线/工位" align="center" prop="productLineCode" v-if="columns[8].visible"/>-->
|
|
|
|
<!-- <el-table-column label="产线/工位" align="center" prop="productLineCode" v-if="columns[8].visible"/>-->
|
|
|
|
<!-- <el-table-column label="工单编号" align="center" prop="orderCode" v-if="columns[14].visible"/>-->
|
|
|
|
<!-- <el-table-column label="工单编号" align="center" prop="orderCode" v-if="columns[14].visible"/>-->
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[9].visible">
|
|
|
|
<el-table-column label="是否可生产" align="center" prop="isPlanToStation" v-if="columns[9].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
|
|
|
|
<dict-tag :options="dict.type.is_release" :value="scope.row.isPlanToStation"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[10].visible"/>
|
|
|
|
<el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[10].visible"/>
|
|
|
@ -229,7 +239,7 @@ import addBom from '@//views/base/orderBomInfo/addBom.vue';
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "BaseBomInfo",
|
|
|
|
name: "BaseBomInfo",
|
|
|
|
dicts: ['material_subclass', 'is_flag'],
|
|
|
|
dicts: ['material_subclass', 'is_flag','is_release'],
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
'add-bom': addBom
|
|
|
|
'add-bom': addBom
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -267,6 +277,7 @@ export default {
|
|
|
|
parentId: null,
|
|
|
|
parentId: null,
|
|
|
|
plantCode: null,
|
|
|
|
plantCode: null,
|
|
|
|
productLineCode: null,
|
|
|
|
productLineCode: null,
|
|
|
|
|
|
|
|
isPlanToStation: null,
|
|
|
|
isFlag: null,
|
|
|
|
isFlag: null,
|
|
|
|
createdBy: null,
|
|
|
|
createdBy: null,
|
|
|
|
createdTime: null,
|
|
|
|
createdTime: null,
|
|
|
@ -289,8 +300,8 @@ export default {
|
|
|
|
{ key: 6, label: `父物料编号`, visible: true },
|
|
|
|
{ key: 6, label: `父物料编号`, visible: true },
|
|
|
|
{ key: 7, label: `工厂编号`, visible: true },
|
|
|
|
{ key: 7, label: `工厂编号`, visible: true },
|
|
|
|
{ key: 8, label: `产线/工位`, visible: true },
|
|
|
|
{ key: 8, label: `产线/工位`, visible: true },
|
|
|
|
{ key: 9, label: `是否标识`, visible: true },
|
|
|
|
{ key: 9, label: `是否可生产`, visible: true },
|
|
|
|
{ key: 10, label: `创建人`, visible: true },
|
|
|
|
{ key: 10, label: `创建人`, visible: false },
|
|
|
|
{ key: 11, label: `创建时间`, visible: true },
|
|
|
|
{ key: 11, label: `创建时间`, visible: true },
|
|
|
|
{ key: 12, label: `更新人`, visible: false },
|
|
|
|
{ key: 12, label: `更新人`, visible: false },
|
|
|
|
{ key: 13, label: `更新时间`, visible: false },
|
|
|
|
{ key: 13, label: `更新时间`, visible: false },
|
|
|
@ -333,6 +344,7 @@ export default {
|
|
|
|
parentId: null,
|
|
|
|
parentId: null,
|
|
|
|
plantCode: null,
|
|
|
|
plantCode: null,
|
|
|
|
productLineCode: null,
|
|
|
|
productLineCode: null,
|
|
|
|
|
|
|
|
isPlanToStation: null,
|
|
|
|
isFlag: 0,
|
|
|
|
isFlag: 0,
|
|
|
|
createdBy: null,
|
|
|
|
createdBy: null,
|
|
|
|
createdTime: null,
|
|
|
|
createdTime: null,
|
|
|
|