From 28447c4a6c59f7a4f1469fd0c14341db685ddace Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 9 Jan 2025 20:51:24 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=E4=BA=8C=E7=BB=B4=E7=A0=81=E6=A0=B8?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hard/hard-after-sale.ts | 20 +- src/views/hard/hard-after-sale/form.vue | 257 +++++++++--------- src/views/hard/hard-after-sale/index.vue | 111 +++++--- .../hard/hard-after-sale/order-refund.vue | 101 ++++++- .../hard/hard-after-sale/refund-reject.vue | 70 +++++ src/views/hard/hard-order/index.vue | 46 +++- src/views/wallet/wallet-cz/index.vue | 25 +- src/views/wallet/wallet-tk/index.vue | 58 +++- src/views/wallet/wallet-xf/index.vue | 53 +++- 9 files changed, 521 insertions(+), 220 deletions(-) create mode 100644 src/views/hard/hard-after-sale/refund-reject.vue diff --git a/src/api/hard/hard-after-sale.ts b/src/api/hard/hard-after-sale.ts index cbc6571..2462cb0 100644 --- a/src/api/hard/hard-after-sale.ts +++ b/src/api/hard/hard-after-sale.ts @@ -9,6 +9,23 @@ export function history(query?: Object) { }) } +export function agree(obj?: Object) { + return request({ + url: '/hard/hard-after-sale/agree', + method: 'put', + params: obj + }) +} + +export function disagree(obj?: Object) { + return request({ + url: '/hard/hard-after-sale/disagree', + method: 'post', + data: obj + }) +} + + export function detailByOrderId(query?: Object) { return request({ url: '/hard/hard-after-sale/detail-by-order-id', @@ -17,9 +34,10 @@ export function detailByOrderId(query?: Object) { }) } + export function pageJoin(query?: Object) { return request({ - url: '/hard/hard-after-sale/page', + url: '/hard/hard-after-sale/page-join', method: 'get', params: query }) diff --git a/src/views/hard/hard-after-sale/form.vue b/src/views/hard/hard-after-sale/form.vue index c7156de..8527166 100644 --- a/src/views/hard/hard-after-sale/form.vue +++ b/src/views/hard/hard-after-sale/form.vue @@ -1,119 +1,118 @@ \ 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 ad3d9a6..bc59cc4 100644 --- a/src/views/hard/hard-order/index.vue +++ b/src/views/hard/hard-order/index.vue @@ -8,6 +8,16 @@ + + + + + + + + + + {{ $t('common.queryBtn') }} @@ -78,7 +88,7 @@ - + + + + @@ -142,7 +170,7 @@ const { push } = useRouter() const FormDialog = defineAsyncComponent(() => import('./form.vue')); const ShopCar = defineAsyncComponent(() => import('../components/shop-car.vue')); // 定义查询字典 -const { hard_pay_type, hard_order_type, hard_order_status, hard_type } = useDict("hard_pay_type", "hard_order_type", "hard_order_status", "hard_type") +const { hard_pay_type, hard_order_type, hard_order_status, hard_type, hard_refund_status } = useDict("hard_pay_type", "hard_order_type", "hard_order_status", "hard_type", "hard_refund_status") // 定义变量内容 const formDialogRef = ref() const shopCarDialogRef = ref() @@ -191,7 +219,7 @@ const handleClick = (e: any) => { } const doRefund = (row: any) => { - push({ path: '/hard/hard-after-sale/order-refund', query: { id: row.id } }) + push({ path: '/hard/hard-after-sale/order-refund', query: { id: row.id, type: "view" } }) } // 导出excel diff --git a/src/views/wallet/wallet-cz/index.vue b/src/views/wallet/wallet-cz/index.vue index b220965..debab62 100644 --- a/src/views/wallet/wallet-cz/index.vue +++ b/src/views/wallet/wallet-cz/index.vue @@ -8,15 +8,18 @@ - - - + + + - {{ $t('common.queryBtn') - }} - {{ $t('common.resetBtn') }} + + {{ $t('common.queryBtn') }} + + + {{ $t('common.resetBtn') }} + @@ -32,13 +35,13 @@ @sort-change="sortChangeHandle"> - - + + - + - - + + + + + + + + + - + + + + + + + -