Browse Source

【长春派格1.5】总成模块功能需求开发

HQ
安虹睿 10 months ago
parent
commit
cc319f4be9
  1. 2
      vue/src/components/ImportExcel-normal/index.vue
  2. 87
      vue/src/views/pg-fis/basedate/assemblyCfg/index.vue
  3. 2
      vue/src/views/pg-fis/basedate/planControl/index.vue

2
vue/src/components/ImportExcel-normal/index.vue

@ -150,7 +150,7 @@ export default {
message: "导入成功!", message: "导入成功!",
type: "success", type: "success",
}); });
this.$parent.importCallback() this.$parent.importNormalCallback()
} else { } else {
this.$message({ this.$message({
message: res.message, message: res.message,

87
vue/src/views/pg-fis/basedate/assemblyCfg/index.vue

@ -4,6 +4,16 @@
<div ref="box"> <div ref="box">
<flexbox class="content-header"> <flexbox class="content-header">
<el-form :model="listQuery" ref="queryForm" v-show="showSearch" :inline="true"> <el-form :model="listQuery" ref="queryForm" v-show="showSearch" :inline="true">
<el-form-item label="规格说明" prop="specExplain" class="forimitem">
<el-input v-model="listQuery.specExplain" placeholder="请输入规格说明" clearable size="small" style="width: 240px"
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="颜色说明" prop="colorExplain" class="forimitem">
<el-input v-model="listQuery.colorExplain" placeholder="请输入颜色说明" clearable size="small" style="width: 240px"
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="总成编码" prop="erpAssemblyCode" class="forimitem"> <el-form-item label="总成编码" prop="erpAssemblyCode" class="forimitem">
<el-input v-model="listQuery.erpAssemblyCode" placeholder="请输入总成编码" clearable size="small" style="width: 240px" <el-input v-model="listQuery.erpAssemblyCode" placeholder="请输入总成编码" clearable size="small" style="width: 240px"
@keyup.enter.native="handleQuery" /> @keyup.enter.native="handleQuery" />
@ -19,12 +29,12 @@
@keyup.enter.native="handleQuery" /> @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item label="车型:" prop="vehicleModelCode" class="forimitem"> <!-- <el-form-item label="车型:" prop="vehicleModelCode" class="forimitem">
<el-select v-model="listQuery.vehicleModelCode" clearable placeholder="请选择" size="medium" style="margin-right: 15px" <el-select v-model="listQuery.vehicleModelCode" clearable placeholder="请选择" size="medium" style="margin-right: 15px"
@change="valueselectChange"> @change="valueselectChange">
<el-option v-for="item in vehicleModelList" :key="item.id" :label="item.dicItemName" :value="item.dicItemCode" /> <el-option v-for="item in vehicleModelList" :key="item.id" :label="item.dicItemName" :value="item.dicItemCode" />
</el-select> </el-select>
</el-form-item> </el-form-item> -->
<el-form-item label="创建时间"> <el-form-item label="创建时间">
<el-date-picker v-model="listQuery.createTimeValue" size="small" style="width: 380px" value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker v-model="listQuery.createTimeValue" size="small" style="width: 380px" value-format="yyyy-MM-dd HH:mm:ss"
@ -35,11 +45,18 @@
<el-form-item class="formitem"> <el-form-item class="formitem">
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleFilter">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleFilter">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery('queryForm')">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery('queryForm')">重置</el-button>
<el-button type="warning" plain icon="el-icon-download" size="mini" style="margin-left: 15px" @click="handleDownload()">导出(Excel) <el-button type="warning" plain icon="el-icon-download" size="mini" style="margin-left: 15px" @click="handleDownload()">导出(Excel)</el-button>
<el-button
class="filter-item"
size="mini"
type="success"
icon="el-icon-plus"
@click="handleImportNormal"
>导入
</el-button> </el-button>
</el-form-item> </el-form-item>
<!-- <el-divider class="divider1" ></el-divider> --> <!-- <el-divider class="divider1" ></el-divider> -->
<el-form-item style="margin-bottom: 0px; "> <!-- <el-form-item style="margin-bottom: 0px; ">
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleCreate" disabled>新增 <el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleCreate" disabled>新增
</el-button> </el-button>
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-edit" @click="handleUpdate" disabled>修改 <el-button class="filter-item" size="mini" type="primary" icon="el-icon-edit" @click="handleUpdate" disabled>修改
@ -48,7 +65,7 @@
</el-button> </el-button>
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleImportSAP" disabled>导入SAP对接 <el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleImportSAP" disabled>导入SAP对接
</el-button> </el-button>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
</flexbox> </flexbox>
</div> </div>
@ -58,15 +75,13 @@
class="cr-table" :data="list" :height="tableHeight" :cell-style="cellStyle" :header-cell-style="headerRowStyle" 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" size="small" stripe border highlight-current-row style="width: 100%" @sort-change="sortChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick"> @row-click="handleRowClick">
<el-table-column type="selection" width="44px"></el-table-column> <!-- <el-table-column type="selection" width="44px"></el-table-column> -->
<el-table-column label="ERP总成编码" prop="erpAssemblyCode" sortable="custom" align="center" width="180px"> <!-- <el-table-column label="ERP总成编码" prop="erpAssemblyCode" sortable="custom" align="center" width="180px">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link-type" @click="handleDrawerOpen(scope.row)">{{ <span class="link-type" @click="handleDrawerOpen(scope.row)">{{scope.row.erpAssemblyCode}}</span>
scope.row.erpAssemblyCode
}}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column v-for="(item, index) in getDefaultField" :key="index" :prop="item.prop" :label="item.label" <el-table-column v-for="(item, index) in getDefaultField" :key="index" :prop="item.prop" :label="item.label"
:min-width="item.width" :formatter="fieldFormatter" sortable="custom" show-overflow-tooltip :gutter="0"> :min-width="item.width" :formatter="fieldFormatter" sortable="custom" show-overflow-tooltip :gutter="0">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
@ -190,6 +205,13 @@
<Detail v-bind:customerInfos="customerInfos" style="margin-top: -35px"></Detail> <Detail v-bind:customerInfos="customerInfos" style="margin-top: -35px"></Detail>
</div> </div>
</el-drawer> </el-drawer>
<!-- 导入Excel组件 -->
<importExcelNormal
ref="importexcelNormal"
:show="showExcelNormal"
:importURL="'/api/newjit/assembly-cfg-erp/import-erp-assembly-group'"
@close="importCloseNormal"
/>
</div> </div>
</template> </template>
@ -198,6 +220,7 @@
import permission from "@/directive/permission/index.js"; import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import importExcel from "@/components/ImportTxt"; import importExcel from "@/components/ImportTxt";
import importExcelNormal from "@/components/ImportExcel-normal";
import Lockr from "lockr"; import Lockr from "lockr";
import moment from "moment"; import moment from "moment";
import Detail from "./detail.vue"; import Detail from "./detail.vue";
@ -230,7 +253,8 @@
Pagination, Pagination,
CRMTableHead, CRMTableHead,
importExcel, importExcel,
Detail Detail,
importExcelNormal
}, },
directives: { directives: {
permission permission
@ -269,6 +293,7 @@
versionValue: "", versionValue: "",
searchContent: "", // searchContent: "", //
showExcelImport:false, showExcelImport:false,
showExcelNormal: false,
drawer: false, drawer: false,
list: null, list: null,
totalCount: 0, totalCount: 0,
@ -336,6 +361,21 @@
computed: { computed: {
getDefaultField() { getDefaultField() {
var tempsTabs = []; 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({ tempsTabs.push({
label: "总成名称", label: "总成名称",
prop: "erpAssemblyName", prop: "erpAssemblyName",
@ -346,11 +386,11 @@
prop: "groupCode", prop: "groupCode",
width: 240, width: 240,
}); });
tempsTabs.push({ // tempsTabs.push({
label: "车型代码", // label: "",
prop: "vehicleModel", // prop: "vehicleModel",
width: 120, // width: 120,
}); // });
tempsTabs.push({ tempsTabs.push({
label: "创建时间", label: "创建时间",
prop: "creationTime", prop: "creationTime",
@ -361,6 +401,19 @@
}, },
}, },
methods: { methods: {
handleImportNormal() {
//
this.showExcelNormal = true;
},
//
importCloseNormal() {
this.showExcelNormal = false;
},
//
importNormalCallback(){
this.importCloseNormal()
this.getList();
},
// //
handleDrawerOpen(param) { handleDrawerOpen(param) {
this.drawer = true; this.drawer = true;

2
vue/src/views/pg-fis/basedate/planControl/index.vue

@ -406,7 +406,7 @@
this.showExcelImport = false; this.showExcelImport = false;
}, },
// //
importCallback(){ importNormalCallback(){
this.importClose() this.importClose()
this.getList(); this.getList();
}, },

Loading…
Cancel
Save