+
+
+
+
+
@@ -46,6 +51,7 @@
+
diff --git a/src/views/hard/components/shop-car.vue b/src/views/hard/components/shop-car.vue
index 721d614..714beb8 100644
--- a/src/views/hard/components/shop-car.vue
+++ b/src/views/hard/components/shop-car.vue
@@ -1,62 +1,69 @@
-
-
-
-
-
-
-
-
-
-
- {{ displayPrice(row.productPrice) }}
-
-
-
-
-
- {{ displayPrice(row.totalPrice) }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ displayPrice(row.productPrice) }}
+
+
+
+
+
+ {{ displayPrice(row.totalPrice) }}
+
+
+
+
+
+
+
+
\ No newline at end of file
+ openDialog,
+})
+
diff --git a/src/views/hard/hard-after-sale/order-refund.vue b/src/views/hard/hard-after-sale/order-refund.vue
index 75fd603..db6346e 100644
--- a/src/views/hard/hard-after-sale/order-refund.vue
+++ b/src/views/hard/hard-after-sale/order-refund.vue
@@ -78,6 +78,7 @@
diff --git a/src/views/hard/hard-after-sale/refund-reject.vue b/src/views/hard/hard-after-sale/refund-reject.vue
index 2dcc35c..689a81f 100644
--- a/src/views/hard/hard-after-sale/refund-reject.vue
+++ b/src/views/hard/hard-after-sale/refund-reject.vue
@@ -1,70 +1,70 @@
-
-
-
-
-
-
-
- 确 定
- 取 消
-
-
+
+
+
+
+
+
+
+ 确 定
+ 取 消
+
+
\ No newline at end of file
+ openDialog,
+})
+
diff --git a/src/views/hard/hard-group/index.vue b/src/views/hard/hard-group/index.vue
index 030e724..0e05534 100644
--- a/src/views/hard/hard-group/index.vue
+++ b/src/views/hard/hard-group/index.vue
@@ -57,7 +57,7 @@
-
+
-
-
-
-
-
-
-
+
+
@@ -18,6 +13,16 @@
+
+
+
+
+
+
+
+
+
+
{{ $t("common.queryBtn") }}
{{ $t("common.resetBtn") }}
@@ -34,8 +39,18 @@
@sort-change="sortChangeHandle"
>
-
-
+
+
+
+
+
+
+ {{ row.username }}
+ {{ row.userMobile }}
+
+
+
+
@@ -184,17 +199,14 @@ const handleDelete = async (ids: string[]) => {
display: flex;
align-items: center;
margin-bottom: 2px;
-
span {
display: inline-block;
}
-
span:nth-child(1) {
min-width: 60px;
max-width: 100px;
text-align: left;
}
-
span:nth-child(2) {
flex: 1;
min-width: 50px;
diff --git a/src/views/hard/hard-manager/index.vue b/src/views/hard/hard-manager/index.vue
index 878782e..19dfda9 100644
--- a/src/views/hard/hard-manager/index.vue
+++ b/src/views/hard/hard-manager/index.vue
@@ -103,15 +103,33 @@
@click="formDialogRef.openDialog(row.id)"
>编辑
-
+
mq设置
-
+
人脸sdk设置
- 删除
+ 删除
+
diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue
index 66eadc2..7d1e38a 100644
--- a/src/views/hard/hard-order/index.vue
+++ b/src/views/hard/hard-order/index.vue
@@ -13,7 +13,12 @@
-
+
+
+
+
+
+
@@ -42,13 +47,17 @@
>
-
-
+
-
+
+
+
+ {{ row.username }}
+ {{ row.userMobile }}
+
+
-
@@ -167,13 +176,30 @@
-
+
- 打印发票
-
- 购物车
-
- 详情
+
+
+ 打印发票
+
+
+ 购物车
+
+
+
+
+ 钱包明细
+
+
+ 订单详情
+
+
+
@@ -218,6 +245,7 @@ const { push } = useRouter()
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
const ShopCar = defineAsyncComponent(() => import("../components/shop-car.vue"))
+const TransactionList = defineAsyncComponent(() => import("/@/views/wallet/components/transaction-list.vue"))
// 定义查询字典
const { hard_pay_type, hard_order_type, hard_order_status, hard_type, hard_refund_status, daily_menu } = useDict(
"hard_pay_type",
@@ -230,6 +258,7 @@ const { hard_pay_type, hard_order_type, hard_order_status, hard_type, hard_refun
// 定义变量内容
const formDialogRef = ref()
const shopCarDialogRef = ref()
+const transactionListRef = ref()
const tabList = ref([{}])
const activeName = ref(null)
// 搜索变量
diff --git a/src/views/wallet/wallet-manage/transaction-list.vue b/src/views/wallet/components/transaction-list.vue
similarity index 100%
rename from src/views/wallet/wallet-manage/transaction-list.vue
rename to src/views/wallet/components/transaction-list.vue
diff --git a/src/views/wallet/wallet-manage/index.vue b/src/views/wallet/wallet-manage/index.vue
index 6fa86a0..18b2ab1 100644
--- a/src/views/wallet/wallet-manage/index.vue
+++ b/src/views/wallet/wallet-manage/index.vue
@@ -107,7 +107,7 @@
icon="Money"
text
type="primary"
- v-auth="'wallet_walletManage_edit'"
+ v-auth="'wallet_walletTransaction_update_balance'"
@click="changeBalanceRef.openDialog(row.userId, row.id)"
>充值/扣款
@@ -129,7 +129,7 @@ import { useDict } from "/@/hooks/dict"
import { displayPrice } from "/@/utils/formatMoney"
// 引入组件
-const TransactionList = defineAsyncComponent(() => import("./transaction-list.vue"))
+const TransactionList = defineAsyncComponent(() => import("../components/transaction-list.vue"))
const ChangeBalance = defineAsyncComponent(() => import("./change-balance.vue"))
// 定义查询字典
const { wallet_type, yes_no_type } = useDict("wallet_type", "yes_no_type")
diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue
index f34da42..9a83604 100644
--- a/src/views/wallet/wallet-recharge-apply/index.vue
+++ b/src/views/wallet/wallet-recharge-apply/index.vue
@@ -100,7 +100,7 @@
icon="Connection"
text
type="primary"
- v-auth="'wallet_walletRechargeApply_edit'"
+ v-auth="'wallet_walletRechargeApply_apply'"
@click="doApply(row)"
>申请
diff --git a/src/views/wallet/wallet-setting/components/code/index.vue b/src/views/wallet/wallet-setting/components/code/index.vue
index 9365732..fc216df 100644
--- a/src/views/wallet/wallet-setting/components/code/index.vue
+++ b/src/views/wallet/wallet-setting/components/code/index.vue
@@ -1,91 +1,107 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 秒
-
-
-
-
-
-
-
-
- 确认
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 秒
+
+
+
+
+
+
+
+
+ 确认
+
+
+
\ No newline at end of file
+ // 获取数据
+ loading.value = true
+ getObj(id)
+ .then((res: any) => {
+ Object.assign(form, res.data)
+ })
+ .finally(() => {
+ loading.value = false
+ })
+}
+
diff --git a/src/views/wallet/wallet-setting/components/extra-price/index.vue b/src/views/wallet/wallet-setting/components/extra-price/index.vue
index 85cecca..ef5b259 100644
--- a/src/views/wallet/wallet-setting/components/extra-price/index.vue
+++ b/src/views/wallet/wallet-setting/components/extra-price/index.vue
@@ -50,7 +50,7 @@
-
diff --git a/src/views/wallet/wallet-setting/components/off-line/index.vue b/src/views/wallet/wallet-setting/components/off-line/index.vue
index 3f9804c..5abfd92 100644
--- a/src/views/wallet/wallet-setting/components/off-line/index.vue
+++ b/src/views/wallet/wallet-setting/components/off-line/index.vue
@@ -1,80 +1,91 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确认
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+
+
+
+
\ No newline at end of file
+ // 获取数据
+ loading.value = true
+ getObj(id)
+ .then((res: any) => {
+ Object.assign(form, res.data)
+ })
+ .finally(() => {
+ loading.value = false
+ })
+}
+
diff --git a/src/views/wallet/wallet-setting/components/refund/index.vue b/src/views/wallet/wallet-setting/components/refund/index.vue
index 82ffb9e..3b5ba4c 100644
--- a/src/views/wallet/wallet-setting/components/refund/index.vue
+++ b/src/views/wallet/wallet-setting/components/refund/index.vue
@@ -1,38 +1,64 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确认
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+
+
+
+
+
\ No newline at end of file
+ // 获取数据
+ loading.value = true
+ getObj(id)
+ .then((res: any) => {
+ const data: any = res.data
+ if (data.afterSaleRefundReasons) {
+ data.afterSaleRefundReasons = data.afterSaleRefundReasons?.split(",")
+ }
+ if (data.afterSaleReturnReasons) {
+ data.afterSaleReturnReasons = data.afterSaleReturnReasons?.split(",")
+ }
+ Object.assign(form, data)
+ })
+ .finally(() => {
+ loading.value = false
+ })
+}
+
diff --git a/src/views/wallet/wallet-setting/index.vue b/src/views/wallet/wallet-setting/index.vue
index f159c64..2d83fa9 100644
--- a/src/views/wallet/wallet-setting/index.vue
+++ b/src/views/wallet/wallet-setting/index.vue
@@ -1,45 +1,42 @@
-
+
\ No newline at end of file
+const handleClick = (e: any) => {}
+
From 1beb70d4aa069cdb6b547a3902a2681bf45ad2ec Mon Sep 17 00:00:00 2001
From: ctw <>
Date: Sun, 19 Jan 2025 13:37:13 +0800
Subject: [PATCH 03/11] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 +-
.gitignore | 3 +
src/views/admin/system/menu/index.vue | 164 +++++++++++-------
src/views/admin/system/user/form.vue | 2 +-
src/views/canteen/canteenCategory/index.vue | 106 +++++++----
src/views/canteen/canteenDailyMenu/index.vue | 3 +
.../canteen/canteenOnlineCategory/index.vue | 83 +++++----
src/views/canteen/canteenOnlineSpu/index.vue | 8 +-
src/views/canteen/canteenSpu/index.vue | 9 +-
9 files changed, 239 insertions(+), 143 deletions(-)
diff --git a/.env.development b/.env.development
index 2e10aaf..22e3399 100644
--- a/.env.development
+++ b/.env.development
@@ -18,8 +18,8 @@ VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999 # 邓-本地
# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 线上
# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc
# VITE_IMAGE_BASE_PATH = http://localhost:9999
-VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地
-# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境
+# VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地
+VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境
# 代码生成服务地址
VITE_GEN_PROXY_PATH = http://192.168.110.156:5003
diff --git a/.gitignore b/.gitignore
index 4a204e5..2554c2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,9 @@ docker/dist
# local env files
+.env
+.env.development
+.env.prod
.env.local
.env.*.local
diff --git a/src/views/admin/system/menu/index.vue b/src/views/admin/system/menu/index.vue
index f0755ad..f35e42c 100644
--- a/src/views/admin/system/menu/index.vue
+++ b/src/views/admin/system/menu/index.vue
@@ -4,20 +4,25 @@
-
+
- {{ $t('common.queryBtn') }}
+ {{ $t("common.queryBtn") }}
- {{ $t('common.resetBtn') }}
+ {{ $t("common.resetBtn") }}
- {{ $t('common.addBtn') }}
+ {{ $t("common.addBtn") }}
-
-
-
+
+
+
-
-
+
+
左菜单
顶菜单
按钮
-
+
开启
关闭
-
-
+
+
-
- {{ $t('common.addBtn') }}
+
+ {{ $t("common.addBtn") }}
- {{ $t('common.editBtn') }}
+ {{ $t("common.editBtn") }}
-
+
- {{ $t('common.delBtn') }}
+ {{ $t("common.delBtn") }}
@@ -94,99 +126,99 @@
diff --git a/src/views/admin/system/user/form.vue b/src/views/admin/system/user/form.vue
index 63122a2..e8aa791 100644
--- a/src/views/admin/system/user/form.vue
+++ b/src/views/admin/system/user/form.vue
@@ -187,7 +187,7 @@ const dataRules = ref({
},
],
email: [
- { type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] },
+ { required: true, message: "请输入正确的邮箱地址", trigger: ["blur", "change"] },
{ validator: rule.overLength, trigger: "blur" },
],
lockFlag: [{ required: true, message: "状态不能为空", trigger: "blur" }],
diff --git a/src/views/canteen/canteenCategory/index.vue b/src/views/canteen/canteenCategory/index.vue
index 8641c10..ad45669 100644
--- a/src/views/canteen/canteenCategory/index.vue
+++ b/src/views/canteen/canteenCategory/index.vue
@@ -7,17 +7,32 @@
- 查询
- 重置
+
+ 查询
+
+ 重置
-
+
新 增
-
+
删 除
+ />
-
+
编辑
- 删除
+
+ 删除
+
@@ -73,66 +102,71 @@
diff --git a/src/views/canteen/canteenDailyMenu/index.vue b/src/views/canteen/canteenDailyMenu/index.vue
index 9454213..b98eb1a 100644
--- a/src/views/canteen/canteenDailyMenu/index.vue
+++ b/src/views/canteen/canteenDailyMenu/index.vue
@@ -85,6 +85,7 @@ import { getAllSimple as getCanteenCategory } from "/@/api/canteen/canteenCatego
import { useMessage } from "/@/hooks/message"
import { pageJoin } from "/@/api/wallet/mch-manage"
import { displayPrice } from "/@/utils/formatMoney"
+import { auth } from "/@/utils/authFunction"
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
const imageBaseUrl = import.meta.env.VITE_IMAGE_BASE_PATH
@@ -110,6 +111,7 @@ const merchantId = ref() // 商户Id
const merchantInfo = ref([])
const addFood = async (hourType: number) => {
+ if (!auth("canteen_canteenDailyMenu_add")) return
if (!merchantId.value) {
useMessage().error("请选择商户再进行新增")
return
@@ -182,6 +184,7 @@ const selectTimeFood = async () => {
// 删除菜品
const delteData = async (tid: number) => {
+ if (!auth("canteen_canteenDailyMenu_del")) return
ElMessageBox.confirm("确定删除菜品吗?", "删除菜品", {
confirmButtonText: "确定",
cancelButtonText: "取消",
diff --git a/src/views/canteen/canteenOnlineCategory/index.vue b/src/views/canteen/canteenOnlineCategory/index.vue
index 9c04360..50c8e93 100644
--- a/src/views/canteen/canteenOnlineCategory/index.vue
+++ b/src/views/canteen/canteenOnlineCategory/index.vue
@@ -7,14 +7,22 @@
- 查询
- 重置
+
+ 查询
+
+ 重置
-
+
新 增
+ />
编辑
-
+
删除
@@ -82,64 +96,69 @@
diff --git a/src/views/canteen/canteenOnlineSpu/index.vue b/src/views/canteen/canteenOnlineSpu/index.vue
index 7248262..2dfede9 100644
--- a/src/views/canteen/canteenOnlineSpu/index.vue
+++ b/src/views/canteen/canteenOnlineSpu/index.vue
@@ -10,8 +10,10 @@
- 查询
- 重置
+
+ 查询
+
+ 重置
@@ -43,7 +45,7 @@
class="ml10 mr20"
style="float: right"
@queryTable="getDataList"
- >
+ />
- 查询
- 重置
+
+ 查询
+
+ 重置
@@ -108,8 +110,9 @@
type="primary"
v-auth="'canteen_canteenSpu_del'"
@click="handleDelete([scope.row.id])"
- >删除
+ 删除
+
From c4f10ac9febbc39d804b6ae45247f454b481a2f7 Mon Sep 17 00:00:00 2001
From: dzc <2388224167@qq.com>
Date: Sun, 19 Jan 2025 15:34:30 +0800
Subject: [PATCH 04/11] =?UTF-8?q?feat:=E9=85=8D=E7=BD=AE=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/hard/hard-order/index.vue | 19 ++++++++++++-------
.../wallet-setting/components/code/index.vue | 4 ++++
.../components/extra-price/index.vue | 5 +++++
.../components/off-line/index.vue | 3 +++
.../components/refund/index.vue | 4 ++++
5 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue
index 7d1e38a..69b0e56 100644
--- a/src/views/hard/hard-order/index.vue
+++ b/src/views/hard/hard-order/index.vue
@@ -58,13 +58,13 @@
-