From 79be4b989db155cda989ab004eb0f843d6aff0cc Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 7 Jan 2025 17:40:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E5=94=AE=E5=90=8E=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/api/hard/hard-after-sale-log.ts | 49 ++++++ src/api/hard/hard-after-sale.ts | 49 ++++++ src/views/hard/hard-after-sale/form.vue | 209 +++++++++++++++++++++++ src/views/hard/hard-after-sale/index.vue | 118 +++++++++++++ 5 files changed, 429 insertions(+), 4 deletions(-) create mode 100644 src/api/hard/hard-after-sale-log.ts create mode 100644 src/api/hard/hard-after-sale.ts create mode 100644 src/views/hard/hard-after-sale/form.vue create mode 100644 src/views/hard/hard-after-sale/index.vue diff --git a/.env.development b/.env.development index a4aba57..54dfa3c 100644 --- a/.env.development +++ b/.env.development @@ -9,13 +9,13 @@ 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://pjcloud.center.takin.cc/ +VITE_ADMIN_PROXY_PATH = http://localhost: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://pjcloud.center.takin.cc + VITE_IMAGE_BASE_PATH = http://localhost:9999 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/api/hard/hard-after-sale-log.ts b/src/api/hard/hard-after-sale-log.ts new file mode 100644 index 0000000..5c76dd3 --- /dev/null +++ b/src/api/hard/hard-after-sale-log.ts @@ -0,0 +1,49 @@ +import request from "/@/utils/request" + +export function pagejoin(query?: Object) { + return request({ + url: '/hard/hard-after-sale-log/page-join', + method: 'get', + params: query + }) +} + +export function fetchList(query?: Object) { + return request({ + url: '/hard/hard-after-sale-log/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/hard/hard-after-sale-log', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/hard/hard-after-sale-log/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/hard/hard-after-sale-log', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/hard/hard-after-sale-log', + method: 'put', + data: obj + }) +} + diff --git a/src/api/hard/hard-after-sale.ts b/src/api/hard/hard-after-sale.ts new file mode 100644 index 0000000..2b96fdc --- /dev/null +++ b/src/api/hard/hard-after-sale.ts @@ -0,0 +1,49 @@ +import request from "/@/utils/request" + +export function pageJoin(query?: Object) { + return request({ + url: '/hard/hard-after-sale/page', + method: 'get', + params: query + }) +} + +export function fetchList(query?: Object) { + return request({ + url: '/hard/hard-after-sale/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/hard/hard-after-sale', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/hard/hard-after-sale/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/hard/hard-after-sale', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/hard/hard-after-sale', + method: 'put', + data: obj + }) +} + diff --git a/src/views/hard/hard-after-sale/form.vue b/src/views/hard/hard-after-sale/form.vue new file mode 100644 index 0000000..c7156de --- /dev/null +++ b/src/views/hard/hard-after-sale/form.vue @@ -0,0 +1,209 @@ + + + \ No newline at end of file diff --git a/src/views/hard/hard-after-sale/index.vue b/src/views/hard/hard-after-sale/index.vue new file mode 100644 index 0000000..d43c936 --- /dev/null +++ b/src/views/hard/hard-after-sale/index.vue @@ -0,0 +1,118 @@ + + + \ No newline at end of file From d940000ef05c3c6c07c70202d0c9a407b2126392 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 7 Jan 2025 18:22:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat=EF=BC=9A=E5=85=85=E5=80=BC=E3=80=81?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E3=80=81=E9=80=80=E6=AC=BE=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 ++-- src/api/wallet/wallet-transaction.ts | 38 +++++++++++++--- src/views/wallet/wallet-cz/index.vue | 55 ++++++++++++++++++++---- src/views/wallet/wallet-manage/index.vue | 2 +- src/views/wallet/wallet-tk/index.vue | 23 +++++++++- src/views/wallet/wallet-xf/index.vue | 23 +++++++++- 6 files changed, 125 insertions(+), 24 deletions(-) diff --git a/.env.development b/.env.development index 422dfe8..54dfa3c 100644 --- a/.env.development +++ b/.env.development @@ -9,13 +9,13 @@ 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://pjcloud.center.takin.cc/ +VITE_ADMIN_PROXY_PATH = http://localhost: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://localhost:9999 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/api/wallet/wallet-transaction.ts b/src/api/wallet/wallet-transaction.ts index 6c8679d..9be40fb 100644 --- a/src/api/wallet/wallet-transaction.ts +++ b/src/api/wallet/wallet-transaction.ts @@ -1,8 +1,32 @@ import request from "/@/utils/request" +export function pageCz(obj?: Object) { + return request({ + url: '/wallet/wallet-transaction/page-cz', + method: 'get', + params: obj + }) +} + +export function pageXf(obj?: Object) { + return request({ + url: '/wallet/wallet-transaction/page-xf', + method: 'get', + params: obj + }) +} + +export function pageTk(obj?: Object) { + return request({ + url: '/wallet/wallet-transaction/page-tk', + method: 'get', + params: obj + }) +} + export function updateBalance(obj?: Object) { return request({ - url: '/wallet/walletTransaction/update-balance', + url: '/wallet/wallet-transaction/update-balance', method: 'put', data: obj }) @@ -10,7 +34,7 @@ export function updateBalance(obj?: Object) { export function fetchList(query?: Object) { return request({ - url: '/wallet/walletTransaction/page', + url: '/wallet/wallet-transaction/page', method: 'get', params: query }) @@ -18,7 +42,7 @@ export function fetchList(query?: Object) { export function pageJoin(query?: Object) { return request({ - url: '/wallet/walletTransaction/page-join', + url: '/wallet/wallet-transaction/page-join', method: 'get', params: query }) @@ -26,7 +50,7 @@ export function pageJoin(query?: Object) { export function addObj(obj?: Object) { return request({ - url: '/wallet/walletTransaction', + url: '/wallet/wallet-transaction', method: 'post', data: obj }) @@ -34,14 +58,14 @@ export function addObj(obj?: Object) { export function getObj(id?: string) { return request({ - url: '/wallet/walletTransaction/' + id, + url: '/wallet/wallet-transaction/' + id, method: 'get' }) } export function delObjs(ids?: Object) { return request({ - url: '/wallet/walletTransaction', + url: '/wallet/wallet-transaction', method: 'delete', data: ids }) @@ -49,7 +73,7 @@ export function delObjs(ids?: Object) { export function putObj(obj?: Object) { return request({ - url: '/wallet/walletTransaction', + url: '/wallet/wallet-transaction', method: 'put', data: obj }) diff --git a/src/views/wallet/wallet-cz/index.vue b/src/views/wallet/wallet-cz/index.vue index ca90d81..b220965 100644 --- a/src/views/wallet/wallet-cz/index.vue +++ b/src/views/wallet/wallet-cz/index.vue @@ -1,6 +1,25 @@