|
@@ -248,12 +248,20 @@ export default {
|
|
|
let params = {
|
|
|
'recordType': this.dataForm.recordType ? this.dataForm.recordType : null,
|
|
|
'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
|
|
|
- 'endTime': this.dataForm.date ? this.dataForm.date[1] : null
|
|
|
+ 'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
|
|
|
+ 'recordCode': this.dataForm.recordCode ? this.dataForm.recordCode : null,
|
|
|
+ 'userId': this.dataForm.userId ? this.dataForm.userId : null
|
|
|
}
|
|
|
let url = this.$http.adornUrl('/biz-service/inbound-record-ctl/exportExcel') +
|
|
|
'?recordType=' + params.recordType +
|
|
|
'&beginTime=' + encodeURIComponent(params.beginTime) + '&endTime=' + encodeURIComponent(params.endTime) +
|
|
|
'&_token=' + Vue.cookie.get('token')
|
|
|
+ if (params.recordCode != null) {
|
|
|
+ url = url + '&recordCode=' + encodeURIComponent(params.recordCode)
|
|
|
+ }
|
|
|
+ if (params.userId != null) {
|
|
|
+ url = url + '&userId=' + encodeURIComponent(params.userId)
|
|
|
+ }
|
|
|
window.open(url, '_blank')
|
|
|
},
|
|
|
// 申请单类型
|