From 5505656d59aeb136711f748e032144b45b862c6f Mon Sep 17 00:00:00 2001 From: PQZ Date: Tue, 24 Sep 2024 13:30:52 +0800 Subject: [PATCH] 1 --- src/api/base/coupon/index.js | 106 +++++++++--------- .../components/CarBrandSelector/index.vue | 1 - src/views/base/customer/CustomerMember.vue | 65 ++++++++--- src/views/base/customer/RuchForm.vue | 39 ++++--- src/views/member/coupon/index.vue | 3 +- src/views/repair/orderinfo/index.vue | 7 +- 6 files changed, 136 insertions(+), 85 deletions(-) diff --git a/src/api/base/coupon/index.js b/src/api/base/coupon/index.js index 03c84fe..4112049 100644 --- a/src/api/base/coupon/index.js +++ b/src/api/base/coupon/index.js @@ -1,53 +1,53 @@ -import request from '@/utils/request' - -// 创建用户卡券 -export function createCustomerCoupon(data) { - return request({ - url: '/base/customer-coupon/create', - method: 'post', - data: data - }) -} - -// 更新用户卡券 -export function updateCustomerCoupon(data) { - return request({ - url: '/base/customer-coupon/update', - method: 'put', - data: data - }) -} - -// 删除用户卡券 -export function deleteCustomerCoupon(id) { - return request({ - url: '/base/customer-coupon/delete?id=' + id, - method: 'delete' - }) -} - -// 获得用户卡券 -export function getCustomerCoupon(id) { - return request({ - url: '/base/customer-coupon/get?id=' + id, - method: 'get' - }) -} - -// 获得用户卡券分页 -export function getCustomerCouponPage(params) { - return request({ - url: '/base/customer-coupon/page', - method: 'get', - params - }) -} -// 导出用户卡券 Excel -export function exportCustomerCouponExcel(params) { - return request({ - url: '/base/customer-coupon/export-excel', - method: 'get', - params, - responseType: 'blob' - }) -} \ No newline at end of file +import request from '@/utils/request' + +// 卡券核销 +export function couponVerification(data) { + return request({ + url: '/base/customer-coupon/couponVerification', + method: 'post', + data: data + }) +} + +// 更新用户卡券 +export function updateCustomerCoupon(data) { + return request({ + url: '/base/customer-coupon/update', + method: 'put', + data: data + }) +} + +// 删除用户卡券 +export function deleteCustomerCoupon(id) { + return request({ + url: '/base/customer-coupon/delete?id=' + id, + method: 'delete' + }) +} + +// 获得用户卡券 +export function getCustomerCoupon(id) { + return request({ + url: '/base/customer-coupon/get?id=' + id, + method: 'get' + }) +} + +// 获得用户卡券分页 +export function getCustomerCouponPage(params) { + return request({ + url: '/base/customer-coupon/page', + method: 'get', + params + }) +} +// 导出用户卡券 Excel +export function exportCustomerCouponExcel(params) { + return request({ + url: '/base/customer-coupon/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/layout/components/CarBrandSelector/index.vue b/src/layout/components/CarBrandSelector/index.vue index 88aa54c..e97a5af 100644 --- a/src/layout/components/CarBrandSelector/index.vue +++ b/src/layout/components/CarBrandSelector/index.vue @@ -5,7 +5,6 @@ :options="options" v-model="selectedValues" filterable - :props="{checkStrictly:true}" /> diff --git a/src/views/base/customer/CustomerMember.vue b/src/views/base/customer/CustomerMember.vue index ed4436e..a4f04f8 100644 --- a/src/views/base/customer/CustomerMember.vue +++ b/src/views/base/customer/CustomerMember.vue @@ -105,14 +105,19 @@ size="mini" height="200" style="width: 100%"> - + - + - + + + + - + + - - - @@ -199,8 +201,8 @@ - - + + @@ -208,6 +210,7 @@