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

@@ -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