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 @@ -