Kaynağa Gözat

修复出入库记录导出时参数不全

damon227 1 yıl önce
ebeveyn
işleme
5943312fb2
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 9 1
      src/views/modules/warehouse/in-record.vue

+ 9 - 1
src/views/modules/warehouse/in-record.vue

@@ -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')
       },
       // 申请单类型