From 240c71b511591b766cdbc8835f6acea8a318364b Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Fri, 9 May 2025 15:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- package.json | 2 +- src/api/accountCenter/card.js | 14 +- src/api/accountCenter/consume.js | 2 +- src/api/device/index.js | 8 +- src/api/dish/dish.js | 8 +- .../accountCenter/account/consume/index.vue | 312 ++++++++++++++++++ src/views/accountCenter/butie/butie/index.vue | 20 +- .../cardManage/cardList/index.vue | 19 +- .../cardManage/cardRecord/index.vue | 25 +- src/views/base/canteenStall/area/index.vue | 2 +- src/views/base/mobile/evaManeager/index.vue | 6 +- src/views/device/doubleScreen/index.vue | 8 +- src/views/dish/dish/index.vue | 4 +- .../material/components/MaterialDialog.vue | 38 ++- src/views/dish/menu/detail.vue | 16 +- src/views/index.vue | 2 +- src/views/login.vue | 2 +- src/views/login1.vue | 2 +- src/views/register.vue | 2 +- src/views/register1.vue | 2 +- 23 files changed, 435 insertions(+), 65 deletions(-) create mode 100644 src/views/accountCenter/account/consume/index.vue diff --git a/.env.development b/.env.development index e2949acf..40bd065d 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 博诺思管理系统 +VUE_APP_TITLE = 国网安徽经研院绿智食堂 # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index 46d5f12b..ef2a9a77 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 博诺思管理系统 +VUE_APP_TITLE = 国网安徽经研院绿智食堂 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index 455b9ac1..4738afe1 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 博诺思管理系统 +VUE_APP_TITLE = 国网安徽经研院绿智食堂 NODE_ENV = production diff --git a/package.json b/package.json index 0768f633..eef04c86 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bonus", "version": "3.6.4", - "description": "博诺思管理系统", + "description": "国网安徽经研院绿智食堂", "author": "博诺思", "license": "MIT", "scripts": { diff --git a/src/api/accountCenter/card.js b/src/api/accountCenter/card.js index 35824883..15881200 100644 --- a/src/api/accountCenter/card.js +++ b/src/api/accountCenter/card.js @@ -37,7 +37,7 @@ export function accCardApi(data) { data: data }) } -// 换卡/退卡 +// 换卡 export function accCardChangeApi(data) { return request({ url: '/smart-canteen/acc_card/change', @@ -48,6 +48,18 @@ export function accCardChangeApi(data) { data: data }) } +//退卡 + +export function accCardRefundApi(data) { + return request({ + url: '/smart-canteen/acc_card/refund', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} // 挂失 export function accCardLossApi(data) { diff --git a/src/api/accountCenter/consume.js b/src/api/accountCenter/consume.js index 2a0f5be0..7c2c8324 100644 --- a/src/api/accountCenter/consume.js +++ b/src/api/accountCenter/consume.js @@ -51,7 +51,7 @@ export function consumeDeductSingleApi(data) { // 消费明细列表 export function accountFlowPageApi(data) { return request({ - url: '/smart-canteen/summary/account/flow/page', + url: '/smart-canteen/acc_trade/consume/detail', method: 'post', headers: { "merchant-id":"378915229716713472", diff --git a/src/api/device/index.js b/src/api/device/index.js index 2021e055..a6208f83 100644 --- a/src/api/device/index.js +++ b/src/api/device/index.js @@ -5,15 +5,11 @@ import request from '@/utils/request' export function getDeviceListPageApi(data) { return request({ url: '/smart-canteen/doubleScreenMachine/getDoubleScreenMachineList', - method: 'post', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data, - params:{ - pageNum:data.pageNum, - pageSize:data.pageSize - } + params:data }) } diff --git a/src/api/dish/dish.js b/src/api/dish/dish.js index 682f3b84..a1a58874 100644 --- a/src/api/dish/dish.js +++ b/src/api/dish/dish.js @@ -47,7 +47,7 @@ export function addMenuDishesTypeApi(data) { // 菜品种类-修改 areaId typeId typeName export function editMenuDishesTypeApi(data) { return request({ - url: '/smart-canteen/api/v1/menudishestype/edit', + url: '/smart-canteen/menu_material/updateMenuDishesType', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -56,14 +56,14 @@ export function editMenuDishesTypeApi(data) { }) } // 菜品种类-删除 typeId -export function removeMenuDishesTypeApi(typeId) { +export function removeMenuDishesTypeApi(data) { return request({ - url: '/smart-canteen/api/v1/menudishestype/remove/'+typeId, + url: '/smart-canteen/menu_material/delMenuDishesType', method: 'post', headers: { "merchant-id":"378915229716713472", }, - // data: data + data: data }) } diff --git a/src/views/accountCenter/account/consume/index.vue b/src/views/accountCenter/account/consume/index.vue new file mode 100644 index 00000000..a49ee5ee --- /dev/null +++ b/src/views/accountCenter/account/consume/index.vue @@ -0,0 +1,312 @@ + + + + + \ No newline at end of file diff --git a/src/views/accountCenter/butie/butie/index.vue b/src/views/accountCenter/butie/butie/index.vue index e50a7d97..7c89d1fa 100644 --- a/src/views/accountCenter/butie/butie/index.vue +++ b/src/views/accountCenter/butie/butie/index.vue @@ -294,10 +294,10 @@
总人数: {{resultData.totalUserSum || '--' }} , 补贴人数:{{resultData.validCount || '--' }}, 补贴总额:{{(resultData.validTotalAmount/100) || '--' }}, 无效人数:{{resultData.invalidCount || '--'}}
- - - - + + + + - +