|
|
@ -33,10 +33,10 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="BOM物料名称" prop="itemName">
|
|
|
|
<el-form-item label="产品名称" prop="itemName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.itemName"
|
|
|
|
v-model="queryParams.itemName"
|
|
|
|
placeholder="请输入BOM物料名称"
|
|
|
|
placeholder="请输入产品名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
style="width: 240px"
|
|
|
|
style="width: 240px"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
@ -57,7 +57,9 @@
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"></el-table-column>
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"></el-table-column>
|
|
|
|
<el-table-column label="BOM物料编码" align="center" key="itemCode" prop="bomCode" v-if="columns[0].visible" >
|
|
|
|
<el-table-column label="BOM物料编码" align="center" key="itemCode" prop="bomCode" v-if="columns[0].visible" >
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="BOM物料名称" align="left" key="itemName" prop="bomName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
|
|
<el-table-column label="产品名称" align="left" key="itemName" prop="productDescZh" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="BOM物料组件编码" align="left" key="component" prop="component" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="BOM物料组件名称" align="left" key="componentName" prop="componentName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
@ -75,35 +77,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
import {listBom} from "@/api/technology/process";
|
|
|
|
import {listBom} from "@/api/technology/process";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "ItemSingleBom",
|
|
|
|
name: "ItemSingleBom",
|
|
|
|
// components: { Treeselect },
|
|
|
|
// components: { Treeselect },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// treeData: [{
|
|
|
|
|
|
|
|
// id: '1',
|
|
|
|
|
|
|
|
// label: 'BOM物料类别',
|
|
|
|
|
|
|
|
// children: [{
|
|
|
|
|
|
|
|
// id: 'equ_type_lg',
|
|
|
|
|
|
|
|
// label: '料罐'
|
|
|
|
|
|
|
|
// }, {
|
|
|
|
|
|
|
|
// id: 'equ_type_cxj',
|
|
|
|
|
|
|
|
// label: '成型机'
|
|
|
|
|
|
|
|
// }, {
|
|
|
|
|
|
|
|
// id: 'equ_type_hf',
|
|
|
|
|
|
|
|
// label: '烘房'
|
|
|
|
|
|
|
|
// }, {
|
|
|
|
|
|
|
|
// id: 'equ_type_spj',
|
|
|
|
|
|
|
|
// label: '收坯机'
|
|
|
|
|
|
|
|
// }, {
|
|
|
|
|
|
|
|
// id: 'equ_type_bzx',
|
|
|
|
|
|
|
|
// label: '包装线'
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ]
|
|
|
|
|
|
|
|
// }],
|
|
|
|
|
|
|
|
showFlag:false,
|
|
|
|
showFlag:false,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
selectedItemId: undefined,
|
|
|
|
selectedItemId: undefined,
|
|
|
@ -116,7 +97,7 @@ export default {
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
// 总条数
|
|
|
|
// 总条数
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
// 设备产品表格数据
|
|
|
|
// BOM产品表格数据
|
|
|
|
itemList: null,
|
|
|
|
itemList: null,
|
|
|
|
// 树选项
|
|
|
|
// 树选项
|
|
|
|
itemTypeOptions: undefined,
|
|
|
|
itemTypeOptions: undefined,
|
|
|
@ -134,11 +115,14 @@ export default {
|
|
|
|
bomCode: undefined,
|
|
|
|
bomCode: undefined,
|
|
|
|
itemTypeId: 0,
|
|
|
|
itemTypeId: 0,
|
|
|
|
itemCodeGet: '',
|
|
|
|
itemCodeGet: '',
|
|
|
|
|
|
|
|
productDescZh : undefined,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 列信息
|
|
|
|
// 列信息
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{ key: 0, label: `BOM物料编码`, visible: true },
|
|
|
|
{ key: 0, label: `BOM物料编码`, visible: true },
|
|
|
|
{ key: 1, label: `BOM物料名称`, visible: true }
|
|
|
|
{ key: 1, label: `产品名称`, visible: true },
|
|
|
|
|
|
|
|
{ key: 2, label: `BOM物料组件编码`, visible: true },
|
|
|
|
|
|
|
|
{ key: 3, label: `BOM物料组件名称`, visible: true }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -158,9 +142,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询设备编码列表*/
|
|
|
|
/** 查询BOM列表*/
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
this.queryParams.bomCode = this.queryParams.itemCode;
|
|
|
|
|
|
|
|
this.queryParams.productDescZh = this.queryParams.itemName;
|
|
|
|
listBom(this.queryParams).then(response => {
|
|
|
|
listBom(this.queryParams).then(response => {
|
|
|
|
this.itemList = response.rows;
|
|
|
|
this.itemList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
@ -261,6 +247,7 @@ export default {
|
|
|
|
// this.showFlag = false;
|
|
|
|
// this.showFlag = false;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
submitBomForm() {
|
|
|
|
submitBomForm() {
|
|
|
|
const data = this.ids;
|
|
|
|
const data = this.ids;
|
|
|
|
console.log("数据",data);
|
|
|
|
console.log("数据",data);
|
|
|
|