Browse Source

导出加条件

lichao 3 years ago
parent
commit
ccb0cc1358
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/finance/query/index.vue

+ 8 - 1
src/views/finance/query/index.vue

@@ -711,7 +711,14 @@ export default {
         cancelButtonText: "取消",
         type: "warning",
       }).then(()=> {
-        return exportSubItemList(this.queryParams)
+        let queryParams
+        if (this.queryParams.fBsdateList) {
+          queryParams = {
+            ...this.queryParams,
+            dateRange: this.queryParams.fBsdateList[0] + ' 至 ' + this.queryParams.fBsdateList[1]
+          }
+        }
+        return exportSubItemList(queryParams)
       }).then(res => {
         this.download(res.msg)
       })