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 @@ 删除 - - - + + + +