Browse Source

Bug Fixes

liqianyi 3 năm trước cách đây
mục cha
commit
ea3b7a08a9

+ 2 - 2
src/views/modules/warehouse/in-handle.vue

@@ -171,8 +171,8 @@
             'current': this.pageIndex,
             'size': this.pageSize,
             'userId': this.dataForm.userId,
-            'beginTime': this.dataForm.date[0],
-            'endTime': this.dataForm.date[1],
+            'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
+            'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
             'recordType': this.dataForm.recordType
           })
         }).then(({data}) => {

+ 2 - 2
src/views/modules/warehouse/in-record.vue

@@ -208,8 +208,8 @@
         let params = {
           'current': this.pageIndex,
           'size': this.pageSize,
-          'beginTime': this.dataForm.date[0],
-          'endTime': this.dataForm.date[1],
+          'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
+          'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
           'recordType': this.dataForm.recordType ? this.dataForm.recordType : null,
           'recordCode': this.dataForm.recordCode ? this.dataForm.recordCode : null,
           'userId': this.dataForm.userId ? this.dataForm.userId : null

+ 2 - 2
src/views/modules/warehouse/out-handle.vue

@@ -198,8 +198,8 @@
             'current': this.pageIndex,
             'size': this.pageSize,
             'userId': this.dataForm.userId,
-            'beginTime': this.dataForm.date[0],
-            'endTime': this.dataForm.date[1],
+            'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
+            'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
             'recordType': this.dataForm.recordType
           })
         }).then(({data}) => {

+ 2 - 2
src/views/modules/warehouse/out-record.vue

@@ -143,8 +143,8 @@
           params: this.$http.adornParams({
             'current': this.pageIndex,
             'size': this.pageSize,
-            'beginTime': this.dataForm.date[0],
-            'endTime': this.dataForm.date[1],
+            'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
+            'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
             'recordType': 1
           })
         }).then(({data}) => {

+ 2 - 2
src/views/modules/warehouse/stock-order.vue

@@ -207,8 +207,8 @@
             'current': this.pageIndex,
             'size': this.pageSize,
             'userId': this.dataForm.userId ? this.dataForm.userId : '',
-            'beginTime': this.dataForm.date[0],
-            'endTime': this.dataForm.date[1],
+            'beginTime': this.dataForm.date ? this.dataForm.date[0] : null,
+            'endTime': this.dataForm.date ? this.dataForm.date[1] : null,
             'recordType': this.dataForm.recordType,
             'recordCode': this.dataForm.recordCode
           })

+ 2 - 2
src/views/modules/warehouse/template-list.vue

@@ -162,8 +162,8 @@
         let params = {
           current: this.pageIndex,
           size: this.pageSize,
-          beginTime: this.dataForm.date[0],
-          endTime: this.dataForm.date[1],
+          beginTime: this.dataForm.date ? this.dataForm.date[0] : null,
+          endTime: this.dataForm.date ? this.dataForm.date[1] : null,
           templateName: this.dataForm.name
         }
         await getTemplateList(params).then(({data}) => {