代码更新
This commit is contained in:
@@ -97,7 +97,7 @@ export default {
|
|||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
del: false,
|
del: false,
|
||||||
download: true,
|
download: false,
|
||||||
reset: true
|
reset: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -121,12 +121,21 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
downdtl() {
|
downdtl() {
|
||||||
|
debugger
|
||||||
if (this.currentRow !== null) {
|
if (this.currentRow !== null) {
|
||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
const data = {
|
debugger
|
||||||
'begin_time': this.crud.query.createTime[0],
|
var data = {}
|
||||||
'end_time': this.crud.query.createTime[1],
|
if (this.crud.query.createTime !== undefined) {
|
||||||
'assessor_id': this.crud.query.assessor_id
|
data = {
|
||||||
|
'begin_time': this.crud.query.createTime[0],
|
||||||
|
'end_time': this.crud.query.createTime[1],
|
||||||
|
'assessor_id': this.crud.query.assessor_id
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
data = {
|
||||||
|
'assessor_id': this.crud.query.assessor_id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
download('/api/performancemst/download', data).then(result => {
|
download('/api/performancemst/download', data).then(result => {
|
||||||
downloadFile(result, '工作量统计', 'xlsx')
|
downloadFile(result, '工作量统计', 'xlsx')
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
del: false,
|
del: false,
|
||||||
download: true,
|
download: false,
|
||||||
reset: true
|
reset: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -158,12 +158,21 @@ export default {
|
|||||||
downdtl() {
|
downdtl() {
|
||||||
if (this.currentRow !== null) {
|
if (this.currentRow !== null) {
|
||||||
crud.downloadLoading = true
|
crud.downloadLoading = true
|
||||||
const data = {
|
var data = {}
|
||||||
'begin_time': this.crud.query.createTime[0],
|
if (this.crud.query.createTime !== undefined) {
|
||||||
'end_time': this.crud.query.createTime[1],
|
data = {
|
||||||
'status': this.crud.query.status,
|
'begin_time': this.crud.query.createTime[0],
|
||||||
'pcsn': this.crud.query.pcsn,
|
'end_time': this.crud.query.createTime[1],
|
||||||
'material_code': this.crud.query.material_code
|
'status': this.crud.query.status,
|
||||||
|
'pcsn': this.crud.query.pcsn,
|
||||||
|
'material_code': this.crud.query.material_code
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
data = {
|
||||||
|
'status': this.crud.query.status,
|
||||||
|
'pcsn': this.crud.query.pcsn,
|
||||||
|
'material_code': this.crud.query.material_code
|
||||||
|
}
|
||||||
}
|
}
|
||||||
download('/api/powderOrderQuery/download', data).then(result => {
|
download('/api/powderOrderQuery/download', data).then(result => {
|
||||||
downloadFile(result, '粉料开单记录', 'xlsx')
|
downloadFile(result, '粉料开单记录', 'xlsx')
|
||||||
|
|||||||
Reference in New Issue
Block a user