diff --git a/src/api/distribution/arteryDistrilbutionBillLadingList.js b/src/api/distribution/arteryDistrilbutionBillLadingList.js index 5789c1fc..3bcb498b 100644 --- a/src/api/distribution/arteryDistrilbutionBillLadingList.js +++ b/src/api/distribution/arteryDistrilbutionBillLadingList.js @@ -177,6 +177,18 @@ export const postPageListExport = data => { }); }; +/** + * 干线提货扫描明细导出 + */ +export const postBillladingPackageDetailExport = data => { + return request({ + url: '/api/logpm-trunkline/billlading/billladingPackageDetailExport', + method: 'post', + data, + responseType: 'blob', + }); +}; + /** * 干线提货详情导出 */ diff --git a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue index c2e845fd..2ceac17e 100644 --- a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue @@ -105,7 +105,12 @@ > 取消提货 - + 导出 @@ -271,8 +276,17 @@ :before-close="beforeClose" append-to-body > + + 导出 + > ', data); - downloadXls(data, `干线提货数据-${dateNow()}.xlsx`); + const name = + type === 'detail' ? `${this.title}-${dateNow()}.xlsx` : `干线提货数据-${dateNow()}.xlsx`; + + downloadXls(data, name); } catch (error) { console.log('error :>> ', error); } finally { - this.loadingObj.pageLoading = false; + type === 'detail' + ? (this.loadingObj.detailsLoding = false) + : (this.loadingObj.pageLoading = false); } }, },