From 26da8b83063c5d518fad42ba37624971743bdc67 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Fri, 28 Mar 2025 18:49:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=92=B1=E5=8C=85=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/mch-dept-user.ts | 56 ++++ src/views/mch/mch-dept-user/form.vue | 109 +++++++ src/views/mch/mch-dept-user/index.vue | 174 +++++++++++ src/views/mch/mch-manage/form.vue | 227 ++++++++++----- src/views/mch/mch-manage/index.vue | 226 +++++++++++++-- .../mch-manage/mch-rule-config-form.vue | 0 .../mch-manage/mch-rule-config.vue | 0 .../{wallet => mch}/mch-manage/setting.vue | 0 src/views/wallet/mch-manage/form.vue | 240 --------------- src/views/wallet/mch-manage/index.vue | 274 ------------------ src/views/wallet/wallet-manage/index.vue | 7 +- 11 files changed, 702 insertions(+), 611 deletions(-) create mode 100644 src/api/wallet/mch-dept-user.ts create mode 100644 src/views/mch/mch-dept-user/form.vue create mode 100644 src/views/mch/mch-dept-user/index.vue rename src/views/{wallet => mch}/mch-manage/mch-rule-config-form.vue (100%) rename src/views/{wallet => mch}/mch-manage/mch-rule-config.vue (100%) rename src/views/{wallet => mch}/mch-manage/setting.vue (100%) delete mode 100644 src/views/wallet/mch-manage/form.vue delete mode 100644 src/views/wallet/mch-manage/index.vue diff --git a/src/api/wallet/mch-dept-user.ts b/src/api/wallet/mch-dept-user.ts new file mode 100644 index 0000000..3265ca5 --- /dev/null +++ b/src/api/wallet/mch-dept-user.ts @@ -0,0 +1,56 @@ +import request from "/@/utils/request" + +export function asyncAll(query?: Object) { + return request({ + url: "/wallet/mch-dept-user/sync-all", + method: "get", + params: query, + }) +} + +export function fetchList(query?: Object) { + return request({ + url: "/wallet/mch-dept-user/page", + method: "get", + params: query, + }) +} + +export function pageJoin(query?: Object) { + return request({ + url: "/wallet/mch-dept-user/page-join", + method: "get", + params: query, + }) +} + +export function addObj(obj?: Object) { + return request({ + url: "/wallet/mch-dept-user", + method: "post", + data: obj, + }) +} + +export function getObj(id?: string) { + return request({ + url: "/wallet/mch-dept-user/" + id, + method: "get", + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: "/wallet/mch-dept-user", + method: "delete", + data: ids, + }) +} + +export function putObj(obj?: Object) { + return request({ + url: "/wallet/mch-dept-user", + method: "put", + data: obj, + }) +} diff --git a/src/views/mch/mch-dept-user/form.vue b/src/views/mch/mch-dept-user/form.vue new file mode 100644 index 0000000..75b0331 --- /dev/null +++ b/src/views/mch/mch-dept-user/form.vue @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确认 + + + + + + diff --git a/src/views/mch/mch-dept-user/index.vue b/src/views/mch/mch-dept-user/index.vue new file mode 100644 index 0000000..ff51b6e --- /dev/null +++ b/src/views/mch/mch-dept-user/index.vue @@ -0,0 +1,174 @@ + + + + + + 同步全部 + + 新 增 + + + 删除 + + + + + + + + + + + 商户id + 1111 + + + 商户名 + 1111 + + + + + + + 用户id + 1111 + + + 用户名 + 1111 + + + + + + 用户部门id + 1111 + + + 用户部门 + 1111 + + + + + + 编辑 + 删除 + + + + + + + + + + + + diff --git a/src/views/mch/mch-manage/form.vue b/src/views/mch/mch-manage/form.vue index 17b4819..aaad5da 100644 --- a/src/views/mch/mch-manage/form.vue +++ b/src/views/mch/mch-manage/form.vue @@ -1,127 +1,178 @@ - - + + - - - - 0 - - - - - + - + - - - - - 0 - + + + - - - - + + + + + {{ item.label }} + + - - - - + + + - - - - + + + - - - + + + 排序 + + + - - - - + + + - - - - + + + + + + + + + + + + + + + - - 取消 - 确认 - + 取消 + 确认 - + + diff --git a/src/views/wallet/mch-manage/mch-rule-config-form.vue b/src/views/mch/mch-manage/mch-rule-config-form.vue similarity index 100% rename from src/views/wallet/mch-manage/mch-rule-config-form.vue rename to src/views/mch/mch-manage/mch-rule-config-form.vue diff --git a/src/views/wallet/mch-manage/mch-rule-config.vue b/src/views/mch/mch-manage/mch-rule-config.vue similarity index 100% rename from src/views/wallet/mch-manage/mch-rule-config.vue rename to src/views/mch/mch-manage/mch-rule-config.vue diff --git a/src/views/wallet/mch-manage/setting.vue b/src/views/mch/mch-manage/setting.vue similarity index 100% rename from src/views/wallet/mch-manage/setting.vue rename to src/views/mch/mch-manage/setting.vue diff --git a/src/views/wallet/mch-manage/form.vue b/src/views/wallet/mch-manage/form.vue deleted file mode 100644 index aaad5da..0000000 --- a/src/views/wallet/mch-manage/form.vue +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - {{ item.label }} - - - - - - - - - - - - - - - - - - 排序 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取消 - 确认 - - - - - diff --git a/src/views/wallet/mch-manage/index.vue b/src/views/wallet/mch-manage/index.vue deleted file mode 100644 index 085ef6d..0000000 --- a/src/views/wallet/mch-manage/index.vue +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - - - - - - - - - - - - - - - {{ $t("common.queryBtn") }} - - {{ $t("common.resetBtn") }} - - - - - - - 新 增 - - - 删 除 - - - - - - - - - - - - - - - - - - 下载 - - - - - - - - - - - - - - - - {{ row.walletTypeName }} - - - - - - - - - - - {{ row.sort }} - - - - - {{ row.mchCount || 0 }} - - - - - {{ row.jobTime?.split(",")[0] ? "早上:" + row.jobTime?.split(",")[0] : "" }} - {{ row.jobTime?.split(",")[1] ? "中午:" + row.jobTime?.split(",")[1] : "" }} - {{ row.jobTime?.split(",")[2] ? "晚上:" + row.jobTime?.split(",")[2] : "" }} - - - - - - - - - - - - - - - - - - 刷新二维码 - - - 配置 - - - 编辑 - - 删除 - - - - - - - - - - - - - - - diff --git a/src/views/wallet/wallet-manage/index.vue b/src/views/wallet/wallet-manage/index.vue index 8f932fb..221d416 100644 --- a/src/views/wallet/wallet-manage/index.vue +++ b/src/views/wallet/wallet-manage/index.vue @@ -105,7 +105,12 @@ - +