From fb20cb32dad600f6582ef3c7f54d8cab454a45b3 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 24 Jan 2024 09:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E8=B0=83=E4=BC=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/shops.js | 6 + manager/src/libs/axios.js | 14 +- manager/src/views/seller/bill/bill-detail.vue | 923 ++++++++++-------- seller/src/api/shops.js | 4 + seller/src/views/shop/bill/billDetail.vue | 919 ++++++++--------- 5 files changed, 1037 insertions(+), 829 deletions(-) diff --git a/manager/src/api/shops.js b/manager/src/api/shops.js index 93d3493e..36cba3c3 100644 --- a/manager/src/api/shops.js +++ b/manager/src/api/shops.js @@ -81,3 +81,9 @@ export const getShopList = () => { export const getShopByMemberId = (id) => { return getRequest(`/store/store/${id}/member`) } + +//根据id获取店铺信息 +export const downloadBill = (id) => { + return getRequest(`/order/bill/downLoad/${id}`, {}, 'blob') +} + diff --git a/manager/src/libs/axios.js b/manager/src/libs/axios.js index e49d796c..79e7e5ff 100644 --- a/manager/src/libs/axios.js +++ b/manager/src/libs/axios.js @@ -171,18 +171,24 @@ function getTokenDebounce() { }; } -export const getRequest = (url, params) => { +export const getRequest = (url, params, resBlob) => { let accessToken = getStore("accessToken"); - return service({ + let data = { method: "get", url: `${url}`, params: params, headers: { accessToken: accessToken - } - }); + }, + responseType: "blob" + }; + if (resBlob != "blob") { + delete data.responseType; + } + return service(data); }; + export const postRequest = (url, params, headers) => { let accessToken = getStore("accessToken"); return service({ diff --git a/manager/src/views/seller/bill/bill-detail.vue b/manager/src/views/seller/bill/bill-detail.vue index b3743bcf..802e14a6 100644 --- a/manager/src/views/seller/bill/bill-detail.vue +++ b/manager/src/views/seller/bill/bill-detail.vue @@ -1,161 +1,252 @@ @@ -628,58 +622,109 @@ export default { .flex { justify-content: space-between; flex-wrap: wrap; + > p { width: 50%; margin: 15px 0; } } + .page { margin-top: 10px; } + .tips-status { padding: 10px; font-size: 14px; + > span { font-weight: bold; margin-right: 8px; } + > span:nth-of-type(2) { color: $theme_color; } } + table { font-size: 14px; margin-left: 20px; + tr { height: 40px; padding: 10px; + td:nth-child(1) { width: 120px; } } } + .bill-detail-price { width: 1200px; margin: 10px 0; padding: 10px; + /deep/ span { font-size: 14px; text-align: center; width: 200px; margin-bottom: 10px; } + .theme_color { color: $theme_color; } + .increase-color { color: green; } - div{ - margin: 20px 0; + div { + + margin: 20px 0; } } -.bill-item{ + +.bill-item { justify-content: flex-start; } + +.procedure { + display: flex; + align-items: center; + justify-content: flex-start; + font-size: 14px; + font-weight: bold; + margin: 12px 0 12px 20px; + .procedure_item { + width: 160px; + display: flex; + align-items: center; + justify-content: center; + .icon { + width: 24px; + height: 24px; + text-align: center; + line-height: 24px; + border-radius: 50%; + margin-right: 14px; + font-weight: normal; + background-color: #e6f7ff; + color: #1890ff; + } + .current { + background-color: #2d8cf0; + color: #ffffff; + } + .future { + background-color: #f7f7f7; + color: #515a6e; + } + .text { + + } + } +}