diff --git a/src/api/reportforms/index.js b/src/api/reportforms/index.js index e001acbc..e223224b 100644 --- a/src/api/reportforms/index.js +++ b/src/api/reportforms/index.js @@ -1,6 +1,6 @@ import request from '@/axios'; // 配送车次报表 -export const $_getrain = (params) => { +export const $_getrain = params => { return request({ url: '/api/logpm-report/reportDelivery/train', method: 'get', @@ -9,82 +9,89 @@ export const $_getrain = (params) => { }; // 配送车次报表导出 -export const $_exportTrain = (params) => { +export const $_exportTrain = params => { return request({ url: '/api/logpm-report/reportDelivery/exportTrain', method: 'get', params, responseType: 'blob', - }) -} + }); +}; // 配送客户报表 -export const $_getcustomer = (params) => { - return request({ - url: '/logpm-report/reportDelivery/customer', - method: 'get', - params, - }); - }; +export const $_getcustomer = params => { + return request({ + url: '/logpm-report/reportDelivery/customer', + method: 'get', + params, + }); +}; +// 自提明细报表 +export const $_getSelfpickup = params => { + return request({ + url: '/api/logpm-report/reportBillLoading/details', + method: 'get', + params, + }); +}; - // 配送客户报表报表导出 -export const $_exportCustomer = (params) => { +export const $_exportCustomer = params => { return request({ url: '/api/logpm-report/reportDelivery/exportCustomer', method: 'get', params, responseType: 'blob', - }) -} - // 配送明细报表 -export const $_getdetails = (params) => { - return request({ - url: '/logpm-report/reportDelivery/details', - method: 'get', - params, - }); - }; - // 配送明细报表V2 - export const $_getdetailsv2 = (params) => { - return request({ - url: '/logpm-report/reportDelivery/details/v2', - method: 'get', - params, - }); - }; + }); +}; +// 配送明细报表 +export const $_getdetails = params => { + return request({ + url: '/logpm-report/reportDelivery/details', + method: 'get', + params, + }); +}; +// 配送明细报表V2 +export const $_getdetailsv2 = params => { + return request({ + url: '/logpm-report/reportDelivery/details/v2', + method: 'get', + params, + }); +}; // 配送明细报表报表导出 - export const $_exportDetails = (params) => { - return request({ - url: '/api/logpm-report/reportDelivery/exportDetails', - method: 'get', - params, - responseType: 'blob', - }) - } +export const $_exportDetails = params => { + return request({ + url: '/api/logpm-report/reportDelivery/exportDetails', + method: 'get', + params, + responseType: 'blob', + }); +}; // 配送明细报表报表导出 -export const $_exportDetailsv2 = (params) => { +export const $_exportDetailsv2 = params => { return request({ url: '/api/logpm-report/reportDelivery/exportDetails/v2', method: 'get', params, responseType: 'blob', - }) -} + }); +}; // 自提明细报表报表导出 -export const $_exportSelfpickup = (params) => { +export const $_exportSelfpickup = params => { return request({ url: '/api/logpm-report/reportBillLoading/exportDetails', method: 'get', params, responseType: 'blob', - }) -} + }); +}; // 库存品出库明细报表 -export const $_getreport = (params) => { +export const $_getreport = params => { return request({ url: '/api/logpm-report/stock/outStocks', method: 'get', @@ -93,18 +100,17 @@ export const $_getreport = (params) => { }; // 导出库存出库明细 -export const $_exportOutStocks = (params) => { +export const $_exportOutStocks = params => { return request({ url: '/api/logpm-report/stock/exportOutStocks', method: 'get', params, responseType: 'blob', - }) -} - + }); +}; // 库存品入库明细报表 -export const $_getinStocks = (params) => { +export const $_getinStocks = params => { return request({ url: '/api/logpm-report/stock/inStocks', method: 'get', @@ -112,17 +118,17 @@ export const $_getinStocks = (params) => { }); }; // 库存品入库明细报表导出 -export const $_exportInStocks = (params) => { +export const $_exportInStocks = params => { return request({ url: '/api/logpm-report/stock/exportInStocks', method: 'get', params, responseType: 'blob', - }) -} + }); +}; // 库存品明细报表 -export const $_getInventory = (params) => { +export const $_getInventory = params => { return request({ url: '/api/logpm-report/stock/details', method: 'get', @@ -131,16 +137,16 @@ export const $_getInventory = (params) => { }; // 导出库存品明细报表 -export const $_exportInventory = (params) => { +export const $_exportInventory = params => { return request({ url: '/api/logpm-report/stock/exportDetails', method: 'get', params, responseType: 'blob', - }) -} + }); +}; // 获取仓库 -export const $_getMyWarehouseList = (data) => { +export const $_getMyWarehouseList = data => { return request({ url: '/api/logpm-basicdata/warehouse/getMyWarehouseList', method: 'get', @@ -149,7 +155,7 @@ export const $_getMyWarehouseList = (data) => { }; // 自提任务维度 -export const $_getasks= (params) => { +export const $_getasks = params => { return request({ url: '/api/logpm-report/reportBillLoading/tasks', method: 'get', @@ -157,18 +163,17 @@ export const $_getasks= (params) => { }); }; // 导出自提任务 -export const $_exportTasks = (params) => { +export const $_exportTasks = params => { return request({ url: '/api/logpm-report/reportBillLoading/exportTasks', method: 'get', params, responseType: 'blob', - }) -} - + }); +}; // 在库订单 -export const $_getstockOrder= (params) => { +export const $_getstockOrder = params => { return request({ url: '/api/logpm-report/reportDelivery/stockOrder', method: 'get', @@ -176,13 +181,12 @@ export const $_getstockOrder= (params) => { }); }; - // 导出在库订单 -export const $_exportStockOrder = (params) => { +export const $_exportStockOrder = params => { return request({ url: '/api/logpm-report/reportDelivery/exportStockOrder', method: 'get', params, responseType: 'blob', - }) -} \ No newline at end of file + }); +}; diff --git a/src/views/reportforms/DeliveryDetailsVtwo.vue b/src/views/reportforms/DeliveryDetailsVtwo.vue index 9b211900..09ebd70e 100644 --- a/src/views/reportforms/DeliveryDetailsVtwo.vue +++ b/src/views/reportforms/DeliveryDetailsVtwo.vue @@ -189,7 +189,6 @@ import { $_getdetailsv2, $_exportDetailsv2, $_getMyWarehouseList } from '@/api/reportforms/index.js'; import { ElMessageBox } from 'element-plus'; import { downloadXls, deepClone } from '@/utils/util'; - import functions from '@/utils/functions.js'; import dayjs from 'dayjs'; const queryCarn = ref({}); //查询顶部 const indeterminate = ref(false);