From 13546eef8e6d89eba3337a2d66ff6aa23ed4dafb Mon Sep 17 00:00:00 2001 From: yuhawu <15545526+yuhawu@user.noreply.gitee.com> Date: Wed, 24 Sep 2025 17:06:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 + .env.production | 4 + src/api/modules/depot.js | 61 ++- src/api/modules/user.js | 6 + src/views/User/List.vue | 746 ++++++++++++++++++++++++++--- src/views/Warehouse/Depot/List.vue | 230 +++++++-- src/views/pddGoods/index.vue | 21 +- 7 files changed, 952 insertions(+), 120 deletions(-) create mode 100644 .env.development create mode 100644 .env.production diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..5991e98 --- /dev/null +++ b/.env.development @@ -0,0 +1,4 @@ +# 开发环境配置 +VITE_API_BASE_URL= +VITE_APP_BASE_API=http://localhost:8089 +VITE_APP_TITLE=与书有行 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b78bf24 --- /dev/null +++ b/.env.production @@ -0,0 +1,4 @@ +# 生产环境配置 +VITE_API_BASE_URL=https://api.buzhiyushu.cn +VITE_APP_BASE_API=https://api.buzhiyushu.cn +VITE_APP_TITLE=与书同行 diff --git a/src/api/modules/depot.js b/src/api/modules/depot.js index 13b7df9..ad00e23 100644 --- a/src/api/modules/depot.js +++ b/src/api/modules/depot.js @@ -71,7 +71,66 @@ const depotApi = { * 获取仓库名称列表 * @returns {Promise} - 请求Promise */ - getDepotNameList: () => instance.get('/depot/nameList') + getDepotNameList: () => instance.get('/depot/nameList'), + + /** + * go查询货区列表 + * @param {Object} params - 查询参数 + * @returns {Promise} - 请求Promise + */ + goGetStorageList: (params) => instance.get('/depot/GetStorageListByGo', { params }), + + /** + * go创建货区 + * @param {Object} data - 货区信息 + * @returns {Promise} - 请求Promise + */ + goCreateDepot: (data) => { + const formData = new FormData() + Object.keys(data).forEach(key => { + if (data[key] !== null && data[key] !== undefined) { + formData.append(key, data[key]) + } + }) + return instance.post('/depot/CreateByGo', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + }, + + /** + * go修改货区 + * @param {Object} data - 货区信息 + * @returns {Promise} - 请求Promise + */ + goUpdateDepot: (data) => { + const formData = new FormData() + Object.keys(data).forEach(key => { + if (data[key] !== null && data[key] !== undefined) { + formData.append(key, data[key]) + } + }) + return instance.post('/depot/UpdateByGo', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + }, + + /** + * go删除货区 + * @param {Object} params - 删除参数 + * @returns {Promise} - 请求Promise + */ + goDeleteDepot: (params) => instance.get('/depot/DeleteByGo', { params }), + + /** + * go查询单条仓库数据 + * @param {Object} params - 查询参数 + * @returns {Promise} - 请求Promise + */ + goGetStorageInfo: (params) => instance.get('/depot/GetStorageInfoByGo', { params }) } // 导出模块 diff --git a/src/api/modules/user.js b/src/api/modules/user.js index 9e0c056..0924f08 100644 --- a/src/api/modules/user.js +++ b/src/api/modules/user.js @@ -16,6 +16,12 @@ const userApi = { // 删除用户 deleteUser: (id) => instance.delete(`/user/delete/${id}`), + + //查看店铺 + chenckShop: (id) => instance.get('/user/getUserShop', { params: { id } }), + + // 开通会员 + openMember: (data) => instance.post('/user/openMember', data), }; diff --git a/src/views/User/List.vue b/src/views/User/List.vue index a103dc2..bb0a463 100644 --- a/src/views/User/List.vue +++ b/src/views/User/List.vue @@ -1,33 +1,27 @@ - +
- +
- + - - + + - + - + - + - + - + - + - + - + + + + +
+ +
+ + + 全部店铺 ({{ shopData.pddShops.length + shopData.kfzShops.length }}) + + + 拼多多店铺 ({{ shopData.pddShops.length }}) + + + 孔夫子店铺 ({{ shopData.kfzShops.length }}) + + +
+ + +
+

+ 拼多多店铺 ({{ shopData.pddShops.length }}个) +

+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+

+ 孔夫子店铺 ({{ shopData.kfzShops.length }}个) +

+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 支付二维码 +

请使用微信扫码支付

+

支付金额:¥{{ memberForm.rechargPrice }}

+
+
+ +

正在生成二维码...

+
+
+ + +
+ + + + + + + + + + + + + + +