This commit is contained in:
liushuai
2020-02-12 16:46:01 +08:00
parent c6852ed7c1
commit dd28e09a2d
7 changed files with 163 additions and 109 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-card style="width: 47%">
<el-card style="width: 44%">
<span>项目名称:</span>
<el-select v-model="projectValue" placeholder="项目名称" size="small" style="width: 180px" filterable clearable>
<el-option
@@ -22,9 +22,9 @@
plain
icon="el-icon-download"
style="margin-left:10px"
@click="searchTable1()">导出项目采购明细</el-button>
@click="exportExcel()">导出项目采购明细</el-button>
</el-card>
<el-card style="width: 47%">
<el-card style="width: 44%">
<el-table v-loading="" :data="tableData2" :summary-method="getSummaries1" show-summary border style="width: 100%;max-height: 700px;" height="700px">
<el-table-column label="零件名称" align="center" width="150">
<template slot-scope="scope">
@@ -51,7 +51,7 @@
{{ scope.row.单价 }}
</template>
</el-table-column>
<el-table-column label="小计(元)" align="center" width="100" prop="金额">
<el-table-column label="小计(元)" align="center" width="120" prop="金额">
<template slot-scope="scope">
{{ scope.row.金额 }}
</template>
@@ -97,6 +97,12 @@ export default {
}
})
},
exportExcel() {
var param = []
param[0] = ['项目流水号', this.projectValue]
var Data = this.CreateData('12', '车间采购管理_项目总价_明细_查询数据_导出', param)
this.exportExcel_NPOI(Data)
},
searchTable1() {
if (this.projectValue) {
searchProjectTotal2(this.projectValue).then(response => {