diff --git a/src/api/longchuang/productionPlan.js b/src/api/longchuang/productionPlan.js index c9dbf72c..4ad49767 100644 --- a/src/api/longchuang/productionPlan.js +++ b/src/api/longchuang/productionPlan.js @@ -2,6 +2,7 @@ import { createAPI } from "@/utils/httpRequest.js" // ================= 序号1:家用梯销售订单 ================= export const getHomeLiftOrderList = data => createAPI(`/longchuang/productionPlan/homeLiftOrder/list`, 'post', data) +export const exportHomeLiftOrder = data => createAPI(`/longchuang/productionPlan/homeLiftOrder/export`, 'post', data, 'download') export const saveHomeLiftOrder = data => createAPI(`/longchuang/productionPlan/homeLiftOrder/save`, 'post', data) export const finishHomeLiftOrder = data => createAPI(`/longchuang/productionPlan/homeLiftOrder/finish`, 'post', data) export const reportHomeLiftOrderNode = data => createAPI(`/longchuang/productionPlan/homeLiftOrder/reportNode`, 'post', data) @@ -9,6 +10,7 @@ export const deleteHomeLiftOrder = data => createAPI(`/longchuang/productionPlan // ================= 序号2:线缆/COP自制任务单 ================= export const getCableCopTaskList = data => createAPI(`/longchuang/productionPlan/cableCopTask/list`, 'post', data) +export const exportCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/export`, 'post', data, 'download') export const saveCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/save`, 'post', data) export const finishCableCopTask = data => createAPI(`/longchuang/productionPlan/cableCopTask/finish`, 'post', data) export const reportCableCopTaskNode = data => createAPI(`/longchuang/productionPlan/cableCopTask/reportNode`, 'post', data) @@ -16,6 +18,7 @@ export const deleteCableCopTask = data => createAPI(`/longchuang/productionPlan/ // ================= 序号3:改造项目订单 ================= export const getRenovationOrderList = data => createAPI(`/longchuang/productionPlan/renovationOrder/list`, 'post', data) +export const exportRenovationOrder = data => createAPI(`/longchuang/productionPlan/renovationOrder/export`, 'post', data, 'download') export const saveRenovationOrder = data => createAPI(`/longchuang/productionPlan/renovationOrder/save`, 'post', data) export const finishRenovationOrder = data => createAPI(`/longchuang/productionPlan/renovationOrder/finish`, 'post', data) export const reportRenovationOrderNode = data => createAPI(`/longchuang/productionPlan/renovationOrder/reportNode`, 'post', data) @@ -23,6 +26,7 @@ export const deleteRenovationOrder = data => createAPI(`/longchuang/productionPl // ================= 序号4:机加工生产任务单 ================= export const getMachiningTaskList = data => createAPI(`/longchuang/productionPlan/machiningTask/list`, 'post', data) +export const exportMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/export`, 'post', data, 'download') export const saveMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/save`, 'post', data) export const finishMachiningTask = data => createAPI(`/longchuang/productionPlan/machiningTask/finish`, 'post', data) export const reportMachiningTaskNode = data => createAPI(`/longchuang/productionPlan/machiningTask/reportNode`, 'post', data) diff --git a/src/views/modules/longtron/production-plan-cable-cop-task.vue b/src/views/modules/longtron/production-plan-cable-cop-task.vue index fff9ccdb..1aaf23a4 100644 --- a/src/views/modules/longtron/production-plan-cable-cop-task.vue +++ b/src/views/modules/longtron/production-plan-cable-cop-task.vue @@ -39,6 +39,7 @@ 查询 重置 新增任务单 + {{ exportLoading ? '导出中...' : '导出' }}