diff --git a/src/api/act/actCancel.ts b/src/api/act/actCancel.ts
new file mode 100644
index 0000000..b39a6ea
--- /dev/null
+++ b/src/api/act/actCancel.ts
@@ -0,0 +1,40 @@
+import request from "/@/utils/request"
+
+export function fetchList(query?: Object) {
+ return request({
+ url: "/wallet/act/act-cancel/page",
+ method: "get",
+ params: query,
+ })
+}
+
+export function addObj(obj?: Object) {
+ return request({
+ url: "/wallet/act/act-cancel",
+ method: "post",
+ data: obj,
+ })
+}
+
+export function getObj(id?: string) {
+ return request({
+ url: "/wallet/act/act-cancel/" + id,
+ method: "get",
+ })
+}
+
+export function delObjs(ids?: Object) {
+ return request({
+ url: "/wallet/act/act-cancel",
+ method: "delete",
+ data: ids,
+ })
+}
+
+export function putObj(obj?: Object) {
+ return request({
+ url: "/wallet/act/act-cancel",
+ method: "put",
+ data: obj,
+ })
+}
diff --git a/src/components/Upload/qnImages.vue b/src/components/Upload/qnImages.vue
new file mode 100644
index 0000000..dafe90b
--- /dev/null
+++ b/src/components/Upload/qnImages.vue
@@ -0,0 +1,282 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/index.ts b/src/components/index.ts
index edd8a95..d91f00b 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -6,6 +6,8 @@ import UploadExcel from "/@/components/Upload/Excel.vue"
import UploadFile from "/@/components/Upload/index.vue"
import UploadImg from "/@/components/Upload/Image.vue"
import UploadImgs from "/@/components/Upload/Images.vue"
+import UploadQnImgs from "/@/components/Upload/qnImages.vue"
+
import DelWrap from "/@/components/DelWrap/index.vue"
import Editor from "/@/components/Editor/index.vue"
import Tip from "/@/components/Tip/index.vue"
@@ -67,6 +69,7 @@ export default {
app.component("UploadFile", UploadFile)
app.component("UploadImg", UploadImg)
app.component("UploadImgs", UploadImgs)
+ app.component("UploadQnImgs", UploadQnImgs)
app.component("Editor", Editor)
app.component("Tip", Tip)
app.component("DelWrap", DelWrap)
diff --git a/src/views/act/act-cancel/form.vue b/src/views/act/act-cancel/form.vue
new file mode 100644
index 0000000..4fd8253
--- /dev/null
+++ b/src/views/act/act-cancel/form.vue
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/act/act-cancel/index.vue b/src/views/act/act-cancel/index.vue
new file mode 100644
index 0000000..c93abb8
--- /dev/null
+++ b/src/views/act/act-cancel/index.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("common.queryBtn") }}
+
+
+ {{ $t("common.resetBtn") }}
+
+
+
+
+
+
+
+ 新 增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/hard/hard-spu/form.vue b/src/views/hard/hard-spu/form.vue
index c14a7bd..29a7add 100644
--- a/src/views/hard/hard-spu/form.vue
+++ b/src/views/hard/hard-spu/form.vue
@@ -1,6 +1,7 @@
-
+
@@ -14,12 +15,12 @@
-
+
-
+
@@ -149,7 +150,7 @@ const openDialog = (id: string) => {
// 提交
const onSubmit = async () => {
- const valid = await dataFormRef.value.validate().catch(() => {})
+ const valid = await dataFormRef.value.validate().catch(() => { })
if (!valid) return false
try {
diff --git a/src/views/panel/index.vue b/src/views/panel/index.vue
index 710c205..6ce87b8 100644
--- a/src/views/panel/index.vue
+++ b/src/views/panel/index.vue
@@ -14,12 +14,9 @@ const loading = ref(false)
onMounted(async () => {
try {
- // 是否生成环境
- if (import.meta.env.VITE_ENV === "prod") {
- openPlanUrl("https://stgl.pj.gov.cn/cockpit/#/canteen")
- } else {
- openPlanUrl("http://localhost:5173/#/canteen")
- }
+ const isDev = import.meta.env.MODE === "development"
+ const url = isDev ? "http://localhost:5173/#/canteen" : "https://stgl.pj.gov.cn/cockpit/#/canteen"
+ openPlanUrl(url)
loading.value = true
router.back()
} catch (error: any) {
diff --git a/src/views/panel/setting/components/nutrition-setting.vue b/src/views/panel/setting/components/nutrition-setting.vue
index 8a31b28..9bc8df9 100644
--- a/src/views/panel/setting/components/nutrition-setting.vue
+++ b/src/views/panel/setting/components/nutrition-setting.vue
@@ -42,6 +42,19 @@
+
+
+ 今日菜品复购排行
+
+
+
+ 需要排除的菜品分类
+
+
+
+
+
@@ -66,6 +79,8 @@ const form = reactive({
scCategoryIds: [],
// 主食菜品分类
zsCategoryIds: [],
+ // 复购排行需要排除的菜品分类
+ repurchaseTopExcludeCategoryIds: [],
},
})
@@ -91,6 +106,7 @@ async function getSetting() {
hcCategoryIds: [],
scCategoryIds: [],
zsCategoryIds: [],
+ repurchaseTopExcludeCategoryIds: [],
}
}
if (data) {
diff --git a/src/views/wallet/wallet-manage/index.vue b/src/views/wallet/wallet-manage/index.vue
index 921a6b9..59eec21 100644
--- a/src/views/wallet/wallet-manage/index.vue
+++ b/src/views/wallet/wallet-manage/index.vue
@@ -6,22 +6,20 @@
:defaultTreeWidth="20" :nodeClickable="false">
-
-
-
-
-
-
-
-
-
-
-
- {{ $t("common.queryBtn")
- }}
- {{ $t("common.resetBtn") }}
-
+
+
+
+
+
+
+
+
+
+
+ {{ $t("common.queryBtn")
+ }}
+ {{ $t("common.resetBtn") }}
+
diff --git a/src/views/wallet/wallet-manage/transfer-accounts.vue b/src/views/wallet/wallet-manage/transfer-accounts.vue
index 17540b5..901b8c6 100644
--- a/src/views/wallet/wallet-manage/transfer-accounts.vue
+++ b/src/views/wallet/wallet-manage/transfer-accounts.vue
@@ -33,13 +33,15 @@
{{ userConfigDetail.sourceWalletTypeName }}
- {{ displayPrice(userConfigDetail.sourceWalletBalance - form.balance * 100) }}
+ {{ displayPrice(userConfigDetail.sourceWalletBalance - form.balance
+ * 100) }}
{{ userConfigDetail.targetWalletTypeName }}
- {{ displayPrice(userConfigDetail.targetWalletBalance + form.balance * 100) }}
+ {{ displayPrice(userConfigDetail.targetWalletBalance + form.balance
+ * 100) }}
@@ -52,8 +54,8 @@
{{ displayPrice(userConfigDetail.maxTransferBalance) }}
- {{ displayPrice(userConfigDetail.totalTransferBalance) }}
+ {{
+ displayPrice(userConfigDetail.totalTransferBalance) }}
@@ -61,19 +63,14 @@
用户
{{ walletDetail.username }}
将
-
+
元从
{{ walletDetail.walletTypeName }}
转到
-
+
@@ -182,7 +179,7 @@ const getUserConfig = async (userId: any, sourceWalletId: any, targetWalletId: a
const _pa = {
userId: userId,
sourceWalletTypeId: sourceWalletId,
- targetWalletTypeId: targetWalletId,
+ targetWalletTypeId: targetWalletId ?? null,
}
try {
const { data } = await walletRuleJoin.userConfig(_pa)