diff --git a/vue/src/components/ImportExcel-normal/index.vue b/vue/src/components/ImportExcel-normal/index.vue index dbe2486..7fe9b85 100644 --- a/vue/src/components/ImportExcel-normal/index.vue +++ b/vue/src/components/ImportExcel-normal/index.vue @@ -150,7 +150,7 @@ export default { message: "导入成功!", type: "success", }); - this.$parent.importCallback() + this.$parent.importNormalCallback() } else { this.$message({ message: res.message, diff --git a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue index 3cb0c2a..465ad2e 100644 --- a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue +++ b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue @@ -4,6 +4,16 @@
+ + + + + + + + @@ -19,12 +29,12 @@ @keyup.enter.native="handleQuery" /> - + 搜索 重置 - 导出(Excel) + 导出(Excel) + 导入 - +
@@ -58,15 +75,13 @@ class="cr-table" :data="list" :height="tableHeight" :cell-style="cellStyle" :header-cell-style="headerRowStyle" size="small" stripe border highlight-current-row style="width: 100%" @sort-change="sortChange" @selection-change="handleSelectionChange" @row-click="handleRowClick"> - + - + @@ -198,6 +220,7 @@ import permission from "@/directive/permission/index.js"; import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportTxt"; + import importExcelNormal from "@/components/ImportExcel-normal"; import Lockr from "lockr"; import moment from "moment"; import Detail from "./detail.vue"; @@ -230,7 +253,8 @@ Pagination, CRMTableHead, importExcel, - Detail + Detail, + importExcelNormal }, directives: { permission @@ -268,7 +292,8 @@ dialogOptions: [], versionValue: "", searchContent: "", // 输入内容 - showExcelImport: false, + showExcelImport:false, + showExcelNormal: false, drawer: false, list: null, totalCount: 0, @@ -336,6 +361,21 @@ computed: { getDefaultField() { var tempsTabs = []; + tempsTabs.push({ + label: "规格说明", + prop: "specExplain", + width: 140, + }); + tempsTabs.push({ + label: "颜色说明", + prop: "colorExplain", + width: 140, + }); + tempsTabs.push({ + label: "ERP总成编码", + prop: "erpAssemblyCode", + width: 140, + }); tempsTabs.push({ label: "总成名称", prop: "erpAssemblyName", @@ -346,11 +386,11 @@ prop: "groupCode", width: 240, }); - tempsTabs.push({ - label: "车型代码", - prop: "vehicleModel", - width: 120, - }); + // tempsTabs.push({ + // label: "车型代码", + // prop: "vehicleModel", + // width: 120, + // }); tempsTabs.push({ label: "创建时间", prop: "creationTime", @@ -361,6 +401,19 @@ }, }, methods: { + handleImportNormal() { + //导入 + this.showExcelNormal = true; + }, + //关闭导入窗体时调用 + importCloseNormal() { + this.showExcelNormal = false; + }, + // 导入后回调 + importNormalCallback(){ + this.importCloseNormal() + this.getList(); + }, //抽屉 handleDrawerOpen(param) { this.drawer = true; diff --git a/vue/src/views/pg-fis/basedate/planControl/index.vue b/vue/src/views/pg-fis/basedate/planControl/index.vue index 884115f..d9b554e 100644 --- a/vue/src/views/pg-fis/basedate/planControl/index.vue +++ b/vue/src/views/pg-fis/basedate/planControl/index.vue @@ -406,7 +406,7 @@ this.showExcelImport = false; }, // 导入后回调 - importCallback(){ + importNormalCallback(){ this.importClose() this.getList(); },