合
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user