Browse Source

时间修改

1004749546@qq.com 3 years ago
parent
commit
b1b3d71650

+ 3 - 9
src/views/reportData/actualSalesReport/list.vue

@@ -368,15 +368,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (val) {
       this.queryParam.dealer.dealerSn = val.key

+ 3 - 9
src/views/reportData/allocationDetails/list.vue

@@ -285,15 +285,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     // 合计
     getCount (params) {

+ 3 - 9
src/views/reportData/allocationOrderTotal/list.vue

@@ -162,15 +162,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     // 合计
     getCount (params) {

+ 3 - 9
src/views/reportData/billingReturnReport/list.vue

@@ -331,15 +331,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (val) {
       this.queryParam.dealer.dealerSn = val.key

+ 3 - 9
src/views/reportData/priceDifferenceDetailReport/list.vue

@@ -365,15 +365,9 @@ export default {
   methods: {
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (obj) {
       this.queryParam.buyerSn = obj.key

+ 3 - 9
src/views/reportData/returnSlipReport/list.vue

@@ -335,15 +335,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (val) {
       this.queryParam.dealer.dealerSn = val.key

+ 3 - 9
src/views/reportData/salesAmountReport/list.vue

@@ -369,15 +369,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (val) {
       this.queryParam.dealer.dealerSn = val.key

+ 3 - 9
src/views/reportData/salesDetails/list.vue

@@ -255,15 +255,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     // 选择盘点日期
     onChange (e) {

+ 1 - 7
src/views/reportData/salesReturnsReport/list.vue

@@ -231,13 +231,7 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
+      this.queryParam.time = date
       this.queryParam.beginDate = date[0] || ''
       this.queryParam.endDate = date[1] || ''
     },

+ 3 - 9
src/views/reportData/salesSlipReport/list.vue

@@ -376,15 +376,9 @@ export default {
     },
     //  创建时间  change
     dateChange (date) {
-      if (date.length) {
-        if (date[0] == '' && date[1] == '') {
-          this.resetSearchForm()
-        } else {
-          this.queryParam.time = date
-        }
-      }
-      this.queryParam.beginDate = date[0]
-      this.queryParam.endDate = date[1]
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
     },
     custChange (val) {
       this.queryParam.dealer.dealerSn = val.key