合
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
size="small"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
@click="searchTable1()">导出合同报表</el-button>
|
||||
@click="exportExcel()">导出合同报表</el-button>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
@@ -482,6 +482,36 @@ export default {
|
||||
submitSelectBuyer() { // 确定
|
||||
this.dialogVisible2 = false
|
||||
},
|
||||
exportExcel() { // 导出
|
||||
this.startTime ? this.check1 = 1 : this.check1 = 0
|
||||
this.contractNumValue ? this.check2 = 1 : this.check2 = 0
|
||||
this.supplierName ? this.check4 = 1 : this.check4 = 0
|
||||
if (this.approvalValue === '' || this.approvalValue === 0) {
|
||||
this.check5 = 0
|
||||
} else {
|
||||
this.check5 = 1
|
||||
}
|
||||
console.log(this.check1, this.check2, this.contractNumValue, this.check4, this.supplierName, this.check5, this.approvalValue, 111)
|
||||
var param = []
|
||||
param[0] = ['时间段_check', this.check1]
|
||||
if (this.check1 === 0) {
|
||||
param[1] = ['开始时间', '']
|
||||
param[2] = ['结束时间', '']
|
||||
} else {
|
||||
param[1] = ['开始时间', this.startTime[0]]
|
||||
param[2] = ['结束时间', this.startTime[1]]
|
||||
}
|
||||
// param[1] = ['开始时间', this.startTime[0]]
|
||||
// param[2] = ['结束时间', this.startTime[1]]
|
||||
param[3] = ['采购合同流水号_check', this.check2]
|
||||
param[4] = ['采购合同流水号', this.contractNumValue]
|
||||
param[5] = ['供应商名称_check', this.check4]
|
||||
param[6] = ['供应商名称', this.supplierName]
|
||||
param[7] = ['审批情况流水号_check', this.check5]
|
||||
param[8] = ['审批情况流水号', this.approvalValue]
|
||||
var Data = this.CreateData('12', '采购管理_合同_查询数据_导出', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
},
|
||||
searchTable1() {
|
||||
this.textarea = ``
|
||||
this.loading1 = true
|
||||
|
||||
@@ -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