From a2361b39c44840b19eb16c5a92e79ce950a07e75 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 8 Apr 2025 11:18:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E8=B4=A6=E5=8D=95=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/shop.ts | 9 ++- src/api/account/shopBranch.ts | 51 ++++++++++++ src/api/supplier/index.ts | 60 ++++++++++++++ .../Sidebar/components/SidebarLogo.vue | 80 +++++++++++++------ src/utils/request.ts | 3 +- src/views/data/index.vue | 10 ++- src/views/data/sales.vue | 12 ++- .../finance/supplierBill/billingRecord.vue | 69 +++++++++++----- .../supplierBill/components/payment.vue | 51 ++++++------ src/views/finance/supplierBill/index.vue | 45 ++++++----- .../finance/supplierBill/paymentRecord.vue | 38 +++++---- src/views/login/index.vue | 2 + src/views/shop/branchStore/index.vue | 78 +++++++++++------- src/views/shop/list/components/addShop.vue | 21 ++--- src/views/shop/list/index.vue | 2 +- src/views/shop/staff/config/search.ts | 13 ++- 16 files changed, 396 insertions(+), 148 deletions(-) create mode 100644 src/api/account/shopBranch.ts create mode 100644 src/api/supplier/index.ts diff --git a/src/api/account/shop.ts b/src/api/account/shop.ts index 50a886c..a04df6c 100644 --- a/src/api/account/shop.ts +++ b/src/api/account/shop.ts @@ -10,6 +10,13 @@ const ShopApi = { params: params, }); }, + getBranchList(params: PageQuery) { + return request({ + url: `${baseURL}/branchList`, + method: "get", + params: params, + }); + }, add(data: ShopInfoEditDTO) { return request({ url: `${baseURL}`, @@ -277,4 +284,4 @@ export interface ShopInfo { tubeType?: number | null; updateTime?: null | string; [property: string]: any; -} \ No newline at end of file +} diff --git a/src/api/account/shopBranch.ts b/src/api/account/shopBranch.ts new file mode 100644 index 0000000..9682253 --- /dev/null +++ b/src/api/account/shopBranch.ts @@ -0,0 +1,51 @@ +import request from "@/utils/request"; +import { Account_BaseUrl } from "@/api/config"; +const baseURL = Account_BaseUrl + "/admin/shop/branch"; + +const ShopBranchApi = { + getList(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params + }); + }, + setDataSync(id: any) { + console.log(id) + return request({ + url: `${baseURL}/setting/dataSyncMethod?dataSyncMethod=${id}`, + method: "post", + }); + }, + dataSync(id: any) { + console.log(id) + return request({ + url: `${baseURL}/data/sync/enable?branchShopId=${id}`, + method: "post", + }); + }, + enable(id: any) { + console.log(id) + + return request({ + url: `${baseURL}/account/enable?branchShopId=${id}`, + method: "post", + }); + }, + disable(id: any) { + return request({ + url: `${baseURL}/account/disable?branchShopId=${id}`, + method: "post", + }); + }, +}; + + +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default ShopBranchApi; diff --git a/src/api/supplier/index.ts b/src/api/supplier/index.ts new file mode 100644 index 0000000..179f4d9 --- /dev/null +++ b/src/api/supplier/index.ts @@ -0,0 +1,60 @@ +import request from "@/utils/request"; +const baseURL = "/product/admin/product/vendor"; + +// 供应商账单 + +const AuthAPI = { + /** 供应商账单统计*/ + getSummary(params: any) { + return request({ + url: `${baseURL}/summary`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}/bill`, + method: "get", + params, + }); + }, + // 账单记录 + getRecordList(params: any) { + return request({ + url: `${baseURL}/bill/record`, + method: "get", + params, + }); + }, + // 账单付款记录 + getPayRecordList(params: any) { + return request({ + url: `${baseURL}/bill/pay/record`, + method: "get", + params, + }); + }, + // 账单付款 + billPay(data: any) { + return request({ + url: `${baseURL}/bill/pay`, + method: "post", + data, + }); + }, + +}; + + + + +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; diff --git a/src/layout/components/Sidebar/components/SidebarLogo.vue b/src/layout/components/Sidebar/components/SidebarLogo.vue index 1a2fc92..aab4d3a 100644 --- a/src/layout/components/Sidebar/components/SidebarLogo.vue +++ b/src/layout/components/Sidebar/components/SidebarLogo.vue @@ -1,34 +1,67 @@ -