999
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<!--<el-input v-model="model" placeholder="图号或型号" style="width:150px;margin-left: 10px" clearable size="small" />-->
|
||||
<!--<el-input v-model="spec" placeholder="规格" clearable size="small" style="width:150px;margin: 0px 10px" />-->
|
||||
<el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 10px" plain @click="searchRecord()">查询</el-button>
|
||||
<el-button type="success" plain size="small" @click="exportExcel()">导出</el-button>
|
||||
</el-row>
|
||||
<el-row v-show="false" style="margin-bottom:10px">
|
||||
<el-date-picker
|
||||
@@ -112,6 +113,36 @@ export default {
|
||||
this.searchRecord()
|
||||
},
|
||||
methods: {
|
||||
// EXCEL 导出
|
||||
// 姜福壮
|
||||
exportExcel() {
|
||||
let check1, check2, check3, check4, check5, check6, check7
|
||||
this.projectValue ? check1 = 1 : check1 = 0
|
||||
this.machineValue ? check2 = 1 : check2 = 0
|
||||
this.groupValue ? check3 = 1 : check3 = 0
|
||||
this.name ? check4 = 1 : check4 = 0
|
||||
this.spec ? check5 = 1 : check5 = 0
|
||||
this.model ? check6 = 1 : check6 = 0
|
||||
this.inTime ? check7 = 1 : (check7 = 0, this.inTime = '')
|
||||
var param = []
|
||||
param[0] = ['项目流水号_check', check1]
|
||||
param[1] = ['项目流水号', this.projectValue]
|
||||
param[2] = ['机床流水号_check', check2]
|
||||
param[3] = ['机床流水号', this.machineValue]
|
||||
param[4] = ['组件流水号_check', check3]
|
||||
param[5] = ['组件流水号', this.groupValue]
|
||||
param[6] = ['名称_check', check4]
|
||||
param[7] = ['名称', this.name]
|
||||
param[8] = ['规格_check', check5]
|
||||
param[9] = ['规格', this.spec]
|
||||
param[10] = ['图号或型号_check', check6]
|
||||
param[11] = ['图号或型号', this.model]
|
||||
param[12] = ['入库时间_check', check7]
|
||||
param[13] = ['入库开始时间', this.inTime[0]]
|
||||
param[14] = ['入库结束时间', this.inTime[1]]
|
||||
var Data = this.CreateData('00', '报表_采购部仓库_入库记录_查询', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
},
|
||||
fetchData() {
|
||||
initMachineProject().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<!--<el-input v-model="model" placeholder="图号或型号" clearable size="small" style="width:150px;margin-left: 10px" />-->
|
||||
<!--<el-input v-model="spec" placeholder="规格" clearable size="small" style="width:150px;margin: 0px 10px" />-->
|
||||
<el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 10px" plain @click="pageCurrent1=1;pageSize1=100;searchRecord()">查询</el-button>
|
||||
<el-button type="success" plain size="small" @click="exportExcel()">导出</el-button>
|
||||
</el-row>
|
||||
<el-row v-show="false" style="margin-bottom:10px">
|
||||
<el-date-picker
|
||||
@@ -114,6 +115,36 @@ export default {
|
||||
this.searchRecord()
|
||||
},
|
||||
methods: {
|
||||
// EXCEL 导出
|
||||
// 姜福壮
|
||||
exportExcel() {
|
||||
let check1, check2, check3, check4, check5, check6, check7
|
||||
this.projectValue ? check1 = 1 : check1 = 0
|
||||
this.machineValue ? check2 = 1 : check2 = 0
|
||||
this.groupValue ? check3 = 1 : check3 = 0
|
||||
this.name ? check4 = 1 : check4 = 0
|
||||
this.spec ? check5 = 1 : check5 = 0
|
||||
this.model ? check6 = 1 : check6 = 0
|
||||
this.inTime ? check7 = 1 : (check7 = 0, this.inTime = '')
|
||||
var param = []
|
||||
param[0] = ['项目流水号_check', check1]
|
||||
param[1] = ['项目流水号', this.projectValue]
|
||||
param[2] = ['机床流水号_check', check2]
|
||||
param[3] = ['机床流水号', this.machineValue]
|
||||
param[4] = ['组件流水号_check', check3]
|
||||
param[5] = ['组件流水号', this.groupValue]
|
||||
param[6] = ['名称_check', check4]
|
||||
param[7] = ['名称', this.name]
|
||||
param[8] = ['规格_check', check5]
|
||||
param[9] = ['规格', this.spec]
|
||||
param[10] = ['图号或型号_check', check6]
|
||||
param[11] = ['图号或型号', this.model]
|
||||
param[12] = ['入库时间_check', check7]
|
||||
param[13] = ['入库开始时间', this.inTime[0]]
|
||||
param[14] = ['入库结束时间', this.inTime[1]]
|
||||
var Data = this.CreateData('00', '报表_采购部仓库_出库记录_查询', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
},
|
||||
fetchData() {
|
||||
initMachineProject().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user