|
@@ -4,6 +4,7 @@
|
|
|
<BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
<BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
|
<ele-pro-table ref="table" :key="tableKey" :columns="columns" :pagination="pagination"
|
|
<ele-pro-table ref="table" :key="tableKey" :columns="columns" :pagination="pagination"
|
|
|
:header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table" tool-class="ele-toolbar-actions">
|
|
:header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table" tool-class="ele-toolbar-actions">
|
|
|
|
|
+
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="toolbar_box">
|
|
<div class="toolbar_box">
|
|
|
<div v-if="attributeData.status != 1">
|
|
<div v-if="attributeData.status != 1">
|
|
@@ -29,7 +30,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:dosage="{ row }">
|
|
<template v-slot:dosage="{ row }">
|
|
|
-
|
|
|
|
|
<el-input v-model="row.dosage" placeholder="请输入" size="mini" style="width: 68px">
|
|
<el-input v-model="row.dosage" placeholder="请输入" size="mini" style="width: 68px">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</template>
|
|
</template>
|
|
@@ -368,8 +368,51 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '模具',
|
|
label: '模具',
|
|
|
value: 5
|
|
value: 5
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '备品备件',
|
|
|
|
|
+ value: 6
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '零部件',
|
|
|
|
|
+ value: 3
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '舟皿',
|
|
|
|
|
+ value: 8
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '消耗材料',
|
|
|
|
|
+ value: 10
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '包装材料',
|
|
|
|
|
+ value: 13
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '生产辅助设备',
|
|
|
|
|
+ value: 14
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '仪表计量设备',
|
|
|
|
|
+ value: 15
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '会计科目',
|
|
|
|
|
+ value: 23
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '周转盘',
|
|
|
|
|
+ value: 26
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '废品',
|
|
|
|
|
+ value: 28
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
],
|
|
],
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
isList: false,
|
|
isList: false,
|
|
|
isId: null,
|
|
isId: null,
|
|
|
tableKey: "",
|
|
tableKey: "",
|
|
@@ -451,6 +494,8 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
rootCategoryLevelIdText(v) {
|
|
rootCategoryLevelIdText(v) {
|
|
|
|
|
+ console.log(v,'111111');
|
|
|
|
|
+
|
|
|
if (v) {
|
|
if (v) {
|
|
|
let a = this.rootCategoryLevelIdList.find(item => item.value == v)
|
|
let a = this.rootCategoryLevelIdList.find(item => item.value == v)
|
|
|
return a.label
|
|
return a.label
|
|
@@ -553,9 +598,13 @@ export default {
|
|
|
id: this.attributeData.id,
|
|
id: this.attributeData.id,
|
|
|
bomType: this.attributeData.bomType
|
|
bomType: this.attributeData.bomType
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
if (this.isList) {
|
|
if (this.isList) {
|
|
|
data = this.listTow;
|
|
data = this.listTow;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ console.log(data, 'data');
|
|
|
|
|
+
|
|
|
return data;
|
|
return data;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -566,6 +615,7 @@ export default {
|
|
|
|
|
|
|
|
async getDictList(code) {
|
|
async getDictList(code) {
|
|
|
let { data: res } = await getByCode(code);
|
|
let { data: res } = await getByCode(code);
|
|
|
|
|
+
|
|
|
this.dictList = res.map((item) => {
|
|
this.dictList = res.map((item) => {
|
|
|
let values = Object.keys(item);
|
|
let values = Object.keys(item);
|
|
|
return {
|
|
return {
|