From d62b8344b54b02b1f76bcae33d28d02ec43c100a Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 12 May 2025 18:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E8=B6=85=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5=EF=BC=8C=E8=BD=AE=E6=92=AD=E5=9B=BE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8Capp=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/mobile.js | 83 ++++ src/api/device/index.js | 12 +- src/api/superStore/shopMaterial.js | 90 ++--- src/api/superStore/super.js | 18 +- src/api/superStore/superUitId.js | 16 +- src/views/base/canteenStall/canteen/index.vue | 5 + src/views/base/canteenStall/canteen/temp.vue | 5 + src/views/base/canteenStall/stall/index.vue | 5 + src/views/base/mobile/bannerList/index.vue | 382 ++++++++++++++++++ src/views/base/mobile/baseSetting/index.vue | 73 ++++ src/views/device/doubleScreen/index.vue | 165 +++++++- .../components/MaterialDialog.vue | 149 +++---- src/views/superstore/shopMaterial/index.vue | 66 +-- src/views/superstore/super/index.vue | 97 +++-- src/views/superstore/superUitId/index.vue | 11 +- 15 files changed, 938 insertions(+), 239 deletions(-) create mode 100644 src/views/base/mobile/bannerList/index.vue create mode 100644 src/views/base/mobile/baseSetting/index.vue diff --git a/src/api/base/mobile.js b/src/api/base/mobile.js index 00dd0d85..d118ffcc 100644 --- a/src/api/base/mobile.js +++ b/src/api/base/mobile.js @@ -1,5 +1,88 @@ import request from '@/utils/request' +// ---------- 基础设置 ------------------ + + //基础设置 + export function queryBaseSettingApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/getBaseSettingByKey', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + //基础设置 + export function saveBaseSettingApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/addBaseSetting', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + // ---------- 轮播图 ------------------ + + // 查询轮播图列表 + export function getCarouselListApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/getCarouselImage', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + // 新增轮播图 + export function addCarouselApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/addCarouseImage', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + // 编辑轮播图 + export function updateCarouselApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/updateCarouseImageById', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + // 删除轮播图 + export function removeCarouselApi(data) { + return request({ + url: '/smart-canteen/android/baseSetting/delCarouseImageById', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + + + + + + + + // 来源下拉数据 export function getSourceTypeListApi(data) { return request({ diff --git a/src/api/device/index.js b/src/api/device/index.js index a6208f83..cf3dbe81 100644 --- a/src/api/device/index.js +++ b/src/api/device/index.js @@ -79,7 +79,17 @@ export function getMenuRecipeDetailApi(data) { - +// 上传APK +export function uploadApkApi(data) { + return request({ + url: '/smart-canteen/doubleScreenMachine/uploadApk', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} diff --git a/src/api/superStore/shopMaterial.js b/src/api/superStore/shopMaterial.js index 76e96370..bbb49ac4 100644 --- a/src/api/superStore/shopMaterial.js +++ b/src/api/superStore/shopMaterial.js @@ -1,9 +1,9 @@ import request from '@/utils/request' -// 原料类别 +// 商品类别 export function systemMaterialTreeApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterialcategory/tree/list', + url: '/smart-canteen/menu_material_category/getTree', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -11,10 +11,10 @@ export function systemMaterialTreeApi(data) { data: data }) } -// 新增原料类别 +// 新增商品类别 export function addMaterialTypeApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterialcategory/add', + url: '/smart-canteen/menu_material_category/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -22,10 +22,10 @@ export function addMaterialTypeApi(data) { data: data }) } -//修改原料类别 +//修改商品类别 export function updateMaterialTypeApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterialcategory/edit', + url: '/smart-canteen/menu_material_category/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -33,10 +33,10 @@ export function updateMaterialTypeApi(data) { data: data }) } -//删除原料类别 +//删除商品类别 export function removeMaterialTypeApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterialcategory/remove', + url: '/smart-canteen/menu_material_category/del', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -44,35 +44,24 @@ export function removeMaterialTypeApi(data) { data: data }) } + -// 系统区域权限树 -export function systemAreaTreeApi(data) { - return request({ - url: '/smart-canteen/api/v2/alloc/area/system-auth/tree', - method: 'post', - headers: { - "merchant-id":"378915229716713472", - }, - data: data - }) -} - -// 查询原料列表 +// 查询商品列表 export function getMaterialListApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterial/page', - method: 'post', + url: '/smart-canteen/supermarket_product/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } -// 新增原料 +// 新增商品 export function addMaterialApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterial/add', + url: '/smart-canteen/supermarket_product/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -81,10 +70,10 @@ export function addMaterialApi(data) { }) } -// 编辑原料 +// 编辑商品 export function updateMaterialApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterial/edit', + url: '/smart-canteen/supermarket_product/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -93,20 +82,10 @@ export function updateMaterialApi(data) { }) } -// 删除原料 +// 删除商品 export function removeMaterialApi(data) { return request({ - url: '/smart-canteen/api/v1/menumaterial/remove/'+data.materialId, - method: 'post', - headers: { - "merchant-id":"378915229716713472", - } - }) -} -// 批量删除原料 -export function batchRemoveMaterialApi(data) { - return request({ - url: '/smart-canteen/api/v1/menumaterial/remove/batch', + url: '/smart-canteen/supermarket_product/del', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -114,7 +93,18 @@ export function batchRemoveMaterialApi(data) { data: data }) } -// 批量修改原料 +// 批量删除商品 +export function batchRemoveMaterialApi(data) { + return request({ + url: '/smart-canteen/supermarket_product/dels', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 批量修改商品 export function batchUpdateMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/material/batch/update/category', @@ -125,15 +115,15 @@ export function batchUpdateMaterialApi(data) { data: data }) } -// 根据区域ID-获取原料单位下拉选 +// 根据区域ID-获取商品单位下拉选 //{current: 1, size: -1, ifListUse: 1, areaId: '421488254718578688'} export function getDrpUnitListApi(data) { - return request({ - url: '/smart-canteen//api/v1/drpunit/page', - method: 'post', - headers: { - "merchant-id":"378915229716713472", - }, - data: data - }) + return request({ + url: '/smart-canteen/supermarket_unit/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) } \ No newline at end of file diff --git a/src/api/superStore/super.js b/src/api/superStore/super.js index 7a555267..057358c5 100644 --- a/src/api/superStore/super.js +++ b/src/api/superStore/super.js @@ -3,12 +3,12 @@ import request from '@/utils/request' // 仓库 export function drpWareHousePageApi(data) { return request({ - url: '/smart-canteen/api/v1/drpwarehouse/page', - method: 'post', + url: '/smart-canteen/warehouse_info/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } @@ -16,18 +16,18 @@ export function drpWareHousePageApi(data) { // 超市列表 export function supermarketPageListApi(data) { return request({ - url: '/smart-canteen/api/v1/basics-supermarket/page-supermarket', - method: 'post', + url: '/smart-canteen/supermarket_info/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } // 超市列表-新增 export function insertSupermarketApi(data) { return request({ - url: '/smart-canteen/api/v1/basics-supermarket/insert-supermarket', + url: '/smart-canteen/supermarket_info/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -38,7 +38,7 @@ export function insertSupermarketApi(data) { // 超市列表-编辑 export function editSupermarketApi(data) { return request({ - url: '/smart-canteen/api/v1/basics-supermarket/edit-supermarket', + url: '/smart-canteen/supermarket_info/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -50,7 +50,7 @@ export function editSupermarketApi(data) { // 超市列表-删除 export function deleteSupermarketApi(data) { return request({ - url: '/smart-canteen/api/v1/basics-supermarket/delete-supermarket', + url: '/smart-canteen/supermarket_info/del', method: 'post', headers: { "merchant-id":"378915229716713472", diff --git a/src/api/superStore/superUitId.js b/src/api/superStore/superUitId.js index fbc4565e..7a503ff6 100644 --- a/src/api/superStore/superUitId.js +++ b/src/api/superStore/superUitId.js @@ -15,19 +15,19 @@ export function systemAreaTreeApi(data) { // 单位列表-分页 export function drpUnitPageListApi(data) { return request({ - url: '/smart-canteen/api/v1/drpunit/page', - method: 'post', + url: '/smart-canteen/supermarket_unit/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } // 单位列表-新增 export function addDrpUnitApi(data) { return request({ - url: '/smart-canteen/api/v1/drpunit/add', + url: '/smart-canteen/supermarket_unit/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -39,7 +39,7 @@ export function addDrpUnitApi(data) { // 单位列表-编辑 export function editDrpUnitApi(data) { return request({ - url: '/smart-canteen/api/v1/drpunit/edit', + url: '/smart-canteen/supermarket_unit/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -49,14 +49,14 @@ export function editDrpUnitApi(data) { } // 单位列表-删除 -export function removeDrpUnitApi(unitId) { +export function removeDrpUnitApi(data) { return request({ - url: '/smart-canteen/api/v1/drpunit/remove/'+unitId, + url: '/smart-canteen/supermarket_unit/del', method: 'post', headers: { "merchant-id":"378915229716713472", }, - // data: data + data: data }) } diff --git a/src/views/base/canteenStall/canteen/index.vue b/src/views/base/canteenStall/canteen/index.vue index fdee67a8..7f1e028d 100644 --- a/src/views/base/canteenStall/canteen/index.vue +++ b/src/views/base/canteenStall/canteen/index.vue @@ -40,6 +40,11 @@ + + + diff --git a/src/views/base/canteenStall/canteen/temp.vue b/src/views/base/canteenStall/canteen/temp.vue index 1e20cfd7..57155f1a 100644 --- a/src/views/base/canteenStall/canteen/temp.vue +++ b/src/views/base/canteenStall/canteen/temp.vue @@ -22,6 +22,11 @@ + + + diff --git a/src/views/base/canteenStall/stall/index.vue b/src/views/base/canteenStall/stall/index.vue index bd840d5f..692deec2 100644 --- a/src/views/base/canteenStall/stall/index.vue +++ b/src/views/base/canteenStall/stall/index.vue @@ -49,6 +49,11 @@ + + + diff --git a/src/views/base/mobile/bannerList/index.vue b/src/views/base/mobile/bannerList/index.vue new file mode 100644 index 00000000..cf27e2af --- /dev/null +++ b/src/views/base/mobile/bannerList/index.vue @@ -0,0 +1,382 @@ + + + + \ No newline at end of file diff --git a/src/views/base/mobile/baseSetting/index.vue b/src/views/base/mobile/baseSetting/index.vue new file mode 100644 index 00000000..39c39a65 --- /dev/null +++ b/src/views/base/mobile/baseSetting/index.vue @@ -0,0 +1,73 @@ + + + + + \ No newline at end of file diff --git a/src/views/device/doubleScreen/index.vue b/src/views/device/doubleScreen/index.vue index 4dc24195..f0fc5431 100644 --- a/src/views/device/doubleScreen/index.vue +++ b/src/views/device/doubleScreen/index.vue @@ -53,6 +53,13 @@ size="mini" @click="handleAdd" >新增 + 更新APP @@ -255,7 +262,80 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传App + + + + + + + + + @@ -265,8 +345,9 @@