From 087d49c6ac072169921e97ebd47820a25cf6c4f6 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Sat, 11 Jan 2025 15:53:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=EF=BC=9A=E7=A1=AC=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/formatMoney.ts | 22 +- src/views/admin/system/user/face-manage.vue | 225 ++++++------- src/views/hard/hard-manager/face-form.vue | 163 +++++----- src/views/hard/hard-manager/form.vue | 163 +++++----- src/views/hard/hard-manager/index.vue | 297 ++++++++++-------- src/views/hard/hard-manager/mq-form.vue | 216 +++++++------ .../components/extra-price/index.vue | 172 +++++----- 7 files changed, 654 insertions(+), 604 deletions(-) diff --git a/src/utils/formatMoney.ts b/src/utils/formatMoney.ts index 4bf7485..b9ee379 100644 --- a/src/utils/formatMoney.ts +++ b/src/utils/formatMoney.ts @@ -1,21 +1,21 @@ /** * 显示价格把分转换到元 - * @param price - * @returns + * @param price + * @returns */ -export function displayPrice(price: any, suffix: string = "元") { - if (typeof price === 'undefined') return '0.0' + suffix - const parsedNumber = typeof price === 'string' ? parseFloat(price) : price - return (parsedNumber / 100.0).toFixed(1) + suffix +export function displayPrice(price: any, suffix: string = "元", fixed = 1) { + if (typeof price === "undefined") return "0.0" + suffix + const parsedNumber = typeof price === "string" ? parseFloat(price) : price + return (parsedNumber / 100.0).toFixed(fixed) + suffix } /** * 把显示价格改为分 - * @param price - * @returns + * @param price + * @returns */ export const storePrice = (num: number | string | undefined) => { - if (typeof num === 'undefined') return 0 - const parsedNumber = typeof num === 'string' ? parseFloat(num) : num + if (typeof num === "undefined") return 0 + const parsedNumber = typeof num === "string" ? parseFloat(num) : num return Math.round(parsedNumber * 100) -} \ No newline at end of file +} diff --git a/src/views/admin/system/user/face-manage.vue b/src/views/admin/system/user/face-manage.vue index 8af1cd9..5f7a75f 100644 --- a/src/views/admin/system/user/face-manage.vue +++ b/src/views/admin/system/user/face-manage.vue @@ -1,56 +1,61 @@ \ No newline at end of file +defineExpose({ openDialog }) + diff --git a/src/views/hard/hard-manager/face-form.vue b/src/views/hard/hard-manager/face-form.vue index a4741bf..de8b9cc 100644 --- a/src/views/hard/hard-manager/face-form.vue +++ b/src/views/hard/hard-manager/face-form.vue @@ -1,114 +1,111 @@ \ No newline at end of file + openDialog, +}) + diff --git a/src/views/hard/hard-manager/form.vue b/src/views/hard/hard-manager/form.vue index 492902e..1b97830 100644 --- a/src/views/hard/hard-manager/form.vue +++ b/src/views/hard/hard-manager/form.vue @@ -1,115 +1,114 @@ \ No newline at end of file + openDialog, +}) + diff --git a/src/views/hard/hard-manager/index.vue b/src/views/hard/hard-manager/index.vue index 42ff5c1..da50644 100644 --- a/src/views/hard/hard-manager/index.vue +++ b/src/views/hard/hard-manager/index.vue @@ -1,104 +1,141 @@ \ No newline at end of file + try { + await hardManageApi.delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/hard/hard-manager/mq-form.vue b/src/views/hard/hard-manager/mq-form.vue index 73cc607..ead1178 100644 --- a/src/views/hard/hard-manager/mq-form.vue +++ b/src/views/hard/hard-manager/mq-form.vue @@ -1,144 +1,142 @@ \ No newline at end of file + openDialog, +}) + 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 7b34b42..85cecca 100644 --- a/src/views/wallet/wallet-setting/components/extra-price/index.vue +++ b/src/views/wallet/wallet-setting/components/extra-price/index.vue @@ -1,99 +1,119 @@ \ No newline at end of file + // 获取数据 + loading.value = true + getObj(id) + .then((res: any) => { + Object.assign(form, res.data, { payAmountMealLimit: displayPrice(res.data.payAmountMealLimit, "", 0) }) + }) + .finally(() => { + loading.value = false + }) +} + From f5c3e0b0ea97519cef8c0b65fab1d22d2484b5f0 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Sat, 11 Jan 2025 18:08:01 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/views/admin/system/user/face-manage.vue | 1 + src/views/hard/hard-order/index.vue | 506 +++++++++++--------- 3 files changed, 293 insertions(+), 218 deletions(-) diff --git a/.env.development b/.env.development index 02523a1..b745ec1 100644 --- a/.env.development +++ b/.env.development @@ -8,13 +8,13 @@ VITE_OPEN = true ENV = 'development' # ADMIN 服务地址 -VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上 +# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上 # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ VITE_ADMIN_PROXY_PATH = http://localhost:9999/ #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://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 # 邓-本地 diff --git a/src/views/admin/system/user/face-manage.vue b/src/views/admin/system/user/face-manage.vue index 5f7a75f..aba601c 100644 --- a/src/views/admin/system/user/face-manage.vue +++ b/src/views/admin/system/user/face-manage.vue @@ -124,6 +124,7 @@ const openDialog = async (id: number) => { dialogVisible.value = true resetForm() detailId.value = id + state.queryForm.userId = id getDataList() } diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue index bc59cc4..1d9c4c4 100644 --- a/src/views/hard/hard-order/index.vue +++ b/src/views/hard/hard-order/index.vue @@ -1,176 +1,230 @@ \ No newline at end of file + +.status { + 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; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } +} + From cd86ae5521c7f7a31adaff9934b6e59c66e9c36d Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Sun, 12 Jan 2025 20:49:49 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/api/wallet/wallet-active.ts | 77 +-- src/api/wallet/wallet-recharge-apply.ts | 68 +-- .../OrgSelector/employeesDialog.vue | 308 +++++------ src/components/OrgSelector/selectBox.vue | 418 +++++++-------- src/components/OrgSelector/selectResult.vue | 12 +- src/views/admin/system/user/form.vue | 257 +++++----- src/views/admin/system/user/index.vue | 286 ++++++----- src/views/flow/form/tools/FlowNodeFormat.vue | 50 +- .../hard/hard-after-sale/order-refund.vue | 483 +++++++++--------- src/views/hard/hard-order/index.vue | 2 +- src/views/wallet/mch-manage/index.vue | 242 +++++---- src/views/wallet/wallet-active/index.vue | 274 ++++++---- src/views/wallet/wallet-foreign/index.vue | 257 +++++----- src/views/wallet/wallet-manage/index.vue | 286 ++++++----- .../wallet/wallet-manage/transaction-list.vue | 97 ++-- .../wallet/wallet-recharge-apply/index.vue | 313 +++++++----- src/views/wallet/wallet-stride/index.vue | 245 +++++---- 18 files changed, 2025 insertions(+), 1658 deletions(-) diff --git a/.env.development b/.env.development index b745ec1..4f4ab51 100644 --- a/.env.development +++ b/.env.development @@ -10,14 +10,14 @@ ENV = 'development' # ADMIN 服务地址 # VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上 # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ -VITE_ADMIN_PROXY_PATH = http://localhost:9999/ -#VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地 +# VITE_ADMIN_PROXY_PATH = http://localhost:9999/ +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://localhost:9999 +VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/api/wallet/wallet-active.ts b/src/api/wallet/wallet-active.ts index 6f74f39..e99b093 100644 --- a/src/api/wallet/wallet-active.ts +++ b/src/api/wallet/wallet-active.ts @@ -1,57 +1,64 @@ import request from "/@/utils/request" +export function refreshAvatar(query?: Object) { + return request({ + url: "/wallet/wallet-active/refresh-avatar", + method: "get", + params: query, + }) +} + export function fastCreateCard(data?: Object) { - return request({ - url: '/wallet/wallet-active/fast-create-card', - method: 'post', - data - }) + return request({ + url: "/wallet/wallet-active/fast-create-card", + method: "post", + data, + }) } export function pageJoin(query?: Object) { - return request({ - url: '/wallet/wallet-active/page-join', - method: 'get', - params: query - }) + return request({ + url: "/wallet/wallet-active/page-join", + method: "get", + params: query, + }) } export function fetchList(query?: Object) { - return request({ - url: '/wallet/wallet-active/page', - method: 'get', - params: query - }) + return request({ + url: "/wallet/wallet-active/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/wallet/wallet-active', - method: 'post', - data: obj - }) + return request({ + url: "/wallet/wallet-active", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/wallet/wallet-active/' + id, - method: 'get' - }) + return request({ + url: "/wallet/wallet-active/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/wallet/wallet-active', - method: 'delete', - data: ids - }) + return request({ + url: "/wallet/wallet-active", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/wallet/wallet-active', - method: 'put', - data: obj - }) + return request({ + url: "/wallet/wallet-active", + method: "put", + data: obj, + }) } - diff --git a/src/api/wallet/wallet-recharge-apply.ts b/src/api/wallet/wallet-recharge-apply.ts index aabbf8b..f86a271 100644 --- a/src/api/wallet/wallet-recharge-apply.ts +++ b/src/api/wallet/wallet-recharge-apply.ts @@ -1,50 +1,56 @@ import request from "/@/utils/request" -export function pageJoin(query?: Object) { - return request({ - url: '/wallet/wallet-recharge-apply/page-join', - method: 'get', - params: query - }) +export function apply(query?: Object) { + return request({ + url: "/wallet/wallet-recharge-apply/apply", + method: "get", + params: query, + }) } +export function pageJoin(query?: Object) { + return request({ + url: "/wallet/wallet-recharge-apply/page-join", + method: "get", + params: query, + }) +} export function fetchList(query?: Object) { - return request({ - url: '/wallet/wallet-recharge-apply/page', - method: 'get', - params: query - }) + return request({ + url: "/wallet/wallet-recharge-apply/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/wallet/wallet-recharge-apply', - method: 'post', - data: obj - }) + return request({ + url: "/wallet/wallet-recharge-apply", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/wallet/wallet-recharge-apply/' + id, - method: 'get' - }) + return request({ + url: "/wallet/wallet-recharge-apply/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/wallet/wallet-recharge-apply', - method: 'delete', - data: ids - }) + return request({ + url: "/wallet/wallet-recharge-apply", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/wallet/wallet-recharge-apply', - method: 'put', - data: obj - }) + return request({ + url: "/wallet/wallet-recharge-apply", + method: "put", + data: obj, + }) } - diff --git a/src/components/OrgSelector/employeesDialog.vue b/src/components/OrgSelector/employeesDialog.vue index 5c18bbd..384fc85 100644 --- a/src/components/OrgSelector/employeesDialog.vue +++ b/src/components/OrgSelector/employeesDialog.vue @@ -1,179 +1,191 @@ diff --git a/src/components/OrgSelector/selectBox.vue b/src/components/OrgSelector/selectBox.vue index 24a3bfb..9ccb5fb 100644 --- a/src/components/OrgSelector/selectBox.vue +++ b/src/components/OrgSelector/selectBox.vue @@ -1,291 +1,297 @@ diff --git a/src/components/OrgSelector/selectResult.vue b/src/components/OrgSelector/selectResult.vue index e5078be..8b96fdb 100644 --- a/src/components/OrgSelector/selectResult.vue +++ b/src/components/OrgSelector/selectResult.vue @@ -46,7 +46,7 @@
  • - +
    {{ item.name }}
    @@ -60,8 +60,8 @@
    \ No newline at end of file + diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue index 1d9c4c4..4ad6375 100644 --- a/src/views/hard/hard-order/index.vue +++ b/src/views/hard/hard-order/index.vue @@ -167,7 +167,7 @@
    - + diff --git a/src/views/wallet/wallet-active/index.vue b/src/views/wallet/wallet-active/index.vue index 3c0cb7c..3c60c45 100644 --- a/src/views/wallet/wallet-active/index.vue +++ b/src/views/wallet/wallet-active/index.vue @@ -1,90 +1,132 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/wallet/wallet-foreign/index.vue b/src/views/wallet/wallet-foreign/index.vue index 61c0117..996401c 100644 --- a/src/views/wallet/wallet-foreign/index.vue +++ b/src/views/wallet/wallet-foreign/index.vue @@ -1,93 +1,119 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/wallet/wallet-manage/index.vue b/src/views/wallet/wallet-manage/index.vue index de93422..4ab941d 100644 --- a/src/views/wallet/wallet-manage/index.vue +++ b/src/views/wallet/wallet-manage/index.vue @@ -1,110 +1,138 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/wallet/wallet-manage/transaction-list.vue b/src/views/wallet/wallet-manage/transaction-list.vue index 36798ae..794c704 100644 --- a/src/views/wallet/wallet-manage/transaction-list.vue +++ b/src/views/wallet/wallet-manage/transaction-list.vue @@ -1,33 +1,38 @@ \ No newline at end of file + openDialog, +}) + diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index 8d7b6dc..85c9ad0 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -1,101 +1,157 @@ \ No newline at end of file + try { + await walletRechargeApplyApi.delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/wallet/wallet-stride/index.vue b/src/views/wallet/wallet-stride/index.vue index 9ec2801..6cf98ba 100644 --- a/src/views/wallet/wallet-stride/index.vue +++ b/src/views/wallet/wallet-stride/index.vue @@ -1,87 +1,122 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} +