lichao 3 роки тому
батько
коміт
ccb0cc1358
1 змінених файлів з 8 додано та 1 видалено
  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)
       })