diff --git a/src/router/index.ts b/src/router/index.ts index 890531c..be7b8b7 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -438,6 +438,16 @@ export const constantRoutes: RouteRecordRaw[] = [ hidden: true }, }, + { + path: "storingWine", + component: () => import("@/views/application/list/storingWine/index.vue"), + name: "storingWine", + meta: { + title: "存酒", + affix: false, + hidden: true + }, + }, /**列表end */ diff --git a/src/views/application/list/index.vue b/src/views/application/list/index.vue index bd2221c..ca27a64 100644 --- a/src/views/application/list/index.vue +++ b/src/views/application/list/index.vue @@ -22,7 +22,7 @@ import ad from "@/assets/images/application/ad.png"; import call from "@/assets/images/application/call.png"; const list = ref([ - { name: "存酒", icon: bear, path: "", desc: "用户未喝完的酒可暂存在店里" }, + { name: "存酒", icon: bear, path: "storingWine", desc: "用户未喝完的酒可暂存在店里" }, { name: "点歌", icon: song, path: "", desc: "用户可以付费点歌" }, { name: "广告", icon: ad, path: "advertisement", desc: "添加弹窗广告" }, { name: "叫号", icon: call, path: "lineUplist", desc: "" }, diff --git a/src/views/application/list/storingWine/index.vue b/src/views/application/list/storingWine/index.vue new file mode 100644 index 0000000..8158cab --- /dev/null +++ b/src/views/application/list/storingWine/index.vue @@ -0,0 +1,26 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwine.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwine.vue new file mode 100644 index 0000000..cb7f048 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwine.vue @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Content.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Content.vue new file mode 100644 index 0000000..5f9fccc --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Content.vue @@ -0,0 +1,315 @@ + + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Search.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Search.vue new file mode 100644 index 0000000..507ecc1 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/Search.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/api.ts b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/api.ts new file mode 100644 index 0000000..e729bff --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/api.ts @@ -0,0 +1,81 @@ +import request from "@/utils/request"; +const baseURL = "/product/admin/storageGood"; +// XXX-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params, + }); + }, + // 获取用户店铺列表 + getshopUser() { + return request({ + url: `/account/admin/shopUser`, + method: "get", + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + adds(data: any) { + return request({ + url: `/product/admin/shopStorage`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/detail?id=${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}/edit`, + method: "put", + data, + }); + }, + updates(data: Object) { + return request({ + url: `/product/admin/shopStorage`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(data: number | String) { + return request({ + url: `${baseURL}?id=${data}`, + method: "delete", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/AddButton.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/AddButton.vue new file mode 100644 index 0000000..e13cc0a --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/AddButton.vue @@ -0,0 +1,14 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Paging.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Table.vue b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Table.vue new file mode 100644 index 0000000..7233b12 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Storingwineconfig/component/Table.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecord.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecord.vue new file mode 100644 index 0000000..cfef0aa --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecord.vue @@ -0,0 +1,13 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Content.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Content.vue new file mode 100644 index 0000000..d13be7d --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Content.vue @@ -0,0 +1,236 @@ + + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Search.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Search.vue new file mode 100644 index 0000000..2f5a616 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/Search.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/api.ts b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/api.ts new file mode 100644 index 0000000..57cf7f8 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/api.ts @@ -0,0 +1,82 @@ +import request from "@/utils/request"; +const baseURL = "/product/admin/shopStorage"; +// 存酒-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + // 查看记录 + record(params: any) { + return request({ + url: `${baseURL}/record?id=${params}`, + method: "get", + }); + }, + // 获取用户店铺列表 + getshopUser() { + return request({ + url: `/account/admin/shopUser`, + method: "get", + }); + }, + // 获取酒品列表 + storageGood() { + return request({ + url: `/product/admin/storageGood?name=`, + method: "get", + }); + }, + + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}/${id}`, + method: "delete", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/AddButton.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/AddButton.vue new file mode 100644 index 0000000..9d4e7c8 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/AddButton.vue @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Paging.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Paging.vue new file mode 100644 index 0000000..ee9b056 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Paging.vue @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Table.vue b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Table.vue new file mode 100644 index 0000000..61912ce --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/Winerecordconfig/component/Table.vue @@ -0,0 +1,66 @@ + + + diff --git a/src/views/application/list/storingWine/storingWineconfig/api.ts b/src/views/application/list/storingWine/storingWineconfig/api.ts new file mode 100644 index 0000000..8a85e72 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/api.ts @@ -0,0 +1,67 @@ +import request from "@/utils/request"; +const baseURL = "/product/admin/shopStorage"; +// 存酒-配置 +const AuthAPI = { + // 列表 + getList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + /** 分页*/ + getPage(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params, + }); + }, + // 新增 + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: { ...data }, + }); + }, + // 详情 + getinfo(id: number) { + return request({ + url: `${baseURL}/${id}`, + method: "get", + }); + }, + // 编辑 + update(data: Object) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + // 删除 + deleteByIds(id: number | String) { + return request({ + url: `${baseURL}/${id}`, + method: "delete", + }); + }, + // 存酒统计 + getcount() { + return request({ + url: `${baseURL}/count`, + method: "get", + }); + }, + +}; +export interface Responseres { + code?: number | null; + data?: any; + msg?: null | string; + [property: string]: any; +} + +export default AuthAPI; \ No newline at end of file diff --git a/src/views/application/list/storingWine/storingWineconfig/statistics.vue b/src/views/application/list/storingWine/storingWineconfig/statistics.vue new file mode 100644 index 0000000..13768b2 --- /dev/null +++ b/src/views/application/list/storingWine/storingWineconfig/statistics.vue @@ -0,0 +1,30 @@ + + +