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/account/shopPagePermission.ts b/src/api/account/shopPagePermission.ts new file mode 100644 index 0000000..7b50c5d --- /dev/null +++ b/src/api/account/shopPagePermission.ts @@ -0,0 +1,46 @@ +import request from "@/utils/request"; +import { Account_BaseUrl } from "@/api/config"; +import { get } from "lodash"; +const baseURL = Account_BaseUrl + "/admin/shopPagePermission"; +const Api = { + // 获取所有页面路径 + getPageAll(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params: params, + }); + }, + // 保存修改权限 + save(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: data, + }); + }, + //获取员工拥有页面路径 + detail(params: any) { + return request({ + url: `${baseURL}/detail`, + method: "get", + params: params, + }); + }, + //获取当前员工已拥有页面路径 + mine(params: any) { + return request({ + url: `${baseURL}/mine`, + method: "get", + params: params, + }); + } +}; + +export default Api; + +interface PagePath { + label: string; + value: string; + [property: string]: any; +} \ No newline at end of file diff --git a/src/api/onlineShop/goodsGroupconfig.ts b/src/api/onlineShop/goodsGroupconfig.ts index 3c76bf6..d6edcc5 100644 --- a/src/api/onlineShop/goodsGroupconfig.ts +++ b/src/api/onlineShop/goodsGroupconfig.ts @@ -41,6 +41,15 @@ const AuthAPI = { data, }); }, + // 简单修改 + // /admin/prod/group/update + updates(data: Object) { + return request({ + url: `${baseURL}/update`, + method: "put", + data, + }); + }, // 删除 deleteByIds(id: number | String) { return request({ diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 385304f..bda2707 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -20,6 +20,13 @@ const AuthAPI = { }, // 新增 addunit(data: any) { + console.log(data, '提示121'); + if (data.images.length == 0) { + data.images = null + } + if (data.proGroupVo.length == 0) { + data.proGroupVo = null + } return request({ url: `${baseURL}`, method: "post", 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/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 2572232..39e58bf 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -303,7 +303,7 @@ {{ item.text }} - + 0" #dropdown> {{ opt.label }} @@ -1039,4 +1039,18 @@ defineExpose({ fetchPageData, exportPageData, getFilterParams, getselectTable, p :deep(.el-table .el-table__cell) { z-index: inherit; } +.el-card { + overflow: visible; +} +:deep(.el-table) { + overflow: visible; + .el-table__header-wrapper { + position: sticky; + z-index: calc(var(--el-table-index) + 2); + top: 0; + } +} +:deep(.el-table td.el-table__cell div) { + vertical-align: middle; +} diff --git a/src/components/CURD/PageSearch.vue b/src/components/CURD/PageSearch.vue index 48b302e..361d6c6 100644 --- a/src/components/CURD/PageSearch.vue +++ b/src/components/CURD/PageSearch.vue @@ -153,8 +153,7 @@ import dayjs from "dayjs"; const props = withDefaults( defineProps<{ searchConfig: ISearchConfig; - isOpenAutoSearch: boolean; - watchKey: Array; + isOpenAutoSearch?: boolean; }>(), { isOpenAutoSearch: true, 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 @@ -