This commit is contained in:
Vergil
2020-02-10 17:59:59 +08:00
parent ac32df04d7
commit ad88ce3441
3 changed files with 18 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
<span>外协厂家:</span>
<el-input v-model="ManufacturerName" size="small" placeholder="外协厂家" clearable style="width:200px"/>
<el-button type="primary" class="el-icon-search" size="small" plain @click="pageCurrent=1;pageSize=50;getParts()">查询</el-button>
<el-button type="primary" class="el-icon-search" size="small" plain @click="exportExcel()">查询</el-button>
</el-row>
<el-table v-loading="loading" :data="tableData" size="mini" highlight-current-row height="500" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="rowClick">
<el-table-column label="厂家" prop="外协厂家名称" align="center" width="230px">
@@ -180,6 +181,17 @@ export default {
this.getParts()
},
methods: {
exportExcel() {
var param = []
param[0] = ['物料名称_check', 0]
param[1] = ['物料名称', 0]
param[2] = ['物料规格_check', 0]
param[3] = ['物料规格', 0]
param[4] = ['物料型号_check', 0]
param[5] = ['物料型号', 0]
var Data = this.CreateData('00', '报表_采购部仓库_库存_查询', param)
this.exportExcel_NPOI(Data)
},
// 获取表格1数据
getParts() {
this.loading = true