From c5e578b943f626bcd208edb21df1c64164acc7db Mon Sep 17 00:00:00 2001 From: myTest383
Date: Wed, 8 Jan 2025 16:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=9F=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/statistics/cusmoterSale.js | 19 +- src/api/statistics/goodsPurchase.js | 19 +- src/api/statistics/goodsSale.js | 18 +- .../purchaseOrder/purchaseOrderAdd.vue | 11 +- .../purchaseOrder/purchaseOrderInfo.vue | 7 +- .../purchaseOrder/relation/chooseproducts.vue | 5 +- src/views/purchase/purchaseReview/index.vue | 7 +- .../purchaseReview/purchaseOrderInfo.vue | 7 +- .../statistics/cusmoterSale/cusmoterSale.vue | 61 +++-- .../goodsPurchase/goodsPurchase.vue | 215 +++++++++++++--- src/views/statistics/goodsSale/goodsSale.vue | 236 +++++++++++++++--- 11 files changed, 499 insertions(+), 106 deletions(-) diff --git a/src/api/statistics/cusmoterSale.js b/src/api/statistics/cusmoterSale.js index 6107cc9..f026a83 100644 --- a/src/api/statistics/cusmoterSale.js +++ b/src/api/statistics/cusmoterSale.js @@ -4,7 +4,7 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/oms/v1/smssalesbill/listPage', + url: '/oms//v1/smssalesbill/customerSales', method: 'post', data: params, headers: { @@ -58,5 +58,20 @@ export default { 'Content-Type': 'application/json' } }) - } + }, + + expExcelOfCustomer: function(params) { + return request({ + url: '/oms/v1/smssalesbill/customerSalesExport', + method: 'post', + data: params, + // headers: { + // "responseType": "blob" //将二进制流转换成blob对象 + // }, + headers: { + 'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild' + }, + responseType: 'blob' + }) + }, } diff --git a/src/api/statistics/goodsPurchase.js b/src/api/statistics/goodsPurchase.js index fda3c05..83c1dd9 100644 --- a/src/api/statistics/goodsPurchase.js +++ b/src/api/statistics/goodsPurchase.js @@ -4,7 +4,7 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/oms/v1/smssalesbill/listPage', + url: '/oms/apiadmin/purchasebill/goodsPurchase', method: 'post', data: params, headers: { @@ -58,5 +58,20 @@ export default { 'Content-Type': 'application/json' } }) - } + }, + + expExcelOfCustomer: function(params) { + return request({ + url: '/oms/apiadmin/purchasebill/goodsPurchaseExport', + method: 'post', + data: params, + // headers: { + // "responseType": "blob" //将二进制流转换成blob对象 + // }, + headers: { + 'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild' + }, + responseType: 'blob' + }) + }, } diff --git a/src/api/statistics/goodsSale.js b/src/api/statistics/goodsSale.js index 1d23509..177bb1b 100644 --- a/src/api/statistics/goodsSale.js +++ b/src/api/statistics/goodsSale.js @@ -4,7 +4,7 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/oms/v1/smssalesbill/listPage', + url: '/oms/v1/smssalesbill/goodsSales', method: 'post', data: params, headers: { @@ -58,5 +58,19 @@ export default { 'Content-Type': 'application/json' } }) - } + }, + expExcelOfCustomer: function(params) { + return request({ + url: '/oms/v1/smssalesbill/goodsSalesExport', + method: 'post', + data: params, + // headers: { + // "responseType": "blob" //将二进制流转换成blob对象 + // }, + headers: { + 'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild' + }, + responseType: 'blob' + }) + }, } diff --git a/src/views/purchase/purchaseOrder/purchaseOrderAdd.vue b/src/views/purchase/purchaseOrder/purchaseOrderAdd.vue index 1c4108f..7142b22 100644 --- a/src/views/purchase/purchaseOrder/purchaseOrderAdd.vue +++ b/src/views/purchase/purchaseOrder/purchaseOrderAdd.vue @@ -118,9 +118,10 @@ 删除 - - - + + + +