Explorar o código

导出加条件

lichao %!s(int64=3) %!d(string=hai) anos
pai
achega
ccb0cc1358
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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)
       })