From 17eb814531e0241a21a80c9e4c4616e652d93eec Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Sun, 14 Sep 2025 15:15:14 +0800 Subject: [PATCH 1/8] 11 --- src/api/product/devicelog/index.ts | 43 ++++ src/views/mall/device/index.vue | 2 +- src/views/mall/product/channel/index.vue | 4 +- .../mall/product/devicelog/DeviceLogForm.vue | 111 +++++++++ src/views/mall/product/devicelog/index.vue | 212 ++++++++++++++++++ 5 files changed, 369 insertions(+), 3 deletions(-) create mode 100644 src/api/product/devicelog/index.ts create mode 100644 src/views/mall/product/devicelog/DeviceLogForm.vue create mode 100644 src/views/mall/product/devicelog/index.vue diff --git a/src/api/product/devicelog/index.ts b/src/api/product/devicelog/index.ts new file mode 100644 index 00000000..3514673b --- /dev/null +++ b/src/api/product/devicelog/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +// 贩卖机测试日志 VO +export interface DeviceLogVO { + id: number // 日志主键 + deviceId: string // 设备IMEI + cabinetChannel: string // 当前使用的货道或柜门编号 + deviceStatus: number // 出货状态 + content: string // 内容 +} + +// 贩卖机测试日志 API +export const DeviceLogApi = { + // 查询贩卖机测试日志分页 + getDeviceLogPage: async (params: any) => { + return await request.get({ url: `/product/device-log/page`, params }) + }, + + // 查询贩卖机测试日志详情 + getDeviceLog: async (id: number) => { + return await request.get({ url: `/product/device-log/get?id=` + id }) + }, + + // 新增贩卖机测试日志 + createDeviceLog: async (data: DeviceLogVO) => { + return await request.post({ url: `/product/device-log/create`, data }) + }, + + // 修改贩卖机测试日志 + updateDeviceLog: async (data: DeviceLogVO) => { + return await request.put({ url: `/product/device-log/update`, data }) + }, + + // 删除贩卖机测试日志 + deleteDeviceLog: async (id: number) => { + return await request.delete({ url: `/product/device-log/delete?id=` + id }) + }, + + // 导出贩卖机测试日志 Excel + exportDeviceLog: async (params) => { + return await request.download({ url: `/product/device-log/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/views/mall/device/index.vue b/src/views/mall/device/index.vue index af0ef1ab..be08440c 100644 --- a/src/views/mall/device/index.vue +++ b/src/views/mall/device/index.vue @@ -44,7 +44,7 @@ - + diff --git a/src/views/mall/product/channel/index.vue b/src/views/mall/product/channel/index.vue index 67895956..e5cbcd2b 100644 --- a/src/views/mall/product/channel/index.vue +++ b/src/views/mall/product/channel/index.vue @@ -91,10 +91,10 @@ - + - + + + + + + + + + + + + 请选择字典生成 + + + + + + + + + + diff --git a/src/views/mall/product/devicelog/index.vue b/src/views/mall/product/devicelog/index.vue new file mode 100644 index 00000000..ce37cf1f --- /dev/null +++ b/src/views/mall/product/devicelog/index.vue @@ -0,0 +1,212 @@ + + + From cffb70236ebaf4c35e0f58dbfc4b852346481983 Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Mon, 22 Sep 2025 10:28:20 +0800 Subject: [PATCH 2/8] 11 --- src/views/mall/product/devicelog/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/mall/product/devicelog/index.vue b/src/views/mall/product/devicelog/index.vue index ce37cf1f..21bf5b12 100644 --- a/src/views/mall/product/devicelog/index.vue +++ b/src/views/mall/product/devicelog/index.vue @@ -33,6 +33,7 @@ clearable class="!w-240px" > + From 12ebd753e1fa5b94162fd77d6e9be0ebe2cec173 Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Fri, 26 Sep 2025 12:28:50 +0800 Subject: [PATCH 3/8] =?UTF-8?q?feat=EF=BC=9A=E9=BB=98=E8=AE=A4=E6=97=A0?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++-- src/views/Login/SocialLogin.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 5e576c85..30d7ff29 100644 --- a/.env +++ b/.env @@ -21,5 +21,5 @@ VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc # 默认账户密码 VITE_APP_DEFAULT_LOGIN_TENANT = 资安信 -VITE_APP_DEFAULT_LOGIN_USERNAME = admin -VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123 +# VITE_APP_DEFAULT_LOGIN_USERNAME = admin +# VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123 diff --git a/src/views/Login/SocialLogin.vue b/src/views/Login/SocialLogin.vue index e0caace8..2669c5f9 100644 --- a/src/views/Login/SocialLogin.vue +++ b/src/views/Login/SocialLogin.vue @@ -200,8 +200,8 @@ const loginData = reactive({ tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE !== 'false', loginForm: { tenantName: '芋道源码', - username: 'admin', - password: 'admin123', + username: '', + password: '', captchaVerification: '', rememberMe: false } From 26f6d0c9f2b66a1246117638b0e604ce3c938eb8 Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Sat, 27 Sep 2025 17:14:47 +0800 Subject: [PATCH 4/8] 11 --- src/views/mall/device/index.vue | 3 ++- src/views/mall/product/channel/ChannelForm.vue | 4 ++-- src/views/mall/product/channel/index.vue | 4 ++-- src/views/mall/product/device/index.vue | 1 + src/views/mall/product/devicelog/DeviceLogForm.vue | 2 +- src/views/mall/product/devicelog/index.vue | 6 +++--- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/mall/device/index.vue b/src/views/mall/device/index.vue index be08440c..175278ab 100644 --- a/src/views/mall/device/index.vue +++ b/src/views/mall/device/index.vue @@ -102,6 +102,7 @@ const getList = async () => { loading.value = true try { const data = await DeviceApi.getDevicePage(queryParams) + console.log("售货机",data) list.value = data.list total.value = data.total } finally { @@ -159,4 +160,4 @@ const handleExport = async () => { onMounted(() => { getList() }) - \ No newline at end of file + diff --git a/src/views/mall/product/channel/ChannelForm.vue b/src/views/mall/product/channel/ChannelForm.vue index 8aadcebd..c27011ff 100644 --- a/src/views/mall/product/channel/ChannelForm.vue +++ b/src/views/mall/product/channel/ChannelForm.vue @@ -13,8 +13,8 @@ - - + + diff --git a/src/views/mall/product/channel/index.vue b/src/views/mall/product/channel/index.vue index e5cbcd2b..1a061394 100644 --- a/src/views/mall/product/channel/index.vue +++ b/src/views/mall/product/channel/index.vue @@ -26,10 +26,10 @@ class="!w-240px" /> - + - + diff --git a/src/views/mall/product/devicelog/index.vue b/src/views/mall/product/devicelog/index.vue index 21bf5b12..37a48da9 100644 --- a/src/views/mall/product/devicelog/index.vue +++ b/src/views/mall/product/devicelog/index.vue @@ -20,7 +20,7 @@ - + @@ -77,7 +77,7 @@ - + Date: Sun, 28 Sep 2025 10:53:48 +0800 Subject: [PATCH 5/8] 11 --- .../product/device/{index.vue => inde.vue} | 454 +++++++++--------- 1 file changed, 227 insertions(+), 227 deletions(-) rename src/views/mall/product/device/{index.vue => inde.vue} (97%) diff --git a/src/views/mall/product/device/index.vue b/src/views/mall/product/device/inde.vue similarity index 97% rename from src/views/mall/product/device/index.vue rename to src/views/mall/product/device/inde.vue index 88017fb5..5da0edb0 100644 --- a/src/views/mall/product/device/index.vue +++ b/src/views/mall/product/device/inde.vue @@ -1,227 +1,227 @@ - - - + + + From bbcf47e777830d3080c5f3f95747c9b796c78a36 Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Sun, 28 Sep 2025 16:28:56 +0800 Subject: [PATCH 6/8] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E7=82=B9=E5=B0=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/product/device/DeviceForm.vue | 5 ++++- src/views/mall/product/device/inde.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/mall/product/device/DeviceForm.vue b/src/views/mall/product/device/DeviceForm.vue index 9f8b3903..ce5b162c 100644 --- a/src/views/mall/product/device/DeviceForm.vue +++ b/src/views/mall/product/device/DeviceForm.vue @@ -28,7 +28,10 @@ - + + + + diff --git a/src/views/mall/product/device/inde.vue b/src/views/mall/product/device/inde.vue index 5da0edb0..9924573c 100644 --- a/src/views/mall/product/device/inde.vue +++ b/src/views/mall/product/device/inde.vue @@ -50,7 +50,7 @@ type="success" plain @click="handleExport" :loading="exportLoading" - + From 3798daeb54816aa9312696d6cd8908b23a5869c2 Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Mon, 29 Sep 2025 16:10:03 +0800 Subject: [PATCH 7/8] 11 --- src/views/mall/product/channel/ChannelForm.vue | 2 +- src/views/mall/product/channel/index.vue | 2 +- src/views/mall/statistics/devicelog/DeviceLogForm.vue | 4 ++-- src/views/mall/statistics/devicelog/index.vue | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/mall/product/channel/ChannelForm.vue b/src/views/mall/product/channel/ChannelForm.vue index c27011ff..890597e2 100644 --- a/src/views/mall/product/channel/ChannelForm.vue +++ b/src/views/mall/product/channel/ChannelForm.vue @@ -16,7 +16,7 @@ - + diff --git a/src/views/mall/product/channel/index.vue b/src/views/mall/product/channel/index.vue index 1a061394..ff4b5788 100644 --- a/src/views/mall/product/channel/index.vue +++ b/src/views/mall/product/channel/index.vue @@ -35,7 +35,7 @@ class="!w-240px" /> - + - - + + diff --git a/src/views/mall/statistics/devicelog/index.vue b/src/views/mall/statistics/devicelog/index.vue index 028ed6c7..9f9f6bb0 100644 --- a/src/views/mall/statistics/devicelog/index.vue +++ b/src/views/mall/statistics/devicelog/index.vue @@ -26,10 +26,10 @@ class="!w-240px" /> - + - + From 71cdf53b68e559e589f251b49ed25801bb1db02b Mon Sep 17 00:00:00 2001 From: yangmf_0726 <13243152557@163.com> Date: Fri, 10 Oct 2025 16:00:24 +0800 Subject: [PATCH 8/8] 11 --- src/api/mall/product/spu.ts | 12 +++++++----- src/router/index.ts | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts index 8f58049f..628053e7 100644 --- a/src/api/mall/product/spu.ts +++ b/src/api/mall/product/spu.ts @@ -26,7 +26,7 @@ export interface Sku { salesCount?: number // 商品销量 cabinetChannel?: string // 货道或柜门编号 cabinetType?: string // 通道类型 - purchaseBizType?:string + purchaseBizType?: string } export interface GiveCouponTemplate { @@ -68,13 +68,15 @@ export interface Spu { // 获得 Spu 列表 export const getSpuPage = (params: PageParam) => { // /product/spu/page - return request.get({ url: '/product/spu/pageWithCreator',params:{ - ...params - }}) + return request.get({ + url: '/product/spu/pageWithCreator', params: { + ...params + } + }) } // 获得 Spu 列表 tabsCount -export const getTabsCount = (types?: number) => { +export const getTabsCount = (types: number = 0) => { return request.get({ url: `/product/spu/get-count?types=${types}` }) } diff --git a/src/router/index.ts b/src/router/index.ts index b818421c..0f52d782 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,11 +1,11 @@ import type { App } from 'vue' import type { RouteRecordRaw } from 'vue-router' -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHashHistory } from 'vue-router' import remainingRouter from './modules/remaining' // 创建路由实例 const router = createRouter({ - history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带# + history: createWebHashHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带# strict: true, routes: remainingRouter as RouteRecordRaw[], scrollBehavior: () => ({ left: 0, top: 0 })