|
@@ -25,24 +25,16 @@
|
|
|
>
|
|
>
|
|
|
新建
|
|
新建
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <div class="upload" v-if="rootTreeId == 6">
|
|
|
|
|
- <el-upload
|
|
|
|
|
- v-if="!isLoading"
|
|
|
|
|
- :show-file-list="false"
|
|
|
|
|
- class="upload-demo"
|
|
|
|
|
- action=""
|
|
|
|
|
- :before-upload="beforeUpload"
|
|
|
|
|
- :on-success="successUpload"
|
|
|
|
|
- :on-error="errorUpload"
|
|
|
|
|
- >
|
|
|
|
|
- <slot>
|
|
|
|
|
- <el-button size="small" type="primary">导入</el-button>
|
|
|
|
|
- </slot>
|
|
|
|
|
- </el-upload>
|
|
|
|
|
- <el-button v-else size="small" type="primary" :loading="isLoading"
|
|
|
|
|
- >导入</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ icon="el-icon-upload2"
|
|
|
|
|
+ plain
|
|
|
|
|
+ @click="uploadFile"
|
|
|
|
|
+ >导入</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
|
v-if="rootTreeId == 9"
|
|
v-if="rootTreeId == 9"
|
|
|
size="small"
|
|
size="small"
|
|
@@ -77,7 +69,7 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="handleLink('6')"
|
|
@click="handleLink('6')"
|
|
|
- >关联备品备件</el-button
|
|
|
|
|
|
|
+ >关联备品备件</el-button
|
|
|
>-->
|
|
>-->
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
@@ -115,13 +107,8 @@
|
|
|
结构BOM
|
|
结构BOM
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <el-link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- v-if="row.isProduct == 1"
|
|
|
|
|
- :underline="false"
|
|
|
|
|
- >
|
|
|
|
|
- BOM管理
|
|
|
|
|
|
|
+ <el-link type="primary" v-if="row.isProduct == 1" :underline="false">
|
|
|
|
|
+ BOM管理
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
|
|
<el-link
|
|
<el-link
|
|
@@ -213,6 +200,12 @@
|
|
|
>
|
|
>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <importDialog
|
|
|
|
|
+ :defModule="moudleName"
|
|
|
|
|
+ ref="importDialogRef"
|
|
|
|
|
+ @success="reload"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -228,8 +221,11 @@
|
|
|
import linkMaterialDialog from './link-material-dialog.vue';
|
|
import linkMaterialDialog from './link-material-dialog.vue';
|
|
|
import goodsAllocation from './goodsAllocation.vue';
|
|
import goodsAllocation from './goodsAllocation.vue';
|
|
|
import aridRegion from './aridRegion';
|
|
import aridRegion from './aridRegion';
|
|
|
|
|
+ import importDialog from '@/components/upload/import-dialog.vue';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ importDialog,
|
|
|
MaterialModal,
|
|
MaterialModal,
|
|
|
ParamEdit,
|
|
ParamEdit,
|
|
|
mouldDialog,
|
|
mouldDialog,
|
|
@@ -246,10 +242,11 @@
|
|
|
rootTreeId: [Number, String],
|
|
rootTreeId: [Number, String],
|
|
|
|
|
|
|
|
oneProduct: Boolean
|
|
oneProduct: Boolean
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ moudleName : "mainCategory",
|
|
|
|
|
+
|
|
|
errorData: [],
|
|
errorData: [],
|
|
|
exportErrorDioalogVisible: false,
|
|
exportErrorDioalogVisible: false,
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
@@ -369,15 +366,11 @@
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
toBomManager(row) {
|
|
toBomManager(row) {
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/material/BOMmanage/details',
|
|
path: '/material/BOMmanage/details',
|
|
|
query: {
|
|
query: {
|
|
|
categoryId: row.id,
|
|
categoryId: row.id,
|
|
|
code: row.code
|
|
code: row.code
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -437,7 +430,7 @@
|
|
|
id: row.id ? row.id : null,
|
|
id: row.id ? row.id : null,
|
|
|
status: status,
|
|
status: status,
|
|
|
rootId: this.rootId,
|
|
rootId: this.rootId,
|
|
|
- oneProduct:this.oneProduct,
|
|
|
|
|
|
|
+ oneProduct: this.oneProduct,
|
|
|
t: new Date().getTime()
|
|
t: new Date().getTime()
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -502,6 +495,10 @@
|
|
|
|
|
|
|
|
handleAridRegion(row) {
|
|
handleAridRegion(row) {
|
|
|
this.$refs.aridRegionRef.open(row);
|
|
this.$refs.aridRegionRef.open(row);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ uploadFile () {
|
|
|
|
|
+ this.$refs.importDialogRef.open();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|