diff --git a/src/api/dev/deviceBusinessProjectApi.js b/src/api/dev/deviceBusinessProjectApi.js index a0caa349..3050af00 100644 --- a/src/api/dev/deviceBusinessProjectApi.js +++ b/src/api/dev/deviceBusinessProjectApi.js @@ -80,3 +80,27 @@ export function postExcelBusinessProjectImport(data) { data: data }); } + + + +export function getDeviceBusinessProject(query) { + return axios( + { + url: `/udi/device/businessProject/getDeviceBusinessProject`, + method: "POST", + data: query + } + ) +} + + + +export function downloadDeviceBusinessProject(query) { + return axios( + { + url: `/udi/device/businessProject/downloadDeviceBusinessProject`, + method: "POST", + data: query + } + ) +} diff --git a/src/views/purchase/benefitManagement/deviceBenefit.vue b/src/views/purchase/benefitManagement/deviceBenefit.vue index d20be3ce..436c7336 100644 --- a/src/views/purchase/benefitManagement/deviceBenefit.vue +++ b/src/views/purchase/benefitManagement/deviceBenefit.vue @@ -59,6 +59,7 @@ > 选中导出Excel 结果导出Excel + 数据下载 @@ -88,6 +89,20 @@ + + + + @@ -98,6 +113,7 @@ import { getHead,executeFuc } from "@/utils/customConfig"; import {getDeptListByUser} from "@/api/auth/authDept"; +import downloadDataDialog from "./downloadDataDialog.vue"; import {filterSubAllOptimize} from "@/api/system/invSubWarehouse"; import {getOrderDetailBusOptimize} from "@/api/basic/busType"; import { @@ -147,6 +163,8 @@ export default { loading: false, selectExportLoading: false, searchExportLoading: false, + downloadDataVisible: false, + downloadDataLoading: false, optinPrintLoading: false, selectPrinttLoading: false, total: 0, @@ -512,6 +530,12 @@ export default { }); + }, + downloadData() { + this.downloadDataVisible = true + }, + closeDialog() { + this.downloadDataVisible = false }, searchExport() { this.$confirm("是否确定导出所有查询结果数据", "提示", { @@ -520,7 +544,6 @@ export default { type: "warning", }) .then(() => { - let printParams = { deptName: this.filterQuery.deptName, sfxm: this.filterQuery.sfxm, @@ -581,6 +604,9 @@ export default { return defaultRet; } }, + components:{ + downloadDataDialog + }, mounted() { document.body.ondrop = function (event) { event.preventDefault(); @@ -589,11 +615,7 @@ export default { } , created() { - // this.actionType = 'norDetail'; this.getList(); - // this.getInvList(); - // this.getInvListAllFlagInv(); - // this.getBusTypeByInv(); } , } diff --git a/src/views/purchase/benefitManagement/downloadDataDialog.vue b/src/views/purchase/benefitManagement/downloadDataDialog.vue new file mode 100644 index 00000000..a7b70037 --- /dev/null +++ b/src/views/purchase/benefitManagement/downloadDataDialog.vue @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + + 查询 + + + 结果下载 + + + + + + + + + + + + + + + + + + + + + + +