Browse Source

修改bug

Qukatie 2 years ago
parent
commit
68f3ddd4f6
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/views/statisticAnalysis/AmtAmount/index.vue

+ 11 - 0
src/views/statisticAnalysis/AmtAmount/index.vue

@@ -5,6 +5,10 @@
         :cell-style="cellStyle" @search-change="searchChange" @current-change="currentChange" @size-change="sizeChange"
         @refresh-change="refreshChange" @on-load="onLoad" :table-loading="loading" @saveColumn="saveColumn"
         @resetColumn="resetColumn" @search-criteria-switch="searchCriteriaSwitch">
+        <template slot="menuLeft">
+          <el-button type="info" size="small" @click="outExport">导出
+          </el-button>
+        </template>
         <template slot="statusSearch">
           <el-radio v-model="search.status" label="1">是</el-radio>
           <el-radio v-model="search.status" label="0">否</el-radio>
@@ -393,6 +397,13 @@ export default {
         this.$message.success("重置成功");
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
       }
+    },
+    outExport() {
+      let params = { ...this.search }
+      window.open(
+        `/api/blade-purchase-sales/exportOrder/totalSummaryExport?${this.website.tokenHeader
+        }=${getToken()}&year=${params.year}&brand=${params.brand?params.brand:''}&status=${params.status ? params.status : ''}`
+      );
     }
   }
 };