|
@@ -177,6 +177,13 @@
|
|
|
<div class="tabSetting">
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="superviseExport"
|
|
|
+ v-hasPermi="['warehouseBusiness:whgenleg:superviseExport']"
|
|
|
+ >分类监管导出</el-button>
|
|
|
+ <el-button
|
|
|
type="warning"
|
|
|
icon="el-icon-download"
|
|
|
size="mini"
|
|
@@ -410,8 +417,8 @@ import {
|
|
|
delWhgenleg,
|
|
|
addWhgenleg,
|
|
|
updateWhgenleg,
|
|
|
- exportWhgenleg,
|
|
|
-} from "@/api/reportManagement/whgenleg";
|
|
|
+ exportWhgenleg, superviseExportWhgenleg
|
|
|
+} from '@/api/reportManagement/whgenleg'
|
|
|
import { listWarehouse, treeselect } from "@/api/basicdata/warehouse";
|
|
|
import { listArea } from "@/api/basicdata/area";
|
|
|
import { listGoods } from "@/api/basicdata/goods";
|
|
@@ -1068,6 +1075,19 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /** 分类监管导出 */
|
|
|
+ superviseExport() {
|
|
|
+ const queryParams = this.queryParams;
|
|
|
+ this.$confirm("确认是否导出分类监管数据?", "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(function() {
|
|
|
+ return superviseExportWhgenleg(queryParams);
|
|
|
+ }).then((response) => {
|
|
|
+ this.download(response.msg);
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|