diff --git a/src/api/approval/directory/index.ts b/src/api/approval/directory/index.ts index b7a2e8a..c92ae83 100644 --- a/src/api/approval/directory/index.ts +++ b/src/api/approval/directory/index.ts @@ -1,6 +1,10 @@ import request from '@/utils/request'; import type { ApiResult } from '@/api'; -import type { ApprovalOrganization, ApprovalUser } from '../instance/model'; +import type { + ApprovalFlowOption, + ApprovalOrganization, + ApprovalUser +} from '../instance/model'; import { THINK_API_URL } from '@/config/setting'; /** @@ -32,3 +36,16 @@ export async function searchApprovalUsers(params?: { } return Promise.reject(new Error(res.data.message)); } + +/** + * 流程类型选项(flowCode → 流程名称),新增单据自动出现 + */ +export async function listApprovalFlows() { + const res = await request.get>( + THINK_API_URL + '/approval/directory/flows' + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/approval/instance/model/index.ts b/src/api/approval/instance/model/index.ts index 30686c9..c7a37c8 100644 --- a/src/api/approval/instance/model/index.ts +++ b/src/api/approval/instance/model/index.ts @@ -168,6 +168,14 @@ export interface ApprovalInstance { permissions?: ApprovalPermissions; } +/** + * 流程类型选项 + */ +export interface ApprovalFlowOption { + flowCode?: string; + flowName?: string; +} + /** * 审批目录组织 */ diff --git a/src/api/booking/bookingCashier/index.ts b/src/api/booking/bookingCashier/index.ts index 1c34926..1a82838 100644 --- a/src/api/booking/bookingCashier/index.ts +++ b/src/api/booking/bookingCashier/index.ts @@ -2,7 +2,7 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { BookingCashier, BookingCashierParam } from './model'; import { MODULES_API_URL } from '@/config/setting'; -import type { CashierParam, CashierVo } from "@/api/shop/cashier/model"; +import type { CashierParam, CashierVo } from '@/api/shop/cashier/model'; /** * 分页查询收银 diff --git a/src/api/booking/bookingCooperate/index.ts b/src/api/booking/bookingCooperate/index.ts index f9e4a65..196ceb3 100644 --- a/src/api/booking/bookingCooperate/index.ts +++ b/src/api/booking/bookingCooperate/index.ts @@ -79,7 +79,9 @@ export async function removeBookingCooperate(id?: number) { /** * 批量删除商务合作 */ -export async function removeBatchBookingCooperate(data: (number | undefined)[]) { +export async function removeBatchBookingCooperate( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-cooperate/batch', { diff --git a/src/api/booking/bookingCooperateLog/index.ts b/src/api/booking/bookingCooperateLog/index.ts index 90c28cd..a06154e 100644 --- a/src/api/booking/bookingCooperateLog/index.ts +++ b/src/api/booking/bookingCooperateLog/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询商务合作留言记录 */ -export async function pageBookingCooperateLog(params: BookingCooperateLogParam) { +export async function pageBookingCooperateLog( + params: BookingCooperateLogParam +) { const res = await request.get>>( MODULES_API_URL + '/booking/booking-cooperate-log/page', { @@ -22,7 +24,9 @@ export async function pageBookingCooperateLog(params: BookingCooperateLogParam) /** * 查询商务合作留言记录列表 */ -export async function listBookingCooperateLog(params?: BookingCooperateLogParam) { +export async function listBookingCooperateLog( + params?: BookingCooperateLogParam +) { const res = await request.get>( MODULES_API_URL + '/booking/booking-cooperate-log', { @@ -79,7 +83,9 @@ export async function removeBookingCooperateLog(id?: number) { /** * 批量删除商务合作留言记录 */ -export async function removeBatchBookingCooperateLog(data: (number | undefined)[]) { +export async function removeBatchBookingCooperateLog( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-cooperate-log/batch', { diff --git a/src/api/booking/bookingEmergency/index.ts b/src/api/booking/bookingEmergency/index.ts index f5e5aeb..bf9d536 100644 --- a/src/api/booking/bookingEmergency/index.ts +++ b/src/api/booking/bookingEmergency/index.ts @@ -79,7 +79,9 @@ export async function removeBookingEmergency(id?: number) { /** * 批量删除紧急联系人管理 */ -export async function removeBatchBookingEmergency(data: (number | undefined)[]) { +export async function removeBatchBookingEmergency( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-emergency/batch', { diff --git a/src/api/booking/bookingField/model/index.ts b/src/api/booking/bookingField/model/index.ts index e4f23ec..0c54f78 100644 --- a/src/api/booking/bookingField/model/index.ts +++ b/src/api/booking/bookingField/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface BookingField { - // + // id?: number; // 场地名称 name?: string; diff --git a/src/api/booking/bookingIntegral/model/index.ts b/src/api/booking/bookingIntegral/model/index.ts index b5c766f..068cb3b 100644 --- a/src/api/booking/bookingIntegral/model/index.ts +++ b/src/api/booking/bookingIntegral/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface BookingIntegral { - // + // id?: number; // 用户id uid?: number; diff --git a/src/api/booking/bookingIntegralLog/index.ts b/src/api/booking/bookingIntegralLog/index.ts index 4b23862..e96c2ee 100644 --- a/src/api/booking/bookingIntegralLog/index.ts +++ b/src/api/booking/bookingIntegralLog/index.ts @@ -79,7 +79,9 @@ export async function removeBookingIntegralLog(id?: number) { /** * 批量删除 */ -export async function removeBatchBookingIntegralLog(data: (number | undefined)[]) { +export async function removeBatchBookingIntegralLog( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-integral-log/batch', { diff --git a/src/api/booking/bookingIntegralLog/model/index.ts b/src/api/booking/bookingIntegralLog/model/index.ts index 02fd313..79bcfdd 100644 --- a/src/api/booking/bookingIntegralLog/model/index.ts +++ b/src/api/booking/bookingIntegralLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface BookingIntegralLog { - // + // id?: number; // 场馆订单号 orderNum?: string; diff --git a/src/api/booking/bookingOrderInfo/index.ts b/src/api/booking/bookingOrderInfo/index.ts index 7370bed..094e3a2 100644 --- a/src/api/booking/bookingOrderInfo/index.ts +++ b/src/api/booking/bookingOrderInfo/index.ts @@ -79,7 +79,9 @@ export async function removeBookingOrderInfo(id?: number) { /** * 批量删除 */ -export async function removeBatchBookingOrderInfo(data: (number | undefined)[]) { +export async function removeBatchBookingOrderInfo( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-order-info/batch', { diff --git a/src/api/booking/bookingPeriod/model/index.ts b/src/api/booking/bookingPeriod/model/index.ts index ee278dc..95b5342 100644 --- a/src/api/booking/bookingPeriod/model/index.ts +++ b/src/api/booking/bookingPeriod/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface BookingPeriod { - // + // id?: number; // 时段 timePeriod?: string; @@ -32,7 +32,7 @@ export interface BookingPeriod { startTime?: string; // 儿童价 createTime?: number; - // + // updateTime?: number; // 租户id tenantId?: number; diff --git a/src/api/booking/bookingUserCoupon/index.ts b/src/api/booking/bookingUserCoupon/index.ts index 5540901..e077c7f 100644 --- a/src/api/booking/bookingUserCoupon/index.ts +++ b/src/api/booking/bookingUserCoupon/index.ts @@ -79,7 +79,9 @@ export async function removeBookingUserCoupon(id?: number) { /** * 批量删除我的优惠券 */ -export async function removeBatchBookingUserCoupon(data: (number | undefined)[]) { +export async function removeBatchBookingUserCoupon( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-user-coupon/batch', { diff --git a/src/api/booking/bookingUserEmergency/index.ts b/src/api/booking/bookingUserEmergency/index.ts index b04207f..d72ac34 100644 --- a/src/api/booking/bookingUserEmergency/index.ts +++ b/src/api/booking/bookingUserEmergency/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询紧急联系人表 */ -export async function pageBookingUserEmergency(params: BookingUserEmergencyParam) { +export async function pageBookingUserEmergency( + params: BookingUserEmergencyParam +) { const res = await request.get>>( MODULES_API_URL + '/booking/booking-user-emergency/page', { @@ -22,7 +24,9 @@ export async function pageBookingUserEmergency(params: BookingUserEmergencyParam /** * 查询紧急联系人表列表 */ -export async function listBookingUserEmergency(params?: BookingUserEmergencyParam) { +export async function listBookingUserEmergency( + params?: BookingUserEmergencyParam +) { const res = await request.get>( MODULES_API_URL + '/booking/booking-user-emergency', { @@ -79,7 +83,9 @@ export async function removeBookingUserEmergency(id?: number) { /** * 批量删除紧急联系人表 */ -export async function removeBatchBookingUserEmergency(data: (number | undefined)[]) { +export async function removeBatchBookingUserEmergency( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-user-emergency/batch', { diff --git a/src/api/booking/bookingUserEmergency/model/index.ts b/src/api/booking/bookingUserEmergency/model/index.ts index 7d5e078..45a082d 100644 --- a/src/api/booking/bookingUserEmergency/model/index.ts +++ b/src/api/booking/bookingUserEmergency/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 紧急联系人表 */ export interface BookingUserEmergency { - // + // id?: number; // 用户id uid?: number; diff --git a/src/api/booking/bookingUserInvoice/index.ts b/src/api/booking/bookingUserInvoice/index.ts index 0bf7205..9b56e43 100644 --- a/src/api/booking/bookingUserInvoice/index.ts +++ b/src/api/booking/bookingUserInvoice/index.ts @@ -79,7 +79,9 @@ export async function removeBookingUserInvoice(id?: number) { /** * 批量删除发票 */ -export async function removeBatchBookingUserInvoice(data: (number | undefined)[]) { +export async function removeBatchBookingUserInvoice( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/booking/booking-user-invoice/batch', { diff --git a/src/api/booking/bookingVip/model/index.ts b/src/api/booking/bookingVip/model/index.ts index e53eb0b..a8e57a7 100644 --- a/src/api/booking/bookingVip/model/index.ts +++ b/src/api/booking/bookingVip/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface BookingVip { - // + // id?: number; // sid场馆id集合,适用的场馆 sid?: string; @@ -42,9 +42,9 @@ export interface BookingVip { prices?: string; // 是否赠送积分:1赠送,2不赠送 isIntegral?: string; - // + // createTime?: number; - // + // updateTime?: number; // 是否有效:1是,0否 isUse?: string; diff --git a/src/api/booking/field/model/index.ts b/src/api/booking/field/model/index.ts index 00aec46..6d042e5 100644 --- a/src/api/booking/field/model/index.ts +++ b/src/api/booking/field/model/index.ts @@ -1,5 +1,5 @@ import type { PageParam } from '@/api'; -import { OrderInfo } from "@/api/shop/orderInfo/model"; +import { OrderInfo } from '@/api/shop/orderInfo/model'; /** * 场馆场地 diff --git a/src/api/booking/order/model/index.ts b/src/api/booking/order/model/index.ts index 760cb53..1d563bb 100644 --- a/src/api/booking/order/model/index.ts +++ b/src/api/booking/order/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface Order { - // + // orderId?: number; // 订单类型,0商城订单 1预定订单 2会员卡 type?: number; @@ -76,7 +76,7 @@ export interface Order { isInvoice?: string; // 下单时间 createTime?: number; - // + // updateTime?: number; // 付款时间 payTime?: number; diff --git a/src/api/booking/orderInfo/model/index.ts b/src/api/booking/orderInfo/model/index.ts index 6c9287a..cb3ac9f 100644 --- a/src/api/booking/orderInfo/model/index.ts +++ b/src/api/booking/orderInfo/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface OrderInfo { - // + // id?: number; // 关联订单表id oid?: number; diff --git a/src/api/cms/cmsArticleComment/index.ts b/src/api/cms/cmsArticleComment/index.ts index 085579f..059a18c 100644 --- a/src/api/cms/cmsArticleComment/index.ts +++ b/src/api/cms/cmsArticleComment/index.ts @@ -79,7 +79,9 @@ export async function removeCmsArticleComment(id?: number) { /** * 批量删除文章评论表 */ -export async function removeBatchCmsArticleComment(data: (number | undefined)[]) { +export async function removeBatchCmsArticleComment( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/cms/cms-article-comment/batch', { diff --git a/src/api/cms/cmsArticleContent/index.ts b/src/api/cms/cmsArticleContent/index.ts index c25d8f4..c90b128 100644 --- a/src/api/cms/cmsArticleContent/index.ts +++ b/src/api/cms/cmsArticleContent/index.ts @@ -79,7 +79,9 @@ export async function removeCmsArticleContent(id?: number) { /** * 批量删除文章记录表 */ -export async function removeBatchCmsArticleContent(data: (number | undefined)[]) { +export async function removeBatchCmsArticleContent( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/cms/cms-article-content/batch', { diff --git a/src/api/cms/cmsArticleContent/model/index.ts b/src/api/cms/cmsArticleContent/model/index.ts index 432c376..d90c4c8 100644 --- a/src/api/cms/cmsArticleContent/model/index.ts +++ b/src/api/cms/cmsArticleContent/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 文章记录表 */ export interface CmsArticleContent { - // + // id?: number; // 文章ID articleId?: number; diff --git a/src/api/cms/cmsDomain/model/index.ts b/src/api/cms/cmsDomain/model/index.ts index 3be7c9d..2ab812d 100644 --- a/src/api/cms/cmsDomain/model/index.ts +++ b/src/api/cms/cmsDomain/model/index.ts @@ -6,7 +6,7 @@ import type { PageParam } from '@/api'; export interface CmsDomain { // ID id?: number; - // 类型 0赠送域名 1绑定域名 + // 类型 0赠送域名 1绑定域名 type?: number; // 域名 domain?: string; diff --git a/src/api/cms/cmsProduct/index.ts b/src/api/cms/cmsProduct/index.ts index 8732b79..d7460ad 100644 --- a/src/api/cms/cmsProduct/index.ts +++ b/src/api/cms/cmsProduct/index.ts @@ -2,7 +2,7 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { CmsProduct, CmsProductParam } from './model'; import { SERVER_API_URL } from '@/config/setting'; -import type { ArticleParam } from "@/api/cms/article/model"; +import type { ArticleParam } from '@/api/cms/article/model'; /** * 分页查询产品 diff --git a/src/api/cms/cmsProductComment/index.ts b/src/api/cms/cmsProductComment/index.ts index cd00370..89b2960 100644 --- a/src/api/cms/cmsProductComment/index.ts +++ b/src/api/cms/cmsProductComment/index.ts @@ -79,7 +79,9 @@ export async function removeCmsProductComment(id?: number) { /** * 批量删除产品评论 */ -export async function removeBatchCmsProductComment(data: (number | undefined)[]) { +export async function removeBatchCmsProductComment( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/cms/cms-product-comment/batch', { diff --git a/src/api/cms/cmsProductRecord/index.ts b/src/api/cms/cmsProductRecord/index.ts index 8806c66..b167f57 100644 --- a/src/api/cms/cmsProductRecord/index.ts +++ b/src/api/cms/cmsProductRecord/index.ts @@ -79,7 +79,9 @@ export async function removeCmsProductRecord(id?: number) { /** * 批量删除插件安装明细 */ -export async function removeBatchCmsProductRecord(data: (number | undefined)[]) { +export async function removeBatchCmsProductRecord( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/cms/cms-product-record/batch', { diff --git a/src/api/cms/cmsProductSpecValue/index.ts b/src/api/cms/cmsProductSpecValue/index.ts index fa58d63..b392c83 100644 --- a/src/api/cms/cmsProductSpecValue/index.ts +++ b/src/api/cms/cmsProductSpecValue/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询规格值 */ -export async function pageCmsProductSpecValue(params: CmsProductSpecValueParam) { +export async function pageCmsProductSpecValue( + params: CmsProductSpecValueParam +) { const res = await request.get>>( MODULES_API_URL + '/cms/cms-product-spec-value/page', { @@ -22,7 +24,9 @@ export async function pageCmsProductSpecValue(params: CmsProductSpecValueParam) /** * 查询规格值列表 */ -export async function listCmsProductSpecValue(params?: CmsProductSpecValueParam) { +export async function listCmsProductSpecValue( + params?: CmsProductSpecValueParam +) { const res = await request.get>( MODULES_API_URL + '/cms/cms-product-spec-value', { @@ -79,7 +83,9 @@ export async function removeCmsProductSpecValue(id?: number) { /** * 批量删除规格值 */ -export async function removeBatchCmsProductSpecValue(data: (number | undefined)[]) { +export async function removeBatchCmsProductSpecValue( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/cms/cms-product-spec-value/batch', { diff --git a/src/api/cms/navigation/index.ts b/src/api/cms/navigation/index.ts index 2bc2fda..8bd91bc 100644 --- a/src/api/cms/navigation/index.ts +++ b/src/api/cms/navigation/index.ts @@ -111,7 +111,10 @@ export async function removeBatchNavigation(data: (number | undefined)[]) { /** * 修改用户状态 */ -export async function updateNavigationStatus(navigationId?: number, status?: number) { +export async function updateNavigationStatus( + navigationId?: number, + status?: number +) { const res = await request.put>( MODULES_API_URL + '/cms/navigation/status', { diff --git a/src/api/mall/shopDealerCapital/index.ts b/src/api/mall/shopDealerCapital/index.ts index 6024f95..1f349ce 100644 --- a/src/api/mall/shopDealerCapital/index.ts +++ b/src/api/mall/shopDealerCapital/index.ts @@ -79,7 +79,9 @@ export async function removeShopDealerCapital(id?: number) { /** * 批量删除分销商资金明细表 */ -export async function removeBatchShopDealerCapital(data: (number | undefined)[]) { +export async function removeBatchShopDealerCapital( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-dealer-capital/batch', { diff --git a/src/api/mall/shopDealerReferee/index.ts b/src/api/mall/shopDealerReferee/index.ts index 1c68f52..d00524d 100644 --- a/src/api/mall/shopDealerReferee/index.ts +++ b/src/api/mall/shopDealerReferee/index.ts @@ -79,7 +79,9 @@ export async function removeShopDealerReferee(id?: number) { /** * 批量删除分销商推荐关系表 */ -export async function removeBatchShopDealerReferee(data: (number | undefined)[]) { +export async function removeBatchShopDealerReferee( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-dealer-referee/batch', { diff --git a/src/api/mall/shopDealerSetting/index.ts b/src/api/mall/shopDealerSetting/index.ts index fe7632c..e3c5346 100644 --- a/src/api/mall/shopDealerSetting/index.ts +++ b/src/api/mall/shopDealerSetting/index.ts @@ -79,7 +79,9 @@ export async function removeShopDealerSetting(id?: number) { /** * 批量删除分销商设置表 */ -export async function removeBatchShopDealerSetting(data: (number | undefined)[]) { +export async function removeBatchShopDealerSetting( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-dealer-setting/batch', { diff --git a/src/api/mall/shopDealerWithdraw/index.ts b/src/api/mall/shopDealerWithdraw/index.ts index ea6cb68..5e4a8c8 100644 --- a/src/api/mall/shopDealerWithdraw/index.ts +++ b/src/api/mall/shopDealerWithdraw/index.ts @@ -79,7 +79,9 @@ export async function removeShopDealerWithdraw(id?: number) { /** * 批量删除分销商提现明细表 */ -export async function removeBatchShopDealerWithdraw(data: (number | undefined)[]) { +export async function removeBatchShopDealerWithdraw( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-dealer-withdraw/batch', { diff --git a/src/api/mall/shopGoodsCategory/index.ts b/src/api/mall/shopGoodsCategory/index.ts index 2153d6b..68da651 100644 --- a/src/api/mall/shopGoodsCategory/index.ts +++ b/src/api/mall/shopGoodsCategory/index.ts @@ -79,7 +79,9 @@ export async function removeShopGoodsCategory(id?: number) { /** * 批量删除商品分类 */ -export async function removeBatchShopGoodsCategory(data: (number | undefined)[]) { +export async function removeBatchShopGoodsCategory( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-goods-category/batch', { diff --git a/src/api/mall/shopGoodsComment/index.ts b/src/api/mall/shopGoodsComment/index.ts index ed2ad3e..0b2a694 100644 --- a/src/api/mall/shopGoodsComment/index.ts +++ b/src/api/mall/shopGoodsComment/index.ts @@ -79,7 +79,9 @@ export async function removeShopGoodsComment(id?: number) { /** * 批量删除评论表 */ -export async function removeBatchShopGoodsComment(data: (number | undefined)[]) { +export async function removeBatchShopGoodsComment( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-goods-comment/batch', { diff --git a/src/api/mall/shopGoodsCoupon/model/index.ts b/src/api/mall/shopGoodsCoupon/model/index.ts index 1590d25..62b0c2b 100644 --- a/src/api/mall/shopGoodsCoupon/model/index.ts +++ b/src/api/mall/shopGoodsCoupon/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 商品优惠券表 */ export interface ShopGoodsCoupon { - // + // id?: number; // 商品id goodsId?: number; diff --git a/src/api/mall/shopGoodsRelation/index.ts b/src/api/mall/shopGoodsRelation/index.ts index 2e7842e..375395c 100644 --- a/src/api/mall/shopGoodsRelation/index.ts +++ b/src/api/mall/shopGoodsRelation/index.ts @@ -79,7 +79,9 @@ export async function removeShopGoodsRelation(id?: number) { /** * 批量删除商品点赞和收藏表 */ -export async function removeBatchShopGoodsRelation(data: (number | undefined)[]) { +export async function removeBatchShopGoodsRelation( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-goods-relation/batch', { diff --git a/src/api/mall/shopMerchantAccount/index.ts b/src/api/mall/shopMerchantAccount/index.ts index e710c52..9d136b5 100644 --- a/src/api/mall/shopMerchantAccount/index.ts +++ b/src/api/mall/shopMerchantAccount/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询商户账号 */ -export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) { +export async function pageShopMerchantAccount( + params: ShopMerchantAccountParam +) { const res = await request.get>>( MODULES_API_URL + '/mall/shop-merchant-account/page', { @@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) /** * 查询商户账号列表 */ -export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) { +export async function listShopMerchantAccount( + params?: ShopMerchantAccountParam +) { const res = await request.get>( MODULES_API_URL + '/mall/shop-merchant-account', { @@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) { /** * 批量删除商户账号 */ -export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) { +export async function removeBatchShopMerchantAccount( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-merchant-account/batch', { diff --git a/src/api/mall/shopMerchantApply/index.ts b/src/api/mall/shopMerchantApply/index.ts index 5cf95ac..4c092ce 100644 --- a/src/api/mall/shopMerchantApply/index.ts +++ b/src/api/mall/shopMerchantApply/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantApply(id?: number) { /** * 批量删除商户入驻申请 */ -export async function removeBatchShopMerchantApply(data: (number | undefined)[]) { +export async function removeBatchShopMerchantApply( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-merchant-apply/batch', { diff --git a/src/api/mall/shopMerchantCount/index.ts b/src/api/mall/shopMerchantCount/index.ts index 6e5c9fa..c58837e 100644 --- a/src/api/mall/shopMerchantCount/index.ts +++ b/src/api/mall/shopMerchantCount/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantCount(id?: number) { /** * 批量删除门店销售统计表 */ -export async function removeBatchShopMerchantCount(data: (number | undefined)[]) { +export async function removeBatchShopMerchantCount( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-merchant-count/batch', { diff --git a/src/api/mall/shopMerchantType/index.ts b/src/api/mall/shopMerchantType/index.ts index c3daf39..d0433b7 100644 --- a/src/api/mall/shopMerchantType/index.ts +++ b/src/api/mall/shopMerchantType/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantType(id?: number) { /** * 批量删除商户类型 */ -export async function removeBatchShopMerchantType(data: (number | undefined)[]) { +export async function removeBatchShopMerchantType( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-merchant-type/batch', { diff --git a/src/api/mall/shopOrderCartInfo/index.ts b/src/api/mall/shopOrderCartInfo/index.ts index 2c4f633..eed8f13 100644 --- a/src/api/mall/shopOrderCartInfo/index.ts +++ b/src/api/mall/shopOrderCartInfo/index.ts @@ -79,7 +79,9 @@ export async function removeShopOrderCartInfo(id?: number) { /** * 批量删除订单购物详情表 */ -export async function removeBatchShopOrderCartInfo(data: (number | undefined)[]) { +export async function removeBatchShopOrderCartInfo( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-order-cart-info/batch', { diff --git a/src/api/mall/shopOrderCartInfo/model/index.ts b/src/api/mall/shopOrderCartInfo/model/index.ts index fac15e3..0bb7c12 100644 --- a/src/api/mall/shopOrderCartInfo/model/index.ts +++ b/src/api/mall/shopOrderCartInfo/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 订单购物详情表 */ export interface ShopOrderCartInfo { - // + // id?: string; // 订单id oid?: string; diff --git a/src/api/mall/shopOrderInfoLog/index.ts b/src/api/mall/shopOrderInfoLog/index.ts index d87a689..c21fc17 100644 --- a/src/api/mall/shopOrderInfoLog/index.ts +++ b/src/api/mall/shopOrderInfoLog/index.ts @@ -79,7 +79,9 @@ export async function removeShopOrderInfoLog(id?: number) { /** * 批量删除订单核销 */ -export async function removeBatchShopOrderInfoLog(data: (number | undefined)[]) { +export async function removeBatchShopOrderInfoLog( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-order-info-log/batch', { diff --git a/src/api/mall/shopOrderInfoLog/model/index.ts b/src/api/mall/shopOrderInfoLog/model/index.ts index 8815b00..e5282fb 100644 --- a/src/api/mall/shopOrderInfoLog/model/index.ts +++ b/src/api/mall/shopOrderInfoLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 订单核销 */ export interface ShopOrderInfoLog { - // + // id?: number; // 关联订单表id orderId?: number; diff --git a/src/api/mall/shopUserCollection/index.ts b/src/api/mall/shopUserCollection/index.ts index 482d681..95ec560 100644 --- a/src/api/mall/shopUserCollection/index.ts +++ b/src/api/mall/shopUserCollection/index.ts @@ -79,7 +79,9 @@ export async function removeShopUserCollection(id?: number) { /** * 批量删除我的收藏 */ -export async function removeBatchShopUserCollection(data: (number | undefined)[]) { +export async function removeBatchShopUserCollection( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-user-collection/batch', { diff --git a/src/api/mall/shopWechatDeposit/index.ts b/src/api/mall/shopWechatDeposit/index.ts index e7dde65..b95bb1c 100644 --- a/src/api/mall/shopWechatDeposit/index.ts +++ b/src/api/mall/shopWechatDeposit/index.ts @@ -79,7 +79,9 @@ export async function removeShopWechatDeposit(id?: number) { /** * 批量删除押金 */ -export async function removeBatchShopWechatDeposit(data: (number | undefined)[]) { +export async function removeBatchShopWechatDeposit( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/mall/shop-wechat-deposit/batch', { diff --git a/src/api/mall/shopWechatDeposit/model/index.ts b/src/api/mall/shopWechatDeposit/model/index.ts index c7f9931..84bf9ed 100644 --- a/src/api/mall/shopWechatDeposit/model/index.ts +++ b/src/api/mall/shopWechatDeposit/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 押金 */ export interface ShopWechatDeposit { - // + // id?: number; // 订单id oid?: number; @@ -14,7 +14,7 @@ export interface ShopWechatDeposit { orderNum?: string; // 付款订单号 wechatOrder?: string; - // 退款订单号 + // 退款订单号 wechatReturn?: string; // 场馆名称 siteName?: string; diff --git a/src/api/oa/assets/model/index.ts b/src/api/oa/assets/model/index.ts index 350c94d..c1f6b61 100644 --- a/src/api/oa/assets/model/index.ts +++ b/src/api/oa/assets/model/index.ts @@ -1,6 +1,6 @@ import type { PageParam } from '@/api'; import type { User } from '@/api/system/user/model'; -import {AssetsUser} from "@/api/oa/assets/user/model"; +import { AssetsUser } from '@/api/oa/assets/user/model'; /** * 资产 diff --git a/src/api/oa/chatgpt/index.ts b/src/api/oa/chatgpt/index.ts index b8dfcd1..0867821 100644 --- a/src/api/oa/chatgpt/index.ts +++ b/src/api/oa/chatgpt/index.ts @@ -1,13 +1,16 @@ import request from '@/utils/request'; import type { ApiResult } from '@/api'; import { ChatParam } from '@/api/oa/chatgpt/model'; -import {MODULES_API_URL} from "@/config/setting"; +import { MODULES_API_URL } from '@/config/setting'; /** * 发送 */ export async function send(data: ChatParam) { - const res = await request.post>(MODULES_API_URL + '/open/chat/send', data); + const res = await request.post>( + MODULES_API_URL + '/open/chat/send', + data + ); if (res.data.code === 0) { return res.data.data; } diff --git a/src/api/oa/oaAppUser/model/index.ts b/src/api/oa/oaAppUser/model/index.ts index a354285..2b7f3e5 100644 --- a/src/api/oa/oaAppUser/model/index.ts +++ b/src/api/oa/oaAppUser/model/index.ts @@ -6,7 +6,7 @@ import type { PageParam } from '@/api'; export interface OaAppUser { // 自增ID appUserId?: number; - // 角色,10体验成员 20开发者成员 30管理员 + // 角色,10体验成员 20开发者成员 30管理员 role?: number; // 用户ID userId?: number; diff --git a/src/api/oa/oaAssetsUser/model/index.ts b/src/api/oa/oaAssetsUser/model/index.ts index d768d2d..c296d2e 100644 --- a/src/api/oa/oaAssetsUser/model/index.ts +++ b/src/api/oa/oaAssetsUser/model/index.ts @@ -6,7 +6,7 @@ import type { PageParam } from '@/api'; export interface OaAssetsUser { // 自增ID id?: number; - // 角色,10体验成员 20开发者成员 30管理员 + // 角色,10体验成员 20开发者成员 30管理员 role?: number; // 用户ID userId?: number; diff --git a/src/api/oa/oaTask/model/index.ts b/src/api/oa/oaTask/model/index.ts index 51a7e3c..92da69c 100644 --- a/src/api/oa/oaTask/model/index.ts +++ b/src/api/oa/oaTask/model/index.ts @@ -18,7 +18,7 @@ export interface OaTask { promoter?: number; // 受理人 commander?: number; - // 工单状态, 0未开始 1已指派 + // 工单状态, 0未开始 1已指派 progress?: number; // 优先级 priority?: string; diff --git a/src/api/oa/oaTaskUser/model/index.ts b/src/api/oa/oaTaskUser/model/index.ts index 5fd902f..e743d88 100644 --- a/src/api/oa/oaTaskUser/model/index.ts +++ b/src/api/oa/oaTaskUser/model/index.ts @@ -6,7 +6,7 @@ import type { PageParam } from '@/api'; export interface OaTaskUser { // 自增ID taskUserId?: number; - // 角色,10体验成员 20开发者成员 30管理员 + // 角色,10体验成员 20开发者成员 30管理员 role?: number; // 用户ID userId?: number; diff --git a/src/api/oa/product/model/index.ts b/src/api/oa/product/model/index.ts index 181bb79..14c433e 100644 --- a/src/api/oa/product/model/index.ts +++ b/src/api/oa/product/model/index.ts @@ -1,5 +1,5 @@ import type { PageParam } from '@/api'; -import {Company} from "@/api/system/company/model"; +import { Company } from '@/api/system/company/model'; /** * 产品 diff --git a/src/api/shop/cashier/index.ts b/src/api/shop/cashier/index.ts index 638ede3..f9d5d51 100644 --- a/src/api/shop/cashier/index.ts +++ b/src/api/shop/cashier/index.ts @@ -179,7 +179,6 @@ export async function getByGroup(groupId: number) { return Promise.reject(new Error(res.data.message)); } - /** * 删除整单 */ diff --git a/src/api/shop/goodsCoupon/model/index.ts b/src/api/shop/goodsCoupon/model/index.ts index 9c9f78d..17a62da 100644 --- a/src/api/shop/goodsCoupon/model/index.ts +++ b/src/api/shop/goodsCoupon/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 商品优惠券表 */ export interface GoodsCoupon { - // + // id?: number; // 商品id goodsId?: number; diff --git a/src/api/shop/goodsDescription/index.ts b/src/api/shop/goodsDescription/index.ts index d0a1ce7..2784ffd 100644 --- a/src/api/shop/goodsDescription/index.ts +++ b/src/api/shop/goodsDescription/index.ts @@ -79,7 +79,9 @@ export async function removeGoodsDescription(id?: number) { /** * 批量删除商品描述表 */ -export async function removeBatchGoodsDescription(data: (number | undefined)[]) { +export async function removeBatchGoodsDescription( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/goods-description/batch', { diff --git a/src/api/shop/goodsDescription/model/index.ts b/src/api/shop/goodsDescription/model/index.ts index 804b347..8213972 100644 --- a/src/api/shop/goodsDescription/model/index.ts +++ b/src/api/shop/goodsDescription/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 商品描述表 */ export interface GoodsDescription { - // + // id?: number; // 商品ID goodsId?: number; diff --git a/src/api/shop/goodsRule/model/index.ts b/src/api/shop/goodsRule/model/index.ts index 6537e30..618e3cd 100644 --- a/src/api/shop/goodsRule/model/index.ts +++ b/src/api/shop/goodsRule/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 商品规则值(规格)表 */ export interface GoodsRule { - // + // id?: number; // 规格名称 ruleName?: string; diff --git a/src/api/shop/shopMerchant/model/index.ts b/src/api/shop/shopMerchant/model/index.ts index 52d4543..5b802d9 100644 --- a/src/api/shop/shopMerchant/model/index.ts +++ b/src/api/shop/shopMerchant/model/index.ts @@ -30,9 +30,9 @@ export interface ShopMerchant { merchantCategoryTitle?: string; // 经纬度 lngAndLat?: string; - // + // lng?: string; - // + // lat?: string; // 所在省份 province?: string; diff --git a/src/api/shop/shopMerchantAccount/index.ts b/src/api/shop/shopMerchantAccount/index.ts index eff50c4..035ef31 100644 --- a/src/api/shop/shopMerchantAccount/index.ts +++ b/src/api/shop/shopMerchantAccount/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询商户账号 */ -export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) { +export async function pageShopMerchantAccount( + params: ShopMerchantAccountParam +) { const res = await request.get>>( MODULES_API_URL + '/shop/shop-merchant-account/page', { @@ -22,7 +24,9 @@ export async function pageShopMerchantAccount(params: ShopMerchantAccountParam) /** * 查询商户账号列表 */ -export async function listShopMerchantAccount(params?: ShopMerchantAccountParam) { +export async function listShopMerchantAccount( + params?: ShopMerchantAccountParam +) { const res = await request.get>( MODULES_API_URL + '/shop/shop-merchant-account', { @@ -79,7 +83,9 @@ export async function removeShopMerchantAccount(id?: number) { /** * 批量删除商户账号 */ -export async function removeBatchShopMerchantAccount(data: (number | undefined)[]) { +export async function removeBatchShopMerchantAccount( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/shop-merchant-account/batch', { diff --git a/src/api/shop/shopMerchantApply/index.ts b/src/api/shop/shopMerchantApply/index.ts index b26ed11..46b70b4 100644 --- a/src/api/shop/shopMerchantApply/index.ts +++ b/src/api/shop/shopMerchantApply/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantApply(id?: number) { /** * 批量删除商户入驻申请 */ -export async function removeBatchShopMerchantApply(data: (number | undefined)[]) { +export async function removeBatchShopMerchantApply( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/shop-merchant-apply/batch', { diff --git a/src/api/shop/shopMerchantCount/index.ts b/src/api/shop/shopMerchantCount/index.ts index 74229e9..c859b1b 100644 --- a/src/api/shop/shopMerchantCount/index.ts +++ b/src/api/shop/shopMerchantCount/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantCount(id?: number) { /** * 批量删除门店销售统计表 */ -export async function removeBatchShopMerchantCount(data: (number | undefined)[]) { +export async function removeBatchShopMerchantCount( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/shop-merchant-count/batch', { diff --git a/src/api/shop/shopMerchantType/index.ts b/src/api/shop/shopMerchantType/index.ts index 2070c5e..de2fe05 100644 --- a/src/api/shop/shopMerchantType/index.ts +++ b/src/api/shop/shopMerchantType/index.ts @@ -79,7 +79,9 @@ export async function removeShopMerchantType(id?: number) { /** * 批量删除商户类型 */ -export async function removeBatchShopMerchantType(data: (number | undefined)[]) { +export async function removeBatchShopMerchantType( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/shop-merchant-type/batch', { diff --git a/src/api/shop/userBalanceLog/model/index.ts b/src/api/shop/userBalanceLog/model/index.ts index 13b7952..77ac8b0 100644 --- a/src/api/shop/userBalanceLog/model/index.ts +++ b/src/api/shop/userBalanceLog/model/index.ts @@ -16,7 +16,7 @@ export interface UserBalanceLog { balance?: string; // 管理员备注 remark?: string; - // + // orderId?: number; // 操作人ID adminId?: number; diff --git a/src/api/shop/wechatDeposit/model/index.ts b/src/api/shop/wechatDeposit/model/index.ts index 3239379..e23e56a 100644 --- a/src/api/shop/wechatDeposit/model/index.ts +++ b/src/api/shop/wechatDeposit/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 押金 */ export interface WechatDeposit { - // + // id?: number; // 订单id oid?: number; @@ -14,7 +14,7 @@ export interface WechatDeposit { orderNum?: string; // 付款订单号 wechatOrder?: string; - // 退款订单号 + // 退款订单号 wechatReturn?: string; // 场馆名称 siteName?: string; @@ -28,7 +28,7 @@ export interface WechatDeposit { price?: string; // 押金状态,1已付款,2未付款,已退押金 status?: string; - // + // createTime?: number; // 租户id tenantId?: number; diff --git a/src/api/system/area/index.ts b/src/api/system/area/index.ts index 164b204..45688cb 100644 --- a/src/api/system/area/index.ts +++ b/src/api/system/area/index.ts @@ -1,20 +1,23 @@ import request from '@/utils/request'; -import type {ApiResult} from '@/api'; -import {Area} from "@/api/system/area/model"; -import { THINK_API_URL } from "@/config/setting"; - +import type { ApiResult } from '@/api'; +import { Area } from '@/api/system/area/model'; +import { THINK_API_URL } from '@/config/setting'; export async function listArea(param: any) { - const res = await request.post>(`${THINK_API_URL}/common/area/list-by-level`, param); + const res = await request.post>( + `${THINK_API_URL}/common/area/list-by-level`, + param + ); if (res.data.code === 0 && res.data.data) { return res.data.data; } return Promise.reject(new Error(res.data.message)); } - export async function listCity() { - const res = await request.post>(`${THINK_API_URL}/common/area/city-list`); + const res = await request.post>( + `${THINK_API_URL}/common/area/city-list` + ); if (res.data.code === 0 && res.data.data) { return res.data.data; } diff --git a/src/api/system/area/model/index.ts b/src/api/system/area/model/index.ts index ada0fa4..d21012d 100644 --- a/src/api/system/area/model/index.ts +++ b/src/api/system/area/model/index.ts @@ -1,8 +1,7 @@ - export interface Area { - id?: any, - name?: any, - fid?: any, - levelId?: any, - children?: any, + id?: any; + name?: any; + fid?: any; + levelId?: any; + children?: any; } diff --git a/src/api/system/chatConversation/index.ts b/src/api/system/chatConversation/index.ts index 4c84dc4..afe2ed6 100644 --- a/src/api/system/chatConversation/index.ts +++ b/src/api/system/chatConversation/index.ts @@ -79,7 +79,9 @@ export async function removeChatConversation(id?: number) { /** * 批量删除聊天消息表 */ -export async function removeBatchChatConversation(data: (number | undefined)[]) { +export async function removeBatchChatConversation( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/shop/chat-conversation/batch', { diff --git a/src/api/system/menu/index.ts b/src/api/system/menu/index.ts index 27104c9..cad8674 100644 --- a/src/api/system/menu/index.ts +++ b/src/api/system/menu/index.ts @@ -90,7 +90,6 @@ export async function deleteParentMenu(id?: number) { return Promise.reject(new Error(res.data.message)); } - /** * 安装应用 */ diff --git a/src/api/system/user/model/index.ts b/src/api/system/user/model/index.ts index 85264cd..11deed7 100644 --- a/src/api/system/user/model/index.ts +++ b/src/api/system/user/model/index.ts @@ -1,7 +1,7 @@ -import type { PageParam } from "@/api"; -import type { Role } from "../../role/model"; -import type { Menu } from "../../menu/model"; -import { Company } from "@/api/system/company/model"; +import type { PageParam } from '@/api'; +import type { Role } from '../../role/model'; +import type { Menu } from '../../menu/model'; +import { Company } from '@/api/system/company/model'; /** * 用户 diff --git a/src/api/system/website/field/index.ts b/src/api/system/website/field/index.ts index d71b76a..9fb9859 100644 --- a/src/api/system/website/field/index.ts +++ b/src/api/system/website/field/index.ts @@ -5,7 +5,7 @@ import type { WebsiteField, WebsiteFieldParam } from '@/api/cms/website/field/model'; -import { MODULES_API_URL, SERVER_API_URL } from "@/config/setting"; +import { MODULES_API_URL, SERVER_API_URL } from '@/config/setting'; /** * 分页查询项目参数 diff --git a/src/api/think/thinkAdmin/model/index.ts b/src/api/think/thinkAdmin/model/index.ts index 7129f54..4e2480c 100644 --- a/src/api/think/thinkAdmin/model/index.ts +++ b/src/api/think/thinkAdmin/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkAdmin { - // + // id?: number; // 用户名 username?: string; @@ -28,7 +28,7 @@ export interface ThinkAdmin { sid?: string; // 用户角色id groupid?: number; - // + // token?: string; // 过期时间 expireTime?: number; diff --git a/src/api/think/thinkAdminLog/model/index.ts b/src/api/think/thinkAdminLog/model/index.ts index 03f2bf5..e8da439 100644 --- a/src/api/think/thinkAdminLog/model/index.ts +++ b/src/api/think/thinkAdminLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 后台金额操作变动 */ export interface ThinkAdminLog { - // + // id?: number; // 用户ID userid?: number; diff --git a/src/api/think/thinkAuthGroup/model/index.ts b/src/api/think/thinkAuthGroup/model/index.ts index c56df0e..dbbd1be 100644 --- a/src/api/think/thinkAuthGroup/model/index.ts +++ b/src/api/think/thinkAuthGroup/model/index.ts @@ -1,20 +1,20 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkAuthGroup { - // + // id?: number; - // + // title?: string; - // + // status?: string; - // + // rules?: string; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkAuthGroupAccess/model/index.ts b/src/api/think/thinkAuthGroupAccess/model/index.ts index 192c43a..b4990c5 100644 --- a/src/api/think/thinkAuthGroupAccess/model/index.ts +++ b/src/api/think/thinkAuthGroupAccess/model/index.ts @@ -1,12 +1,12 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkAuthGroupAccess { - // + // uid?: number; - // + // groupId?: number; } diff --git a/src/api/think/thinkAuthRule/model/index.ts b/src/api/think/thinkAuthRule/model/index.ts index 3a31c79..65d5880 100644 --- a/src/api/think/thinkAuthRule/model/index.ts +++ b/src/api/think/thinkAuthRule/model/index.ts @@ -1,22 +1,22 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkAuthRule { - // + // id?: number; - // + // name?: string; - // + // title?: string; - // + // type?: string; - // + // status?: string; // 样式 css?: string; - // + // condition?: string; // 父栏目ID pid?: number; @@ -24,7 +24,7 @@ export interface ThinkAuthRule { sort?: number; // 添加时间 createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkBankCard/model/index.ts b/src/api/think/thinkBankCard/model/index.ts index ee5ae94..324a184 100644 --- a/src/api/think/thinkBankCard/model/index.ts +++ b/src/api/think/thinkBankCard/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 银行卡列表 */ export interface ThinkBankCard { - // + // id?: number; // 用户ID uid?: number; diff --git a/src/api/think/thinkCard/index.ts b/src/api/think/thinkCard/index.ts index 912e75e..33716c2 100644 --- a/src/api/think/thinkCard/index.ts +++ b/src/api/think/thinkCard/index.ts @@ -81,7 +81,8 @@ export async function updateThinkCardRemaining(data: { remainingMoney?: string; }) { const res = await request.put>( - THINK_API_URL + '/think/think-card/remaining', data + THINK_API_URL + '/think/think-card/remaining', + data ); if (res.data.code === 0) return res.data.message; return Promise.reject(new Error(res.data.message)); diff --git a/src/api/think/thinkCardBalance/index.ts b/src/api/think/thinkCardBalance/index.ts index 58f9b85..e8740cb 100644 --- a/src/api/think/thinkCardBalance/index.ts +++ b/src/api/think/thinkCardBalance/index.ts @@ -79,7 +79,9 @@ export async function removeThinkCardBalance(id?: number) { /** * 批量删除卡余额记录 */ -export async function removeBatchThinkCardBalance(data: (number | undefined)[]) { +export async function removeBatchThinkCardBalance( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-card-balance/batch', { diff --git a/src/api/think/thinkCardBalance/model/index.ts b/src/api/think/thinkCardBalance/model/index.ts index d6015ec..b7d7688 100644 --- a/src/api/think/thinkCardBalance/model/index.ts +++ b/src/api/think/thinkCardBalance/model/index.ts @@ -4,21 +4,21 @@ import type { PageParam } from '@/api'; * 卡余额记录 */ export interface ThinkCardBalance { - // + // id?: number; - // + // cid?: number; - // + // vid?: number; - // + // uid?: number; - // + // balance?: string; // 每次减少金额 reduceEach?: string; // 下单时间 createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkCardBindLog/model/index.ts b/src/api/think/thinkCardBindLog/model/index.ts index 204a7ed..058aefb 100644 --- a/src/api/think/thinkCardBindLog/model/index.ts +++ b/src/api/think/thinkCardBindLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * IC卡绑定微信日志表 */ export interface ThinkCardBindLog { - // + // id?: number; // 参数 param?: string; diff --git a/src/api/think/thinkCardDelLog/model/index.ts b/src/api/think/thinkCardDelLog/model/index.ts index 0f1708b..af33784 100644 --- a/src/api/think/thinkCardDelLog/model/index.ts +++ b/src/api/think/thinkCardDelLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 注销卡日志 */ export interface ThinkCardDelLog { - // + // id?: number; // 操作用户 userId?: number; diff --git a/src/api/think/thinkCardEditLog/index.ts b/src/api/think/thinkCardEditLog/index.ts index b37d8af..0f72fbf 100644 --- a/src/api/think/thinkCardEditLog/index.ts +++ b/src/api/think/thinkCardEditLog/index.ts @@ -79,7 +79,9 @@ export async function removeThinkCardEditLog(id?: number) { /** * 批量删除IC卡编辑日志 */ -export async function removeBatchThinkCardEditLog(data: (number | undefined)[]) { +export async function removeBatchThinkCardEditLog( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-card-edit-log/batch', { diff --git a/src/api/think/thinkCardEditLog/model/index.ts b/src/api/think/thinkCardEditLog/model/index.ts index 9529099..8aa3c4b 100644 --- a/src/api/think/thinkCardEditLog/model/index.ts +++ b/src/api/think/thinkCardEditLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * IC卡编辑日志 */ export interface ThinkCardEditLog { - // + // id?: number; // 操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期; type?: string; diff --git a/src/api/think/thinkCardLog/index.ts b/src/api/think/thinkCardLog/index.ts index 0406ec1..18a232f 100644 --- a/src/api/think/thinkCardLog/index.ts +++ b/src/api/think/thinkCardLog/index.ts @@ -107,7 +107,8 @@ export async function getThinkCardLog(id: number) { export async function thinkCardLogExport(data: ThinkCardLog) { const res = await request.post>( - THINK_API_URL + '/think/think-card-log/export', data + THINK_API_URL + '/think/think-card-log/export', + data ); if (res.data.code === 0) { return res.data; diff --git a/src/api/think/thinkCardUserLog/model/index.ts b/src/api/think/thinkCardUserLog/model/index.ts index 83488b8..73e7b9b 100644 --- a/src/api/think/thinkCardUserLog/model/index.ts +++ b/src/api/think/thinkCardUserLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkCardUserLog { - // + // id?: number; // 会员卡类型:1年卡,2次卡,3月卡,4会员VIP,VIP充值卡 type?: number; @@ -14,7 +14,7 @@ export interface ThinkCardUserLog { vipType?: string; // 统计金额(正是收入,负是冲抵(退卡后产生)) price?: string; - // + // createTime?: number; // 虚拟卡ID usersVipId?: number; diff --git a/src/api/think/thinkCardsBills/index.ts b/src/api/think/thinkCardsBills/index.ts index a8029e0..c5da3f4 100644 --- a/src/api/think/thinkCardsBills/index.ts +++ b/src/api/think/thinkCardsBills/index.ts @@ -1,8 +1,8 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { ThinkCardsBills, ThinkCardsBillsParam } from './model'; -import { THINK_API_URL } from "@/config/setting"; -import type { ThinkVipCardsBillsParam } from "@/api/think/thinkVipCardsBills/model"; +import { THINK_API_URL } from '@/config/setting'; +import type { ThinkVipCardsBillsParam } from '@/api/think/thinkVipCardsBills/model'; /** * 分页查询Vip卡每日账单 @@ -35,7 +35,9 @@ export async function listThinkCardsBills(params?: ThinkCardsBillsParam) { } return Promise.reject(new Error(res.data.message)); } -export async function thinkCardsBillsTotalAmount(params?: ThinkVipCardsBillsParam) { +export async function thinkCardsBillsTotalAmount( + params?: ThinkVipCardsBillsParam +) { const res = await request.get>( THINK_API_URL + '/think/think-cards-bills/total-amount', { diff --git a/src/api/think/thinkCarousel/model/index.ts b/src/api/think/thinkCarousel/model/index.ts index ab9333a..5554369 100644 --- a/src/api/think/thinkCarousel/model/index.ts +++ b/src/api/think/thinkCarousel/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkCarousel { - // + // id?: number; // 轮播图标题 title?: string; @@ -20,9 +20,9 @@ export interface ThinkCarousel { status?: string; // 类型:1资讯,2商城,3小程序 type?: string; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkCoach/model/index.ts b/src/api/think/thinkCoach/model/index.ts index f6c18b5..f305c02 100644 --- a/src/api/think/thinkCoach/model/index.ts +++ b/src/api/think/thinkCoach/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练表 */ export interface ThinkCoach { - // + // id?: number; // 用户表ID uid?: number; diff --git a/src/api/think/thinkCoachCash/model/index.ts b/src/api/think/thinkCoachCash/model/index.ts index 40302cc..edec64f 100644 --- a/src/api/think/thinkCoachCash/model/index.ts +++ b/src/api/think/thinkCoachCash/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练提现审核表 */ export interface ThinkCoachCash { - // + // id?: number; // 教练ID cid?: number; diff --git a/src/api/think/thinkCoachCur/model/index.ts b/src/api/think/thinkCoachCur/model/index.ts index 93c45ca..bbc6db6 100644 --- a/src/api/think/thinkCoachCur/model/index.ts +++ b/src/api/think/thinkCoachCur/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练课程表 */ export interface ThinkCoachCur { - // + // id?: number; // 教练ID cid?: number; diff --git a/src/api/think/thinkCoachImgs/model/index.ts b/src/api/think/thinkCoachImgs/model/index.ts index 8a41086..95bc7ee 100644 --- a/src/api/think/thinkCoachImgs/model/index.ts +++ b/src/api/think/thinkCoachImgs/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练组相册 */ export interface ThinkCoachImgs { - // + // id?: number; // 图片地址 path?: string; diff --git a/src/api/think/thinkCoachOrder/model/index.ts b/src/api/think/thinkCoachOrder/model/index.ts index e20296b..56d50b8 100644 --- a/src/api/think/thinkCoachOrder/model/index.ts +++ b/src/api/think/thinkCoachOrder/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练组订单 */ export interface ThinkCoachOrder { - // + // id?: number; // 场馆ID sid?: number; diff --git a/src/api/think/thinkCoachTime/model/index.ts b/src/api/think/thinkCoachTime/model/index.ts index 712d9f6..9eab8e9 100644 --- a/src/api/think/thinkCoachTime/model/index.ts +++ b/src/api/think/thinkCoachTime/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 教练组预约时间表 */ export interface ThinkCoachTime { - // + // id?: number; // 教练ID cid?: number; diff --git a/src/api/think/thinkConfig/model/index.ts b/src/api/think/thinkConfig/model/index.ts index 71f8c53..6fc6c15 100644 --- a/src/api/think/thinkConfig/model/index.ts +++ b/src/api/think/thinkConfig/model/index.ts @@ -1,7 +1,7 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkConfig { // 配置ID diff --git a/src/api/think/thinkCoupon/model/index.ts b/src/api/think/thinkCoupon/model/index.ts index b5f0009..2f3dc42 100644 --- a/src/api/think/thinkCoupon/model/index.ts +++ b/src/api/think/thinkCoupon/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkCoupon { - // + // id?: number; // 优惠券名称 name?: string; @@ -36,7 +36,7 @@ export interface ThinkCoupon { status?: string; // 创建时间 createTime?: number; - // + // updateTime?: number; // 0 是通用,1是仅线下 isOffline?: string; diff --git a/src/api/think/thinkDepositItem/index.ts b/src/api/think/thinkDepositItem/index.ts index 505679a..befdaa6 100644 --- a/src/api/think/thinkDepositItem/index.ts +++ b/src/api/think/thinkDepositItem/index.ts @@ -1,7 +1,7 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { ThinkDepositItem, ThinkDepositItemParam } from './model'; -import { THINK_API_URL } from "@/config/setting"; +import { THINK_API_URL } from '@/config/setting'; /** * 分页查询押金物品 @@ -79,7 +79,9 @@ export async function removeThinkDepositItem(id?: number) { /** * 批量删除押金物品 */ -export async function removeBatchThinkDepositItem(data: (number | undefined)[]) { +export async function removeBatchThinkDepositItem( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-deposit-item/batch', { diff --git a/src/api/think/thinkField/model/index.ts b/src/api/think/thinkField/model/index.ts index a01779b..8fd0db6 100644 --- a/src/api/think/thinkField/model/index.ts +++ b/src/api/think/thinkField/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkField { - // + // id?: number; // 场地名称 name?: string; diff --git a/src/api/think/thinkFtpCheckBill/index.ts b/src/api/think/thinkFtpCheckBill/index.ts index aa7e64a..e3f754f 100644 --- a/src/api/think/thinkFtpCheckBill/index.ts +++ b/src/api/think/thinkFtpCheckBill/index.ts @@ -79,7 +79,9 @@ export async function removeThinkFtpCheckBill(id?: number) { /** * 批量删除 */ -export async function removeBatchThinkFtpCheckBill(data: (number | undefined)[]) { +export async function removeBatchThinkFtpCheckBill( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-ftp-check-bill/batch', { diff --git a/src/api/think/thinkFtpCheckBill/model/index.ts b/src/api/think/thinkFtpCheckBill/model/index.ts index ec572b3..ee187b4 100644 --- a/src/api/think/thinkFtpCheckBill/model/index.ts +++ b/src/api/think/thinkFtpCheckBill/model/index.ts @@ -1,4 +1,4 @@ -import type { PageParam } from "@/api"; +import type { PageParam } from '@/api'; /** * diff --git a/src/api/think/thinkGate/model/index.ts b/src/api/think/thinkGate/model/index.ts index 730fc4d..a6e8822 100644 --- a/src/api/think/thinkGate/model/index.ts +++ b/src/api/think/thinkGate/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkGate { - // + // id?: string; // 闸机名称 gateName?: string; diff --git a/src/api/think/thinkGatePassreord/index.ts b/src/api/think/thinkGatePassreord/index.ts index 75987bf..e7a07a2 100644 --- a/src/api/think/thinkGatePassreord/index.ts +++ b/src/api/think/thinkGatePassreord/index.ts @@ -79,7 +79,9 @@ export async function removeThinkGatePassreord(id?: number) { /** * 批量删除 */ -export async function removeBatchThinkGatePassreord(data: (number | undefined)[]) { +export async function removeBatchThinkGatePassreord( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-gate-passreord/batch', { diff --git a/src/api/think/thinkGoods/model/index.ts b/src/api/think/thinkGoods/model/index.ts index 69899e1..7929475 100644 --- a/src/api/think/thinkGoods/model/index.ts +++ b/src/api/think/thinkGoods/model/index.ts @@ -1,4 +1,4 @@ -import type { PageParam } from "@/api"; +import type { PageParam } from '@/api'; /** * diff --git a/src/api/think/thinkGoodsCategory/index.ts b/src/api/think/thinkGoodsCategory/index.ts index 0e23c79..5d3aca8 100644 --- a/src/api/think/thinkGoodsCategory/index.ts +++ b/src/api/think/thinkGoodsCategory/index.ts @@ -79,7 +79,9 @@ export async function removeThinkGoodsCategory(id?: number) { /** * 批量删除 */ -export async function removeBatchThinkGoodsCategory(data: (number | undefined)[]) { +export async function removeBatchThinkGoodsCategory( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-goods-category/batch', { diff --git a/src/api/think/thinkGoodsCategory/model/index.ts b/src/api/think/thinkGoodsCategory/model/index.ts index 4cd4617..a50de1b 100644 --- a/src/api/think/thinkGoodsCategory/model/index.ts +++ b/src/api/think/thinkGoodsCategory/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkGoodsCategory { - // + // id?: number; // 上级id pid?: number; @@ -14,9 +14,9 @@ export interface ThinkGoodsCategory { image?: string; // 排序 sort?: number; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkGoodsImage/model/index.ts b/src/api/think/thinkGoodsImage/model/index.ts index deaf62a..96640d0 100644 --- a/src/api/think/thinkGoodsImage/model/index.ts +++ b/src/api/think/thinkGoodsImage/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkGoodsImage { - // + // id?: number; // 图片地址 path?: string; diff --git a/src/api/think/thinkGoodsOrder/model/index.ts b/src/api/think/thinkGoodsOrder/model/index.ts index 70f3928..a9d54b4 100644 --- a/src/api/think/thinkGoodsOrder/model/index.ts +++ b/src/api/think/thinkGoodsOrder/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkGoodsOrder { - // + // id?: number; // 订单号 orderNum?: string; @@ -36,7 +36,7 @@ export interface ThinkGoodsOrder { deliveryTime?: number; // 下单时间 createTime?: number; - // + // updateTime?: number; // 支付时间 payTime?: number; diff --git a/src/api/think/thinkGoodsOrderInfo/index.ts b/src/api/think/thinkGoodsOrderInfo/index.ts index a61c35d..a8996ee 100644 --- a/src/api/think/thinkGoodsOrderInfo/index.ts +++ b/src/api/think/thinkGoodsOrderInfo/index.ts @@ -6,7 +6,9 @@ import { THINK_API_URL } from '@/config/setting'; /** * 分页查询 */ -export async function pageThinkGoodsOrderInfo(params: ThinkGoodsOrderInfoParam) { +export async function pageThinkGoodsOrderInfo( + params: ThinkGoodsOrderInfoParam +) { const res = await request.get>>( THINK_API_URL + '/think/think-goods-order-info/page', { @@ -22,7 +24,9 @@ export async function pageThinkGoodsOrderInfo(params: ThinkGoodsOrderInfoParam) /** * 查询列表 */ -export async function listThinkGoodsOrderInfo(params?: ThinkGoodsOrderInfoParam) { +export async function listThinkGoodsOrderInfo( + params?: ThinkGoodsOrderInfoParam +) { const res = await request.get>( THINK_API_URL + '/think/think-goods-order-info', { @@ -79,7 +83,9 @@ export async function removeThinkGoodsOrderInfo(id?: number) { /** * 批量删除 */ -export async function removeBatchThinkGoodsOrderInfo(data: (number | undefined)[]) { +export async function removeBatchThinkGoodsOrderInfo( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-goods-order-info/batch', { diff --git a/src/api/think/thinkGoodsOrderInfo/model/index.ts b/src/api/think/thinkGoodsOrderInfo/model/index.ts index 8d410eb..e50be62 100644 --- a/src/api/think/thinkGoodsOrderInfo/model/index.ts +++ b/src/api/think/thinkGoodsOrderInfo/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkGoodsOrderInfo { - // + // id?: number; // 商品id goodsId?: number; @@ -22,7 +22,7 @@ export interface ThinkGoodsOrderInfo { integral?: string; // 商品sku记录索引 (由规格id组成) goodsSkuId?: string; - // + // goodsAttr?: string; } diff --git a/src/api/think/thinkGoodsSpecRel/index.ts b/src/api/think/thinkGoodsSpecRel/index.ts index 5234f1d..7274c23 100644 --- a/src/api/think/thinkGoodsSpecRel/index.ts +++ b/src/api/think/thinkGoodsSpecRel/index.ts @@ -79,7 +79,9 @@ export async function removeThinkGoodsSpecRel(id?: number) { /** * 批量删除商品与规格值关系记录表 */ -export async function removeBatchThinkGoodsSpecRel(data: (number | undefined)[]) { +export async function removeBatchThinkGoodsSpecRel( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-goods-spec-rel/batch', { diff --git a/src/api/think/thinkIntegral/model/index.ts b/src/api/think/thinkIntegral/model/index.ts index af9808c..babac6e 100644 --- a/src/api/think/thinkIntegral/model/index.ts +++ b/src/api/think/thinkIntegral/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkIntegral { - // + // id?: number; // 用户id uid?: number; diff --git a/src/api/think/thinkIntegralLog/model/index.ts b/src/api/think/thinkIntegralLog/model/index.ts index 0fcafd0..830f09d 100644 --- a/src/api/think/thinkIntegralLog/model/index.ts +++ b/src/api/think/thinkIntegralLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkIntegralLog { - // + // id?: number; // 场馆订单号 orderNum?: string; diff --git a/src/api/think/thinkInvoice/index.ts b/src/api/think/thinkInvoice/index.ts index 06d2435..fa412f8 100644 --- a/src/api/think/thinkInvoice/index.ts +++ b/src/api/think/thinkInvoice/index.ts @@ -1,14 +1,14 @@ -import request from "@/utils/request"; -import type { ApiResult, PageResult } from "@/api"; -import type { ThinkInvoice, ThinkInvoiceParam } from "./model"; -import { THINK_API_URL } from "@/config/setting"; +import request from '@/utils/request'; +import type { ApiResult, PageResult } from '@/api'; +import type { ThinkInvoice, ThinkInvoiceParam } from './model'; +import { THINK_API_URL } from '@/config/setting'; /** * 分页查询 */ export async function pageThinkInvoice(params: ThinkInvoiceParam) { const res = await request.get>>( - THINK_API_URL + "/think/think-invoice/page", + THINK_API_URL + '/think/think-invoice/page', { params } @@ -24,7 +24,7 @@ export async function pageThinkInvoice(params: ThinkInvoiceParam) { */ export async function listThinkInvoice(params?: ThinkInvoiceParam) { const res = await request.get>( - THINK_API_URL + "/think/think-invoice", + THINK_API_URL + '/think/think-invoice', { params } @@ -40,7 +40,7 @@ export async function listThinkInvoice(params?: ThinkInvoiceParam) { */ export async function addThinkInvoice(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + "/think/think-invoice", + THINK_API_URL + '/think/think-invoice', data ); if (res.data.code === 0) { @@ -54,7 +54,7 @@ export async function addThinkInvoice(data: ThinkInvoice) { */ export async function updateThinkInvoice(data: ThinkInvoice) { const res = await request.put>( - THINK_API_URL + "/think/think-invoice", + THINK_API_URL + '/think/think-invoice', data ); if (res.data.code === 0) { @@ -68,7 +68,7 @@ export async function updateThinkInvoice(data: ThinkInvoice) { */ export async function removeThinkInvoice(id?: number) { const res = await request.delete>( - THINK_API_URL + "/think/think-invoice/" + id + THINK_API_URL + '/think/think-invoice/' + id ); if (res.data.code === 0) { return res.data.message; @@ -81,7 +81,7 @@ export async function removeThinkInvoice(id?: number) { */ export async function removeBatchThinkInvoice(data: (number | undefined)[]) { const res = await request.delete>( - THINK_API_URL + "/think/think-invoice/batch", + THINK_API_URL + '/think/think-invoice/batch', { data } @@ -97,7 +97,7 @@ export async function removeBatchThinkInvoice(data: (number | undefined)[]) { */ export async function getThinkInvoice(id: number) { const res = await request.get>( - THINK_API_URL + "/think/think-invoice/" + id + THINK_API_URL + '/think/think-invoice/' + id ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -107,7 +107,8 @@ export async function getThinkInvoice(id: number) { export async function thinkInvoiceData(params?: ThinkInvoiceParam) { const res = await request.get>( - THINK_API_URL + "/think/think-invoice/data", { params } + THINK_API_URL + '/think/think-invoice/data', + { params } ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -120,7 +121,7 @@ export async function thinkInvoiceData(params?: ThinkInvoiceParam) { */ export async function doInvoice(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + "/think/think-invoice/doInvoice", + THINK_API_URL + '/think/think-invoice/doInvoice', data ); if (res.data.code === 0) { @@ -134,7 +135,7 @@ export async function doInvoice(data: ThinkInvoice) { */ export async function getInvoiceRes(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + "/think/think-invoice/getRes", + THINK_API_URL + '/think/think-invoice/getRes', data ); if (res.data.code === 0) { @@ -145,7 +146,7 @@ export async function getInvoiceRes(data: ThinkInvoice) { export async function doInvoiceByListReq(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + "/think/think-invoice/doInvoiceByList", + THINK_API_URL + '/think/think-invoice/doInvoiceByList', data ); if (res.data.code === 0) { @@ -159,7 +160,7 @@ export async function doInvoiceByListReq(data: ThinkInvoice) { */ export async function showInvoice(id: number) { const res = await request.get>( - THINK_API_URL + "/think/think-invoice/showInvoice/" + id + THINK_API_URL + '/think/think-invoice/showInvoice/' + id ); if (res.data.code === 0 && res.data.data) { return res.data.data; diff --git a/src/api/think/thinkInvoiceRequestLog/model/index.ts b/src/api/think/thinkInvoiceRequestLog/model/index.ts index e326f63..14b8666 100644 --- a/src/api/think/thinkInvoiceRequestLog/model/index.ts +++ b/src/api/think/thinkInvoiceRequestLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkInvoiceRequestLog { - // + // id?: number; // 类型:order=订场开票;VIP=VIP购卡开票;IC=IC卡购卡开票 type?: string; diff --git a/src/api/think/thinkLog/model/index.ts b/src/api/think/thinkLog/model/index.ts index e347b03..3eb9870 100644 --- a/src/api/think/thinkLog/model/index.ts +++ b/src/api/think/thinkLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkLog { - // + // logId?: number; // 用户ID adminId?: number; @@ -18,13 +18,13 @@ export interface ThinkLog { status?: string; // 添加时间 addTime?: number; - // 0:操作日志;1:登录日志;2:定时任务 + // 0:操作日志;1:登录日志;2:定时任务 logType?: string; - // 事务类型 0查询,2添加,4修改,8删除 16 导入 32 导出 当方法中存在 多种类型时候使用 或(|)操作 + // 事务类型 0查询,2添加,4修改,8删除 16 导入 32 导出 当方法中存在 多种类型时候使用 或(|)操作 operateType?: string; - // 执行事务的方法名称 + // 执行事务的方法名称 method?: string; - // 执行事务的方法的参数 + // 执行事务的方法的参数 params?: string; } diff --git a/src/api/think/thinkMachineOpenLog/index.ts b/src/api/think/thinkMachineOpenLog/index.ts index 73d51ae..cda1110 100644 --- a/src/api/think/thinkMachineOpenLog/index.ts +++ b/src/api/think/thinkMachineOpenLog/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询闸机开门记录 */ -export async function pageThinkMachineOpenLog(params: ThinkMachineOpenLogParam) { +export async function pageThinkMachineOpenLog( + params: ThinkMachineOpenLogParam +) { const res = await request.get>>( MODULES_API_URL + '/think/think-machine-open-log/page', { @@ -22,7 +24,9 @@ export async function pageThinkMachineOpenLog(params: ThinkMachineOpenLogParam) /** * 查询闸机开门记录列表 */ -export async function listThinkMachineOpenLog(params?: ThinkMachineOpenLogParam) { +export async function listThinkMachineOpenLog( + params?: ThinkMachineOpenLogParam +) { const res = await request.get>( MODULES_API_URL + '/think/think-machine-open-log', { @@ -79,7 +83,9 @@ export async function removeThinkMachineOpenLog(id?: number) { /** * 批量删除闸机开门记录 */ -export async function removeBatchThinkMachineOpenLog(data: (number | undefined)[]) { +export async function removeBatchThinkMachineOpenLog( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-machine-open-log/batch', { diff --git a/src/api/think/thinkMachineOpenLog/model/index.ts b/src/api/think/thinkMachineOpenLog/model/index.ts index c488981..f7d0bab 100644 --- a/src/api/think/thinkMachineOpenLog/model/index.ts +++ b/src/api/think/thinkMachineOpenLog/model/index.ts @@ -4,9 +4,9 @@ import type { PageParam } from '@/api'; * 闸机开门记录 */ export interface ThinkMachineOpenLog { - // + // id?: number; - // + // orderId?: number; // 租户id tenantId?: number; diff --git a/src/api/think/thinkMessage/model/index.ts b/src/api/think/thinkMessage/model/index.ts index 69f7dc0..82c7e8e 100644 --- a/src/api/think/thinkMessage/model/index.ts +++ b/src/api/think/thinkMessage/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 消息表 */ export interface ThinkMessage { - // + // id?: number; // 消息类型 t?: string; diff --git a/src/api/think/thinkMoneyLog/model/index.ts b/src/api/think/thinkMoneyLog/model/index.ts index 157f42b..9e8d484 100644 --- a/src/api/think/thinkMoneyLog/model/index.ts +++ b/src/api/think/thinkMoneyLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkMoneyLog { - // + // id?: number; // 场馆订单号 orderNum?: string; diff --git a/src/api/think/thinkNews/model/index.ts b/src/api/think/thinkNews/model/index.ts index c187fd2..2a627c5 100644 --- a/src/api/think/thinkNews/model/index.ts +++ b/src/api/think/thinkNews/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkNews { - // + // id?: number; // 关联分类id cid?: number; @@ -24,9 +24,9 @@ export interface ThinkNews { isAlert?: string; // 失效时间 expireTime?: string; - // + // createTime?: number; - // + // updateTime?: number; // 状态:1正常,2下架 status?: string; diff --git a/src/api/think/thinkNewsCategory/model/index.ts b/src/api/think/thinkNewsCategory/model/index.ts index a1d57bf..48f83c5 100644 --- a/src/api/think/thinkNewsCategory/model/index.ts +++ b/src/api/think/thinkNewsCategory/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkNewsCategory { - // + // id?: number; // 上级id pid?: number; @@ -14,9 +14,9 @@ export interface ThinkNewsCategory { image?: string; // 排序 sort?: number; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkOldCard/model/index.ts b/src/api/think/thinkOldCard/model/index.ts index 904fbb1..00a522a 100644 --- a/src/api/think/thinkOldCard/model/index.ts +++ b/src/api/think/thinkOldCard/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 旧运动时卡 */ export interface ThinkOldCard { - // + // id?: number; // 卡类型 cardType?: string; diff --git a/src/api/think/thinkOrder/index.ts b/src/api/think/thinkOrder/index.ts index 94aa30b..0d08e72 100644 --- a/src/api/think/thinkOrder/index.ts +++ b/src/api/think/thinkOrder/index.ts @@ -1,18 +1,18 @@ -import request from "@/utils/request"; -import type { ApiResult, PageResult } from "@/api"; +import request from '@/utils/request'; +import type { ApiResult, PageResult } from '@/api'; import type { ThinkOrder, ThinkOrderParam, ThinkTrainingBusinessSection -} from "./model"; -import { THINK_API_URL } from "@/config/setting"; +} from './model'; +import { THINK_API_URL } from '@/config/setting'; /** * 分页查询 */ export async function pageThinkOrder(params: ThinkOrderParam) { const res = await request.get>>( - THINK_API_URL + "/think/think-order/page", + THINK_API_URL + '/think/think-order/page', { params } @@ -28,7 +28,7 @@ export async function pageThinkOrder(params: ThinkOrderParam) { */ export async function listThinkOrder(params?: ThinkOrderParam) { const res = await request.get>( - THINK_API_URL + "/think/think-order", + THINK_API_URL + '/think/think-order', { params } @@ -41,7 +41,7 @@ export async function listThinkOrder(params?: ThinkOrderParam) { export async function thinkOrderTotalAmount(params?: ThinkOrderParam) { const res = await request.get>( - THINK_API_URL + "/think/think-order/total-amount", + THINK_API_URL + '/think/think-order/total-amount', { params } @@ -57,7 +57,7 @@ export async function thinkOrderTotalAmount(params?: ThinkOrderParam) { */ export async function addThinkOrder(data: ThinkOrder) { const res = await request.post>( - THINK_API_URL + "/think/think-order", + THINK_API_URL + '/think/think-order', data ); if (res.data.code === 0) { @@ -71,7 +71,7 @@ export async function addThinkOrder(data: ThinkOrder) { */ export async function updateThinkOrder(data: ThinkOrder) { const res = await request.put>( - THINK_API_URL + "/think/think-order", + THINK_API_URL + '/think/think-order', data ); if (res.data.code === 0) { @@ -85,7 +85,7 @@ export async function updateThinkOrder(data: ThinkOrder) { */ export async function setThinkOrderInvoice(ids: (number | undefined)[]) { const res = await request.put>( - THINK_API_URL + "/think/think-order/set-invoice", + THINK_API_URL + '/think/think-order/set-invoice', ids ); if (res.data.code === 0) { @@ -96,7 +96,7 @@ export async function setThinkOrderInvoice(ids: (number | undefined)[]) { export async function updateBatchThinkOrder(data: ThinkOrder[]) { const res = await request.put>( - THINK_API_URL + "/think/think-order/batch", + THINK_API_URL + '/think/think-order/batch', data ); if (res.data.code === 0) { @@ -110,7 +110,7 @@ export async function updateBatchThinkOrder(data: ThinkOrder[]) { */ export async function removeThinkOrder(id?: number) { const res = await request.delete>( - THINK_API_URL + "/think/think-order/" + id + THINK_API_URL + '/think/think-order/' + id ); if (res.data.code === 0) { return res.data.message; @@ -123,7 +123,7 @@ export async function removeThinkOrder(id?: number) { */ export async function removeBatchThinkOrder(data: (number | undefined)[]) { const res = await request.delete>( - THINK_API_URL + "/think/think-order/batch", + THINK_API_URL + '/think/think-order/batch', { data } @@ -139,7 +139,8 @@ export async function removeBatchThinkOrder(data: (number | undefined)[]) { */ export async function thinkOrderExport(params?: ThinkOrderParam) { const res = await request.post>( - THINK_API_URL + "/think/think-order/export", params + THINK_API_URL + '/think/think-order/export', + params ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -149,7 +150,8 @@ export async function thinkOrderExport(params?: ThinkOrderParam) { export async function thinkOrderExportData(params?: ThinkOrderParam) { const res = await request.post>( - THINK_API_URL + "/think/think-order/export-data", params + THINK_API_URL + '/think/think-order/export-data', + params ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -159,7 +161,7 @@ export async function thinkOrderExportData(params?: ThinkOrderParam) { export async function getThinkOrder(id: number) { const res = await request.get>( - THINK_API_URL + "/think/think-order/" + id + THINK_API_URL + '/think/think-order/' + id ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -169,7 +171,8 @@ export async function getThinkOrder(id: number) { export async function getThinkOrderExcelData(params?: ThinkOrderParam) { const res = await request.post>( - THINK_API_URL + "/think/think-order/excel-data", params + THINK_API_URL + '/think/think-order/excel-data', + params ); if (res.data.code === 0) { return res.data.data; @@ -179,7 +182,8 @@ export async function getThinkOrderExcelData(params?: ThinkOrderParam) { export async function getThinkOrderExcelDataForCard(params?: ThinkOrderParam) { const res = await request.post>( - THINK_API_URL + "/think/think-order/excel-data-for-card", params + THINK_API_URL + '/think/think-order/excel-data-for-card', + params ); if (res.data.code === 0) { return res.data.data; @@ -191,7 +195,7 @@ export async function getThinkOrderTrainingBusinessData( params?: ThinkOrderParam ) { const res = await request.post>( - THINK_API_URL + "/think/think-order/training-business-data", + THINK_API_URL + '/think/think-order/training-business-data', params ); if (res.data.code === 0) { @@ -204,7 +208,7 @@ export async function exportThinkOrderTrainingBusiness( params?: ThinkOrderParam ) { const res = await request.post>( - THINK_API_URL + "/think/think-order/training-business-export", + THINK_API_URL + '/think/think-order/training-business-export', params ); if (res.data.code === 0 && res.data.data) { diff --git a/src/api/think/thinkOrderInfo/model/index.ts b/src/api/think/thinkOrderInfo/model/index.ts index dcc2a4d..b9edd40 100644 --- a/src/api/think/thinkOrderInfo/model/index.ts +++ b/src/api/think/thinkOrderInfo/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkOrderInfo { - // + // id?: number; // 关联订单表id oid?: number; diff --git a/src/api/think/thinkOrderInfoLog/model/index.ts b/src/api/think/thinkOrderInfoLog/model/index.ts index a68130e..b866942 100644 --- a/src/api/think/thinkOrderInfoLog/model/index.ts +++ b/src/api/think/thinkOrderInfoLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkOrderInfoLog { - // + // id?: number; // 关联订单表id oid?: number; diff --git a/src/api/think/thinkOrderLog/model/index.ts b/src/api/think/thinkOrderLog/model/index.ts index 222d11d..2f900eb 100644 --- a/src/api/think/thinkOrderLog/model/index.ts +++ b/src/api/think/thinkOrderLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkOrderLog { - // + // id?: number; // 参数 json?: string; diff --git a/src/api/think/thinkOrderOffCheck/index.ts b/src/api/think/thinkOrderOffCheck/index.ts index 66bfc1f..aadc9fa 100644 --- a/src/api/think/thinkOrderOffCheck/index.ts +++ b/src/api/think/thinkOrderOffCheck/index.ts @@ -79,7 +79,9 @@ export async function removeThinkOrderOffCheck(id?: number) { /** * 批量删除折扣审核 */ -export async function removeBatchThinkOrderOffCheck(data: (number | undefined)[]) { +export async function removeBatchThinkOrderOffCheck( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-order-off-check/batch', { diff --git a/src/api/think/thinkOrderOffCheck/model/index.ts b/src/api/think/thinkOrderOffCheck/model/index.ts index 2cf132f..9d7d9e9 100644 --- a/src/api/think/thinkOrderOffCheck/model/index.ts +++ b/src/api/think/thinkOrderOffCheck/model/index.ts @@ -4,11 +4,11 @@ import type { PageParam } from '@/api'; * 折扣审核 */ export interface ThinkOrderOffCheck { - // + // id?: number; - // + // oid?: number; - // + // userId?: number; // 原价 originAmount?: string; diff --git a/src/api/think/thinkOrderRefundLog/model/index.ts b/src/api/think/thinkOrderRefundLog/model/index.ts index a458e46..f5c2e79 100644 --- a/src/api/think/thinkOrderRefundLog/model/index.ts +++ b/src/api/think/thinkOrderRefundLog/model/index.ts @@ -1,4 +1,4 @@ -import type { PageParam } from "@/api"; +import type { PageParam } from '@/api'; /** * 微信退款记录 diff --git a/src/api/think/thinkPayLog/model/index.ts b/src/api/think/thinkPayLog/model/index.ts index 328ec24..b2d408f 100644 --- a/src/api/think/thinkPayLog/model/index.ts +++ b/src/api/think/thinkPayLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 支付日志 */ export interface ThinkPayLog { - // + // id?: number; // 类型 type?: string; diff --git a/src/api/think/thinkQrcode/model/index.ts b/src/api/think/thinkQrcode/model/index.ts index f476f22..f8bf135 100644 --- a/src/api/think/thinkQrcode/model/index.ts +++ b/src/api/think/thinkQrcode/model/index.ts @@ -1,14 +1,14 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkQrcode { // 主键 id?: string; - // 二维码本身的值,大小不确定。可能为json,链接,文本 + // 二维码本身的值,大小不确定。可能为json,链接,文本 codeValue?: string; - // 关联的用户id,默认用户为uuid 即使为数字 转为字符保存 + // 关联的用户id,默认用户为uuid 即使为数字 转为字符保存 codeRelUser?: string; // 关联的用户类型 wechat: 微信用户 ,sys:系统用户,other:其他 userType?: string; @@ -22,7 +22,7 @@ export interface ThinkQrcode { codeUsabaleNumber?: number; // 二维码已经使用次数,可以超过可使用次数,不想建立一个记录表,用这个字段进行统计 codeUsNumber?: number; - // 二维码类型 valve:阀门;other:其他 ,后期继续添加 + // 二维码类型 valve:阀门;other:其他 ,后期继续添加 codeType?: string; // 二维码实际转发地址 : 预留字段 可能该系统不一定用到 codeForward?: string; diff --git a/src/api/think/thinkRechargeLog/index.ts b/src/api/think/thinkRechargeLog/index.ts index 95da3cb..ee394d4 100644 --- a/src/api/think/thinkRechargeLog/index.ts +++ b/src/api/think/thinkRechargeLog/index.ts @@ -109,7 +109,8 @@ export async function getThinkRechargeLog(id: number) { export async function thinkRechargeLogRefund(data: ThinkRechargeLog) { const res = await request.post>( - THINK_API_URL + '/think/think-recharge-log/refund', data + THINK_API_URL + '/think/think-recharge-log/refund', + data ); if (res.data.code === 0) { return res.data; diff --git a/src/api/think/thinkRechargeLog/model/index.ts b/src/api/think/thinkRechargeLog/model/index.ts index 51c4173..e34deb8 100644 --- a/src/api/think/thinkRechargeLog/model/index.ts +++ b/src/api/think/thinkRechargeLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkRechargeLog { - // + // id?: number; // 关联users表id uid?: number; @@ -16,11 +16,11 @@ export interface ThinkRechargeLog { money?: string; // 1已支付,2未支付 status?: string; - // + // createTime?: number; - // + // vid?: number; - // + // isInvoice?: number; // 对账情况:1=已对账;2=未对账;3=已对账,金额对不上;4=未查询到该订单 checkBill?: number; diff --git a/src/api/think/thinkSignup/model/index.ts b/src/api/think/thinkSignup/model/index.ts index 57dba76..d1f4f5f 100644 --- a/src/api/think/thinkSignup/model/index.ts +++ b/src/api/think/thinkSignup/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkSignup { - // + // id?: number; // 关联分类id cid?: number; @@ -32,9 +32,9 @@ export interface ThinkSignup { views?: number; // 是否显示:1显示,2不显示 isShow?: string; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkSignupCategory/model/index.ts b/src/api/think/thinkSignupCategory/model/index.ts index 7078bc6..bfa15e3 100644 --- a/src/api/think/thinkSignupCategory/model/index.ts +++ b/src/api/think/thinkSignupCategory/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkSignupCategory { - // + // id?: number; // 上级id pid?: number; @@ -14,9 +14,9 @@ export interface ThinkSignupCategory { image?: string; // 排序 sort?: number; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkSignupLists/model/index.ts b/src/api/think/thinkSignupLists/model/index.ts index c905452..0103a40 100644 --- a/src/api/think/thinkSignupLists/model/index.ts +++ b/src/api/think/thinkSignupLists/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkSignupLists { - // + // id?: number; // 微信订单号 wechatOrder?: string; @@ -20,11 +20,11 @@ export interface ThinkSignupLists { price?: string; // 是否已付款:1已付款,2未付款,3无需付款 status?: string; - // + // createTime?: number; - // + // age?: number; - // + // mun?: number; } diff --git a/src/api/think/thinkSiteImgs/model/index.ts b/src/api/think/thinkSiteImgs/model/index.ts index 73aeea8..fed7954 100644 --- a/src/api/think/thinkSiteImgs/model/index.ts +++ b/src/api/think/thinkSiteImgs/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkSiteImgs { - // + // id?: number; // 图片地址 path?: string; diff --git a/src/api/think/thinkSmallRecharge/index.ts b/src/api/think/thinkSmallRecharge/index.ts index 5a914cf..81a1006 100644 --- a/src/api/think/thinkSmallRecharge/index.ts +++ b/src/api/think/thinkSmallRecharge/index.ts @@ -79,7 +79,9 @@ export async function removeThinkSmallRecharge(id?: number) { /** * 批量删除 */ -export async function removeBatchThinkSmallRecharge(data: (number | undefined)[]) { +export async function removeBatchThinkSmallRecharge( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-small-recharge/batch', { diff --git a/src/api/think/thinkSmallRecharge/model/index.ts b/src/api/think/thinkSmallRecharge/model/index.ts index c38bb9a..447350d 100644 --- a/src/api/think/thinkSmallRecharge/model/index.ts +++ b/src/api/think/thinkSmallRecharge/model/index.ts @@ -1,22 +1,22 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkSmallRecharge { - // + // id?: number; - // + // cid?: number; - // + // vid?: number; - // + // uid?: number; - // + // amount?: string; // 下单时间 createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkUserBind/model/index.ts b/src/api/think/thinkUserBind/model/index.ts index a733994..9a4ec6f 100644 --- a/src/api/think/thinkUserBind/model/index.ts +++ b/src/api/think/thinkUserBind/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkUserBind { - // + // id?: number; // 旧用户id oldUserId?: number; diff --git a/src/api/think/thinkUserInAccess/index.ts b/src/api/think/thinkUserInAccess/index.ts index 74087e4..994a76c 100644 --- a/src/api/think/thinkUserInAccess/index.ts +++ b/src/api/think/thinkUserInAccess/index.ts @@ -79,7 +79,9 @@ export async function removeThinkUserInAccess(id?: number) { /** * 批量删除能刷脸开闸的用户列表 */ -export async function removeBatchThinkUserInAccess(data: (number | undefined)[]) { +export async function removeBatchThinkUserInAccess( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-user-in-access/batch', { diff --git a/src/api/think/thinkUserInAccess/model/index.ts b/src/api/think/thinkUserInAccess/model/index.ts index 939d183..bb7080d 100644 --- a/src/api/think/thinkUserInAccess/model/index.ts +++ b/src/api/think/thinkUserInAccess/model/index.ts @@ -4,9 +4,9 @@ import type { PageParam } from '@/api'; * 能刷脸开闸的用户列表 */ export interface ThinkUserInAccess { - // + // id?: number; - // + // uid?: number; } diff --git a/src/api/think/thinkUsers/model/index.ts b/src/api/think/thinkUsers/model/index.ts index ebecae1..9637f92 100644 --- a/src/api/think/thinkUsers/model/index.ts +++ b/src/api/think/thinkUsers/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkUsers { - // + // id?: number; // 用户唯一小程序id openId?: string; @@ -30,9 +30,9 @@ export interface ThinkUsers { money?: string; // 注册时间 createTime?: number; - // + // idcard?: string; - // + // truename?: string; // 是否管理员:1是;2否 isAdmin?: string; diff --git a/src/api/think/thinkUsersAddress/model/index.ts b/src/api/think/thinkUsersAddress/model/index.ts index 678d41e..59810c1 100644 --- a/src/api/think/thinkUsersAddress/model/index.ts +++ b/src/api/think/thinkUsersAddress/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkUsersAddress { - // + // id?: number; // 姓名 name?: string; @@ -18,9 +18,9 @@ export interface ThinkUsersAddress { uid?: number; // 1默认地址,2不是默认地址 isDefault?: string; - // + // createTime?: number; - // + // updateTime?: number; } diff --git a/src/api/think/thinkUsersCoupon/model/index.ts b/src/api/think/thinkUsersCoupon/model/index.ts index fc9c539..26c0df7 100644 --- a/src/api/think/thinkUsersCoupon/model/index.ts +++ b/src/api/think/thinkUsersCoupon/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkUsersCoupon { - // + // id?: number; // 微信订单号 wechatOrder?: string; diff --git a/src/api/think/thinkUsersEmergency/model/index.ts b/src/api/think/thinkUsersEmergency/model/index.ts index 20bceda..b72b599 100644 --- a/src/api/think/thinkUsersEmergency/model/index.ts +++ b/src/api/think/thinkUsersEmergency/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 紧急联系人表 */ export interface ThinkUsersEmergency { - // + // id?: number; // 用户id uid?: number; diff --git a/src/api/think/thinkUsersLog/model/index.ts b/src/api/think/thinkUsersLog/model/index.ts index c6b8958..11e0088 100644 --- a/src/api/think/thinkUsersLog/model/index.ts +++ b/src/api/think/thinkUsersLog/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkUsersLog { - // + // id?: number; // 用户ID uid?: number; diff --git a/src/api/think/thinkUsersVipBuyLog/index.ts b/src/api/think/thinkUsersVipBuyLog/index.ts index 21f5025..f674eb6 100644 --- a/src/api/think/thinkUsersVipBuyLog/index.ts +++ b/src/api/think/thinkUsersVipBuyLog/index.ts @@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting'; /** * 分页查询Vip购卡记录 */ -export async function pageThinkUsersVipBuyLog(params: ThinkUsersVipBuyLogParam) { +export async function pageThinkUsersVipBuyLog( + params: ThinkUsersVipBuyLogParam +) { const res = await request.get>>( MODULES_API_URL + '/think/think-users-vip-buy-log/page', { @@ -22,7 +24,9 @@ export async function pageThinkUsersVipBuyLog(params: ThinkUsersVipBuyLogParam) /** * 查询Vip购卡记录列表 */ -export async function listThinkUsersVipBuyLog(params?: ThinkUsersVipBuyLogParam) { +export async function listThinkUsersVipBuyLog( + params?: ThinkUsersVipBuyLogParam +) { const res = await request.get>( MODULES_API_URL + '/think/think-users-vip-buy-log', { @@ -79,7 +83,9 @@ export async function removeThinkUsersVipBuyLog(id?: number) { /** * 批量删除Vip购卡记录 */ -export async function removeBatchThinkUsersVipBuyLog(data: (number | undefined)[]) { +export async function removeBatchThinkUsersVipBuyLog( + data: (number | undefined)[] +) { const res = await request.delete>( MODULES_API_URL + '/think/think-users-vip-buy-log/batch', { diff --git a/src/api/think/thinkUsersVipBuyLog/model/index.ts b/src/api/think/thinkUsersVipBuyLog/model/index.ts index e869248..8f40644 100644 --- a/src/api/think/thinkUsersVipBuyLog/model/index.ts +++ b/src/api/think/thinkUsersVipBuyLog/model/index.ts @@ -4,19 +4,19 @@ import type { PageParam } from '@/api'; * Vip购卡记录 */ export interface ThinkUsersVipBuyLog { - // + // id?: number; - // + // uid?: number; - // + // orderNumber?: string; - // + // wechetNumber?: string; - // + // amount?: string; - // + // payStatus?: number; - // + // payTime?: string; // 状态, 0正常, 1冻结 status?: number; diff --git a/src/api/think/thinkUsersVipCancleLog/model/index.ts b/src/api/think/thinkUsersVipCancleLog/model/index.ts index 429463a..71daf12 100644 --- a/src/api/think/thinkUsersVipCancleLog/model/index.ts +++ b/src/api/think/thinkUsersVipCancleLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * VIP卡退卡日志 */ export interface ThinkUsersVipCancleLog { - // + // id?: number; // vip卡id dataId?: number; diff --git a/src/api/think/thinkVip/index.ts b/src/api/think/thinkVip/index.ts index e263c2c..1d37f0e 100644 --- a/src/api/think/thinkVip/index.ts +++ b/src/api/think/thinkVip/index.ts @@ -107,7 +107,8 @@ export async function getThinkVip(id: number) { export async function thinkVipTotal(params?: ThinkVipParam) { const res = await request.get>( - THINK_API_URL + '/think/think-vip/total', {params} + THINK_API_URL + '/think/think-vip/total', + { params } ); if (res.data.code === 0 && res.data.data) { return res.data.data; diff --git a/src/api/think/thinkVip/model/index.ts b/src/api/think/thinkVip/model/index.ts index 8b6dcb9..7941948 100644 --- a/src/api/think/thinkVip/model/index.ts +++ b/src/api/think/thinkVip/model/index.ts @@ -1,4 +1,3 @@ - /** * */ @@ -61,7 +60,7 @@ export interface ThinkVip { /** * 搜索条件 */ -export interface ThinkVipParam{ +export interface ThinkVipParam { id?: number; isSale?: number; trainingInstitutionId?: number; diff --git a/src/api/think/thinkVipCardsBills/index.ts b/src/api/think/thinkVipCardsBills/index.ts index 6c4d109..a421a16 100644 --- a/src/api/think/thinkVipCardsBills/index.ts +++ b/src/api/think/thinkVipCardsBills/index.ts @@ -35,7 +35,9 @@ export async function listThinkVipCardsBills(params?: ThinkVipCardsBillsParam) { return Promise.reject(new Error(res.data.message)); } -export async function thinkVipCardsBillsTotalAmount(params?: ThinkVipCardsBillsParam) { +export async function thinkVipCardsBillsTotalAmount( + params?: ThinkVipCardsBillsParam +) { const res = await request.get>( THINK_API_URL + '/think/think-vip-cards-bills/total-amount', { @@ -92,7 +94,9 @@ export async function removeThinkVipCardsBills(id?: number) { /** * 批量删除Vip卡每日账单 */ -export async function removeBatchThinkVipCardsBills(data: (number | undefined)[]) { +export async function removeBatchThinkVipCardsBills( + data: (number | undefined)[] +) { const res = await request.delete>( THINK_API_URL + '/think/think-vip-cards-bills/batch', { @@ -119,10 +123,11 @@ export async function getThinkVipCardsBills(id: number) { } export async function thinkVipCardsBillsExport(data: ThinkVipCardsBillsParam) { const res = await request.post>( - THINK_API_URL + '/think/think-vip-cards-bills/export', data + THINK_API_URL + '/think/think-vip-cards-bills/export', + data ); if (res.data.code === 0) { - return res.data + return res.data; } return Promise.reject(new Error(res.data.message)); } diff --git a/src/api/think/thinkWechatBill/model/index.ts b/src/api/think/thinkWechatBill/model/index.ts index 7696c16..aecbab1 100644 --- a/src/api/think/thinkWechatBill/model/index.ts +++ b/src/api/think/thinkWechatBill/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 微信订单表-对账用 */ export interface ThinkWechatBill { - // + // id?: number; // 订单时间 orderTime?: string; diff --git a/src/api/think/thinkWechatBillLog/model/index.ts b/src/api/think/thinkWechatBillLog/model/index.ts index b250290..79e0d19 100644 --- a/src/api/think/thinkWechatBillLog/model/index.ts +++ b/src/api/think/thinkWechatBillLog/model/index.ts @@ -4,7 +4,7 @@ import type { PageParam } from '@/api'; * 微信订单对账日志 */ export interface ThinkWechatBillLog { - // + // id?: number; // 表id tableId?: number; diff --git a/src/api/think/thinkWechatDeposit/model/index.ts b/src/api/think/thinkWechatDeposit/model/index.ts index 767f909..c32f433 100644 --- a/src/api/think/thinkWechatDeposit/model/index.ts +++ b/src/api/think/thinkWechatDeposit/model/index.ts @@ -1,10 +1,10 @@ import type { PageParam } from '@/api'; /** - * + * */ export interface ThinkWechatDeposit { - // + // id?: number; // 订单id oid?: number; @@ -14,7 +14,7 @@ export interface ThinkWechatDeposit { orderNum?: string; // 付款订单号 wechatOrder?: string; - // 退款订单号 + // 退款订单号 wechatReturn?: string; // 场馆名称 siteName?: string; @@ -28,7 +28,7 @@ export interface ThinkWechatDeposit { price?: string; // 押金状态,1已付款,2未付款,已退押金 status?: string; - // + // createTime?: number; } diff --git a/src/components/PayMethod/index.vue b/src/components/PayMethod/index.vue index 3ce2141..4547160 100644 --- a/src/components/PayMethod/index.vue +++ b/src/components/PayMethod/index.vue @@ -66,7 +66,7 @@ label: 'IC卡支付', key: 'ICCardPay', icon: 'IdcardOutlined' - }, + } ]); /* 更新选中数据 */ diff --git a/src/components/SelectApp/components/select-data.vue b/src/components/SelectApp/components/select-data.vue index 7375365..9bcaa2e 100644 --- a/src/components/SelectApp/components/select-data.vue +++ b/src/components/SelectApp/components/select-data.vue @@ -50,8 +50,8 @@ diff --git a/src/components/SelectDesign/components/select-data.vue b/src/components/SelectDesign/components/select-data.vue index 6e7d43b..9af8b31 100644 --- a/src/components/SelectDesign/components/select-data.vue +++ b/src/components/SelectDesign/components/select-data.vue @@ -115,7 +115,7 @@ }; const onRadio = (record: Design) => { - pageId.value = Number(record.pageId) + pageId.value = Number(record.pageId); updateVisible(false); emit('done', record); }; diff --git a/src/components/SelectFile/components/select-data.vue b/src/components/SelectFile/components/select-data.vue index 782524b..ebe824b 100644 --- a/src/components/SelectFile/components/select-data.vue +++ b/src/components/SelectFile/components/select-data.vue @@ -107,10 +107,10 @@ @@ -132,7 +132,7 @@ import { EditOutlined, UploadOutlined } from '@ant-design/icons-vue'; import { DictData } from '@/api/system/dict-data/model'; import { pageDictData } from '@/api/system/dict-data'; - import {isImage, openNew, openUrl} from '@/utils/common'; + import { isImage, openNew, openUrl } from '@/utils/common'; import { message } from 'ant-design-vue/es'; import FileRecordEdit from './file-record-edit.vue'; diff --git a/src/components/SelectFile/index.vue b/src/components/SelectFile/index.vue index 4da13ae..c0af394 100644 --- a/src/components/SelectFile/index.vue +++ b/src/components/SelectFile/index.vue @@ -44,11 +44,15 @@ diff --git a/src/main.ts b/src/main.ts index fc0a25d..a7e783f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,8 +5,8 @@ import router from './router'; import permission from './utils/permission'; import i18n from './i18n'; import './styles/index.less'; -import VueTianditu from "vue-tianditu" -import "vue-tianditu/lib/style.css"; +import VueTianditu from 'vue-tianditu'; +import 'vue-tianditu/lib/style.css'; const app = createApp(App); @@ -15,8 +15,8 @@ app.use(router); app.use(permission); app.use(i18n); app.use(VueTianditu, { - v: "4.0", //目前只支持4.0版本 - tk: "bfbc6bd9e85fcda67b62788705aa6427" + v: '4.0', //目前只支持4.0版本 + tk: 'bfbc6bd9e85fcda67b62788705aa6427' }); app.mount('#app'); diff --git a/src/views/approval/format.ts b/src/views/approval/format.ts index 7c31c68..a8f2d76 100644 --- a/src/views/approval/format.ts +++ b/src/views/approval/format.ts @@ -72,8 +72,8 @@ export function approvalStatusColor(status?: string): string { /** * 流程类型(flowCode)显示名。 * - * 后端目前没有暴露 flowCode 字典接口,选项在此静态维护; - * 新增单据类型时需同步本文件,后端提供字典接口后可改为远程加载。 + * 运行时优先用 `GET /approval/directory/flows` 的返回值覆盖本表; + * 静态表只作首屏兜底与接口不可用时的降级,因此新增单据不必再改前端。 */ export const APPROVAL_FLOW_NAMES: Record = { completion: '业务完成确认单', @@ -88,12 +88,37 @@ export const APPROVAL_FLOW_NAMES: Record = { }; /** - * 流程类型下拉选项 + * 流程类型下拉选项(静态兜底;页面以 `loadApprovalFlowOptions` 的返回为准) */ export const APPROVAL_FLOW_OPTIONS = Object.keys(APPROVAL_FLOW_NAMES).map( (value) => ({ label: APPROVAL_FLOW_NAMES[value], value }) ); +/** + * 用后端返回的流程类型覆盖本地显示名表,并返回下拉选项 + */ +export async function loadApprovalFlowOptions(): Promise< + Array<{ label: string; value: string }> +> { + try { + const { listApprovalFlows } = await import('@/api/approval/directory'); + const flows = await listApprovalFlows(); + flows.forEach((flow) => { + if (flow.flowCode && flow.flowName) { + APPROVAL_FLOW_NAMES[flow.flowCode] = flow.flowName; + } + }); + return flows + .filter((flow) => flow.flowCode && flow.flowName) + .map((flow) => ({ + label: flow.flowName as string, + value: flow.flowCode as string + })); + } catch { + return APPROVAL_FLOW_OPTIONS; + } +} + /** * 按 flowCode 取流程显示名;未知编码原样返回(降级为 docTypeName) */ diff --git a/src/views/approval/instance/components/search.vue b/src/views/approval/instance/components/search.vue index 914948f..80b1962 100644 --- a/src/views/approval/instance/components/search.vue +++ b/src/views/approval/instance/components/search.vue @@ -117,7 +117,7 @@ ApprovalQueryParam, ApprovalUser } from '@/api/approval/instance/model'; - import { APPROVAL_FLOW_OPTIONS } from '../../format'; + import { loadApprovalFlowOptions } from '../../format'; const emit = defineEmits<{ (e: 'search', where?: ApprovalQueryParam): void; @@ -159,8 +159,11 @@ { prop: 'status', label: '状态' } ]; - // 流程类型选项(后端暂未提供字典接口,见 format.ts) - const flowOptions = APPROVAL_FLOW_OPTIONS; + // 流程类型选项:取自后端单据实现注册表,新增单据自动出现 + const flowOptions = ref>([]); + loadApprovalFlowOptions().then((options) => { + flowOptions.value = options; + }); // 单据类型选项 const docTypeOptions = [ diff --git a/src/views/approval/todo/index.vue b/src/views/approval/todo/index.vue index 88609e8..97dc184 100644 --- a/src/views/approval/todo/index.vue +++ b/src/views/approval/todo/index.vue @@ -90,7 +90,7 @@ } from '@/api/approval/instance/model'; import { pageApprovalTodo } from '@/api/approval/instance'; import { - APPROVAL_FLOW_OPTIONS, + loadApprovalFlowOptions, approvalStatusColor, formatApprovalTime } from '../format'; @@ -113,8 +113,11 @@ keywords: undefined }); - // 流程类型选项(后端暂未提供字典接口,见 format.ts) - const flowOptions = APPROVAL_FLOW_OPTIONS; + // 流程类型选项:取自后端单据实现注册表,新增单据自动出现 + const flowOptions = ref>([]); + loadApprovalFlowOptions().then((options) => { + flowOptions.value = options; + }); // 状态选项 const statusOptions = [ diff --git a/src/views/booking/bookingCardPlan/index.vue b/src/views/booking/bookingCardPlan/index.vue index a803834..3e9b3f9 100644 --- a/src/views/booking/bookingCardPlan/index.vue +++ b/src/views/booking/bookingCardPlan/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingCardPlanEdit from './components/bookingCardPlanEdit.vue'; - import { pageBookingCardPlan, removeBookingCardPlan, removeBatchBookingCardPlan } from '@/api/booking/bookingCardPlan'; - import type { BookingCardPlan, BookingCardPlanParam } from '@/api/booking/bookingCardPlan/model'; + import { + pageBookingCardPlan, + removeBookingCardPlan, + removeBatchBookingCardPlan + } from '@/api/booking/bookingCardPlan'; + import type { + BookingCardPlan, + BookingCardPlanParam + } from '@/api/booking/bookingCardPlan/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,37 +116,37 @@ dataIndex: 'cardPlanId', key: 'cardPlanId', align: 'center', - width: 90, + width: 90 }, { title: '会员卡名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '标识', dataIndex: 'code', key: 'code', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '状态', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '排序号', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -150,7 +161,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingCardPlan(selection.value.map((d) => d.bookingCardPlanId)) + removeBatchBookingCardPlan( + selection.value.map((d) => d.bookingCardPlanId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingCashier/components/goods.vue b/src/views/booking/bookingCashier/components/goods.vue index 57e4e11..0c49cc9 100644 --- a/src/views/booking/bookingCashier/components/goods.vue +++ b/src/views/booking/bookingCashier/components/goods.vue @@ -107,9 +107,7 @@ import { listMerchant } from '@/api/shop/merchant'; import { getNext7day, getServerTime } from '@/api/layout'; import { getWeek } from '@/utils/common'; - import { - listBookingPeriod - } from '@/api/booking/bookingPeriod'; + import { listBookingPeriod } from '@/api/booking/bookingPeriod'; import { BookingPeriod, BookingPeriodParam diff --git a/src/views/booking/bookingCooperate/components/bookingCooperateEdit.vue b/src/views/booking/bookingCooperate/components/bookingCooperateEdit.vue index 59a5b94..0f41728 100644 --- a/src/views/booking/bookingCooperate/components/bookingCooperateEdit.vue +++ b/src/views/booking/bookingCooperate/components/bookingCooperateEdit.vue @@ -33,17 +33,15 @@ v-model:value="form.phone" /> - - - + + + { loading.value = false; @@ -191,12 +194,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingCooperate/index.vue b/src/views/booking/bookingCooperate/index.vue index 7eebe1d..ab7dc85 100644 --- a/src/views/booking/bookingCooperate/index.vue +++ b/src/views/booking/bookingCooperate/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingCooperateEdit from './components/bookingCooperateEdit.vue'; - import { pageBookingCooperate, removeBookingCooperate, removeBatchBookingCooperate } from '@/api/booking/bookingCooperate'; - import type { BookingCooperate, BookingCooperateParam } from '@/api/booking/bookingCooperate/model'; + import { + pageBookingCooperate, + removeBookingCooperate, + removeBatchBookingCooperate + } from '@/api/booking/bookingCooperate'; + import type { + BookingCooperate, + BookingCooperateParam + } from '@/api/booking/bookingCooperate/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'cooperateId', key: 'cooperateId', align: 'center', - width: 90, + width: 90 }, { title: '部门名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '咨询电话', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '状态', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '排序号', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingCooperate(selection.value.map((d) => d.bookingCooperateId)) + removeBatchBookingCooperate( + selection.value.map((d) => d.bookingCooperateId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingCooperateLog/components/bookingCooperateLogEdit.vue b/src/views/booking/bookingCooperateLog/components/bookingCooperateLogEdit.vue index fe8616b..6c5fbc5 100644 --- a/src/views/booking/bookingCooperateLog/components/bookingCooperateLogEdit.vue +++ b/src/views/booking/bookingCooperateLog/components/bookingCooperateLogEdit.vue @@ -40,17 +40,15 @@ v-model:value="form.phone" /> - - - + + + { loading.value = false; @@ -204,12 +207,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingCooperateLog/index.vue b/src/views/booking/bookingCooperateLog/index.vue index 10a75e7..e255363 100644 --- a/src/views/booking/bookingCooperateLog/index.vue +++ b/src/views/booking/bookingCooperateLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingCooperateLogEdit from './components/bookingCooperateLogEdit.vue'; - import { pageBookingCooperateLog, removeBookingCooperateLog, removeBatchBookingCooperateLog } from '@/api/booking/bookingCooperateLog'; - import type { BookingCooperateLog, BookingCooperateLogParam } from '@/api/booking/bookingCooperateLog/model'; + import { + pageBookingCooperateLog, + removeBookingCooperateLog, + removeBatchBookingCooperateLog + } from '@/api/booking/bookingCooperateLog'; + import type { + BookingCooperateLog, + BookingCooperateLogParam + } from '@/api/booking/bookingCooperateLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,49 +116,49 @@ dataIndex: 'logId', key: 'logId', align: 'center', - width: 90, + width: 90 }, { title: '关联ID', dataIndex: 'cooperateId', key: 'cooperateId', - align: 'center', + align: 'center' }, { title: '部门名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '咨询电话', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '状态', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '排序号', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -213,7 +224,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingCooperateLog(selection.value.map((d) => d.bookingCooperateLogId)) + removeBatchBookingCooperateLog( + selection.value.map((d) => d.bookingCooperateLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingCoupon/components/bookingCouponEdit.vue b/src/views/booking/bookingCoupon/components/bookingCouponEdit.vue index 97d14da..b332a6a 100644 --- a/src/views/booking/bookingCoupon/components/bookingCouponEdit.vue +++ b/src/views/booking/bookingCoupon/components/bookingCouponEdit.vue @@ -147,7 +147,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingCoupon, updateBookingCoupon } from '@/api/booking/bookingCoupon'; + import { + addBookingCoupon, + updateBookingCoupon + } from '@/api/booking/bookingCoupon'; import { BookingCoupon } from '@/api/booking/bookingCoupon/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -256,7 +259,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingCoupon : addBookingCoupon; + const saveOrUpdate = isUpdate.value + ? updateBookingCoupon + : addBookingCoupon; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -279,12 +284,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingCoupon/index.vue b/src/views/booking/bookingCoupon/index.vue index 3185bd1..9750eaf 100644 --- a/src/views/booking/bookingCoupon/index.vue +++ b/src/views/booking/bookingCoupon/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingCouponEdit from './components/bookingCouponEdit.vue'; - import { pageBookingCoupon, removeBookingCoupon, removeBatchBookingCoupon } from '@/api/booking/bookingCoupon'; - import type { BookingCoupon, BookingCouponParam } from '@/api/booking/bookingCoupon/model'; + import { + pageBookingCoupon, + removeBookingCoupon, + removeBatchBookingCoupon + } from '@/api/booking/bookingCoupon'; + import type { + BookingCoupon, + BookingCouponParam + } from '@/api/booking/bookingCoupon/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,103 +116,103 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '优惠券名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '优惠券类型(10满减券 20折扣券)', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '满减券-减免金额', dataIndex: 'reducePrice', key: 'reducePrice', - align: 'center', + align: 'center' }, { title: '折扣券-折扣率(0-100)', dataIndex: 'discount', key: 'discount', - align: 'center', + align: 'center' }, { title: '最低消费金额', dataIndex: 'minPrice', key: 'minPrice', - align: 'center', + align: 'center' }, { title: '到期类型(10领取后生效 20固定时间)', dataIndex: 'expireType', key: 'expireType', - align: 'center', + align: 'center' }, { title: '领取后生效-有效天数', dataIndex: 'expireDay', key: 'expireDay', - align: 'center', + align: 'center' }, { title: '有效期开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '有效期结束时间', dataIndex: 'endTime', key: 'endTime', - align: 'center', + align: 'center' }, { title: '适用范围(10全部商品 20指定商品)', dataIndex: 'applyRange', key: 'applyRange', - align: 'center', + align: 'center' }, { title: '适用范围配置(json格式)', dataIndex: 'applyRangeConfig', key: 'applyRangeConfig', - align: 'center', + align: 'center' }, { title: '是否过期(0未过期 1已过期)', dataIndex: 'isExpire', key: 'isExpire', - align: 'center', + align: 'center' }, { title: '排序(数字越小越靠前)', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '状态, 0待使用, 1已使用, 2已失效', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '用户ID', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '注册时间', @@ -216,7 +227,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/booking/bookingEmergency/components/bookingEmergencyEdit.vue b/src/views/booking/bookingEmergency/components/bookingEmergencyEdit.vue index c4ac1e7..6216b8e 100644 --- a/src/views/booking/bookingEmergency/components/bookingEmergencyEdit.vue +++ b/src/views/booking/bookingEmergency/components/bookingEmergencyEdit.vue @@ -78,7 +78,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingEmergency, updateBookingEmergency } from '@/api/booking/bookingEmergency'; + import { + addBookingEmergency, + updateBookingEmergency + } from '@/api/booking/bookingEmergency'; import { BookingEmergency } from '@/api/booking/bookingEmergency/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -177,7 +180,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingEmergency : addBookingEmergency; + const saveOrUpdate = isUpdate.value + ? updateBookingEmergency + : addBookingEmergency; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -200,12 +205,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingEmergency/index.vue b/src/views/booking/bookingEmergency/index.vue index f3e4447..fad49c3 100644 --- a/src/views/booking/bookingEmergency/index.vue +++ b/src/views/booking/bookingEmergency/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingEmergencyEdit from './components/bookingEmergencyEdit.vue'; - import { pageBookingEmergency, removeBookingEmergency, removeBatchBookingEmergency } from '@/api/booking/bookingEmergency'; - import type { BookingEmergency, BookingEmergencyParam } from '@/api/booking/bookingEmergency/model'; + import { + pageBookingEmergency, + removeBookingEmergency, + removeBatchBookingEmergency + } from '@/api/booking/bookingEmergency'; + import type { + BookingEmergency, + BookingEmergencyParam + } from '@/api/booking/bookingEmergency/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,49 +116,49 @@ dataIndex: 'emergencyId', key: 'emergencyId', align: 'center', - width: 90, + width: 90 }, { title: '姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '手机号', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '关联用户', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '商户ID', dataIndex: 'merchantId', key: 'merchantId', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '状态', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '排序号', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -213,7 +224,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingEmergency(selection.value.map((d) => d.bookingEmergencyId)) + removeBatchBookingEmergency( + selection.value.map((d) => d.bookingEmergencyId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingField/components/bookingFieldEdit.vue b/src/views/booking/bookingField/components/bookingFieldEdit.vue index d8787eb..bcda1c9 100644 --- a/src/views/booking/bookingField/components/bookingFieldEdit.vue +++ b/src/views/booking/bookingField/components/bookingFieldEdit.vue @@ -106,7 +106,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingField, updateBookingField } from '@/api/booking/bookingField'; + import { + addBookingField, + updateBookingField + } from '@/api/booking/bookingField'; import { BookingField } from '@/api/booking/bookingField/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -209,7 +212,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingField : addBookingField; + const saveOrUpdate = isUpdate.value + ? updateBookingField + : addBookingField; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -232,12 +237,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingIntegral/components/bookingIntegralEdit.vue b/src/views/booking/bookingIntegral/components/bookingIntegralEdit.vue index 297e263..0783493 100644 --- a/src/views/booking/bookingIntegral/components/bookingIntegralEdit.vue +++ b/src/views/booking/bookingIntegral/components/bookingIntegralEdit.vue @@ -55,11 +55,7 @@ /> - + @@ -69,7 +65,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingIntegral, updateBookingIntegral } from '@/api/booking/bookingIntegral'; + import { + addBookingIntegral, + updateBookingIntegral + } from '@/api/booking/bookingIntegral'; import { BookingIntegral } from '@/api/booking/bookingIntegral/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -167,7 +166,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingIntegral : addBookingIntegral; + const saveOrUpdate = isUpdate.value + ? updateBookingIntegral + : addBookingIntegral; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -190,12 +191,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingIntegralLog/components/bookingIntegralLogEdit.vue b/src/views/booking/bookingIntegralLog/components/bookingIntegralLogEdit.vue index 844b8db..091ecb0 100644 --- a/src/views/booking/bookingIntegralLog/components/bookingIntegralLogEdit.vue +++ b/src/views/booking/bookingIntegralLog/components/bookingIntegralLogEdit.vue @@ -90,7 +90,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingIntegralLog, updateBookingIntegralLog } from '@/api/booking/bookingIntegralLog'; + import { + addBookingIntegralLog, + updateBookingIntegralLog + } from '@/api/booking/bookingIntegralLog'; import { BookingIntegralLog } from '@/api/booking/bookingIntegralLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -191,7 +194,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingIntegralLog : addBookingIntegralLog; + const saveOrUpdate = isUpdate.value + ? updateBookingIntegralLog + : addBookingIntegralLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -214,12 +219,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingIntegralLog/index.vue b/src/views/booking/bookingIntegralLog/index.vue index 4557e4f..eb9c03f 100644 --- a/src/views/booking/bookingIntegralLog/index.vue +++ b/src/views/booking/bookingIntegralLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingIntegralLogEdit from './components/bookingIntegralLogEdit.vue'; - import { pageBookingIntegralLog, removeBookingIntegralLog, removeBatchBookingIntegralLog } from '@/api/booking/bookingIntegralLog'; - import type { BookingIntegralLog, BookingIntegralLogParam } from '@/api/booking/bookingIntegralLog/model'; + import { + pageBookingIntegralLog, + removeBookingIntegralLog, + removeBatchBookingIntegralLog + } from '@/api/booking/bookingIntegralLog'; + import type { + BookingIntegralLog, + BookingIntegralLogParam + } from '@/api/booking/bookingIntegralLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,61 +116,61 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '场馆订单号', dataIndex: 'orderNum', key: 'orderNum', - align: 'center', + align: 'center' }, { title: '订单id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '场馆名称', dataIndex: 'siteName', key: 'siteName', - align: 'center', + align: 'center' }, { title: '微信昵称', dataIndex: 'username', key: 'username', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '获得积分', dataIndex: 'integral', key: 'integral', - align: 'center', + align: 'center' }, { title: '变化前积分', dataIndex: 'oldMoney', key: 'oldMoney', - align: 'center', + align: 'center' }, { title: '变化后积分', dataIndex: 'newMoney', key: 'newMoney', - align: 'center', + align: 'center' }, { title: '描述', dataIndex: 'info', key: 'info', - align: 'center', + align: 'center' }, { title: '记录时间', @@ -225,7 +236,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingIntegralLog(selection.value.map((d) => d.bookingIntegralLogId)) + removeBatchBookingIntegralLog( + selection.value.map((d) => d.bookingIntegralLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingItem/components/bookingItemEdit.vue b/src/views/booking/bookingItem/components/bookingItemEdit.vue index a757f27..5c30903 100644 --- a/src/views/booking/bookingItem/components/bookingItemEdit.vue +++ b/src/views/booking/bookingItem/components/bookingItemEdit.vue @@ -26,17 +26,15 @@ v-model:value="form.name" /> - - - + + + { loading.value = false; @@ -188,12 +188,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingOrder/components/bookingOrderEdit.vue b/src/views/booking/bookingOrder/components/bookingOrderEdit.vue index 4bdcf83..73a9a26 100644 --- a/src/views/booking/bookingOrder/components/bookingOrderEdit.vue +++ b/src/views/booking/bookingOrder/components/bookingOrderEdit.vue @@ -110,7 +110,10 @@ v-model:value="form.totalPrice" /> - + - + - + - + - + - + - + { loading.value = false; @@ -426,12 +452,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingOrderInfo/components/bookingOrderInfoEdit.vue b/src/views/booking/bookingOrderInfo/components/bookingOrderInfoEdit.vue index ace5bb8..2c3bfa1 100644 --- a/src/views/booking/bookingOrderInfo/components/bookingOrderInfoEdit.vue +++ b/src/views/booking/bookingOrderInfo/components/bookingOrderInfoEdit.vue @@ -89,7 +89,10 @@ v-model:value="form.childrenNum" /> - + { loading.value = false; @@ -280,12 +288,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingOrderInfo/index.vue b/src/views/booking/bookingOrderInfo/index.vue index d2fddc2..85f3d40 100644 --- a/src/views/booking/bookingOrderInfo/index.vue +++ b/src/views/booking/bookingOrderInfo/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingOrderInfoEdit from './components/bookingOrderInfoEdit.vue'; - import { pageBookingOrderInfo, removeBookingOrderInfo, removeBatchBookingOrderInfo } from '@/api/booking/bookingOrderInfo'; - import type { BookingOrderInfo, BookingOrderInfoParam } from '@/api/booking/bookingOrderInfo/model'; + import { + pageBookingOrderInfo, + removeBookingOrderInfo, + removeBatchBookingOrderInfo + } from '@/api/booking/bookingOrderInfo'; + import type { + BookingOrderInfo, + BookingOrderInfoParam + } from '@/api/booking/bookingOrderInfo/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,115 +116,115 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '关联订单表id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '关联场馆id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '关联场地id', dataIndex: 'fid', key: 'fid', - align: 'center', + align: 'center' }, { title: '场馆', dataIndex: 'siteName', key: 'siteName', - align: 'center', + align: 'center' }, { title: '场地', dataIndex: 'fieldName', key: 'fieldName', - align: 'center', + align: 'center' }, { title: '预约时间段', dataIndex: 'dateTime', key: 'dateTime', - align: 'center', + align: 'center' }, { title: '单价', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '儿童价', dataIndex: 'childrenPrice', key: 'childrenPrice', - align: 'center', + align: 'center' }, { title: '成人人数', dataIndex: 'adultNum', key: 'adultNum', - align: 'center', + align: 'center' }, { title: '儿童人数', dataIndex: 'childrenNum', key: 'childrenNum', - align: 'center', + align: 'center' }, { title: '1已付款,2未付款,3无需付款或占用状态', dataIndex: 'payStatus', key: 'payStatus', - align: 'center', + align: 'center' }, { title: '是否免费:1免费、2收费', dataIndex: 'isFree', key: 'isFree', - align: 'center', + align: 'center' }, { title: '是否支持儿童票:1支持,2不支持', dataIndex: 'isChildren', key: 'isChildren', - align: 'center', + align: 'center' }, { title: '预订类型:1全场,2半场', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '组合数据:日期+时间段+场馆id+场地id', dataIndex: 'mergeData', key: 'mergeData', - align: 'center', + align: 'center' }, { title: '开场时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '下单时间', dataIndex: 'orderTime', key: 'orderTime', - align: 'center', + align: 'center' }, { title: '毫秒时间戳', dataIndex: 'timeFlag', key: 'timeFlag', - align: 'center', + align: 'center' }, { title: '操作', @@ -270,7 +281,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingOrderInfo(selection.value.map((d) => d.bookingOrderInfoId)) + removeBatchBookingOrderInfo( + selection.value.map((d) => d.bookingOrderInfoId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingPeriod/components/bookingPeriodEdit.vue b/src/views/booking/bookingPeriod/components/bookingPeriodEdit.vue index 63d6b2f..bb81b8a 100644 --- a/src/views/booking/bookingPeriod/components/bookingPeriodEdit.vue +++ b/src/views/booking/bookingPeriod/components/bookingPeriodEdit.vue @@ -120,7 +120,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingPeriod, updateBookingPeriod } from '@/api/booking/bookingPeriod'; + import { + addBookingPeriod, + updateBookingPeriod + } from '@/api/booking/bookingPeriod'; import { BookingPeriod } from '@/api/booking/bookingPeriod/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -225,7 +228,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingPeriod : addBookingPeriod; + const saveOrUpdate = isUpdate.value + ? updateBookingPeriod + : addBookingPeriod; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -248,12 +253,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingSite/components/bookingSiteEdit.vue b/src/views/booking/bookingSite/components/bookingSiteEdit.vue index e8c8afc..96c406c 100644 --- a/src/views/booking/bookingSite/components/bookingSiteEdit.vue +++ b/src/views/booking/bookingSite/components/bookingSiteEdit.vue @@ -350,7 +350,7 @@ status: 'done' }); } - console.log(images.value) + console.log(images.value); if (props.data.files) { const arr = JSON.parse(props.data.files); arr.map((item) => { diff --git a/src/views/booking/bookingUser/components/bookingUserEdit.vue b/src/views/booking/bookingUser/components/bookingUserEdit.vue index 9ef9ad3..255a0e8 100644 --- a/src/views/booking/bookingUser/components/bookingUserEdit.vue +++ b/src/views/booking/bookingUser/components/bookingUserEdit.vue @@ -97,11 +97,7 @@ /> - + { loading.value = false; @@ -254,12 +252,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingUserCard/components/bookingUserCardEdit.vue b/src/views/booking/bookingUserCard/components/bookingUserCardEdit.vue index e57c606..11fb832 100644 --- a/src/views/booking/bookingUserCard/components/bookingUserCardEdit.vue +++ b/src/views/booking/bookingUserCard/components/bookingUserCardEdit.vue @@ -165,7 +165,10 @@ v-model:value="form.month" /> - + - + - + { loading.value = false; @@ -445,12 +459,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingUserCoupon/components/bookingUserCouponEdit.vue b/src/views/booking/bookingUserCoupon/components/bookingUserCouponEdit.vue index f03b3e8..6cdb887 100644 --- a/src/views/booking/bookingUserCoupon/components/bookingUserCouponEdit.vue +++ b/src/views/booking/bookingUserCoupon/components/bookingUserCouponEdit.vue @@ -161,7 +161,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingUserCoupon, updateBookingUserCoupon } from '@/api/booking/bookingUserCoupon'; + import { + addBookingUserCoupon, + updateBookingUserCoupon + } from '@/api/booking/bookingUserCoupon'; import { BookingUserCoupon } from '@/api/booking/bookingUserCoupon/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -272,7 +275,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingUserCoupon : addBookingUserCoupon; + const saveOrUpdate = isUpdate.value + ? updateBookingUserCoupon + : addBookingUserCoupon; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -295,12 +300,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingUserCoupon/index.vue b/src/views/booking/bookingUserCoupon/index.vue index eb477e3..4fd5002 100644 --- a/src/views/booking/bookingUserCoupon/index.vue +++ b/src/views/booking/bookingUserCoupon/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingUserCouponEdit from './components/bookingUserCouponEdit.vue'; - import { pageBookingUserCoupon, removeBookingUserCoupon, removeBatchBookingUserCoupon } from '@/api/booking/bookingUserCoupon'; - import type { BookingUserCoupon, BookingUserCouponParam } from '@/api/booking/bookingUserCoupon/model'; + import { + pageBookingUserCoupon, + removeBookingUserCoupon, + removeBatchBookingUserCoupon + } from '@/api/booking/bookingUserCoupon'; + import type { + BookingUserCoupon, + BookingUserCouponParam + } from '@/api/booking/bookingUserCoupon/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,115 +116,115 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '优惠劵id', dataIndex: 'couponId', key: 'couponId', - align: 'center', + align: 'center' }, { title: '优惠券名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '优惠券类型(10满减券 20折扣券)', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '满减券-减免金额', dataIndex: 'reducePrice', key: 'reducePrice', - align: 'center', + align: 'center' }, { title: '折扣券-折扣率(0-100)', dataIndex: 'discount', key: 'discount', - align: 'center', + align: 'center' }, { title: '最低消费金额', dataIndex: 'minPrice', key: 'minPrice', - align: 'center', + align: 'center' }, { title: '到期类型(10领取后生效 20固定时间)', dataIndex: 'expireType', key: 'expireType', - align: 'center', + align: 'center' }, { title: '领取后生效-有效天数', dataIndex: 'expireDay', key: 'expireDay', - align: 'center', + align: 'center' }, { title: '有效期开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '有效期结束时间', dataIndex: 'endTime', key: 'endTime', - align: 'center', + align: 'center' }, { title: '适用范围(10全部商品 20指定商品)', dataIndex: 'applyRange', key: 'applyRange', - align: 'center', + align: 'center' }, { title: '适用范围配置(json格式)', dataIndex: 'applyRangeConfig', key: 'applyRangeConfig', - align: 'center', + align: 'center' }, { title: '是否过期(0未过期 1已过期)', dataIndex: 'isExpire', key: 'isExpire', - align: 'center', + align: 'center' }, { title: '是否已使用(0未使用 1已使用)', dataIndex: 'isUse', key: 'isUse', - align: 'center', + align: 'center' }, { title: '排序(数字越小越靠前)', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '状态, 0待使用, 1已使用, 2已失效', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '用户ID', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '注册时间', @@ -228,7 +239,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -285,7 +296,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingUserCoupon(selection.value.map((d) => d.bookingUserCouponId)) + removeBatchBookingUserCoupon( + selection.value.map((d) => d.bookingUserCouponId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingUserEmergency/components/bookingUserEmergencyEdit.vue b/src/views/booking/bookingUserEmergency/components/bookingUserEmergencyEdit.vue index 83ba142..9d39edf 100644 --- a/src/views/booking/bookingUserEmergency/components/bookingUserEmergencyEdit.vue +++ b/src/views/booking/bookingUserEmergency/components/bookingUserEmergencyEdit.vue @@ -78,7 +78,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingUserEmergency, updateBookingUserEmergency } from '@/api/booking/bookingUserEmergency'; + import { + addBookingUserEmergency, + updateBookingUserEmergency + } from '@/api/booking/bookingUserEmergency'; import { BookingUserEmergency } from '@/api/booking/bookingUserEmergency/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -176,7 +179,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingUserEmergency : addBookingUserEmergency; + const saveOrUpdate = isUpdate.value + ? updateBookingUserEmergency + : addBookingUserEmergency; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -199,12 +204,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingUserEmergency/index.vue b/src/views/booking/bookingUserEmergency/index.vue index 9fe6a71..4cae926 100644 --- a/src/views/booking/bookingUserEmergency/index.vue +++ b/src/views/booking/bookingUserEmergency/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingUserEmergencyEdit from './components/bookingUserEmergencyEdit.vue'; - import { pageBookingUserEmergency, removeBookingUserEmergency, removeBatchBookingUserEmergency } from '@/api/booking/bookingUserEmergency'; - import type { BookingUserEmergency, BookingUserEmergencyParam } from '@/api/booking/bookingUserEmergency/model'; + import { + pageBookingUserEmergency, + removeBookingUserEmergency, + removeBatchBookingUserEmergency + } from '@/api/booking/bookingUserEmergency'; + import type { + BookingUserEmergency, + BookingUserEmergencyParam + } from '@/api/booking/bookingUserEmergency/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '联系人姓名', dataIndex: 'contractName', key: 'contractName', - align: 'center', + align: 'center' }, { title: '联系人电话', dataIndex: 'contractPhone', key: 'contractPhone', - align: 'center', + align: 'center' }, { title: '联系人地址', dataIndex: 'contractAddress', key: 'contractAddress', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '是否默认', dataIndex: 'isDefault', key: 'isDefault', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -156,7 +167,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -213,7 +224,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingUserEmergency(selection.value.map((d) => d.bookingUserEmergencyId)) + removeBatchBookingUserEmergency( + selection.value.map((d) => d.bookingUserEmergencyId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingUserInvoice/components/bookingUserInvoiceEdit.vue b/src/views/booking/bookingUserInvoice/components/bookingUserInvoiceEdit.vue index 85f1758..a09c6ba 100644 --- a/src/views/booking/bookingUserInvoice/components/bookingUserInvoiceEdit.vue +++ b/src/views/booking/bookingUserInvoice/components/bookingUserInvoiceEdit.vue @@ -169,7 +169,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addBookingUserInvoice, updateBookingUserInvoice } from '@/api/booking/bookingUserInvoice'; + import { + addBookingUserInvoice, + updateBookingUserInvoice + } from '@/api/booking/bookingUserInvoice'; import { BookingUserInvoice } from '@/api/booking/bookingUserInvoice/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -281,7 +284,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateBookingUserInvoice : addBookingUserInvoice; + const saveOrUpdate = isUpdate.value + ? updateBookingUserInvoice + : addBookingUserInvoice; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -304,12 +309,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/booking/bookingUserInvoice/index.vue b/src/views/booking/bookingUserInvoice/index.vue index 061fa82..37c2940 100644 --- a/src/views/booking/bookingUserInvoice/index.vue +++ b/src/views/booking/bookingUserInvoice/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingUserInvoiceEdit from './components/bookingUserInvoiceEdit.vue'; - import { pageBookingUserInvoice, removeBookingUserInvoice, removeBatchBookingUserInvoice } from '@/api/booking/bookingUserInvoice'; - import type { BookingUserInvoice, BookingUserInvoiceParam } from '@/api/booking/bookingUserInvoice/model'; + import { + pageBookingUserInvoice, + removeBookingUserInvoice, + removeBatchBookingUserInvoice + } from '@/api/booking/bookingUserInvoice'; + import type { + BookingUserInvoice, + BookingUserInvoiceParam + } from '@/api/booking/bookingUserInvoice/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,121 +116,121 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '发票类型(0纸质 1电子)', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '发票名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '开票类型(0普票 1专票)', dataIndex: 'invoiceType', key: 'invoiceType', - align: 'center', + align: 'center' }, { title: '税号', dataIndex: 'invoiceCode', key: 'invoiceCode', - align: 'center', + align: 'center' }, { title: '公司地址', dataIndex: 'address', key: 'address', - align: 'center', + align: 'center' }, { title: '公司电话', dataIndex: 'tel', key: 'tel', - align: 'center', + align: 'center' }, { title: '开户行', dataIndex: 'bankName', key: 'bankName', - align: 'center', + align: 'center' }, { title: '开户账号', dataIndex: 'bankAccount', key: 'bankAccount', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '电子邮箱', dataIndex: 'email', key: 'email', - align: 'center', + align: 'center' }, { title: '发票流水号', dataIndex: 'invoiceNo', key: 'invoiceNo', - align: 'center', + align: 'center' }, { title: '发票图片预览', dataIndex: 'invoiceImg', key: 'invoiceImg', - align: 'center', + align: 'center' }, { title: '发票pdf地址', dataIndex: 'invoicePdf', key: 'invoicePdf', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '是否启用', dataIndex: 'isCompany', key: 'isCompany', - align: 'center', + align: 'center' }, { title: '排序(数字越小越靠前)', dataIndex: 'sortNumber', key: 'sortNumber', - align: 'center', + align: 'center' }, { title: '状态, 0待使用, 1已使用, 2已失效', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '用户ID', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -234,7 +245,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -291,7 +302,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingUserInvoice(selection.value.map((d) => d.bookingUserInvoiceId)) + removeBatchBookingUserInvoice( + selection.value.map((d) => d.bookingUserInvoiceId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/booking/bookingVip/components/bookingVipEdit.vue b/src/views/booking/bookingVip/components/bookingVipEdit.vue index 76bc5ba..fdd5a18 100644 --- a/src/views/booking/bookingVip/components/bookingVipEdit.vue +++ b/src/views/booking/bookingVip/components/bookingVipEdit.vue @@ -105,7 +105,10 @@ v-model:value="form.sortNumber" /> - + {{ data.payPrice }}元 - + diff --git a/src/views/booking/export/components/search.vue b/src/views/booking/export/components/search.vue index f06f55d..b015523 100644 --- a/src/views/booking/export/components/search.vue +++ b/src/views/booking/export/components/search.vue @@ -3,13 +3,23 @@ @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkAuthGroupEdit from './components/thinkAuthGroupEdit.vue'; - import { pageThinkAuthGroup, removeThinkAuthGroup, removeBatchThinkAuthGroup } from '@/api/think/thinkAuthGroup'; - import type { ThinkAuthGroup, ThinkAuthGroupParam } from '@/api/think/thinkAuthGroup/model'; + import { + pageThinkAuthGroup, + removeThinkAuthGroup, + removeBatchThinkAuthGroup + } from '@/api/think/thinkAuthGroup'; + import type { + ThinkAuthGroup, + ThinkAuthGroupParam + } from '@/api/think/thinkAuthGroup/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,25 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'rules', key: 'rules', - align: 'center', + align: 'center' }, { title: '', @@ -138,7 +149,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -195,7 +206,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkAuthGroup(selection.value.map((d) => d.thinkAuthGroupId)) + removeBatchThinkAuthGroup( + selection.value.map((d) => d.thinkAuthGroupId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkAuthGroupAccess/components/thinkAuthGroupAccessEdit.vue b/src/views/think/thinkAuthGroupAccess/components/thinkAuthGroupAccessEdit.vue index 8e903c4..432c05e 100644 --- a/src/views/think/thinkAuthGroupAccess/components/thinkAuthGroupAccessEdit.vue +++ b/src/views/think/thinkAuthGroupAccess/components/thinkAuthGroupAccessEdit.vue @@ -34,7 +34,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkAuthGroupAccess, updateThinkAuthGroupAccess } from '@/api/think/thinkAuthGroupAccess'; + import { + addThinkAuthGroupAccess, + updateThinkAuthGroupAccess + } from '@/api/think/thinkAuthGroupAccess'; import { ThinkAuthGroupAccess } from '@/api/think/thinkAuthGroupAccess/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -125,7 +128,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkAuthGroupAccess : addThinkAuthGroupAccess; + const saveOrUpdate = isUpdate.value + ? updateThinkAuthGroupAccess + : addThinkAuthGroupAccess; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -148,12 +153,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkAuthGroupAccess/index.vue b/src/views/think/thinkAuthGroupAccess/index.vue index 61761d2..3ba4ea8 100644 --- a/src/views/think/thinkAuthGroupAccess/index.vue +++ b/src/views/think/thinkAuthGroupAccess/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkAuthGroupAccessEdit from './components/thinkAuthGroupAccessEdit.vue'; - import { pageThinkAuthGroupAccess, removeThinkAuthGroupAccess, removeBatchThinkAuthGroupAccess } from '@/api/think/thinkAuthGroupAccess'; - import type { ThinkAuthGroupAccess, ThinkAuthGroupAccessParam } from '@/api/think/thinkAuthGroupAccess/model'; + import { + pageThinkAuthGroupAccess, + removeThinkAuthGroupAccess, + removeBatchThinkAuthGroupAccess + } from '@/api/think/thinkAuthGroupAccess'; + import type { + ThinkAuthGroupAccess, + ThinkAuthGroupAccessParam + } from '@/api/think/thinkAuthGroupAccess/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,13 +116,13 @@ dataIndex: 'uid', key: 'uid', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'groupId', key: 'groupId', - align: 'center', + align: 'center' }, { title: '操作', @@ -168,7 +179,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkAuthGroupAccess(selection.value.map((d) => d.thinkAuthGroupAccessId)) + removeBatchThinkAuthGroupAccess( + selection.value.map((d) => d.thinkAuthGroupAccessId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkAuthRule/components/thinkAuthRuleEdit.vue b/src/views/think/thinkAuthRule/components/thinkAuthRuleEdit.vue index 85c1547..1577106 100644 --- a/src/views/think/thinkAuthRule/components/thinkAuthRuleEdit.vue +++ b/src/views/think/thinkAuthRule/components/thinkAuthRuleEdit.vue @@ -20,25 +20,13 @@ " > - + - + - + @@ -89,7 +77,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkAuthRule, updateThinkAuthRule } from '@/api/think/thinkAuthRule'; + import { + addThinkAuthRule, + updateThinkAuthRule + } from '@/api/think/thinkAuthRule'; import { ThinkAuthRule } from '@/api/think/thinkAuthRule/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -189,7 +180,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkAuthRule : addThinkAuthRule; + const saveOrUpdate = isUpdate.value + ? updateThinkAuthRule + : addThinkAuthRule; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -212,12 +205,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkAuthRule/index.vue b/src/views/think/thinkAuthRule/index.vue index 176d2ae..6393ee4 100644 --- a/src/views/think/thinkAuthRule/index.vue +++ b/src/views/think/thinkAuthRule/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkAuthRuleEdit from './components/thinkAuthRuleEdit.vue'; - import { pageThinkAuthRule, removeThinkAuthRule, removeBatchThinkAuthRule } from '@/api/think/thinkAuthRule'; - import type { ThinkAuthRule, ThinkAuthRuleParam } from '@/api/think/thinkAuthRule/model'; + import { + pageThinkAuthRule, + removeThinkAuthRule, + removeBatchThinkAuthRule + } from '@/api/think/thinkAuthRule'; + import type { + ThinkAuthRule, + ThinkAuthRuleParam + } from '@/api/think/thinkAuthRule/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '样式', dataIndex: 'css', key: 'css', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'condition', key: 'condition', - align: 'center', + align: 'center' }, { title: '父栏目ID', dataIndex: 'pid', key: 'pid', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '添加时间', @@ -168,7 +179,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkBankCard/components/thinkBankCardEdit.vue b/src/views/think/thinkBankCard/components/thinkBankCardEdit.vue index c18cfaa..32d3dcd 100644 --- a/src/views/think/thinkBankCard/components/thinkBankCardEdit.vue +++ b/src/views/think/thinkBankCard/components/thinkBankCardEdit.vue @@ -62,7 +62,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkBankCard, updateThinkBankCard } from '@/api/think/thinkBankCard'; + import { + addThinkBankCard, + updateThinkBankCard + } from '@/api/think/thinkBankCard'; import { ThinkBankCard } from '@/api/think/thinkBankCard/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -157,7 +160,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkBankCard : addThinkBankCard; + const saveOrUpdate = isUpdate.value + ? updateThinkBankCard + : addThinkBankCard; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -180,12 +185,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkBankCard/index.vue b/src/views/think/thinkBankCard/index.vue index 5e593cb..ff6aaa3 100644 --- a/src/views/think/thinkBankCard/index.vue +++ b/src/views/think/thinkBankCard/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkBankCardEdit from './components/thinkBankCardEdit.vue'; - import { pageThinkBankCard, removeThinkBankCard, removeBatchThinkBankCard } from '@/api/think/thinkBankCard'; - import type { ThinkBankCard, ThinkBankCardParam } from '@/api/think/thinkBankCard/model'; + import { + pageThinkBankCard, + removeThinkBankCard, + removeBatchThinkBankCard + } from '@/api/think/thinkBankCard'; + import type { + ThinkBankCard, + ThinkBankCardParam + } from '@/api/think/thinkBankCard/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,37 +116,37 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户ID', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '银行卡号', dataIndex: 'cardId', key: 'cardId', - align: 'center', + align: 'center' }, { title: '所属银行', dataIndex: 'cardName', key: 'cardName', - align: 'center', + align: 'center' }, { title: '用户姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '手机号', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkCard/components/invoice.vue b/src/views/think/thinkCard/components/invoice.vue index 1f3dc1d..c8d43f0 100644 --- a/src/views/think/thinkCard/components/invoice.vue +++ b/src/views/think/thinkCard/components/invoice.vue @@ -117,10 +117,7 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { - doInvoice, - pageThinkInvoice, - } from '@/api/think/thinkInvoice'; + import { doInvoice, pageThinkInvoice } from '@/api/think/thinkInvoice'; import { ThinkInvoice } from '@/api/think/thinkInvoice/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -211,7 +208,6 @@ ] }); - const { resetFields } = useForm(form, rules); /* 保存编辑 */ diff --git a/src/views/think/thinkCard/components/makeICCard.vue b/src/views/think/thinkCard/components/makeICCard.vue index 4703c1f..d78f24a 100644 --- a/src/views/think/thinkCard/components/makeICCard.vue +++ b/src/views/think/thinkCard/components/makeICCard.vue @@ -22,7 +22,7 @@ - {{ item.name }} + {{ item.name }} @@ -68,187 +74,182 @@ diff --git a/src/views/think/thinkCard/components/thinkCardLog.vue b/src/views/think/thinkCard/components/thinkCardLog.vue index e61e9a3..f0fe049 100644 --- a/src/views/think/thinkCard/components/thinkCardLog.vue +++ b/src/views/think/thinkCard/components/thinkCardLog.vue @@ -29,7 +29,9 @@ {{ dayjs(record.startTime * 1000).format('YYYY-MM-DD') }} @@ -37,65 +39,67 @@ diff --git a/src/views/think/thinkCard/index.vue b/src/views/think/thinkCard/index.vue index ebf62e3..29e0ac9 100644 --- a/src/views/think/thinkCard/index.vue +++ b/src/views/think/thinkCard/index.vue @@ -86,9 +86,17 @@ :value="getRemainingDraft(record, 'num')" :disabled="isRemainingLoading(record.id, 'num')" style="width: 90px" - @update:value="(value) => setRemainingDraft(record, 'num', value)" + @update:value=" + (value) => setRemainingDraft(record, 'num', value) + " /> - 确认 + 确认 @@ -108,9 +117,18 @@ :value="getRemainingDraft(record, 'remainingMoney')" :disabled="isRemainingLoading(record.id, 'remainingMoney')" style="width: 100px" - @update:value="(value) => setRemainingDraft(record, 'remainingMoney', value)" + @update:value=" + (value) => + setRemainingDraft(record, 'remainingMoney', value) + " /> - 确认 + 确认 @@ -418,17 +437,29 @@ const remainingDrafts = reactive>({}); const remainingLoadingKey = ref(null); const remainingEditing = reactive>({}); - const remainingKey = (row: ThinkCard, field: 'num' | 'remainingMoney') => `${row.id ?? ''}-${field}`; - const getRemainingDraft = (row: ThinkCard, field: 'num' | 'remainingMoney') => { + const remainingKey = (row: ThinkCard, field: 'num' | 'remainingMoney') => + `${row.id ?? ''}-${field}`; + const getRemainingDraft = ( + row: ThinkCard, + field: 'num' | 'remainingMoney' + ) => { const key = remainingKey(row, field); - if (!(key in remainingDrafts)) remainingDrafts[key] = field === 'num' ? (row.num ?? 0) : (row.remainingMoney ?? ''); + if (!(key in remainingDrafts)) + remainingDrafts[key] = + field === 'num' ? row.num ?? 0 : row.remainingMoney ?? ''; return remainingDrafts[key]; }; - const setRemainingDraft = (row: ThinkCard, field: 'num' | 'remainingMoney', value: string | number | null) => { + const setRemainingDraft = ( + row: ThinkCard, + field: 'num' | 'remainingMoney', + value: string | number | null + ) => { remainingDrafts[remainingKey(row, field)] = value; }; - const isRemainingEditing = (row: ThinkCard, field: 'num' | 'remainingMoney') => - !!remainingEditing[remainingKey(row, field)]; + const isRemainingEditing = ( + row: ThinkCard, + field: 'num' | 'remainingMoney' + ) => !!remainingEditing[remainingKey(row, field)]; const editRemaining = (row: ThinkCard, field: 'num' | 'remainingMoney') => { if (!hasPermission('think:thinkCard:changeRemain')) return; getRemainingDraft(row, field); @@ -436,18 +467,35 @@ }; const isRemainingLoading = (id: number | undefined, field: string) => remainingLoadingKey.value === `${id ?? ''}-${field}`; - const saveRemaining = async (row: ThinkCard, field: 'num' | 'remainingMoney') => { + const saveRemaining = async ( + row: ThinkCard, + field: 'num' | 'remainingMoney' + ) => { if (!row.id) return; const value = getRemainingDraft(row, field); - if (value === null || value === '' || value === undefined || (field === 'num' && (!Number.isInteger(Number(value)) || Number(value) < 0))) { - message.error(field === 'num' ? '剩余次数必须是非负整数' : '请输入剩余金额'); + if ( + value === null || + value === '' || + value === undefined || + (field === 'num' && + (!Number.isInteger(Number(value)) || Number(value) < 0)) + ) { + message.error( + field === 'num' ? '剩余次数必须是非负整数' : '请输入剩余金额' + ); return; } const key = remainingKey(row, field); remainingLoadingKey.value = key; try { - await updateThinkCardRemaining({ id: row.id, ...(field === 'num' ? { num: Number(value) } : { remainingMoney: String(value) }) }); - if (field === 'num') row.num = Number(value); else row.remainingMoney = String(value); + await updateThinkCardRemaining({ + id: row.id, + ...(field === 'num' + ? { num: Number(value) } + : { remainingMoney: String(value) }) + }); + if (field === 'num') row.num = Number(value); + else row.remainingMoney = String(value); remainingEditing[key] = false; message.success('保存成功'); } catch (e: any) { diff --git a/src/views/think/thinkCardBalance/components/thinkCardBalanceEdit.vue b/src/views/think/thinkCardBalance/components/thinkCardBalanceEdit.vue index e4eae47..d652989 100644 --- a/src/views/think/thinkCardBalance/components/thinkCardBalanceEdit.vue +++ b/src/views/think/thinkCardBalance/components/thinkCardBalanceEdit.vue @@ -20,25 +20,13 @@ " > - + - + - + { loading.value = false; @@ -189,12 +182,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardBalance/index.vue b/src/views/think/thinkCardBalance/index.vue index 6e750a0..d28cedc 100644 --- a/src/views/think/thinkCardBalance/index.vue +++ b/src/views/think/thinkCardBalance/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCardBalanceEdit from './components/thinkCardBalanceEdit.vue'; - import { pageThinkCardBalance, removeThinkCardBalance, removeBatchThinkCardBalance } from '@/api/think/thinkCardBalance'; - import type { ThinkCardBalance, ThinkCardBalanceParam } from '@/api/think/thinkCardBalance/model'; + import { + pageThinkCardBalance, + removeThinkCardBalance, + removeBatchThinkCardBalance + } from '@/api/think/thinkCardBalance'; + import type { + ThinkCardBalance, + ThinkCardBalanceParam + } from '@/api/think/thinkCardBalance/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,37 +116,37 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'vid', key: 'vid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'balance', key: 'balance', - align: 'center', + align: 'center' }, { title: '每次减少金额', dataIndex: 'reduceEach', key: 'reduceEach', - align: 'center', + align: 'center' }, { title: '下单时间', @@ -150,7 +161,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCardBalance(selection.value.map((d) => d.thinkCardBalanceId)) + removeBatchThinkCardBalance( + selection.value.map((d) => d.thinkCardBalanceId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCardBindLog/components/thinkCardBindLogEdit.vue b/src/views/think/thinkCardBindLog/components/thinkCardBindLogEdit.vue index 36a650a..74aefbc 100644 --- a/src/views/think/thinkCardBindLog/components/thinkCardBindLogEdit.vue +++ b/src/views/think/thinkCardBindLog/components/thinkCardBindLogEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCardBindLog, updateThinkCardBindLog } from '@/api/think/thinkCardBindLog'; + import { + addThinkCardBindLog, + updateThinkCardBindLog + } from '@/api/think/thinkCardBindLog'; import { ThinkCardBindLog } from '@/api/think/thinkCardBindLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -134,7 +137,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCardBindLog : addThinkCardBindLog; + const saveOrUpdate = isUpdate.value + ? updateThinkCardBindLog + : addThinkCardBindLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -157,12 +162,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardBindLog/index.vue b/src/views/think/thinkCardBindLog/index.vue index 50ece61..06e735d 100644 --- a/src/views/think/thinkCardBindLog/index.vue +++ b/src/views/think/thinkCardBindLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCardBindLogEdit from './components/thinkCardBindLogEdit.vue'; - import { pageThinkCardBindLog, removeThinkCardBindLog, removeBatchThinkCardBindLog } from '@/api/think/thinkCardBindLog'; - import type { ThinkCardBindLog, ThinkCardBindLogParam } from '@/api/think/thinkCardBindLog/model'; + import { + pageThinkCardBindLog, + removeThinkCardBindLog, + removeBatchThinkCardBindLog + } from '@/api/think/thinkCardBindLog'; + import type { + ThinkCardBindLog, + ThinkCardBindLogParam + } from '@/api/think/thinkCardBindLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '参数', dataIndex: 'param', key: 'param', - align: 'center', + align: 'center' }, { title: '修改参数', dataIndex: 'editData', key: 'editData', - align: 'center', + align: 'center' }, { title: '添加时间', @@ -183,7 +194,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCardBindLog(selection.value.map((d) => d.thinkCardBindLogId)) + removeBatchThinkCardBindLog( + selection.value.map((d) => d.thinkCardBindLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCardDelLog/components/thinkCardDelLogEdit.vue b/src/views/think/thinkCardDelLog/components/thinkCardDelLogEdit.vue index 7aefd56..60dd067 100644 --- a/src/views/think/thinkCardDelLog/components/thinkCardDelLogEdit.vue +++ b/src/views/think/thinkCardDelLog/components/thinkCardDelLogEdit.vue @@ -48,7 +48,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCardDelLog, updateThinkCardDelLog } from '@/api/think/thinkCardDelLog'; + import { + addThinkCardDelLog, + updateThinkCardDelLog + } from '@/api/think/thinkCardDelLog'; import { ThinkCardDelLog } from '@/api/think/thinkCardDelLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -142,7 +145,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCardDelLog : addThinkCardDelLog; + const saveOrUpdate = isUpdate.value + ? updateThinkCardDelLog + : addThinkCardDelLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -165,12 +170,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardDelLog/index.vue b/src/views/think/thinkCardDelLog/index.vue index a08c699..3bf1d33 100644 --- a/src/views/think/thinkCardDelLog/index.vue +++ b/src/views/think/thinkCardDelLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCardDelLogEdit from './components/thinkCardDelLogEdit.vue'; - import { pageThinkCardDelLog, removeThinkCardDelLog, removeBatchThinkCardDelLog } from '@/api/think/thinkCardDelLog'; - import type { ThinkCardDelLog, ThinkCardDelLogParam } from '@/api/think/thinkCardDelLog/model'; + import { + pageThinkCardDelLog, + removeThinkCardDelLog, + removeBatchThinkCardDelLog + } from '@/api/think/thinkCardDelLog'; + import type { + ThinkCardDelLog, + ThinkCardDelLogParam + } from '@/api/think/thinkCardDelLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,25 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '操作用户', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '类型:1VIP卡,2IC卡', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '原数据', dataIndex: 'oldJson', key: 'oldJson', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -189,7 +200,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCardDelLog(selection.value.map((d) => d.thinkCardDelLogId)) + removeBatchThinkCardDelLog( + selection.value.map((d) => d.thinkCardDelLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCardEditLog/components/thinkCardEditLogEdit.vue b/src/views/think/thinkCardEditLog/components/thinkCardEditLogEdit.vue index 01cbf69..341b99e 100644 --- a/src/views/think/thinkCardEditLog/components/thinkCardEditLogEdit.vue +++ b/src/views/think/thinkCardEditLog/components/thinkCardEditLogEdit.vue @@ -19,7 +19,10 @@ styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " > - + { loading.value = false; @@ -173,12 +181,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardEditLog/index.vue b/src/views/think/thinkCardEditLog/index.vue index a5fa15b..3788eee 100644 --- a/src/views/think/thinkCardEditLog/index.vue +++ b/src/views/think/thinkCardEditLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCardEditLogEdit from './components/thinkCardEditLogEdit.vue'; - import { pageThinkCardEditLog, removeThinkCardEditLog, removeBatchThinkCardEditLog } from '@/api/think/thinkCardEditLog'; - import type { ThinkCardEditLog, ThinkCardEditLogParam } from '@/api/think/thinkCardEditLog/model'; + import { + pageThinkCardEditLog, + removeThinkCardEditLog, + removeBatchThinkCardEditLog + } from '@/api/think/thinkCardEditLog'; + import type { + ThinkCardEditLog, + ThinkCardEditLogParam + } from '@/api/think/thinkCardEditLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,26 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { - title: '操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期;', + title: + '操作类型:price=更新价格;card_type=卡种;count=变更次数;expire=有效期;', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '旧值', dataIndex: 'oldJson', key: 'oldJson', - align: 'center', + align: 'center' }, { title: '新值', dataIndex: 'newJson', key: 'newJson', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -138,7 +150,7 @@ title: '操作员id', dataIndex: 'aid', key: 'aid', - align: 'center', + align: 'center' }, { title: '操作', @@ -195,7 +207,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCardEditLog(selection.value.map((d) => d.thinkCardEditLogId)) + removeBatchThinkCardEditLog( + selection.value.map((d) => d.thinkCardEditLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCardLog/components/search.vue b/src/views/think/thinkCardLog/components/search.vue index a3a3bf0..b5b12ad 100644 --- a/src/views/think/thinkCardLog/components/search.vue +++ b/src/views/think/thinkCardLog/components/search.vue @@ -43,7 +43,10 @@ ThinkCardLog, ThinkCardLogParam } from '@/api/think/thinkCardLog/model'; - import { listThinkCardLog, thinkCardLogExport } from "@/api/think/thinkCardLog"; + import { + listThinkCardLog, + thinkCardLogExport + } from '@/api/think/thinkCardLog'; const props = withDefaults( defineProps<{ @@ -106,7 +109,7 @@ // 导出 const handleExport = async () => { loading.value = true; - const res = await thinkCardLogExport(where) + const res = await thinkCardLogExport(where); window.open(res.data.url); }; diff --git a/src/views/think/thinkCardUserLog/components/thinkCardUserLogEdit.vue b/src/views/think/thinkCardUserLog/components/thinkCardUserLogEdit.vue index f7e2f22..88093b5 100644 --- a/src/views/think/thinkCardUserLog/components/thinkCardUserLogEdit.vue +++ b/src/views/think/thinkCardUserLog/components/thinkCardUserLogEdit.vue @@ -19,7 +19,10 @@ styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " > - + - + { loading.value = false; @@ -189,12 +200,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardUserLog/index.vue b/src/views/think/thinkCardUserLog/index.vue index c3ee2c3..8a98750 100644 --- a/src/views/think/thinkCardUserLog/index.vue +++ b/src/views/think/thinkCardUserLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCardUserLogEdit from './components/thinkCardUserLogEdit.vue'; - import { pageThinkCardUserLog, removeThinkCardUserLog, removeBatchThinkCardUserLog } from '@/api/think/thinkCardUserLog'; - import type { ThinkCardUserLog, ThinkCardUserLogParam } from '@/api/think/thinkCardUserLog/model'; + import { + pageThinkCardUserLog, + removeThinkCardUserLog, + removeBatchThinkCardUserLog + } from '@/api/think/thinkCardUserLog'; + import type { + ThinkCardUserLog, + ThinkCardUserLogParam + } from '@/api/think/thinkCardUserLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '会员卡类型:1年卡,2次卡,3月卡,4会员VIP,VIP充值卡', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '卡类型:1成人卡,2儿童卡', dataIndex: 'cardType', key: 'cardType', - align: 'center', + align: 'center' }, { title: 'vip卡等级类型:1特殊vip卡,2普通vip卡', dataIndex: 'vipType', key: 'vipType', - align: 'center', + align: 'center' }, { title: '统计金额(正是收入,负是冲抵(退卡后产生))', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '', @@ -144,13 +155,13 @@ title: '虚拟卡ID', dataIndex: 'usersVipId', key: 'usersVipId', - align: 'center', + align: 'center' }, { title: '实体卡id', dataIndex: 'cardId', key: 'cardId', - align: 'center', + align: 'center' }, { title: '操作', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCardUserLog(selection.value.map((d) => d.thinkCardUserLogId)) + removeBatchThinkCardUserLog( + selection.value.map((d) => d.thinkCardUserLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCardsBills/components/search.vue b/src/views/think/thinkCardsBills/components/search.vue index 9cf3b66..0c39959 100644 --- a/src/views/think/thinkCardsBills/components/search.vue +++ b/src/views/think/thinkCardsBills/components/search.vue @@ -16,58 +16,57 @@ diff --git a/src/views/think/thinkCardsBills/components/thinkCardsBillsEdit.vue b/src/views/think/thinkCardsBills/components/thinkCardsBillsEdit.vue index 2d84cf5..bd4770a 100644 --- a/src/views/think/thinkCardsBills/components/thinkCardsBillsEdit.vue +++ b/src/views/think/thinkCardsBills/components/thinkCardsBillsEdit.vue @@ -20,34 +20,21 @@ " > - + - + - + - + - + 显示 隐藏 @@ -75,7 +62,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCardsBills, updateThinkCardsBills } from '@/api/think/thinkCardsBills'; + import { + addThinkCardsBills, + updateThinkCardsBills + } from '@/api/think/thinkCardsBills'; import { ThinkCardsBills } from '@/api/think/thinkCardsBills/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -174,7 +164,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCardsBills : addThinkCardsBills; + const saveOrUpdate = isUpdate.value + ? updateThinkCardsBills + : addThinkCardsBills; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -197,12 +189,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCardsBills/index.vue b/src/views/think/thinkCardsBills/index.vue index ff03f70..29df397 100644 --- a/src/views/think/thinkCardsBills/index.vue +++ b/src/views/think/thinkCardsBills/index.vue @@ -42,186 +42,195 @@ - + diff --git a/src/views/think/thinkCarousel/components/thinkCarouselEdit.vue b/src/views/think/thinkCarousel/components/thinkCarouselEdit.vue index d93b234..3db01e4 100644 --- a/src/views/think/thinkCarousel/components/thinkCarouselEdit.vue +++ b/src/views/think/thinkCarousel/components/thinkCarouselEdit.vue @@ -82,7 +82,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCarousel, updateThinkCarousel } from '@/api/think/thinkCarousel'; + import { + addThinkCarousel, + updateThinkCarousel + } from '@/api/think/thinkCarousel'; import { ThinkCarousel } from '@/api/think/thinkCarousel/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -181,7 +184,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCarousel : addThinkCarousel; + const saveOrUpdate = isUpdate.value + ? updateThinkCarousel + : addThinkCarousel; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -204,12 +209,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCarousel/index.vue b/src/views/think/thinkCarousel/index.vue index b833f64..2e79845 100644 --- a/src/views/think/thinkCarousel/index.vue +++ b/src/views/think/thinkCarousel/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCarouselEdit from './components/thinkCarouselEdit.vue'; - import { pageThinkCarousel, removeThinkCarousel, removeBatchThinkCarousel } from '@/api/think/thinkCarousel'; - import type { ThinkCarousel, ThinkCarouselParam } from '@/api/think/thinkCarousel/model'; + import { + pageThinkCarousel, + removeThinkCarousel, + removeBatchThinkCarousel + } from '@/api/think/thinkCarousel'; + import type { + ThinkCarousel, + ThinkCarouselParam + } from '@/api/think/thinkCarousel/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,49 +116,49 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '轮播图标题', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '轮播图', dataIndex: 'img', key: 'img', - align: 'center', + align: 'center' }, { title: '轮播图链接', dataIndex: 'link', key: 'link', - align: 'center', + align: 'center' }, { title: '小程序APPID', dataIndex: 'appid', key: 'appid', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '1显示,2不显示', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '类型:1资讯,2商城,3小程序', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '', @@ -162,7 +173,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkCoach/components/thinkCoachEdit.vue b/src/views/think/thinkCoach/components/thinkCoachEdit.vue index f6fdaf8..34c65b1 100644 --- a/src/views/think/thinkCoach/components/thinkCoachEdit.vue +++ b/src/views/think/thinkCoach/components/thinkCoachEdit.vue @@ -221,12 +221,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoach/index.vue b/src/views/think/thinkCoach/index.vue index eed44ba..44193f2 100644 --- a/src/views/think/thinkCoach/index.vue +++ b/src/views/think/thinkCoach/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachEdit from './components/thinkCoachEdit.vue'; - import { pageThinkCoach, removeThinkCoach, removeBatchThinkCoach } from '@/api/think/thinkCoach'; - import type { ThinkCoach, ThinkCoachParam } from '@/api/think/thinkCoach/model'; + import { + pageThinkCoach, + removeThinkCoach, + removeBatchThinkCoach + } from '@/api/think/thinkCoach'; + import type { + ThinkCoach, + ThinkCoachParam + } from '@/api/think/thinkCoach/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户表ID', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '教练姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '所在场馆', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '教练简介', dataIndex: 'intro', key: 'intro', - align: 'center', + align: 'center' }, { title: '教练介绍', dataIndex: 'info', key: 'info', - align: 'center', + align: 'center' }, { title: '价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '教练图片', dataIndex: 'cimage', key: 'cimage', - align: 'center', + align: 'center' }, { title: '等级', dataIndex: 'level', key: 'level', - align: 'center', + align: 'center' }, { title: '添加时间', @@ -168,13 +179,13 @@ title: '所在时间段', dataIndex: 'timePeriod', key: 'timePeriod', - align: 'center', + align: 'center' }, { title: '教练余额', dataIndex: 'coachMoney', key: 'coachMoney', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkCoachCash/components/thinkCoachCashEdit.vue b/src/views/think/thinkCoachCash/components/thinkCoachCashEdit.vue index 64a8407..ee12eaf 100644 --- a/src/views/think/thinkCoachCash/components/thinkCoachCashEdit.vue +++ b/src/views/think/thinkCoachCash/components/thinkCoachCashEdit.vue @@ -61,7 +61,10 @@ v-model:value="form.addtime" /> - + 显示 隐藏 @@ -82,7 +85,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCoachCash, updateThinkCoachCash } from '@/api/think/thinkCoachCash'; + import { + addThinkCoachCash, + updateThinkCoachCash + } from '@/api/think/thinkCoachCash'; import { ThinkCoachCash } from '@/api/think/thinkCoachCash/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -180,7 +186,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoachCash : addThinkCoachCash; + const saveOrUpdate = isUpdate.value + ? updateThinkCoachCash + : addThinkCoachCash; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -203,12 +211,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoachCash/index.vue b/src/views/think/thinkCoachCash/index.vue index d8f7af5..d77e93d 100644 --- a/src/views/think/thinkCoachCash/index.vue +++ b/src/views/think/thinkCoachCash/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachCashEdit from './components/thinkCoachCashEdit.vue'; - import { pageThinkCoachCash, removeThinkCoachCash, removeBatchThinkCoachCash } from '@/api/think/thinkCoachCash'; - import type { ThinkCoachCash, ThinkCoachCashParam } from '@/api/think/thinkCoachCash/model'; + import { + pageThinkCoachCash, + removeThinkCoachCash, + removeBatchThinkCoachCash + } from '@/api/think/thinkCoachCash'; + import type { + ThinkCoachCash, + ThinkCoachCashParam + } from '@/api/think/thinkCoachCash/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '教练ID', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '银行卡信息ID', dataIndex: 'cardId', key: 'cardId', - align: 'center', + align: 'center' }, { title: '提现金额', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '提现所剩金额', dataIndex: 'coachMoney', key: 'coachMoney', - align: 'center', + align: 'center' }, { title: '当前金额', dataIndex: 'nowMoney', key: 'nowMoney', - align: 'center', + align: 'center' }, { title: '添加时间', dataIndex: 'addtime', key: 'addtime', - align: 'center', + align: 'center' }, { title: '状态(0待审核,1审核通过,2审核不通过)', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '审核时间', dataIndex: 'staTime', key: 'staTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -210,7 +221,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCoachCash(selection.value.map((d) => d.thinkCoachCashId)) + removeBatchThinkCoachCash( + selection.value.map((d) => d.thinkCoachCashId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCoachCur/components/thinkCoachCurEdit.vue b/src/views/think/thinkCoachCur/components/thinkCoachCurEdit.vue index 48c196d..39f479a 100644 --- a/src/views/think/thinkCoachCur/components/thinkCoachCurEdit.vue +++ b/src/views/think/thinkCoachCur/components/thinkCoachCurEdit.vue @@ -68,7 +68,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCoachCur, updateThinkCoachCur } from '@/api/think/thinkCoachCur'; + import { + addThinkCoachCur, + updateThinkCoachCur + } from '@/api/think/thinkCoachCur'; import { ThinkCoachCur } from '@/api/think/thinkCoachCur/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -164,7 +167,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoachCur : addThinkCoachCur; + const saveOrUpdate = isUpdate.value + ? updateThinkCoachCur + : addThinkCoachCur; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -187,12 +192,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoachCur/index.vue b/src/views/think/thinkCoachCur/index.vue index 7edf488..7d60195 100644 --- a/src/views/think/thinkCoachCur/index.vue +++ b/src/views/think/thinkCoachCur/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachCurEdit from './components/thinkCoachCurEdit.vue'; - import { pageThinkCoachCur, removeThinkCoachCur, removeBatchThinkCoachCur } from '@/api/think/thinkCoachCur'; - import type { ThinkCoachCur, ThinkCoachCurParam } from '@/api/think/thinkCoachCur/model'; + import { + pageThinkCoachCur, + removeThinkCoachCur, + removeBatchThinkCoachCur + } from '@/api/think/thinkCoachCur'; + import type { + ThinkCoachCur, + ThinkCoachCurParam + } from '@/api/think/thinkCoachCur/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '教练ID', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '课程名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '教学备注', dataIndex: 'remake', key: 'remake', - align: 'center', + align: 'center' }, { title: '教学内容', dataIndex: 'info', key: 'info', - align: 'center', + align: 'center' }, { title: '价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '类型(0课程,1小时)', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkCoachImgs/components/thinkCoachImgsEdit.vue b/src/views/think/thinkCoachImgs/components/thinkCoachImgsEdit.vue index 41d3bc0..e316c2d 100644 --- a/src/views/think/thinkCoachImgs/components/thinkCoachImgsEdit.vue +++ b/src/views/think/thinkCoachImgs/components/thinkCoachImgsEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCoachImgs, updateThinkCoachImgs } from '@/api/think/thinkCoachImgs'; + import { + addThinkCoachImgs, + updateThinkCoachImgs + } from '@/api/think/thinkCoachImgs'; import { ThinkCoachImgs } from '@/api/think/thinkCoachImgs/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -133,7 +136,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoachImgs : addThinkCoachImgs; + const saveOrUpdate = isUpdate.value + ? updateThinkCoachImgs + : addThinkCoachImgs; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -156,12 +161,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoachImgs/index.vue b/src/views/think/thinkCoachImgs/index.vue index 9d3c7aa..caa2ad6 100644 --- a/src/views/think/thinkCoachImgs/index.vue +++ b/src/views/think/thinkCoachImgs/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachImgsEdit from './components/thinkCoachImgsEdit.vue'; - import { pageThinkCoachImgs, removeThinkCoachImgs, removeBatchThinkCoachImgs } from '@/api/think/thinkCoachImgs'; - import type { ThinkCoachImgs, ThinkCoachImgsParam } from '@/api/think/thinkCoachImgs/model'; + import { + pageThinkCoachImgs, + removeThinkCoachImgs, + removeBatchThinkCoachImgs + } from '@/api/think/thinkCoachImgs'; + import type { + ThinkCoachImgs, + ThinkCoachImgsParam + } from '@/api/think/thinkCoachImgs/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '图片地址', dataIndex: 'path', key: 'path', - align: 'center', + align: 'center' }, { title: '关联id', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '操作', @@ -174,7 +185,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCoachImgs(selection.value.map((d) => d.thinkCoachImgsId)) + removeBatchThinkCoachImgs( + selection.value.map((d) => d.thinkCoachImgsId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCoachOrder/components/thinkCoachOrderEdit.vue b/src/views/think/thinkCoachOrder/components/thinkCoachOrderEdit.vue index d5059d6..716ec8a 100644 --- a/src/views/think/thinkCoachOrder/components/thinkCoachOrderEdit.vue +++ b/src/views/think/thinkCoachOrder/components/thinkCoachOrderEdit.vue @@ -83,7 +83,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCoachOrder, updateThinkCoachOrder } from '@/api/think/thinkCoachOrder'; + import { + addThinkCoachOrder, + updateThinkCoachOrder + } from '@/api/think/thinkCoachOrder'; import { ThinkCoachOrder } from '@/api/think/thinkCoachOrder/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -181,7 +184,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoachOrder : addThinkCoachOrder; + const saveOrUpdate = isUpdate.value + ? updateThinkCoachOrder + : addThinkCoachOrder; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -204,12 +209,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoachOrder/index.vue b/src/views/think/thinkCoachOrder/index.vue index 53e9878..e6b4fca 100644 --- a/src/views/think/thinkCoachOrder/index.vue +++ b/src/views/think/thinkCoachOrder/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachOrderEdit from './components/thinkCoachOrderEdit.vue'; - import { pageThinkCoachOrder, removeThinkCoachOrder, removeBatchThinkCoachOrder } from '@/api/think/thinkCoachOrder'; - import type { ThinkCoachOrder, ThinkCoachOrderParam } from '@/api/think/thinkCoachOrder/model'; + import { + pageThinkCoachOrder, + removeThinkCoachOrder, + removeBatchThinkCoachOrder + } from '@/api/think/thinkCoachOrder'; + import type { + ThinkCoachOrder, + ThinkCoachOrderParam + } from '@/api/think/thinkCoachOrder/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '场馆ID', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '订单详情ID', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '教练ID', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '教练价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '预约时间', dataIndex: 'orderTime', key: 'orderTime', - align: 'center', + align: 'center' }, { title: '预约人姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '预约人手机号', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '添加时间', dataIndex: 'addtime', key: 'addtime', - align: 'center', + align: 'center' }, { title: '操作', @@ -210,7 +221,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCoachOrder(selection.value.map((d) => d.thinkCoachOrderId)) + removeBatchThinkCoachOrder( + selection.value.map((d) => d.thinkCoachOrderId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkCoachTime/components/thinkCoachTimeEdit.vue b/src/views/think/thinkCoachTime/components/thinkCoachTimeEdit.vue index ddbe4d7..dc706df 100644 --- a/src/views/think/thinkCoachTime/components/thinkCoachTimeEdit.vue +++ b/src/views/think/thinkCoachTime/components/thinkCoachTimeEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkCoachTime, updateThinkCoachTime } from '@/api/think/thinkCoachTime'; + import { + addThinkCoachTime, + updateThinkCoachTime + } from '@/api/think/thinkCoachTime'; import { ThinkCoachTime } from '@/api/think/thinkCoachTime/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -133,7 +136,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoachTime : addThinkCoachTime; + const saveOrUpdate = isUpdate.value + ? updateThinkCoachTime + : addThinkCoachTime; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -156,12 +161,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoachTime/index.vue b/src/views/think/thinkCoachTime/index.vue index c62d837..71659b1 100644 --- a/src/views/think/thinkCoachTime/index.vue +++ b/src/views/think/thinkCoachTime/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCoachTimeEdit from './components/thinkCoachTimeEdit.vue'; - import { pageThinkCoachTime, removeThinkCoachTime, removeBatchThinkCoachTime } from '@/api/think/thinkCoachTime'; - import type { ThinkCoachTime, ThinkCoachTimeParam } from '@/api/think/thinkCoachTime/model'; + import { + pageThinkCoachTime, + removeThinkCoachTime, + removeBatchThinkCoachTime + } from '@/api/think/thinkCoachTime'; + import type { + ThinkCoachTime, + ThinkCoachTimeParam + } from '@/api/think/thinkCoachTime/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '教练ID', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '预约时间JSON格式', dataIndex: 'json', key: 'json', - align: 'center', + align: 'center' }, { title: '操作', @@ -174,7 +185,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkCoachTime(selection.value.map((d) => d.thinkCoachTimeId)) + removeBatchThinkCoachTime( + selection.value.map((d) => d.thinkCoachTimeId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkConfig/components/thinkConfigEdit.vue b/src/views/think/thinkConfig/components/thinkConfigEdit.vue index 917ab83..9e6d37a 100644 --- a/src/views/think/thinkConfig/components/thinkConfigEdit.vue +++ b/src/views/think/thinkConfig/components/thinkConfigEdit.vue @@ -133,7 +133,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkConfig : addThinkConfig; + const saveOrUpdate = isUpdate.value + ? updateThinkConfig + : addThinkConfig; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -156,12 +158,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkConfig/index.vue b/src/views/think/thinkConfig/index.vue index 9f6a936..bf9ab6e 100644 --- a/src/views/think/thinkConfig/index.vue +++ b/src/views/think/thinkConfig/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkConfigEdit from './components/thinkConfigEdit.vue'; - import { pageThinkConfig, removeThinkConfig, removeBatchThinkConfig } from '@/api/think/thinkConfig'; - import type { ThinkConfig, ThinkConfigParam } from '@/api/think/thinkConfig/model'; + import { + pageThinkConfig, + removeThinkConfig, + removeBatchThinkConfig + } from '@/api/think/thinkConfig'; + import type { + ThinkConfig, + ThinkConfigParam + } from '@/api/think/thinkConfig/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '配置名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '配置值', dataIndex: 'value', key: 'value', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkCoupon/components/thinkCouponEdit.vue b/src/views/think/thinkCoupon/components/thinkCouponEdit.vue index 3c061ff..d2fba6f 100644 --- a/src/views/think/thinkCoupon/components/thinkCouponEdit.vue +++ b/src/views/think/thinkCoupon/components/thinkCouponEdit.vue @@ -245,7 +245,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkCoupon : addThinkCoupon; + const saveOrUpdate = isUpdate.value + ? updateThinkCoupon + : addThinkCoupon; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -268,12 +270,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkCoupon/index.vue b/src/views/think/thinkCoupon/index.vue index 2ac3f35..3ad434d 100644 --- a/src/views/think/thinkCoupon/index.vue +++ b/src/views/think/thinkCoupon/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkCouponEdit from './components/thinkCouponEdit.vue'; - import { pageThinkCoupon, removeThinkCoupon, removeBatchThinkCoupon } from '@/api/think/thinkCoupon'; - import type { ThinkCoupon, ThinkCouponParam } from '@/api/think/thinkCoupon/model'; + import { + pageThinkCoupon, + removeThinkCoupon, + removeBatchThinkCoupon + } from '@/api/think/thinkCoupon'; + import type { + ThinkCoupon, + ThinkCouponParam + } from '@/api/think/thinkCoupon/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,91 +116,91 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '优惠券名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '折扣率', dataIndex: 'discount', key: 'discount', - align: 'center', + align: 'center' }, { title: '抵扣金额', dataIndex: 'money', key: 'money', - align: 'center', + align: 'center' }, { title: '购买价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '可使用次数', dataIndex: 'count', key: 'count', - align: 'center', + align: 'center' }, { title: '优惠券剩余数量', dataIndex: 'number', key: 'number', - align: 'center', + align: 'center' }, { title: '开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '结束时间', dataIndex: 'endTime', key: 'endTime', - align: 'center', + align: 'center' }, { title: 'sid场馆id集合,适用的场馆', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '优惠券类型:1折扣式,2抵扣式', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '券类型:1成人,2儿童', dataIndex: 'couponType', key: 'couponType', - align: 'center', + align: 'center' }, { title: '是否免费领取:1免费,2收费', dataIndex: 'isFree', key: 'isFree', - align: 'center', + align: 'center' }, { title: '状态,1可领取、2不可领取', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -204,13 +215,13 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '0 是通用,1是仅线下', dataIndex: 'isOffline', key: 'isOffline', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkDeposit/components/search.vue b/src/views/think/thinkDeposit/components/search.vue index eb0c711..7e6bb6a 100644 --- a/src/views/think/thinkDeposit/components/search.vue +++ b/src/views/think/thinkDeposit/components/search.vue @@ -1,12 +1,12 @@ diff --git a/src/views/think/thinkDeposit/components/thinkDepositEdit.vue b/src/views/think/thinkDeposit/components/thinkDepositEdit.vue index b831b20..13eb630 100644 --- a/src/views/think/thinkDeposit/components/thinkDepositEdit.vue +++ b/src/views/think/thinkDeposit/components/thinkDepositEdit.vue @@ -26,7 +26,10 @@ v-model:value="form.type" /> - + - + { loading.value = false; @@ -220,12 +224,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkDeposit/index.vue b/src/views/think/thinkDeposit/index.vue index a3885e4..31bf838 100644 --- a/src/views/think/thinkDeposit/index.vue +++ b/src/views/think/thinkDeposit/index.vue @@ -28,9 +28,10 @@ - 退款 @@ -41,224 +42,232 @@ - + diff --git a/src/views/think/thinkDepositItem/components/thinkDepositItemEdit.vue b/src/views/think/thinkDepositItem/components/thinkDepositItemEdit.vue index d40f8c1..42cb858 100644 --- a/src/views/think/thinkDepositItem/components/thinkDepositItemEdit.vue +++ b/src/views/think/thinkDepositItem/components/thinkDepositItemEdit.vue @@ -27,10 +27,11 @@ /> - @@ -46,122 +47,120 @@ diff --git a/src/views/think/thinkDepositItem/index.vue b/src/views/think/thinkDepositItem/index.vue index 036e871..c94de03 100644 --- a/src/views/think/thinkDepositItem/index.vue +++ b/src/views/think/thinkDepositItem/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkDepositItemEdit from './components/thinkDepositItemEdit.vue'; - import { pageThinkDepositItem, removeThinkDepositItem, removeBatchThinkDepositItem } from '@/api/think/thinkDepositItem'; - import type { ThinkDepositItem, ThinkDepositItemParam } from '@/api/think/thinkDepositItem/model'; + import { + pageThinkDepositItem, + removeThinkDepositItem, + removeBatchThinkDepositItem + } from '@/api/think/thinkDepositItem'; + import type { + ThinkDepositItem, + ThinkDepositItemParam + } from '@/api/think/thinkDepositItem/model'; // 表格实例 const tableRef = ref | null>(null); @@ -104,19 +115,19 @@ title: '名称', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '金额', dataIndex: 'amount', key: 'amount', - align: 'center', + align: 'center' }, { title: '场馆', dataIndex: 'siteName', key: 'siteName', - align: 'center', + align: 'center' }, { title: '操作', @@ -173,7 +184,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkDepositItem(selection.value.map((d) => d.thinkDepositItemId)) + removeBatchThinkDepositItem( + selection.value.map((d) => d.thinkDepositItemId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkField/period/components/periodEdit.vue b/src/views/think/thinkField/period/components/periodEdit.vue index 60604e8..557cef2 100644 --- a/src/views/think/thinkField/period/components/periodEdit.vue +++ b/src/views/think/thinkField/period/components/periodEdit.vue @@ -139,19 +139,48 @@
{{ index + 1 }}号价格 - +
-

{{ dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format("YYYY-MM-DD") }} - {{ weekStr[dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format("d")] }}的价格,温馨提示:如价格填写0则代表当日免费。

+

+ {{ + dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format( + 'YYYY-MM-DD' + ) + }} + {{ + weekStr[ + dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format( + 'd' + ) + ] + }}的价格,温馨提示:如价格填写0则代表当日免费。

{{ index + 1 }}号半场价格 - +
-

{{ dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format("YYYY-MM-DD") }} - {{ weekStr[dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format("d")] - }}的半场价格,温馨提示:如价格填写0则代表当日免费。

+

+ {{ + dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format( + 'YYYY-MM-DD' + ) + }} + {{ + weekStr[ + dayjs(`${month}-${String(index + 1).padStart(2, '0')}`).format( + 'd' + ) + ] + }}的半场价格,温馨提示:如价格填写0则代表当日免费。

@@ -160,283 +189,282 @@ diff --git a/src/views/think/thinkFtpCheckBill/components/search.vue b/src/views/think/thinkFtpCheckBill/components/search.vue index b1cd6fb..bbaffc3 100644 --- a/src/views/think/thinkFtpCheckBill/components/search.vue +++ b/src/views/think/thinkFtpCheckBill/components/search.vue @@ -1,7 +1,12 @@ @@ -62,7 +66,11 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGateEdit from './components/thinkGateEdit.vue'; - import { pageThinkGate, removeThinkGate, removeBatchThinkGate } from '@/api/think/thinkGate'; + import { + pageThinkGate, + removeThinkGate, + removeBatchThinkGate + } from '@/api/think/thinkGate'; import type { ThinkGate, ThinkGateParam } from '@/api/think/thinkGate/model'; // 表格实例 @@ -105,85 +113,86 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '闸机名称', dataIndex: 'gateName', key: 'gateName', - align: 'center', + align: 'center' }, { title: '闸机被使用的展馆', dataIndex: 'siteId', key: 'siteId', - align: 'center', + align: 'center' }, { title: '闸机编码', dataIndex: 'gateCode', key: 'gateCode', - align: 'center', + align: 'center' }, { title: '闸机序列码', dataIndex: 'gateMac', key: 'gateMac', - align: 'center', + align: 'center' }, { title: '闸机 IP', dataIndex: 'gateIp', key: 'gateIp', - align: 'center', + align: 'center' }, { title: '闸机状态(1=正常 2=模块异常)', dataIndex: 'gateState', key: 'gateState', - align: 'center', + align: 'center' }, { title: '闸机通心跳次数', dataIndex: 'liveNumber', key: 'liveNumber', - align: 'center', + align: 'center' }, { title: '创建时间', dataIndex: 'crateTime', key: 'crateTime', - align: 'center', + align: 'center' }, { title: '创建人id', dataIndex: 'createUser', key: 'createUser', - align: 'center', + align: 'center' }, { title: '更新次数', dataIndex: 'updateNumber', key: 'updateNumber', - align: 'center', + align: 'center' }, { title: '最近更新时间,作为系统设计预留字段', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '最近更新数据id 系统设计使用', dataIndex: 'updateUser', key: 'updateUser', - align: 'center', + align: 'center' }, { - title: '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', + title: + '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', dataIndex: 'deleteStatus', key: 'deleteStatus', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkGatePassreord/components/thinkGatePassreordEdit.vue b/src/views/think/thinkGatePassreord/components/thinkGatePassreordEdit.vue index fd85383..ae5d83c 100644 --- a/src/views/think/thinkGatePassreord/components/thinkGatePassreordEdit.vue +++ b/src/views/think/thinkGatePassreord/components/thinkGatePassreordEdit.vue @@ -40,7 +40,10 @@ v-model:value="form.userId" />
- + - + - + { loading.value = false; @@ -252,12 +259,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGatePassreord/index.vue b/src/views/think/thinkGatePassreord/index.vue index 32a55a8..fee9b27 100644 --- a/src/views/think/thinkGatePassreord/index.vue +++ b/src/views/think/thinkGatePassreord/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGatePassreordEdit from './components/thinkGatePassreordEdit.vue'; - import { pageThinkGatePassreord, removeThinkGatePassreord, removeBatchThinkGatePassreord } from '@/api/think/thinkGatePassreord'; - import type { ThinkGatePassreord, ThinkGatePassreordParam } from '@/api/think/thinkGatePassreord/model'; + import { + pageThinkGatePassreord, + removeThinkGatePassreord, + removeBatchThinkGatePassreord + } from '@/api/think/thinkGatePassreord'; + import type { + ThinkGatePassreord, + ThinkGatePassreordParam + } from '@/api/think/thinkGatePassreord/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,91 +116,93 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '闸机id', dataIndex: 'gateId', key: 'gateId', - align: 'center', + align: 'center' }, { title: '扫码值 可能是二维码id', dataIndex: 'gateQrcode', key: 'gateQrcode', - align: 'center', + align: 'center' }, { title: '对应的通过的游客或者用户', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { - title: '通过闸 机状态 waitting:等待处理,finish:完成,fail:失败,overtime:超时', + title: + '通过闸 机状态 waitting:等待处理,finish:完成,fail:失败,overtime:超时', dataIndex: 'recordStaus', key: 'recordStaus', - align: 'center', + align: 'center' }, { title: '如果存在订单的话,加入订单的id', dataIndex: 'orderId', key: 'orderId', - align: 'center', + align: 'center' }, { title: 'vip卡id如果存在卡的话', dataIndex: 'vipCardId', key: 'vipCardId', - align: 'center', + align: 'center' }, { title: '创建时间', dataIndex: 'crateTime', key: 'crateTime', - align: 'center', + align: 'center' }, { title: '创建人id', dataIndex: 'createUser', key: 'createUser', - align: 'center', + align: 'center' }, { title: '更新次数', dataIndex: 'updateNumber', key: 'updateNumber', - align: 'center', + align: 'center' }, { title: '最近更新时间,作为系统设计预留字段', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '最近更新数据id 系统设计使用', dataIndex: 'updateUser', key: 'updateUser', - align: 'center', + align: 'center' }, { - title: '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', + title: + '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', dataIndex: 'deleteStatus', key: 'deleteStatus', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'siteId', key: 'siteId', - align: 'center', + align: 'center' }, { title: '本次消费金额 ', dataIndex: 'consumeMoney', key: 'consumeMoney', - align: 'center', + align: 'center' }, { title: '操作', @@ -246,7 +259,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGatePassreord(selection.value.map((d) => d.thinkGatePassreordId)) + removeBatchThinkGatePassreord( + selection.value.map((d) => d.thinkGatePassreordId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkGoods/components/search.vue b/src/views/think/thinkGoods/components/search.vue index 7f3c571..ffbf4e8 100644 --- a/src/views/think/thinkGoods/components/search.vue +++ b/src/views/think/thinkGoods/components/search.vue @@ -7,14 +7,30 @@ 添加 - - - {{ - item.catname - }} + + + {{ item.catname }} - + 上架 下架 @@ -22,52 +38,51 @@ diff --git a/src/views/think/thinkGoods/index.vue b/src/views/think/thinkGoods/index.vue index bfe363d..4ac852c 100644 --- a/src/views/think/thinkGoods/index.vue +++ b/src/views/think/thinkGoods/index.vue @@ -45,265 +45,276 @@ - + diff --git a/src/views/think/thinkGoodsCategory/components/thinkGoodsCategoryEdit.vue b/src/views/think/thinkGoodsCategory/components/thinkGoodsCategoryEdit.vue index b268a87..462a8d2 100644 --- a/src/views/think/thinkGoodsCategory/components/thinkGoodsCategoryEdit.vue +++ b/src/views/think/thinkGoodsCategory/components/thinkGoodsCategoryEdit.vue @@ -33,17 +33,15 @@ v-model:value="form.catname" /> - - - + + + { loading.value = false; @@ -185,12 +188,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsCategory/index.vue b/src/views/think/thinkGoodsCategory/index.vue index 66ab54c..b8cc73e 100644 --- a/src/views/think/thinkGoodsCategory/index.vue +++ b/src/views/think/thinkGoodsCategory/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsCategoryEdit from './components/thinkGoodsCategoryEdit.vue'; - import { pageThinkGoodsCategory, removeThinkGoodsCategory, removeBatchThinkGoodsCategory } from '@/api/think/thinkGoodsCategory'; - import type { ThinkGoodsCategory, ThinkGoodsCategoryParam } from '@/api/think/thinkGoodsCategory/model'; + import { + pageThinkGoodsCategory, + removeThinkGoodsCategory, + removeBatchThinkGoodsCategory + } from '@/api/think/thinkGoodsCategory'; + import type { + ThinkGoodsCategory, + ThinkGoodsCategoryParam + } from '@/api/think/thinkGoodsCategory/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,25 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '分类名称', dataIndex: 'catname', key: 'catname', - align: 'center', + align: 'center' }, { title: '分类图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '操作', @@ -180,7 +191,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGoodsCategory(selection.value.map((d) => d.thinkGoodsCategoryId)) + removeBatchThinkGoodsCategory( + selection.value.map((d) => d.thinkGoodsCategoryId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkGoodsImage/components/thinkGoodsImageEdit.vue b/src/views/think/thinkGoodsImage/components/thinkGoodsImageEdit.vue index 7567d36..d6126bd 100644 --- a/src/views/think/thinkGoodsImage/components/thinkGoodsImageEdit.vue +++ b/src/views/think/thinkGoodsImage/components/thinkGoodsImageEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkGoodsImage, updateThinkGoodsImage } from '@/api/think/thinkGoodsImage'; + import { + addThinkGoodsImage, + updateThinkGoodsImage + } from '@/api/think/thinkGoodsImage'; import { ThinkGoodsImage } from '@/api/think/thinkGoodsImage/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -133,7 +136,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkGoodsImage : addThinkGoodsImage; + const saveOrUpdate = isUpdate.value + ? updateThinkGoodsImage + : addThinkGoodsImage; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -156,12 +161,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsImage/index.vue b/src/views/think/thinkGoodsImage/index.vue index f2690a7..b753d0e 100644 --- a/src/views/think/thinkGoodsImage/index.vue +++ b/src/views/think/thinkGoodsImage/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsImageEdit from './components/thinkGoodsImageEdit.vue'; - import { pageThinkGoodsImage, removeThinkGoodsImage, removeBatchThinkGoodsImage } from '@/api/think/thinkGoodsImage'; - import type { ThinkGoodsImage, ThinkGoodsImageParam } from '@/api/think/thinkGoodsImage/model'; + import { + pageThinkGoodsImage, + removeThinkGoodsImage, + removeBatchThinkGoodsImage + } from '@/api/think/thinkGoodsImage'; + import type { + ThinkGoodsImage, + ThinkGoodsImageParam + } from '@/api/think/thinkGoodsImage/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '图片地址', dataIndex: 'path', key: 'path', - align: 'center', + align: 'center' }, { title: '关联id', dataIndex: 'gid', key: 'gid', - align: 'center', + align: 'center' }, { title: '操作', @@ -174,7 +185,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGoodsImage(selection.value.map((d) => d.thinkGoodsImageId)) + removeBatchThinkGoodsImage( + selection.value.map((d) => d.thinkGoodsImageId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkGoodsOrder/components/thinkGoodsOrderEdit.vue b/src/views/think/thinkGoodsOrder/components/thinkGoodsOrderEdit.vue index 7d11471..7c5ba6a 100644 --- a/src/views/think/thinkGoodsOrder/components/thinkGoodsOrderEdit.vue +++ b/src/views/think/thinkGoodsOrder/components/thinkGoodsOrderEdit.vue @@ -89,7 +89,10 @@ v-model:value="form.payStatus" /> - + { loading.value = false; @@ -269,12 +277,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsOrder/index.vue b/src/views/think/thinkGoodsOrder/index.vue index d826501..0d131c6 100644 --- a/src/views/think/thinkGoodsOrder/index.vue +++ b/src/views/think/thinkGoodsOrder/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsOrderEdit from './components/thinkGoodsOrderEdit.vue'; - import { pageThinkGoodsOrder, removeThinkGoodsOrder, removeBatchThinkGoodsOrder } from '@/api/think/thinkGoodsOrder'; - import type { ThinkGoodsOrder, ThinkGoodsOrderParam } from '@/api/think/thinkGoodsOrder/model'; + import { + pageThinkGoodsOrder, + removeThinkGoodsOrder, + removeBatchThinkGoodsOrder + } from '@/api/think/thinkGoodsOrder'; + import type { + ThinkGoodsOrder, + ThinkGoodsOrderParam + } from '@/api/think/thinkGoodsOrder/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,91 +116,92 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '订单号', dataIndex: 'orderNum', key: 'orderNum', - align: 'center', + align: 'center' }, { title: '微信订单号', dataIndex: 'wechatOrder', key: 'wechatOrder', - align: 'center', + align: 'center' }, { title: '姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '详细地址', dataIndex: 'address', key: 'address', - align: 'center', + align: 'center' }, { title: '购买数量', dataIndex: 'num', key: 'num', - align: 'center', + align: 'center' }, { title: '订单总价', dataIndex: 'totalPrice', key: 'totalPrice', - align: 'center', + align: 'center' }, { title: '实际付款金额', dataIndex: 'payPrice', key: 'payPrice', - align: 'center', + align: 'center' }, { title: '付款方式:1微信支付,2积分支付', dataIndex: 'payType', key: 'payType', - align: 'center', + align: 'center' }, { title: '付款状态:1已付款,2未付款', dataIndex: 'payStatus', key: 'payStatus', - align: 'center', + align: 'center' }, { - title: '1未完成,2待发货,3待收货,4已完成,5申请退款,6退款被拒绝,7退款成功,8已取消', + title: + '1未完成,2待发货,3待收货,4已完成,5申请退款,6退款被拒绝,7退款成功,8已取消', dataIndex: 'orderStatus', key: 'orderStatus', - align: 'center', + align: 'center' }, { title: '关联users表id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '备注信息', dataIndex: 'info', key: 'info', - align: 'center', + align: 'center' }, { title: '发货时间', dataIndex: 'deliveryTime', key: 'deliveryTime', - align: 'center', + align: 'center' }, { title: '下单时间', @@ -204,13 +216,13 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '支付时间', dataIndex: 'payTime', key: 'payTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -267,7 +279,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGoodsOrder(selection.value.map((d) => d.thinkGoodsOrderId)) + removeBatchThinkGoodsOrder( + selection.value.map((d) => d.thinkGoodsOrderId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkGoodsOrderInfo/components/thinkGoodsOrderInfoEdit.vue b/src/views/think/thinkGoodsOrderInfo/components/thinkGoodsOrderInfoEdit.vue index ecda1a5..e2da833 100644 --- a/src/views/think/thinkGoodsOrderInfo/components/thinkGoodsOrderInfoEdit.vue +++ b/src/views/think/thinkGoodsOrderInfo/components/thinkGoodsOrderInfoEdit.vue @@ -40,17 +40,15 @@ v-model:value="form.title" /> - - - + + + { loading.value = false; @@ -216,12 +219,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsOrderInfo/index.vue b/src/views/think/thinkGoodsOrderInfo/index.vue index b25fc3e..972ce1d 100644 --- a/src/views/think/thinkGoodsOrderInfo/index.vue +++ b/src/views/think/thinkGoodsOrderInfo/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsOrderInfoEdit from './components/thinkGoodsOrderInfoEdit.vue'; - import { pageThinkGoodsOrderInfo, removeThinkGoodsOrderInfo, removeBatchThinkGoodsOrderInfo } from '@/api/think/thinkGoodsOrderInfo'; - import type { ThinkGoodsOrderInfo, ThinkGoodsOrderInfoParam } from '@/api/think/thinkGoodsOrderInfo/model'; + import { + pageThinkGoodsOrderInfo, + removeThinkGoodsOrderInfo, + removeBatchThinkGoodsOrderInfo + } from '@/api/think/thinkGoodsOrderInfo'; + import type { + ThinkGoodsOrderInfo, + ThinkGoodsOrderInfoParam + } from '@/api/think/thinkGoodsOrderInfo/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,61 +116,61 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '商品id', dataIndex: 'goodsId', key: 'goodsId', - align: 'center', + align: 'center' }, { title: '关联goods_order表id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '商品标题', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '商品价格', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '价格', dataIndex: 'goodsPrice', key: 'goodsPrice', - align: 'center', + align: 'center' }, { title: '划线价格', dataIndex: 'linePrice', key: 'linePrice', - align: 'center', + align: 'center' }, { title: '积分', dataIndex: 'integral', key: 'integral', - align: 'center', + align: 'center' }, { title: '商品sku记录索引 (由规格id组成)', dataIndex: 'goodsSkuId', key: 'goodsSkuId', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'goodsAttr', key: 'goodsAttr', - align: 'center', + align: 'center' }, { title: '操作', @@ -216,7 +227,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGoodsOrderInfo(selection.value.map((d) => d.thinkGoodsOrderInfoId)) + removeBatchThinkGoodsOrderInfo( + selection.value.map((d) => d.thinkGoodsOrderInfoId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkGoodsSku/components/thinkGoodsSkuEdit.vue b/src/views/think/thinkGoodsSku/components/thinkGoodsSkuEdit.vue index 8b4beac..6c9cbca 100644 --- a/src/views/think/thinkGoodsSku/components/thinkGoodsSkuEdit.vue +++ b/src/views/think/thinkGoodsSku/components/thinkGoodsSkuEdit.vue @@ -33,17 +33,15 @@ v-model:value="form.specSkuId" /> - - - + + + { loading.value = false; @@ -217,12 +220,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsSku/index.vue b/src/views/think/thinkGoodsSku/index.vue index 84a400e..6cf19a1 100644 --- a/src/views/think/thinkGoodsSku/index.vue +++ b/src/views/think/thinkGoodsSku/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsSkuEdit from './components/thinkGoodsSkuEdit.vue'; - import { pageThinkGoodsSku, removeThinkGoodsSku, removeBatchThinkGoodsSku } from '@/api/think/thinkGoodsSku'; - import type { ThinkGoodsSku, ThinkGoodsSkuParam } from '@/api/think/thinkGoodsSku/model'; + import { + pageThinkGoodsSku, + removeThinkGoodsSku, + removeBatchThinkGoodsSku + } from '@/api/think/thinkGoodsSku'; + import type { + ThinkGoodsSku, + ThinkGoodsSkuParam + } from '@/api/think/thinkGoodsSku/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'goodsSkuId', key: 'goodsSkuId', align: 'center', - width: 90, + width: 90 }, { title: '商品id', dataIndex: 'goodsId', key: 'goodsId', - align: 'center', + align: 'center' }, { title: '商品sku记录索引 (由规格id组成)', dataIndex: 'specSkuId', key: 'specSkuId', - align: 'center', + align: 'center' }, { title: '规格图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '商品价格', dataIndex: 'goodsPrice', key: 'goodsPrice', - align: 'center', + align: 'center' }, { title: '商品划线价', dataIndex: 'linePrice', key: 'linePrice', - align: 'center', + align: 'center' }, { title: '积分', dataIndex: 'integral', key: 'integral', - align: 'center', + align: 'center' }, { title: '当前库存数量', dataIndex: 'stockNum', key: 'stockNum', - align: 'center', + align: 'center' }, { title: '商品销量', dataIndex: 'goodsSales', key: 'goodsSales', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -168,7 +179,7 @@ title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkGoodsSpecRel/components/thinkGoodsSpecRelEdit.vue b/src/views/think/thinkGoodsSpecRel/components/thinkGoodsSpecRelEdit.vue index 3fa0307..c781730 100644 --- a/src/views/think/thinkGoodsSpecRel/components/thinkGoodsSpecRelEdit.vue +++ b/src/views/think/thinkGoodsSpecRel/components/thinkGoodsSpecRelEdit.vue @@ -5,7 +5,9 @@ :visible="visible" :maskClosable="false" :maxable="maxable" - :title="isUpdate ? '编辑商品与规格值关系记录表' : '添加商品与规格值关系记录表'" + :title=" + isUpdate ? '编辑商品与规格值关系记录表' : '添加商品与规格值关系记录表' + " :body-style="{ paddingBottom: '28px' }" @update:visible="updateVisible" @ok="save" @@ -48,7 +50,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkGoodsSpecRel, updateThinkGoodsSpecRel } from '@/api/think/thinkGoodsSpecRel'; + import { + addThinkGoodsSpecRel, + updateThinkGoodsSpecRel + } from '@/api/think/thinkGoodsSpecRel'; import { ThinkGoodsSpecRel } from '@/api/think/thinkGoodsSpecRel/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -142,7 +147,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkGoodsSpecRel : addThinkGoodsSpecRel; + const saveOrUpdate = isUpdate.value + ? updateThinkGoodsSpecRel + : addThinkGoodsSpecRel; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -165,12 +172,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkGoodsSpecRel/index.vue b/src/views/think/thinkGoodsSpecRel/index.vue index 71dad5e..935df1b 100644 --- a/src/views/think/thinkGoodsSpecRel/index.vue +++ b/src/views/think/thinkGoodsSpecRel/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkGoodsSpecRelEdit from './components/thinkGoodsSpecRelEdit.vue'; - import { pageThinkGoodsSpecRel, removeThinkGoodsSpecRel, removeBatchThinkGoodsSpecRel } from '@/api/think/thinkGoodsSpecRel'; - import type { ThinkGoodsSpecRel, ThinkGoodsSpecRelParam } from '@/api/think/thinkGoodsSpecRel/model'; + import { + pageThinkGoodsSpecRel, + removeThinkGoodsSpecRel, + removeBatchThinkGoodsSpecRel + } from '@/api/think/thinkGoodsSpecRel'; + import type { + ThinkGoodsSpecRel, + ThinkGoodsSpecRelParam + } from '@/api/think/thinkGoodsSpecRel/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,25 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '商品id', dataIndex: 'goodsId', key: 'goodsId', - align: 'center', + align: 'center' }, { title: '规格组id', dataIndex: 'specId', key: 'specId', - align: 'center', + align: 'center' }, { title: '规格值id', dataIndex: 'specValueId', key: 'specValueId', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -189,7 +200,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkGoodsSpecRel(selection.value.map((d) => d.thinkGoodsSpecRelId)) + removeBatchThinkGoodsSpecRel( + selection.value.map((d) => d.thinkGoodsSpecRelId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkIntegral/components/search.vue b/src/views/think/thinkIntegral/components/search.vue index 24a24e9..0e27b74 100644 --- a/src/views/think/thinkIntegral/components/search.vue +++ b/src/views/think/thinkIntegral/components/search.vue @@ -1,7 +1,6 @@ diff --git a/src/views/think/thinkInvoice/components/thinkInvoiceEdit.vue b/src/views/think/thinkInvoice/components/thinkInvoiceEdit.vue index ebfb79e..0dead55 100644 --- a/src/views/think/thinkInvoice/components/thinkInvoiceEdit.vue +++ b/src/views/think/thinkInvoice/components/thinkInvoiceEdit.vue @@ -138,7 +138,10 @@ v-model:value="form.type" /> - + - + @@ -174,7 +173,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkInvoice, updateThinkInvoice } from '@/api/think/thinkInvoice'; + import { + addThinkInvoice, + updateThinkInvoice + } from '@/api/think/thinkInvoice'; import { ThinkInvoice } from '@/api/think/thinkInvoice/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -286,7 +288,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkInvoice : addThinkInvoice; + const saveOrUpdate = isUpdate.value + ? updateThinkInvoice + : addThinkInvoice; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -309,12 +313,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkInvoice/index.vue b/src/views/think/thinkInvoice/index.vue index 81aee6a..0444ec1 100644 --- a/src/views/think/thinkInvoice/index.vue +++ b/src/views/think/thinkInvoice/index.vue @@ -32,8 +32,13 @@ - 已拒绝 + 已拒绝 @@ -84,280 +101,286 @@ diff --git a/src/views/think/thinkInvoiceConfig/components/thinkInvoiceConfigEdit.vue b/src/views/think/thinkInvoiceConfig/components/thinkInvoiceConfigEdit.vue index af70735..7201eb5 100644 --- a/src/views/think/thinkInvoiceConfig/components/thinkInvoiceConfigEdit.vue +++ b/src/views/think/thinkInvoiceConfig/components/thinkInvoiceConfigEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkInvoiceConfig, updateThinkInvoiceConfig } from '@/api/think/thinkInvoiceConfig'; + import { + addThinkInvoiceConfig, + updateThinkInvoiceConfig + } from '@/api/think/thinkInvoiceConfig'; import { ThinkInvoiceConfig } from '@/api/think/thinkInvoiceConfig/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -133,7 +136,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkInvoiceConfig : addThinkInvoiceConfig; + const saveOrUpdate = isUpdate.value + ? updateThinkInvoiceConfig + : addThinkInvoiceConfig; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -156,12 +161,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkInvoiceConfig/index.vue b/src/views/think/thinkInvoiceConfig/index.vue index e1b0d2a..630105c 100644 --- a/src/views/think/thinkInvoiceConfig/index.vue +++ b/src/views/think/thinkInvoiceConfig/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkInvoiceConfigEdit from './components/thinkInvoiceConfigEdit.vue'; - import { pageThinkInvoiceConfig, removeThinkInvoiceConfig, removeBatchThinkInvoiceConfig } from '@/api/think/thinkInvoiceConfig'; - import type { ThinkInvoiceConfig, ThinkInvoiceConfigParam } from '@/api/think/thinkInvoiceConfig/model'; + import { + pageThinkInvoiceConfig, + removeThinkInvoiceConfig, + removeBatchThinkInvoiceConfig + } from '@/api/think/thinkInvoiceConfig'; + import type { + ThinkInvoiceConfig, + ThinkInvoiceConfigParam + } from '@/api/think/thinkInvoiceConfig/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '配置文件', dataIndex: 'config', key: 'config', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -174,7 +185,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkInvoiceConfig(selection.value.map((d) => d.thinkInvoiceConfigId)) + removeBatchThinkInvoiceConfig( + selection.value.map((d) => d.thinkInvoiceConfigId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkInvoiceRequestLog/index.vue b/src/views/think/thinkInvoiceRequestLog/index.vue index 4a96026..c5772b3 100644 --- a/src/views/think/thinkInvoiceRequestLog/index.vue +++ b/src/views/think/thinkInvoiceRequestLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkInvoiceRequestLogEdit from './components/thinkInvoiceRequestLogEdit.vue'; - import { pageThinkInvoiceRequestLog, removeThinkInvoiceRequestLog, removeBatchThinkInvoiceRequestLog } from '@/api/think/thinkInvoiceRequestLog'; - import type { ThinkInvoiceRequestLog, ThinkInvoiceRequestLogParam } from '@/api/think/thinkInvoiceRequestLog/model'; + import { + pageThinkInvoiceRequestLog, + removeThinkInvoiceRequestLog, + removeBatchThinkInvoiceRequestLog + } from '@/api/think/thinkInvoiceRequestLog'; + import type { + ThinkInvoiceRequestLog, + ThinkInvoiceRequestLogParam + } from '@/api/think/thinkInvoiceRequestLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,25 +116,25 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '类型:order=订场开票;VIP=VIP购卡开票;IC=IC卡购卡开票', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '参数', dataIndex: 'params', key: 'params', - align: 'center', + align: 'center' }, { title: '返回结果', dataIndex: 'result', key: 'result', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -189,7 +200,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkInvoiceRequestLog(selection.value.map((d) => d.thinkInvoiceRequestLogId)) + removeBatchThinkInvoiceRequestLog( + selection.value.map((d) => d.thinkInvoiceRequestLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkLog/components/thinkLogEdit.vue b/src/views/think/thinkLog/components/thinkLogEdit.vue index 54298d2..708bde4 100644 --- a/src/views/think/thinkLog/components/thinkLogEdit.vue +++ b/src/views/think/thinkLog/components/thinkLogEdit.vue @@ -67,7 +67,10 @@ v-model:value="form.logType" /> - + { loading.value = false; @@ -182,12 +187,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkMachineOpenLog/index.vue b/src/views/think/thinkMachineOpenLog/index.vue index d4b7b2d..e16b773 100644 --- a/src/views/think/thinkMachineOpenLog/index.vue +++ b/src/views/think/thinkMachineOpenLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkMachineOpenLogEdit from './components/thinkMachineOpenLogEdit.vue'; - import { pageThinkMachineOpenLog, removeThinkMachineOpenLog, removeBatchThinkMachineOpenLog } from '@/api/think/thinkMachineOpenLog'; - import type { ThinkMachineOpenLog, ThinkMachineOpenLogParam } from '@/api/think/thinkMachineOpenLog/model'; + import { + pageThinkMachineOpenLog, + removeThinkMachineOpenLog, + removeBatchThinkMachineOpenLog + } from '@/api/think/thinkMachineOpenLog'; + import type { + ThinkMachineOpenLog, + ThinkMachineOpenLogParam + } from '@/api/think/thinkMachineOpenLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'orderId', key: 'orderId', - align: 'center', + align: 'center' }, { title: '备注', dataIndex: 'comments', key: 'comments', - align: 'center', + align: 'center' }, { title: '状态, 0在线, 1离线', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '注册时间', @@ -144,7 +155,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -201,7 +212,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkMachineOpenLog(selection.value.map((d) => d.thinkMachineOpenLogId)) + removeBatchThinkMachineOpenLog( + selection.value.map((d) => d.thinkMachineOpenLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkMessage/components/thinkMessageEdit.vue b/src/views/think/thinkMessage/components/thinkMessageEdit.vue index 077c049..17f06cb 100644 --- a/src/views/think/thinkMessage/components/thinkMessageEdit.vue +++ b/src/views/think/thinkMessage/components/thinkMessageEdit.vue @@ -97,7 +97,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkMessage, updateThinkMessage } from '@/api/think/thinkMessage'; + import { + addThinkMessage, + updateThinkMessage + } from '@/api/think/thinkMessage'; import { ThinkMessage } from '@/api/think/thinkMessage/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -198,7 +201,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkMessage : addThinkMessage; + const saveOrUpdate = isUpdate.value + ? updateThinkMessage + : addThinkMessage; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -221,12 +226,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkMessage/index.vue b/src/views/think/thinkMessage/index.vue index 3f4881d..a9b34c5 100644 --- a/src/views/think/thinkMessage/index.vue +++ b/src/views/think/thinkMessage/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkMessageEdit from './components/thinkMessageEdit.vue'; - import { pageThinkMessage, removeThinkMessage, removeBatchThinkMessage } from '@/api/think/thinkMessage'; - import type { ThinkMessage, ThinkMessageParam } from '@/api/think/thinkMessage/model'; + import { + pageThinkMessage, + removeThinkMessage, + removeBatchThinkMessage + } from '@/api/think/thinkMessage'; + import type { + ThinkMessage, + ThinkMessageParam + } from '@/api/think/thinkMessage/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,61 +116,61 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '消息类型', dataIndex: 't', key: 't', - align: 'center', + align: 'center' }, { title: '消息标题', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '消息内容', dataIndex: 'content', key: 'content', - align: 'center', + align: 'center' }, { title: '发送者,1系统', dataIndex: 'from', key: 'from', - align: 'center', + align: 'center' }, { title: '接收者', dataIndex: 'to', key: 'to', - align: 'center', + align: 'center' }, { title: '是否已读,1是 0否', dataIndex: 'isRead', key: 'isRead', - align: 'center', + align: 'center' }, { title: '关联表名', dataIndex: 'tableName', key: 'tableName', - align: 'center', + align: 'center' }, { title: '关联表id', dataIndex: 'tableId', key: 'tableId', - align: 'center', + align: 'center' }, { title: '读取时间', dataIndex: 'readTime', key: 'readTime', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -174,7 +185,7 @@ title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkMoneyLog/components/thinkMoneyLogEdit.vue b/src/views/think/thinkMoneyLog/components/thinkMoneyLogEdit.vue index 948c6cf..fa2a74a 100644 --- a/src/views/think/thinkMoneyLog/components/thinkMoneyLogEdit.vue +++ b/src/views/think/thinkMoneyLog/components/thinkMoneyLogEdit.vue @@ -97,7 +97,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkMoneyLog, updateThinkMoneyLog } from '@/api/think/thinkMoneyLog'; + import { + addThinkMoneyLog, + updateThinkMoneyLog + } from '@/api/think/thinkMoneyLog'; import { ThinkMoneyLog } from '@/api/think/thinkMoneyLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -198,7 +201,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkMoneyLog : addThinkMoneyLog; + const saveOrUpdate = isUpdate.value + ? updateThinkMoneyLog + : addThinkMoneyLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -221,12 +226,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkMoneyLog/index.vue b/src/views/think/thinkMoneyLog/index.vue index a1dbc06..6268399 100644 --- a/src/views/think/thinkMoneyLog/index.vue +++ b/src/views/think/thinkMoneyLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkMoneyLogEdit from './components/thinkMoneyLogEdit.vue'; - import { pageThinkMoneyLog, removeThinkMoneyLog, removeBatchThinkMoneyLog } from '@/api/think/thinkMoneyLog'; - import type { ThinkMoneyLog, ThinkMoneyLogParam } from '@/api/think/thinkMoneyLog/model'; + import { + pageThinkMoneyLog, + removeThinkMoneyLog, + removeBatchThinkMoneyLog + } from '@/api/think/thinkMoneyLog'; + import type { + ThinkMoneyLog, + ThinkMoneyLogParam + } from '@/api/think/thinkMoneyLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,67 +116,67 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '场馆订单号', dataIndex: 'orderNum', key: 'orderNum', - align: 'center', + align: 'center' }, { title: '订单id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '场馆名称', dataIndex: 'siteName', key: 'siteName', - align: 'center', + align: 'center' }, { title: '微信昵称', dataIndex: 'username', key: 'username', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '付款金额', dataIndex: 'money', key: 'money', - align: 'center', + align: 'center' }, { title: '变化前积分', dataIndex: 'oldMoney', key: 'oldMoney', - align: 'center', + align: 'center' }, { title: '变化后积分', dataIndex: 'newMoney', key: 'newMoney', - align: 'center', + align: 'center' }, { title: '描述', dataIndex: 'info', key: 'info', - align: 'center', + align: 'center' }, { title: '1增加,2减少', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '记录时间', diff --git a/src/views/think/thinkNews/components/thinkNewsEdit.vue b/src/views/think/thinkNews/components/thinkNewsEdit.vue index 0a9d977..21a1569 100644 --- a/src/views/think/thinkNews/components/thinkNewsEdit.vue +++ b/src/views/think/thinkNews/components/thinkNewsEdit.vue @@ -228,12 +228,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkNews/index.vue b/src/views/think/thinkNews/index.vue index ee50631..1e3668d 100644 --- a/src/views/think/thinkNews/index.vue +++ b/src/views/think/thinkNews/index.vue @@ -45,7 +45,11 @@ - + @@ -62,7 +66,11 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkNewsEdit from './components/thinkNewsEdit.vue'; - import { pageThinkNews, removeThinkNews, removeBatchThinkNews } from '@/api/think/thinkNews'; + import { + pageThinkNews, + removeThinkNews, + removeBatchThinkNews + } from '@/api/think/thinkNews'; import type { ThinkNews, ThinkNewsParam } from '@/api/think/thinkNews/model'; // 表格实例 @@ -105,61 +113,61 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '关联分类id', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '标题', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '缩略图', dataIndex: 'thumb', key: 'thumb', - align: 'center', + align: 'center' }, { title: '描述', dataIndex: 'desc', key: 'desc', - align: 'center', + align: 'center' }, { title: '详细内容', dataIndex: 'content', key: 'content', - align: 'center', + align: 'center' }, { title: '浏览量', dataIndex: 'views', key: 'views', - align: 'center', + align: 'center' }, { title: '是否头条新闻:1是,2不是', dataIndex: 'isHeader', key: 'isHeader', - align: 'center', + align: 'center' }, { title: '是否弹窗:1是,2不是', dataIndex: 'isAlert', key: 'isAlert', - align: 'center', + align: 'center' }, { title: '失效时间', dataIndex: 'expireTime', key: 'expireTime', - align: 'center', + align: 'center' }, { title: '', @@ -174,13 +182,13 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '状态:1正常,2下架', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkNewsCategory/components/thinkNewsCategoryEdit.vue b/src/views/think/thinkNewsCategory/components/thinkNewsCategoryEdit.vue index baab166..9935985 100644 --- a/src/views/think/thinkNewsCategory/components/thinkNewsCategoryEdit.vue +++ b/src/views/think/thinkNewsCategory/components/thinkNewsCategoryEdit.vue @@ -33,17 +33,15 @@ v-model:value="form.catname" /> - - - + + + { loading.value = false; @@ -185,12 +188,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkNewsCategory/index.vue b/src/views/think/thinkNewsCategory/index.vue index 4d08b14..45bb595 100644 --- a/src/views/think/thinkNewsCategory/index.vue +++ b/src/views/think/thinkNewsCategory/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkNewsCategoryEdit from './components/thinkNewsCategoryEdit.vue'; - import { pageThinkNewsCategory, removeThinkNewsCategory, removeBatchThinkNewsCategory } from '@/api/think/thinkNewsCategory'; - import type { ThinkNewsCategory, ThinkNewsCategoryParam } from '@/api/think/thinkNewsCategory/model'; + import { + pageThinkNewsCategory, + removeThinkNewsCategory, + removeBatchThinkNewsCategory + } from '@/api/think/thinkNewsCategory'; + import type { + ThinkNewsCategory, + ThinkNewsCategoryParam + } from '@/api/think/thinkNewsCategory/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '上级id', dataIndex: 'pid', key: 'pid', - align: 'center', + align: 'center' }, { title: '分类名称', dataIndex: 'catname', key: 'catname', - align: 'center', + align: 'center' }, { title: '分类图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '', @@ -144,7 +155,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -201,7 +212,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkNewsCategory(selection.value.map((d) => d.thinkNewsCategoryId)) + removeBatchThinkNewsCategory( + selection.value.map((d) => d.thinkNewsCategoryId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkOldCard/components/thinkOldCardEdit.vue b/src/views/think/thinkOldCard/components/thinkOldCardEdit.vue index 0e2a113..768b91a 100644 --- a/src/views/think/thinkOldCard/components/thinkOldCardEdit.vue +++ b/src/views/think/thinkOldCard/components/thinkOldCardEdit.vue @@ -103,7 +103,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkOldCard, updateThinkOldCard } from '@/api/think/thinkOldCard'; + import { + addThinkOldCard, + updateThinkOldCard + } from '@/api/think/thinkOldCard'; import { ThinkOldCard } from '@/api/think/thinkOldCard/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -204,7 +207,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkOldCard : addThinkOldCard; + const saveOrUpdate = isUpdate.value + ? updateThinkOldCard + : addThinkOldCard; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -227,12 +232,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOldCard/index.vue b/src/views/think/thinkOldCard/index.vue index 63b5a51..bad97da 100644 --- a/src/views/think/thinkOldCard/index.vue +++ b/src/views/think/thinkOldCard/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkOldCardEdit from './components/thinkOldCardEdit.vue'; - import { pageThinkOldCard, removeThinkOldCard, removeBatchThinkOldCard } from '@/api/think/thinkOldCard'; - import type { ThinkOldCard, ThinkOldCardParam } from '@/api/think/thinkOldCard/model'; + import { + pageThinkOldCard, + removeThinkOldCard, + removeBatchThinkOldCard + } from '@/api/think/thinkOldCard'; + import type { + ThinkOldCard, + ThinkOldCardParam + } from '@/api/think/thinkOldCard/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,73 +116,73 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '卡类型', dataIndex: 'cardType', key: 'cardType', - align: 'center', + align: 'center' }, { title: '卡号', dataIndex: 'cardNum', key: 'cardNum', - align: 'center', + align: 'center' }, { title: '姓名', dataIndex: 'username', key: 'username', - align: 'center', + align: 'center' }, { title: '联系电话', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '卡内余额', dataIndex: 'remainingMoney', key: 'remainingMoney', - align: 'center', + align: 'center' }, { title: '卡内次数', dataIndex: 'remainingNum', key: 'remainingNum', - align: 'center', + align: 'center' }, { title: '剩余天数', dataIndex: 'remainingDay', key: 'remainingDay', - align: 'center', + align: 'center' }, { title: '截止日期', dataIndex: 'expireDate', key: 'expireDate', - align: 'center', + align: 'center' }, { title: '创建日期', dataIndex: 'createDate', key: 'createDate', - align: 'center', + align: 'center' }, { title: '操作员', dataIndex: 'operateUser', key: 'operateUser', - align: 'center', + align: 'center' }, { title: '状态', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkOrder/components/invoiceByList.vue b/src/views/think/thinkOrder/components/invoiceByList.vue index e492be9..3fe2251 100644 --- a/src/views/think/thinkOrder/components/invoiceByList.vue +++ b/src/views/think/thinkOrder/components/invoiceByList.vue @@ -114,147 +114,144 @@ diff --git a/src/views/think/thinkOrder/components/search.vue b/src/views/think/thinkOrder/components/search.vue index e665220..8fc72d0 100644 --- a/src/views/think/thinkOrder/components/search.vue +++ b/src/views/think/thinkOrder/components/search.vue @@ -1,17 +1,25 @@ diff --git a/src/views/think/thinkOrder/index.vue b/src/views/think/thinkOrder/index.vue index debc1e4..c268e80 100644 --- a/src/views/think/thinkOrder/index.vue +++ b/src/views/think/thinkOrder/index.vue @@ -104,12 +104,8 @@ IC季卡 - - 对公 - - - 余额 - + 对公 + 余额 diff --git a/src/views/think/thinkOrderForSite/components/search.vue b/src/views/think/thinkOrderForSite/components/search.vue index 57ac3ff..a028a12 100644 --- a/src/views/think/thinkOrderForSite/components/search.vue +++ b/src/views/think/thinkOrderForSite/components/search.vue @@ -69,7 +69,7 @@ payStatus: undefined, orderStatus: undefined, payType: undefined, - isInvoice: undefined, + isInvoice: undefined }); // 请求状态 const loading = ref(false); diff --git a/src/views/think/thinkOrderForSite/index.vue b/src/views/think/thinkOrderForSite/index.vue index aa8ce15..b3c6608 100644 --- a/src/views/think/thinkOrderForSite/index.vue +++ b/src/views/think/thinkOrderForSite/index.vue @@ -145,8 +145,7 @@ IC会员卡 - + 免费订单 @@ -178,7 +177,8 @@ + color="cyan" + > 未付款,占场中 @@ -188,20 +188,29 @@ @@ -228,8 +237,15 @@ 详情 - 退款 + 退款 @@ -245,283 +261,284 @@ diff --git a/src/views/think/thinkOrderInfo/components/bookingOrderInfoEdit.vue b/src/views/think/thinkOrderInfo/components/bookingOrderInfoEdit.vue index ace5bb8..2c3bfa1 100644 --- a/src/views/think/thinkOrderInfo/components/bookingOrderInfoEdit.vue +++ b/src/views/think/thinkOrderInfo/components/bookingOrderInfoEdit.vue @@ -89,7 +89,10 @@ v-model:value="form.childrenNum" /> - + { loading.value = false; @@ -280,12 +288,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOrderInfo/index.vue b/src/views/think/thinkOrderInfo/index.vue index d2fddc2..85f3d40 100644 --- a/src/views/think/thinkOrderInfo/index.vue +++ b/src/views/think/thinkOrderInfo/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import BookingOrderInfoEdit from './components/bookingOrderInfoEdit.vue'; - import { pageBookingOrderInfo, removeBookingOrderInfo, removeBatchBookingOrderInfo } from '@/api/booking/bookingOrderInfo'; - import type { BookingOrderInfo, BookingOrderInfoParam } from '@/api/booking/bookingOrderInfo/model'; + import { + pageBookingOrderInfo, + removeBookingOrderInfo, + removeBatchBookingOrderInfo + } from '@/api/booking/bookingOrderInfo'; + import type { + BookingOrderInfo, + BookingOrderInfoParam + } from '@/api/booking/bookingOrderInfo/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,115 +116,115 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '关联订单表id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '关联场馆id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '关联场地id', dataIndex: 'fid', key: 'fid', - align: 'center', + align: 'center' }, { title: '场馆', dataIndex: 'siteName', key: 'siteName', - align: 'center', + align: 'center' }, { title: '场地', dataIndex: 'fieldName', key: 'fieldName', - align: 'center', + align: 'center' }, { title: '预约时间段', dataIndex: 'dateTime', key: 'dateTime', - align: 'center', + align: 'center' }, { title: '单价', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '儿童价', dataIndex: 'childrenPrice', key: 'childrenPrice', - align: 'center', + align: 'center' }, { title: '成人人数', dataIndex: 'adultNum', key: 'adultNum', - align: 'center', + align: 'center' }, { title: '儿童人数', dataIndex: 'childrenNum', key: 'childrenNum', - align: 'center', + align: 'center' }, { title: '1已付款,2未付款,3无需付款或占用状态', dataIndex: 'payStatus', key: 'payStatus', - align: 'center', + align: 'center' }, { title: '是否免费:1免费、2收费', dataIndex: 'isFree', key: 'isFree', - align: 'center', + align: 'center' }, { title: '是否支持儿童票:1支持,2不支持', dataIndex: 'isChildren', key: 'isChildren', - align: 'center', + align: 'center' }, { title: '预订类型:1全场,2半场', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '组合数据:日期+时间段+场馆id+场地id', dataIndex: 'mergeData', key: 'mergeData', - align: 'center', + align: 'center' }, { title: '开场时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '下单时间', dataIndex: 'orderTime', key: 'orderTime', - align: 'center', + align: 'center' }, { title: '毫秒时间戳', dataIndex: 'timeFlag', key: 'timeFlag', - align: 'center', + align: 'center' }, { title: '操作', @@ -270,7 +281,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchBookingOrderInfo(selection.value.map((d) => d.bookingOrderInfoId)) + removeBatchBookingOrderInfo( + selection.value.map((d) => d.bookingOrderInfoId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkOrderInfoLog/components/thinkOrderInfoLogEdit.vue b/src/views/think/thinkOrderInfoLog/components/thinkOrderInfoLogEdit.vue index 4a87016..4c4801d 100644 --- a/src/views/think/thinkOrderInfoLog/components/thinkOrderInfoLogEdit.vue +++ b/src/views/think/thinkOrderInfoLog/components/thinkOrderInfoLogEdit.vue @@ -55,7 +55,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkOrderInfoLog, updateThinkOrderInfoLog } from '@/api/think/thinkOrderInfoLog'; + import { + addThinkOrderInfoLog, + updateThinkOrderInfoLog + } from '@/api/think/thinkOrderInfoLog'; import { ThinkOrderInfoLog } from '@/api/think/thinkOrderInfoLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -150,7 +153,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkOrderInfoLog : addThinkOrderInfoLog; + const saveOrUpdate = isUpdate.value + ? updateThinkOrderInfoLog + : addThinkOrderInfoLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -173,12 +178,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOrderInfoLog/index.vue b/src/views/think/thinkOrderInfoLog/index.vue index 235b5d3..092a591 100644 --- a/src/views/think/thinkOrderInfoLog/index.vue +++ b/src/views/think/thinkOrderInfoLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkOrderInfoLogEdit from './components/thinkOrderInfoLogEdit.vue'; - import { pageThinkOrderInfoLog, removeThinkOrderInfoLog, removeBatchThinkOrderInfoLog } from '@/api/think/thinkOrderInfoLog'; - import type { ThinkOrderInfoLog, ThinkOrderInfoLogParam } from '@/api/think/thinkOrderInfoLog/model'; + import { + pageThinkOrderInfoLog, + removeThinkOrderInfoLog, + removeBatchThinkOrderInfoLog + } from '@/api/think/thinkOrderInfoLog'; + import type { + ThinkOrderInfoLog, + ThinkOrderInfoLogParam + } from '@/api/think/thinkOrderInfoLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '关联订单表id', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '关联场馆id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '关联场地id', dataIndex: 'fid', key: 'fid', - align: 'center', + align: 'center' }, { title: '核销数量', dataIndex: 'useNum', key: 'useNum', - align: 'center', + align: 'center' }, { title: '核销时间', @@ -195,7 +206,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkOrderInfoLog(selection.value.map((d) => d.thinkOrderInfoLogId)) + removeBatchThinkOrderInfoLog( + selection.value.map((d) => d.thinkOrderInfoLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkOrderLog/components/thinkOrderLogEdit.vue b/src/views/think/thinkOrderLog/components/thinkOrderLogEdit.vue index b26becc..002a123 100644 --- a/src/views/think/thinkOrderLog/components/thinkOrderLogEdit.vue +++ b/src/views/think/thinkOrderLog/components/thinkOrderLogEdit.vue @@ -90,7 +90,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkOrderLog, updateThinkOrderLog } from '@/api/think/thinkOrderLog'; + import { + addThinkOrderLog, + updateThinkOrderLog + } from '@/api/think/thinkOrderLog'; import { ThinkOrderLog } from '@/api/think/thinkOrderLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -190,7 +193,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkOrderLog : addThinkOrderLog; + const saveOrUpdate = isUpdate.value + ? updateThinkOrderLog + : addThinkOrderLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -213,12 +218,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOrderLog/index.vue b/src/views/think/thinkOrderLog/index.vue index fe1f676..c6f87bb 100644 --- a/src/views/think/thinkOrderLog/index.vue +++ b/src/views/think/thinkOrderLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkOrderLogEdit from './components/thinkOrderLogEdit.vue'; - import { pageThinkOrderLog, removeThinkOrderLog, removeBatchThinkOrderLog } from '@/api/think/thinkOrderLog'; - import type { ThinkOrderLog, ThinkOrderLogParam } from '@/api/think/thinkOrderLog/model'; + import { + pageThinkOrderLog, + removeThinkOrderLog, + removeBatchThinkOrderLog + } from '@/api/think/thinkOrderLog'; + import type { + ThinkOrderLog, + ThinkOrderLogParam + } from '@/api/think/thinkOrderLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '参数', dataIndex: 'json', key: 'json', - align: 'center', + align: 'center' }, { title: '用户ID', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '管理员ID', dataIndex: 'aid', key: 'aid', - align: 'center', + align: 'center' }, { title: '订单来源', dataIndex: 'orderSource', key: 'orderSource', - align: 'center', + align: 'center' }, { title: '用户IP', dataIndex: 'ip', key: 'ip', - align: 'center', + align: 'center' }, { title: '订单IP', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '下单时间', @@ -156,19 +167,19 @@ title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '场馆ID', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '场地ID', dataIndex: 'fid', key: 'fid', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkOrderOffCheck/components/thinkOrderOffCheckEdit.vue b/src/views/think/thinkOrderOffCheck/components/thinkOrderOffCheckEdit.vue index 39ef269..a7b281b 100644 --- a/src/views/think/thinkOrderOffCheck/components/thinkOrderOffCheckEdit.vue +++ b/src/views/think/thinkOrderOffCheck/components/thinkOrderOffCheckEdit.vue @@ -20,18 +20,10 @@ " > - + - + - + 显示 隐藏 @@ -103,7 +98,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkOrderOffCheck, updateThinkOrderOffCheck } from '@/api/think/thinkOrderOffCheck'; + import { + addThinkOrderOffCheck, + updateThinkOrderOffCheck + } from '@/api/think/thinkOrderOffCheck'; import { ThinkOrderOffCheck } from '@/api/think/thinkOrderOffCheck/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -206,7 +204,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkOrderOffCheck : addThinkOrderOffCheck; + const saveOrUpdate = isUpdate.value + ? updateThinkOrderOffCheck + : addThinkOrderOffCheck; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -229,12 +229,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOrderOffCheck/index.vue b/src/views/think/thinkOrderOffCheck/index.vue index 6c0b9d6..867c721 100644 --- a/src/views/think/thinkOrderOffCheck/index.vue +++ b/src/views/think/thinkOrderOffCheck/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkOrderOffCheckEdit from './components/thinkOrderOffCheckEdit.vue'; - import { pageThinkOrderOffCheck, removeThinkOrderOffCheck, removeBatchThinkOrderOffCheck } from '@/api/think/thinkOrderOffCheck'; - import type { ThinkOrderOffCheck, ThinkOrderOffCheckParam } from '@/api/think/thinkOrderOffCheck/model'; + import { + pageThinkOrderOffCheck, + removeThinkOrderOffCheck, + removeBatchThinkOrderOffCheck + } from '@/api/think/thinkOrderOffCheck'; + import type { + ThinkOrderOffCheck, + ThinkOrderOffCheckParam + } from '@/api/think/thinkOrderOffCheck/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,67 +116,67 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '原价', dataIndex: 'originAmount', key: 'originAmount', - align: 'center', + align: 'center' }, { title: '折扣', dataIndex: 'rate', key: 'rate', - align: 'center', + align: 'center' }, { title: '折后价', dataIndex: 'offAmount', key: 'offAmount', - align: 'center', + align: 'center' }, { title: '申请原因', dataIndex: 'reqReason', key: 'reqReason', - align: 'center', + align: 'center' }, { title: '拒绝原因', dataIndex: 'refuseReason', key: 'refuseReason', - align: 'center', + align: 'center' }, { title: '审核人', dataIndex: 'checkUid', key: 'checkUid', - align: 'center', + align: 'center' }, { title: '状态, 0已发布, 1待审核 2已驳回 3违规内容', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -180,7 +191,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -237,7 +248,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkOrderOffCheck(selection.value.map((d) => d.thinkOrderOffCheckId)) + removeBatchThinkOrderOffCheck( + selection.value.map((d) => d.thinkOrderOffCheckId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkOrderRefundLog/components/thinkOrderRefundLogEdit.vue b/src/views/think/thinkOrderRefundLog/components/thinkOrderRefundLogEdit.vue index 34cb356..fedd33b 100644 --- a/src/views/think/thinkOrderRefundLog/components/thinkOrderRefundLogEdit.vue +++ b/src/views/think/thinkOrderRefundLog/components/thinkOrderRefundLogEdit.vue @@ -54,7 +54,10 @@ v-model:value="form.source" /> - + 显示 隐藏 @@ -68,7 +71,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkOrderRefundLog, updateThinkOrderRefundLog } from '@/api/think/thinkOrderRefundLog'; + import { + addThinkOrderRefundLog, + updateThinkOrderRefundLog + } from '@/api/think/thinkOrderRefundLog'; import { ThinkOrderRefundLog } from '@/api/think/thinkOrderRefundLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -165,7 +171,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkOrderRefundLog : addThinkOrderRefundLog; + const saveOrUpdate = isUpdate.value + ? updateThinkOrderRefundLog + : addThinkOrderRefundLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -188,12 +196,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkOrderRefundLog/index.vue b/src/views/think/thinkOrderRefundLog/index.vue index fa784d6..4bb6f02 100644 --- a/src/views/think/thinkOrderRefundLog/index.vue +++ b/src/views/think/thinkOrderRefundLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkOrderRefundLogEdit from './components/thinkOrderRefundLogEdit.vue'; - import { pageThinkOrderRefundLog, removeThinkOrderRefundLog, removeBatchThinkOrderRefundLog } from '@/api/think/thinkOrderRefundLog'; - import type { ThinkOrderRefundLog, ThinkOrderRefundLogParam } from '@/api/think/thinkOrderRefundLog/model'; + import { + pageThinkOrderRefundLog, + removeThinkOrderRefundLog, + removeBatchThinkOrderRefundLog + } from '@/api/think/thinkOrderRefundLog'; + import type { + ThinkOrderRefundLog, + ThinkOrderRefundLogParam + } from '@/api/think/thinkOrderRefundLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'int', key: 'int', align: 'center', - width: 90, + width: 90 }, { title: '用户ID', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '场馆ID', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '订单ID', dataIndex: 'oid', key: 'oid', - align: 'center', + align: 'center' }, { title: '参数json', dataIndex: 'json', key: 'json', - align: 'center', + align: 'center' }, { title: '来源', dataIndex: 'source', key: 'source', - align: 'center', + align: 'center' }, { title: '状态:1新增,2退款成功,3已全额退款,4退款失败', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkOrderRefundLog(selection.value.map((d) => d.thinkOrderRefundLogId)) + removeBatchThinkOrderRefundLog( + selection.value.map((d) => d.thinkOrderRefundLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkPayLog/components/thinkPayLogEdit.vue b/src/views/think/thinkPayLog/components/thinkPayLogEdit.vue index 6dd5da6..92ecae1 100644 --- a/src/views/think/thinkPayLog/components/thinkPayLogEdit.vue +++ b/src/views/think/thinkPayLog/components/thinkPayLogEdit.vue @@ -149,7 +149,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkPayLog : addThinkPayLog; + const saveOrUpdate = isUpdate.value + ? updateThinkPayLog + : addThinkPayLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -172,12 +174,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkPayLog/index.vue b/src/views/think/thinkPayLog/index.vue index 6fd697f..da2946f 100644 --- a/src/views/think/thinkPayLog/index.vue +++ b/src/views/think/thinkPayLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkPayLogEdit from './components/thinkPayLogEdit.vue'; - import { pageThinkPayLog, removeThinkPayLog, removeBatchThinkPayLog } from '@/api/think/thinkPayLog'; - import type { ThinkPayLog, ThinkPayLogParam } from '@/api/think/thinkPayLog/model'; + import { + pageThinkPayLog, + removeThinkPayLog, + removeBatchThinkPayLog + } from '@/api/think/thinkPayLog'; + import type { + ThinkPayLog, + ThinkPayLogParam + } from '@/api/think/thinkPayLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '类型', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '参数', dataIndex: 'params', key: 'params', - align: 'center', + align: 'center' }, { title: '说明', dataIndex: 'remate', key: 'remate', - align: 'center', + align: 'center' }, { title: '时间', dataIndex: 'addtime', key: 'addtime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkQrcode/components/thinkQrcodeEdit.vue b/src/views/think/thinkQrcode/components/thinkQrcodeEdit.vue index 7a0e797..720a3df 100644 --- a/src/views/think/thinkQrcode/components/thinkQrcodeEdit.vue +++ b/src/views/think/thinkQrcode/components/thinkQrcodeEdit.vue @@ -19,21 +19,30 @@ styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " > - + - + - + - + - + - + - + - + { loading.value = false; @@ -268,12 +294,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkQrcode/index.vue b/src/views/think/thinkQrcode/index.vue index 3955a4e..61356f1 100644 --- a/src/views/think/thinkQrcode/index.vue +++ b/src/views/think/thinkQrcode/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkQrcodeEdit from './components/thinkQrcodeEdit.vue'; - import { pageThinkQrcode, removeThinkQrcode, removeBatchThinkQrcode } from '@/api/think/thinkQrcode'; - import type { ThinkQrcode, ThinkQrcodeParam } from '@/api/think/thinkQrcode/model'; + import { + pageThinkQrcode, + removeThinkQrcode, + removeBatchThinkQrcode + } from '@/api/think/thinkQrcode'; + import type { + ThinkQrcode, + ThinkQrcodeParam + } from '@/api/think/thinkQrcode/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,103 +116,105 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '二维码本身的值,大小不确定。可能为json,链接,文本 ', dataIndex: 'codeValue', key: 'codeValue', - align: 'center', + align: 'center' }, { title: '关联的用户id,默认用户为uuid 即使为数字 转为字符保存 ', dataIndex: 'codeRelUser', key: 'codeRelUser', - align: 'center', + align: 'center' }, { title: '关联的用户类型 wechat: 微信用户 ,sys:系统用户,other:其他', dataIndex: 'userType', key: 'userType', - align: 'center', + align: 'center' }, { title: '有效开始时间', dataIndex: 'codeValidStartTime', key: 'codeValidStartTime', - align: 'center', + align: 'center' }, { title: '有效结束时间 默认五分钟后过期', dataIndex: 'codeValidEndTime', key: 'codeValidEndTime', - align: 'center', + align: 'center' }, { title: '是否使用 0 未使用 1 已使用', dataIndex: 'codeUsStatus', key: 'codeUsStatus', - align: 'center', + align: 'center' }, { title: '二维码可使用次数,默认一次', dataIndex: 'codeUsabaleNumber', key: 'codeUsabaleNumber', - align: 'center', + align: 'center' }, { - title: '二维码已经使用次数,可以超过可使用次数,不想建立一个记录表,用这个字段进行统计', + title: + '二维码已经使用次数,可以超过可使用次数,不想建立一个记录表,用这个字段进行统计', dataIndex: 'codeUsNumber', key: 'codeUsNumber', - align: 'center', + align: 'center' }, { title: '二维码类型 valve:阀门;other:其他 ,后期继续添加 ', dataIndex: 'codeType', key: 'codeType', - align: 'center', + align: 'center' }, { title: '二维码实际转发地址 : 预留字段 可能该系统不一定用到', dataIndex: 'codeForward', key: 'codeForward', - align: 'center', + align: 'center' }, { title: '创建时间', dataIndex: 'crateTime', key: 'crateTime', - align: 'center', + align: 'center' }, { title: '创建人id', dataIndex: 'createUser', key: 'createUser', - align: 'center', + align: 'center' }, { title: '更新次数', dataIndex: 'updateNumber', key: 'updateNumber', - align: 'center', + align: 'center' }, { title: '最近更新时间,作为系统设计预留字段', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '最近更新数据id 系统设计使用', dataIndex: 'updateUser', key: 'updateUser', - align: 'center', + align: 'center' }, { - title: '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', + title: + '数据逻辑删除状态 0:未删除 1 :已删除; 物理删除不用考虑该字段 作为系统设计预留字段', dataIndex: 'deleteStatus', key: 'deleteStatus', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkRechargeLog/components/thinkRechargeLogEdit.vue b/src/views/think/thinkRechargeLog/components/thinkRechargeLogEdit.vue index 0c0ac65..e13a9fe 100644 --- a/src/views/think/thinkRechargeLog/components/thinkRechargeLogEdit.vue +++ b/src/views/think/thinkRechargeLog/components/thinkRechargeLogEdit.vue @@ -54,11 +54,7 @@ - + - + { loading.value = false; @@ -204,12 +208,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkRechargeLog/index.vue b/src/views/think/thinkRechargeLog/index.vue index 0d93fc3..de699c6 100644 --- a/src/views/think/thinkRechargeLog/index.vue +++ b/src/views/think/thinkRechargeLog/index.vue @@ -36,7 +36,8 @@ diff --git a/src/views/think/thinkSignup/components/thinkSignupEdit.vue b/src/views/think/thinkSignup/components/thinkSignupEdit.vue index e988690..720868e 100644 --- a/src/views/think/thinkSignup/components/thinkSignupEdit.vue +++ b/src/views/think/thinkSignup/components/thinkSignupEdit.vue @@ -230,7 +230,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkSignup : addThinkSignup; + const saveOrUpdate = isUpdate.value + ? updateThinkSignup + : addThinkSignup; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -253,12 +255,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSignup/index.vue b/src/views/think/thinkSignup/index.vue index 8d7fc03..247540c 100644 --- a/src/views/think/thinkSignup/index.vue +++ b/src/views/think/thinkSignup/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSignupEdit from './components/thinkSignupEdit.vue'; - import { pageThinkSignup, removeThinkSignup, removeBatchThinkSignup } from '@/api/think/thinkSignup'; - import type { ThinkSignup, ThinkSignupParam } from '@/api/think/thinkSignup/model'; + import { + pageThinkSignup, + removeThinkSignup, + removeBatchThinkSignup + } from '@/api/think/thinkSignup'; + import type { + ThinkSignup, + ThinkSignupParam + } from '@/api/think/thinkSignup/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,85 +116,85 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '关联分类id', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '标题', dataIndex: 'title', key: 'title', - align: 'center', + align: 'center' }, { title: '缩略图', dataIndex: 'thumb', key: 'thumb', - align: 'center', + align: 'center' }, { title: '是否需要报名费:1需要,2不需要', dataIndex: 'isPrice', key: 'isPrice', - align: 'center', + align: 'center' }, { title: '活动报名开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '活动报名结束时间', dataIndex: 'endTime', key: 'endTime', - align: 'center', + align: 'center' }, { title: '报名费', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '允许报名人数', dataIndex: 'count', key: 'count', - align: 'center', + align: 'center' }, { title: '已报名人数', dataIndex: 'num', key: 'num', - align: 'center', + align: 'center' }, { title: '描述', dataIndex: 'desc', key: 'desc', - align: 'center', + align: 'center' }, { title: '详细内容', dataIndex: 'content', key: 'content', - align: 'center', + align: 'center' }, { title: '浏览量', dataIndex: 'views', key: 'views', - align: 'center', + align: 'center' }, { title: '是否显示:1显示,2不显示', dataIndex: 'isShow', key: 'isShow', - align: 'center', + align: 'center' }, { title: '', @@ -198,7 +209,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkSignupCategory/components/thinkSignupCategoryEdit.vue b/src/views/think/thinkSignupCategory/components/thinkSignupCategoryEdit.vue index d56ea5d..47d9dd4 100644 --- a/src/views/think/thinkSignupCategory/components/thinkSignupCategoryEdit.vue +++ b/src/views/think/thinkSignupCategory/components/thinkSignupCategoryEdit.vue @@ -33,17 +33,15 @@ v-model:value="form.catname" /> - - - + + + { loading.value = false; @@ -185,12 +188,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSignupCategory/index.vue b/src/views/think/thinkSignupCategory/index.vue index 8409e47..9a79796 100644 --- a/src/views/think/thinkSignupCategory/index.vue +++ b/src/views/think/thinkSignupCategory/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSignupCategoryEdit from './components/thinkSignupCategoryEdit.vue'; - import { pageThinkSignupCategory, removeThinkSignupCategory, removeBatchThinkSignupCategory } from '@/api/think/thinkSignupCategory'; - import type { ThinkSignupCategory, ThinkSignupCategoryParam } from '@/api/think/thinkSignupCategory/model'; + import { + pageThinkSignupCategory, + removeThinkSignupCategory, + removeBatchThinkSignupCategory + } from '@/api/think/thinkSignupCategory'; + import type { + ThinkSignupCategory, + ThinkSignupCategoryParam + } from '@/api/think/thinkSignupCategory/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '上级id', dataIndex: 'pid', key: 'pid', - align: 'center', + align: 'center' }, { title: '分类名称', dataIndex: 'catname', key: 'catname', - align: 'center', + align: 'center' }, { title: '分类图片', dataIndex: 'image', key: 'image', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '', @@ -144,7 +155,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -201,7 +212,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkSignupCategory(selection.value.map((d) => d.thinkSignupCategoryId)) + removeBatchThinkSignupCategory( + selection.value.map((d) => d.thinkSignupCategoryId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkSignupLists/components/thinkSignupListsEdit.vue b/src/views/think/thinkSignupLists/components/thinkSignupListsEdit.vue index 898b329..6d3405c 100644 --- a/src/views/think/thinkSignupLists/components/thinkSignupListsEdit.vue +++ b/src/views/think/thinkSignupLists/components/thinkSignupListsEdit.vue @@ -61,25 +61,20 @@ v-model:value="form.price" /> - + 显示 隐藏 - + - + @@ -89,7 +84,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkSignupLists, updateThinkSignupLists } from '@/api/think/thinkSignupLists'; + import { + addThinkSignupLists, + updateThinkSignupLists + } from '@/api/think/thinkSignupLists'; import { ThinkSignupLists } from '@/api/think/thinkSignupLists/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -189,7 +187,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkSignupLists : addThinkSignupLists; + const saveOrUpdate = isUpdate.value + ? updateThinkSignupLists + : addThinkSignupLists; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -212,12 +212,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSignupLists/index.vue b/src/views/think/thinkSignupLists/index.vue index b16f73f..4c167c5 100644 --- a/src/views/think/thinkSignupLists/index.vue +++ b/src/views/think/thinkSignupLists/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSignupListsEdit from './components/thinkSignupListsEdit.vue'; - import { pageThinkSignupLists, removeThinkSignupLists, removeBatchThinkSignupLists } from '@/api/think/thinkSignupLists'; - import type { ThinkSignupLists, ThinkSignupListsParam } from '@/api/think/thinkSignupLists/model'; + import { + pageThinkSignupLists, + removeThinkSignupLists, + removeBatchThinkSignupLists + } from '@/api/think/thinkSignupLists'; + import type { + ThinkSignupLists, + ThinkSignupListsParam + } from '@/api/think/thinkSignupLists/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,49 +116,49 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '微信订单号', dataIndex: 'wechatOrder', key: 'wechatOrder', - align: 'center', + align: 'center' }, { title: '活动id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '用户id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '真实姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '报名费用', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '是否已付款:1已付款,2未付款,3无需付款', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '', @@ -162,13 +173,13 @@ title: '', dataIndex: 'age', key: 'age', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'mun', key: 'mun', - align: 'center', + align: 'center' }, { title: '操作', @@ -225,7 +236,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkSignupLists(selection.value.map((d) => d.thinkSignupListsId)) + removeBatchThinkSignupLists( + selection.value.map((d) => d.thinkSignupListsId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkSite/components/thinkSiteEdit.vue b/src/views/think/thinkSite/components/thinkSiteEdit.vue index d12a7c2..3301d87 100644 --- a/src/views/think/thinkSite/components/thinkSiteEdit.vue +++ b/src/views/think/thinkSite/components/thinkSiteEdit.vue @@ -10,11 +10,7 @@ @update:visible="updateVisible" @ok="save" > - + - - - - - + + + + +

已选经纬度:{{ form.lng }}. {{ form.lat }}

- + @@ -124,12 +125,13 @@ diff --git a/src/views/think/thinkSite/index.vue b/src/views/think/thinkSite/index.vue index 5240ac7..ae153e3 100644 --- a/src/views/think/thinkSite/index.vue +++ b/src/views/think/thinkSite/index.vue @@ -37,9 +37,7 @@ @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSiteImgsEdit from './components/thinkSiteImgsEdit.vue'; - import { pageThinkSiteImgs, removeThinkSiteImgs, removeBatchThinkSiteImgs } from '@/api/think/thinkSiteImgs'; - import type { ThinkSiteImgs, ThinkSiteImgsParam } from '@/api/think/thinkSiteImgs/model'; + import { + pageThinkSiteImgs, + removeThinkSiteImgs, + removeBatchThinkSiteImgs + } from '@/api/think/thinkSiteImgs'; + import type { + ThinkSiteImgs, + ThinkSiteImgsParam + } from '@/api/think/thinkSiteImgs/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '图片地址', dataIndex: 'path', key: 'path', - align: 'center', + align: 'center' }, { title: '关联id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkSiteTime/components/thinkSiteTimeEdit.vue b/src/views/think/thinkSiteTime/components/thinkSiteTimeEdit.vue index 23c9fd5..41db3d7 100644 --- a/src/views/think/thinkSiteTime/components/thinkSiteTimeEdit.vue +++ b/src/views/think/thinkSiteTime/components/thinkSiteTimeEdit.vue @@ -118,7 +118,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkSiteTime, updateThinkSiteTime } from '@/api/think/thinkSiteTime'; + import { + addThinkSiteTime, + updateThinkSiteTime + } from '@/api/think/thinkSiteTime'; import { ThinkSiteTime } from '@/api/think/thinkSiteTime/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -222,7 +225,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkSiteTime : addThinkSiteTime; + const saveOrUpdate = isUpdate.value + ? updateThinkSiteTime + : addThinkSiteTime; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -245,12 +250,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSiteTime/index.vue b/src/views/think/thinkSiteTime/index.vue index 8594f60..f71a009 100644 --- a/src/views/think/thinkSiteTime/index.vue +++ b/src/views/think/thinkSiteTime/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSiteTimeEdit from './components/thinkSiteTimeEdit.vue'; - import { pageThinkSiteTime, removeThinkSiteTime, removeBatchThinkSiteTime } from '@/api/think/thinkSiteTime'; - import type { ThinkSiteTime, ThinkSiteTimeParam } from '@/api/think/thinkSiteTime/model'; + import { + pageThinkSiteTime, + removeThinkSiteTime, + removeBatchThinkSiteTime + } from '@/api/think/thinkSiteTime'; + import type { + ThinkSiteTime, + ThinkSiteTimeParam + } from '@/api/think/thinkSiteTime/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,79 +116,79 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '时段', dataIndex: 'timePeriod', key: 'timePeriod', - align: 'center', + align: 'center' }, { title: '价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '每日不同价格', dataIndex: 'prices', key: 'prices', - align: 'center', + align: 'center' }, { title: '半场价格', dataIndex: 'halfPrice', key: 'halfPrice', - align: 'center', + align: 'center' }, { title: '每日不同半场价格', dataIndex: 'halfPrices', key: 'halfPrices', - align: 'center', + align: 'center' }, { title: '儿童价', dataIndex: 'childrenPrice', key: 'childrenPrice', - align: 'center', + align: 'center' }, { title: '星期选择', dataIndex: 'week', key: 'week', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '关联id', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '是否关闭,1开启,2关闭', dataIndex: 'isStatus', key: 'isStatus', - align: 'center', + align: 'center' }, { title: '是否免费:1免费,2收费', dataIndex: 'isFree', key: 'isFree', - align: 'center', + align: 'center' }, { title: '开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '儿童价', @@ -192,7 +203,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', diff --git a/src/views/think/thinkSmallRecharge/components/thinkSmallRechargeEdit.vue b/src/views/think/thinkSmallRecharge/components/thinkSmallRechargeEdit.vue index 045d543..aed2ee9 100644 --- a/src/views/think/thinkSmallRecharge/components/thinkSmallRechargeEdit.vue +++ b/src/views/think/thinkSmallRecharge/components/thinkSmallRechargeEdit.vue @@ -20,32 +20,16 @@ " > - + - + - + - + { loading.value = false; @@ -181,12 +170,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSmallRecharge/index.vue b/src/views/think/thinkSmallRecharge/index.vue index 14f5903..994d4a9 100644 --- a/src/views/think/thinkSmallRecharge/index.vue +++ b/src/views/think/thinkSmallRecharge/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSmallRechargeEdit from './components/thinkSmallRechargeEdit.vue'; - import { pageThinkSmallRecharge, removeThinkSmallRecharge, removeBatchThinkSmallRecharge } from '@/api/think/thinkSmallRecharge'; - import type { ThinkSmallRecharge, ThinkSmallRechargeParam } from '@/api/think/thinkSmallRecharge/model'; + import { + pageThinkSmallRecharge, + removeThinkSmallRecharge, + removeBatchThinkSmallRecharge + } from '@/api/think/thinkSmallRecharge'; + import type { + ThinkSmallRecharge, + ThinkSmallRechargeParam + } from '@/api/think/thinkSmallRecharge/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'vid', key: 'vid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'amount', key: 'amount', - align: 'center', + align: 'center' }, { title: '下单时间', @@ -144,7 +155,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -201,7 +212,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkSmallRecharge(selection.value.map((d) => d.thinkSmallRechargeId)) + removeBatchThinkSmallRecharge( + selection.value.map((d) => d.thinkSmallRechargeId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkSpec/components/thinkSpecEdit.vue b/src/views/think/thinkSpec/components/thinkSpecEdit.vue index 7e35a9d..ca5fce0 100644 --- a/src/views/think/thinkSpec/components/thinkSpecEdit.vue +++ b/src/views/think/thinkSpec/components/thinkSpecEdit.vue @@ -149,12 +149,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSpec/index.vue b/src/views/think/thinkSpec/index.vue index 30e3813..9e0672a 100644 --- a/src/views/think/thinkSpec/index.vue +++ b/src/views/think/thinkSpec/index.vue @@ -45,7 +45,11 @@ - + @@ -62,7 +66,11 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSpecEdit from './components/thinkSpecEdit.vue'; - import { pageThinkSpec, removeThinkSpec, removeBatchThinkSpec } from '@/api/think/thinkSpec'; + import { + pageThinkSpec, + removeThinkSpec, + removeBatchThinkSpec + } from '@/api/think/thinkSpec'; import type { ThinkSpec, ThinkSpecParam } from '@/api/think/thinkSpec/model'; // 表格实例 @@ -105,13 +113,13 @@ dataIndex: 'specId', key: 'specId', align: 'center', - width: 90, + width: 90 }, { title: '规格组名称', dataIndex: 'specName', key: 'specName', - align: 'center', + align: 'center' }, { title: '创建时间', diff --git a/src/views/think/thinkSpecValue/components/thinkSpecValueEdit.vue b/src/views/think/thinkSpecValue/components/thinkSpecValueEdit.vue index c959dd6..90eabdb 100644 --- a/src/views/think/thinkSpecValue/components/thinkSpecValueEdit.vue +++ b/src/views/think/thinkSpecValue/components/thinkSpecValueEdit.vue @@ -41,7 +41,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkSpecValue, updateThinkSpecValue } from '@/api/think/thinkSpecValue'; + import { + addThinkSpecValue, + updateThinkSpecValue + } from '@/api/think/thinkSpecValue'; import { ThinkSpecValue } from '@/api/think/thinkSpecValue/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -134,7 +137,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkSpecValue : addThinkSpecValue; + const saveOrUpdate = isUpdate.value + ? updateThinkSpecValue + : addThinkSpecValue; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -157,12 +162,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkSpecValue/index.vue b/src/views/think/thinkSpecValue/index.vue index a8790f1..9a16735 100644 --- a/src/views/think/thinkSpecValue/index.vue +++ b/src/views/think/thinkSpecValue/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkSpecValueEdit from './components/thinkSpecValueEdit.vue'; - import { pageThinkSpecValue, removeThinkSpecValue, removeBatchThinkSpecValue } from '@/api/think/thinkSpecValue'; - import type { ThinkSpecValue, ThinkSpecValueParam } from '@/api/think/thinkSpecValue/model'; + import { + pageThinkSpecValue, + removeThinkSpecValue, + removeBatchThinkSpecValue + } from '@/api/think/thinkSpecValue'; + import type { + ThinkSpecValue, + ThinkSpecValueParam + } from '@/api/think/thinkSpecValue/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,19 +116,19 @@ dataIndex: 'specValueId', key: 'specValueId', align: 'center', - width: 90, + width: 90 }, { title: '规格值', dataIndex: 'specValue', key: 'specValue', - align: 'center', + align: 'center' }, { title: '规格组id', dataIndex: 'specId', key: 'specId', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -183,7 +194,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkSpecValue(selection.value.map((d) => d.thinkSpecValueId)) + removeBatchThinkSpecValue( + selection.value.map((d) => d.thinkSpecValueId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkTrainingInstitution/index.vue b/src/views/think/thinkTrainingInstitution/index.vue index 1f2d52d..ef5b7d8 100644 --- a/src/views/think/thinkTrainingInstitution/index.vue +++ b/src/views/think/thinkTrainingInstitution/index.vue @@ -24,7 +24,10 @@ 修改 - + 删除 diff --git a/src/views/think/thinkUserBind/components/thinkUserBindEdit.vue b/src/views/think/thinkUserBind/components/thinkUserBindEdit.vue index 53258f9..573b208 100644 --- a/src/views/think/thinkUserBind/components/thinkUserBindEdit.vue +++ b/src/views/think/thinkUserBind/components/thinkUserBindEdit.vue @@ -55,7 +55,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkUserBind, updateThinkUserBind } from '@/api/think/thinkUserBind'; + import { + addThinkUserBind, + updateThinkUserBind + } from '@/api/think/thinkUserBind'; import { ThinkUserBind } from '@/api/think/thinkUserBind/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -150,7 +153,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkUserBind : addThinkUserBind; + const saveOrUpdate = isUpdate.value + ? updateThinkUserBind + : addThinkUserBind; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -173,12 +178,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUserBind/index.vue b/src/views/think/thinkUserBind/index.vue index 3653776..3990e63 100644 --- a/src/views/think/thinkUserBind/index.vue +++ b/src/views/think/thinkUserBind/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUserBindEdit from './components/thinkUserBindEdit.vue'; - import { pageThinkUserBind, removeThinkUserBind, removeBatchThinkUserBind } from '@/api/think/thinkUserBind'; - import type { ThinkUserBind, ThinkUserBindParam } from '@/api/think/thinkUserBind/model'; + import { + pageThinkUserBind, + removeThinkUserBind, + removeBatchThinkUserBind + } from '@/api/think/thinkUserBind'; + import type { + ThinkUserBind, + ThinkUserBindParam + } from '@/api/think/thinkUserBind/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,31 +116,31 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '旧用户id', dataIndex: 'oldUserId', key: 'oldUserId', - align: 'center', + align: 'center' }, { title: '新绑定用户id', dataIndex: 'newUserId', key: 'newUserId', - align: 'center', + align: 'center' }, { title: '类型:1VIP卡,2IC卡', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '原数据', dataIndex: 'oldJson', key: 'oldJson', - align: 'center', + align: 'center' }, { title: '创建时间', diff --git a/src/views/think/thinkUserInAccess/components/thinkUserInAccessEdit.vue b/src/views/think/thinkUserInAccess/components/thinkUserInAccessEdit.vue index 96239d4..cfc48e6 100644 --- a/src/views/think/thinkUserInAccess/components/thinkUserInAccessEdit.vue +++ b/src/views/think/thinkUserInAccess/components/thinkUserInAccessEdit.vue @@ -20,11 +20,7 @@ " > - +
@@ -34,7 +30,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkUserInAccess, updateThinkUserInAccess } from '@/api/think/thinkUserInAccess'; + import { + addThinkUserInAccess, + updateThinkUserInAccess + } from '@/api/think/thinkUserInAccess'; import { ThinkUserInAccess } from '@/api/think/thinkUserInAccess/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -125,7 +124,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkUserInAccess : addThinkUserInAccess; + const saveOrUpdate = isUpdate.value + ? updateThinkUserInAccess + : addThinkUserInAccess; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -148,12 +149,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUserInAccess/index.vue b/src/views/think/thinkUserInAccess/index.vue index 756cd72..a568d42 100644 --- a/src/views/think/thinkUserInAccess/index.vue +++ b/src/views/think/thinkUserInAccess/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUserInAccessEdit from './components/thinkUserInAccessEdit.vue'; - import { pageThinkUserInAccess, removeThinkUserInAccess, removeBatchThinkUserInAccess } from '@/api/think/thinkUserInAccess'; - import type { ThinkUserInAccess, ThinkUserInAccessParam } from '@/api/think/thinkUserInAccess/model'; + import { + pageThinkUserInAccess, + removeThinkUserInAccess, + removeBatchThinkUserInAccess + } from '@/api/think/thinkUserInAccess'; + import type { + ThinkUserInAccess, + ThinkUserInAccessParam + } from '@/api/think/thinkUserInAccess/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,13 +116,13 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '操作', @@ -168,7 +179,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUserInAccess(selection.value.map((d) => d.thinkUserInAccessId)) + removeBatchThinkUserInAccess( + selection.value.map((d) => d.thinkUserInAccessId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkUsers/components/balanceRecharge.vue b/src/views/think/thinkUsers/components/balanceRecharge.vue index a467dca..7a110ba 100644 --- a/src/views/think/thinkUsers/components/balanceRecharge.vue +++ b/src/views/think/thinkUsers/components/balanceRecharge.vue @@ -99,7 +99,9 @@ }; const getCurrentBalance = () => { - const balance = Number((props.data as ThinkUsers & { balance?: string })?.balance); + const balance = Number( + (props.data as ThinkUsers & { balance?: string })?.balance + ); if (!Number.isNaN(balance)) { return balance; } diff --git a/src/views/think/thinkUsers/index.vue b/src/views/think/thinkUsers/index.vue index 46735a4..30f3813 100644 --- a/src/views/think/thinkUsers/index.vue +++ b/src/views/think/thinkUsers/index.vue @@ -49,7 +49,9 @@ @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersAddressEdit from './components/thinkUsersAddressEdit.vue'; - import { pageThinkUsersAddress, removeThinkUsersAddress, removeBatchThinkUsersAddress } from '@/api/think/thinkUsersAddress'; - import type { ThinkUsersAddress, ThinkUsersAddressParam } from '@/api/think/thinkUsersAddress/model'; + import { + pageThinkUsersAddress, + removeThinkUsersAddress, + removeBatchThinkUsersAddress + } from '@/api/think/thinkUsersAddress'; + import type { + ThinkUsersAddress, + ThinkUsersAddressParam + } from '@/api/think/thinkUsersAddress/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '姓名', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '手机号码', dataIndex: 'phone', key: 'phone', - align: 'center', + align: 'center' }, { title: '省份城市县', dataIndex: 'region', key: 'region', - align: 'center', + align: 'center' }, { title: '详细地址', dataIndex: 'address', key: 'address', - align: 'center', + align: 'center' }, { title: '关联users表id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '1默认地址,2不是默认地址', dataIndex: 'isDefault', key: 'isDefault', - align: 'center', + align: 'center' }, { title: '', @@ -156,7 +167,7 @@ title: '', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -213,7 +224,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUsersAddress(selection.value.map((d) => d.thinkUsersAddressId)) + removeBatchThinkUsersAddress( + selection.value.map((d) => d.thinkUsersAddressId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkUsersCoupon/components/thinkUsersCouponEdit.vue b/src/views/think/thinkUsersCoupon/components/thinkUsersCouponEdit.vue index 6a9ab41..5dcc7f9 100644 --- a/src/views/think/thinkUsersCoupon/components/thinkUsersCouponEdit.vue +++ b/src/views/think/thinkUsersCoupon/components/thinkUsersCouponEdit.vue @@ -110,7 +110,10 @@ v-model:value="form.isFree" />
- + 显示 隐藏 @@ -130,7 +133,10 @@ v-model:value="form.cid" /> - + { loading.value = false; @@ -276,12 +287,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUsersCoupon/index.vue b/src/views/think/thinkUsersCoupon/index.vue index c2e5126..920e58e 100644 --- a/src/views/think/thinkUsersCoupon/index.vue +++ b/src/views/think/thinkUsersCoupon/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersCouponEdit from './components/thinkUsersCouponEdit.vue'; - import { pageThinkUsersCoupon, removeThinkUsersCoupon, removeBatchThinkUsersCoupon } from '@/api/think/thinkUsersCoupon'; - import type { ThinkUsersCoupon, ThinkUsersCouponParam } from '@/api/think/thinkUsersCoupon/model'; + import { + pageThinkUsersCoupon, + removeThinkUsersCoupon, + removeBatchThinkUsersCoupon + } from '@/api/think/thinkUsersCoupon'; + import type { + ThinkUsersCoupon, + ThinkUsersCouponParam + } from '@/api/think/thinkUsersCoupon/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,109 +116,109 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '微信订单号', dataIndex: 'wechatOrder', key: 'wechatOrder', - align: 'center', + align: 'center' }, { title: '优惠券名称', dataIndex: 'name', key: 'name', - align: 'center', + align: 'center' }, { title: '折扣率', dataIndex: 'discount', key: 'discount', - align: 'center', + align: 'center' }, { title: '抵扣金额', dataIndex: 'money', key: 'money', - align: 'center', + align: 'center' }, { title: '购买价格', dataIndex: 'price', key: 'price', - align: 'center', + align: 'center' }, { title: '总数量', dataIndex: 'count', key: 'count', - align: 'center', + align: 'center' }, { title: '剩余数量', dataIndex: 'num', key: 'num', - align: 'center', + align: 'center' }, { title: '开始时间', dataIndex: 'startTime', key: 'startTime', - align: 'center', + align: 'center' }, { title: '结束时间', dataIndex: 'endTime', key: 'endTime', - align: 'center', + align: 'center' }, { title: 'sid场馆id集合,适用的场馆', dataIndex: 'sid', key: 'sid', - align: 'center', + align: 'center' }, { title: '优惠券类型:1折扣式,2抵扣式', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '券类型:1成人,2儿童', dataIndex: 'couponType', key: 'couponType', - align: 'center', + align: 'center' }, { title: '是否免费领取:1免费,2收费', dataIndex: 'isFree', key: 'isFree', - align: 'center', + align: 'center' }, { title: '1已使用、2未使用、3已过期、4未付款暂不可使用', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '关联users表id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '关联coupon表id', dataIndex: 'cid', key: 'cid', - align: 'center', + align: 'center' }, { title: '付款状态,1已付款,2未付款,3无需付款', dataIndex: 'payStatus', key: 'payStatus', - align: 'center', + align: 'center' }, { title: '领取时间', @@ -273,7 +284,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUsersCoupon(selection.value.map((d) => d.thinkUsersCouponId)) + removeBatchThinkUsersCoupon( + selection.value.map((d) => d.thinkUsersCouponId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkUsersEmergency/components/thinkUsersEmergencyEdit.vue b/src/views/think/thinkUsersEmergency/components/thinkUsersEmergencyEdit.vue index 4ccb8d6..47dd5f3 100644 --- a/src/views/think/thinkUsersEmergency/components/thinkUsersEmergencyEdit.vue +++ b/src/views/think/thinkUsersEmergency/components/thinkUsersEmergencyEdit.vue @@ -76,7 +76,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkUsersEmergency, updateThinkUsersEmergency } from '@/api/think/thinkUsersEmergency'; + import { + addThinkUsersEmergency, + updateThinkUsersEmergency + } from '@/api/think/thinkUsersEmergency'; import { ThinkUsersEmergency } from '@/api/think/thinkUsersEmergency/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -174,7 +177,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkUsersEmergency : addThinkUsersEmergency; + const saveOrUpdate = isUpdate.value + ? updateThinkUsersEmergency + : addThinkUsersEmergency; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -197,12 +202,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUsersEmergency/index.vue b/src/views/think/thinkUsersEmergency/index.vue index 3d2a9e0..ab50a98 100644 --- a/src/views/think/thinkUsersEmergency/index.vue +++ b/src/views/think/thinkUsersEmergency/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersEmergencyEdit from './components/thinkUsersEmergencyEdit.vue'; - import { pageThinkUsersEmergency, removeThinkUsersEmergency, removeBatchThinkUsersEmergency } from '@/api/think/thinkUsersEmergency'; - import type { ThinkUsersEmergency, ThinkUsersEmergencyParam } from '@/api/think/thinkUsersEmergency/model'; + import { + pageThinkUsersEmergency, + removeThinkUsersEmergency, + removeBatchThinkUsersEmergency + } from '@/api/think/thinkUsersEmergency'; + import type { + ThinkUsersEmergency, + ThinkUsersEmergencyParam + } from '@/api/think/thinkUsersEmergency/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '联系人姓名', dataIndex: 'contractName', key: 'contractName', - align: 'center', + align: 'center' }, { title: '联系人电话', dataIndex: 'contractPhone', key: 'contractPhone', - align: 'center', + align: 'center' }, { title: '联系人地址', dataIndex: 'contractAddress', key: 'contractAddress', - align: 'center', + align: 'center' }, { title: '排序', dataIndex: 'sort', key: 'sort', - align: 'center', + align: 'center' }, { title: '是否默认', dataIndex: 'isDefault', key: 'isDefault', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -156,7 +167,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -213,7 +224,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUsersEmergency(selection.value.map((d) => d.thinkUsersEmergencyId)) + removeBatchThinkUsersEmergency( + selection.value.map((d) => d.thinkUsersEmergencyId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkUsersLog/components/thinkUsersLogEdit.vue b/src/views/think/thinkUsersLog/components/thinkUsersLogEdit.vue index 1bd506c..0f7c6e5 100644 --- a/src/views/think/thinkUsersLog/components/thinkUsersLogEdit.vue +++ b/src/views/think/thinkUsersLog/components/thinkUsersLogEdit.vue @@ -34,11 +34,7 @@ /> - + { loading.value = false; @@ -181,12 +182,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUsersLog/index.vue b/src/views/think/thinkUsersLog/index.vue index 89be181..8a13cc6 100644 --- a/src/views/think/thinkUsersLog/index.vue +++ b/src/views/think/thinkUsersLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersLogEdit from './components/thinkUsersLogEdit.vue'; - import { pageThinkUsersLog, removeThinkUsersLog, removeBatchThinkUsersLog } from '@/api/think/thinkUsersLog'; - import type { ThinkUsersLog, ThinkUsersLogParam } from '@/api/think/thinkUsersLog/model'; + import { + pageThinkUsersLog, + removeThinkUsersLog, + removeBatchThinkUsersLog + } from '@/api/think/thinkUsersLog'; + import type { + ThinkUsersLog, + ThinkUsersLogParam + } from '@/api/think/thinkUsersLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,37 +116,37 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户ID', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '用户姓名', dataIndex: 'username', key: 'username', - align: 'center', + align: 'center' }, { title: 'ip', dataIndex: 'ip', key: 'ip', - align: 'center', + align: 'center' }, { title: '类型', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '操作', dataIndex: 'content', key: 'content', - align: 'center', + align: 'center' }, { title: '创建时间', diff --git a/src/views/think/thinkUsersVip/components/thinkUsersVipEdit.vue b/src/views/think/thinkUsersVip/components/thinkUsersVipEdit.vue index ba8612d..c0a457f 100644 --- a/src/views/think/thinkUsersVip/components/thinkUsersVipEdit.vue +++ b/src/views/think/thinkUsersVip/components/thinkUsersVipEdit.vue @@ -10,11 +10,7 @@ @update:visible="updateVisible" @ok="save" > - + - + - + - - - - - - + + + + + + - diff --git a/src/views/think/thinkUsersVip/components/thinkUsersVipLog.vue b/src/views/think/thinkUsersVip/components/thinkUsersVipLog.vue index c141a1c..9e4a23c 100644 --- a/src/views/think/thinkUsersVip/components/thinkUsersVipLog.vue +++ b/src/views/think/thinkUsersVip/components/thinkUsersVipLog.vue @@ -26,7 +26,9 @@ 未使用 @@ -34,71 +36,71 @@ diff --git a/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue b/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue index adf1771..9f8e7a3 100644 --- a/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue +++ b/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue @@ -20,11 +20,7 @@ " > - + - + { loading.value = false; @@ -213,12 +210,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUsersVipBuyLog/index.vue b/src/views/think/thinkUsersVipBuyLog/index.vue index 17c0ced..cadcb7b 100644 --- a/src/views/think/thinkUsersVipBuyLog/index.vue +++ b/src/views/think/thinkUsersVipBuyLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersVipBuyLogEdit from './components/thinkUsersVipBuyLogEdit.vue'; - import { pageThinkUsersVipBuyLog, removeThinkUsersVipBuyLog, removeBatchThinkUsersVipBuyLog } from '@/api/think/thinkUsersVipBuyLog'; - import type { ThinkUsersVipBuyLog, ThinkUsersVipBuyLogParam } from '@/api/think/thinkUsersVipBuyLog/model'; + import { + pageThinkUsersVipBuyLog, + removeThinkUsersVipBuyLog, + removeBatchThinkUsersVipBuyLog + } from '@/api/think/thinkUsersVipBuyLog'; + import type { + ThinkUsersVipBuyLog, + ThinkUsersVipBuyLogParam + } from '@/api/think/thinkUsersVipBuyLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,55 +116,55 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'orderNumber', key: 'orderNumber', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'wechetNumber', key: 'wechetNumber', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'amount', key: 'amount', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'payStatus', key: 'payStatus', - align: 'center', + align: 'center' }, { title: '', dataIndex: 'payTime', key: 'payTime', - align: 'center', + align: 'center' }, { title: '状态, 0正常, 1冻结', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '注册时间', @@ -168,7 +179,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -225,7 +236,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUsersVipBuyLog(selection.value.map((d) => d.thinkUsersVipBuyLogId)) + removeBatchThinkUsersVipBuyLog( + selection.value.map((d) => d.thinkUsersVipBuyLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkUsersVipCancleLog/components/thinkUsersVipCancleLogEdit.vue b/src/views/think/thinkUsersVipCancleLog/components/thinkUsersVipCancleLogEdit.vue index adaf31d..ce5574a 100644 --- a/src/views/think/thinkUsersVipCancleLog/components/thinkUsersVipCancleLogEdit.vue +++ b/src/views/think/thinkUsersVipCancleLog/components/thinkUsersVipCancleLogEdit.vue @@ -69,7 +69,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkUsersVipCancleLog, updateThinkUsersVipCancleLog } from '@/api/think/thinkUsersVipCancleLog'; + import { + addThinkUsersVipCancleLog, + updateThinkUsersVipCancleLog + } from '@/api/think/thinkUsersVipCancleLog'; import { ThinkUsersVipCancleLog } from '@/api/think/thinkUsersVipCancleLog/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -166,7 +169,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkUsersVipCancleLog : addThinkUsersVipCancleLog; + const saveOrUpdate = isUpdate.value + ? updateThinkUsersVipCancleLog + : addThinkUsersVipCancleLog; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -189,12 +194,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkUsersVipCancleLog/index.vue b/src/views/think/thinkUsersVipCancleLog/index.vue index 5d6acf8..5d98b24 100644 --- a/src/views/think/thinkUsersVipCancleLog/index.vue +++ b/src/views/think/thinkUsersVipCancleLog/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkUsersVipCancleLogEdit from './components/thinkUsersVipCancleLogEdit.vue'; - import { pageThinkUsersVipCancleLog, removeThinkUsersVipCancleLog, removeBatchThinkUsersVipCancleLog } from '@/api/think/thinkUsersVipCancleLog'; - import type { ThinkUsersVipCancleLog, ThinkUsersVipCancleLogParam } from '@/api/think/thinkUsersVipCancleLog/model'; + import { + pageThinkUsersVipCancleLog, + removeThinkUsersVipCancleLog, + removeBatchThinkUsersVipCancleLog + } from '@/api/think/thinkUsersVipCancleLog'; + import type { + ThinkUsersVipCancleLog, + ThinkUsersVipCancleLogParam + } from '@/api/think/thinkUsersVipCancleLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,43 +116,43 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: 'vip卡id', dataIndex: 'dataId', key: 'dataId', - align: 'center', + align: 'center' }, { title: '用户id', dataIndex: 'uid', key: 'uid', - align: 'center', + align: 'center' }, { title: '修改前', dataIndex: 'oldPar', key: 'oldPar', - align: 'center', + align: 'center' }, { title: '修改后', dataIndex: 'newPar', key: 'newPar', - align: 'center', + align: 'center' }, { title: '类型:退卡;退款退卡;', dataIndex: 'cancleType', key: 'cancleType', - align: 'center', + align: 'center' }, { title: '创建人', dataIndex: 'createUid', key: 'createUid', - align: 'center', + align: 'center' }, { title: '创建时间', @@ -207,7 +218,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkUsersVipCancleLog(selection.value.map((d) => d.thinkUsersVipCancleLogId)) + removeBatchThinkUsersVipCancleLog( + selection.value.map((d) => d.thinkUsersVipCancleLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkVip/index.vue b/src/views/think/thinkVip/index.vue index f73ef97..cba9ebf 100644 --- a/src/views/think/thinkVip/index.vue +++ b/src/views/think/thinkVip/index.vue @@ -53,13 +53,13 @@ 修改 - - - - - - - + + + + + + + diff --git a/src/views/think/thinkVipCardsBills/components/search.vue b/src/views/think/thinkVipCardsBills/components/search.vue index f925b6c..1037925 100644 --- a/src/views/think/thinkVipCardsBills/components/search.vue +++ b/src/views/think/thinkVipCardsBills/components/search.vue @@ -16,59 +16,60 @@ diff --git a/src/views/think/thinkVipCardsBills/components/thinkVipCardsBillsEdit.vue b/src/views/think/thinkVipCardsBills/components/thinkVipCardsBillsEdit.vue index 62d4942..3cdde36 100644 --- a/src/views/think/thinkVipCardsBills/components/thinkVipCardsBillsEdit.vue +++ b/src/views/think/thinkVipCardsBills/components/thinkVipCardsBillsEdit.vue @@ -20,34 +20,21 @@ " > - + - + - + - + - + 显示 隐藏 @@ -75,7 +62,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkVipCardsBills, updateThinkVipCardsBills } from '@/api/think/thinkVipCardsBills'; + import { + addThinkVipCardsBills, + updateThinkVipCardsBills + } from '@/api/think/thinkVipCardsBills'; import { ThinkVipCardsBills } from '@/api/think/thinkVipCardsBills/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -174,7 +164,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkVipCardsBills : addThinkVipCardsBills; + const saveOrUpdate = isUpdate.value + ? updateThinkVipCardsBills + : addThinkVipCardsBills; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -197,12 +189,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/think/thinkVipCardsBills/index.vue b/src/views/think/thinkVipCardsBills/index.vue index 82439b9..0073b71 100644 --- a/src/views/think/thinkVipCardsBills/index.vue +++ b/src/views/think/thinkVipCardsBills/index.vue @@ -42,138 +42,145 @@ - + diff --git a/src/views/think/thinkVipTotal/components/search.vue b/src/views/think/thinkVipTotal/components/search.vue index 41232b0..ee50ecc 100644 --- a/src/views/think/thinkVipTotal/components/search.vue +++ b/src/views/think/thinkVipTotal/components/search.vue @@ -12,48 +12,46 @@ diff --git a/src/views/think/thinkVipTotal/index.vue b/src/views/think/thinkVipTotal/index.vue index 2f19d4d..6906c94 100644 --- a/src/views/think/thinkVipTotal/index.vue +++ b/src/views/think/thinkVipTotal/index.vue @@ -1,10 +1,7 @@ @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ThinkWechatBillLogEdit from './components/thinkWechatBillLogEdit.vue'; - import { pageThinkWechatBillLog, removeThinkWechatBillLog, removeBatchThinkWechatBillLog } from '@/api/think/thinkWechatBillLog'; - import type { ThinkWechatBillLog, ThinkWechatBillLogParam } from '@/api/think/thinkWechatBillLog/model'; + import { + pageThinkWechatBillLog, + removeThinkWechatBillLog, + removeBatchThinkWechatBillLog + } from '@/api/think/thinkWechatBillLog'; + import type { + ThinkWechatBillLog, + ThinkWechatBillLogParam + } from '@/api/think/thinkWechatBillLog/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,37 +116,38 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '表id', dataIndex: 'tableId', key: 'tableId', - align: 'center', + align: 'center' }, { title: '表名', dataIndex: 'tableName', key: 'tableName', - align: 'center', + align: 'center' }, { title: '订单id', dataIndex: 'billId', key: 'billId', - align: 'center', + align: 'center' }, { - title: '对账情况:1=已对账;2=未对账;3=已对账,金额对不上;4=未查询到该订单', + title: + '对账情况:1=已对账;2=未对账;3=已对账,金额对不上;4=未查询到该订单', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '对账人id', dataIndex: 'createId', key: 'createId', - align: 'center', + align: 'center' }, { title: '对账时间', @@ -201,7 +213,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchThinkWechatBillLog(selection.value.map((d) => d.thinkWechatBillLogId)) + removeBatchThinkWechatBillLog( + selection.value.map((d) => d.thinkWechatBillLogId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/think/thinkWechatDeposit/components/thinkWechatDepositEdit.vue b/src/views/think/thinkWechatDeposit/components/thinkWechatDepositEdit.vue index 0775ddc..84047f8 100644 --- a/src/views/think/thinkWechatDeposit/components/thinkWechatDepositEdit.vue +++ b/src/views/think/thinkWechatDeposit/components/thinkWechatDepositEdit.vue @@ -103,7 +103,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addThinkWechatDeposit, updateThinkWechatDeposit } from '@/api/think/thinkWechatDeposit'; + import { + addThinkWechatDeposit, + updateThinkWechatDeposit + } from '@/api/think/thinkWechatDeposit'; import { ThinkWechatDeposit } from '@/api/think/thinkWechatDeposit/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -205,7 +208,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateThinkWechatDeposit : addThinkWechatDeposit; + const saveOrUpdate = isUpdate.value + ? updateThinkWechatDeposit + : addThinkWechatDeposit; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -228,12 +233,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/user/chat-conversation/components/chatConversationEdit.vue b/src/views/user/chat-conversation/components/chatConversationEdit.vue index 65d52d7..c894024 100644 --- a/src/views/user/chat-conversation/components/chatConversationEdit.vue +++ b/src/views/user/chat-conversation/components/chatConversationEdit.vue @@ -82,7 +82,10 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, uuid } from 'ele-admin-pro'; - import { addChatConversation, updateChatConversation } from '@/api/system/chatConversation'; + import { + addChatConversation, + updateChatConversation + } from '@/api/system/chatConversation'; import { ChatConversation } from '@/api/system/chatConversation/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -182,7 +185,9 @@ const formData = { ...form }; - const saveOrUpdate = isUpdate.value ? updateChatConversation : addChatConversation; + const saveOrUpdate = isUpdate.value + ? updateChatConversation + : addChatConversation; saveOrUpdate(formData) .then((msg) => { loading.value = false; @@ -205,12 +210,12 @@ images.value = []; if (props.data) { assignObject(form, props.data); - if(props.data.image){ + if (props.data.image) { images.value.push({ uid: uuid(), url: props.data.image, status: 'done' - }) + }); } isUpdate.value = true; } else { diff --git a/src/views/user/chat-conversation/index.vue b/src/views/user/chat-conversation/index.vue index 7e40e50..81f196a 100644 --- a/src/views/user/chat-conversation/index.vue +++ b/src/views/user/chat-conversation/index.vue @@ -45,7 +45,11 @@ - + @@ -62,8 +66,15 @@ } from 'ele-admin-pro/es/ele-pro-table/types'; import Search from './components/search.vue'; import ChatConversationEdit from './components/chatConversationEdit.vue'; - import { pageChatConversation, removeChatConversation, removeBatchChatConversation } from '@/api/system/chatConversation'; - import type { ChatConversation, ChatConversationParam } from '@/api/system/chatConversation/model'; + import { + pageChatConversation, + removeChatConversation, + removeBatchChatConversation + } from '@/api/system/chatConversation'; + import type { + ChatConversation, + ChatConversationParam + } from '@/api/system/chatConversation/model'; // 表格实例 const tableRef = ref | null>(null); @@ -105,49 +116,49 @@ dataIndex: 'id', key: 'id', align: 'center', - width: 90, + width: 90 }, { title: '用户ID', dataIndex: 'userId', key: 'userId', - align: 'center', + align: 'center' }, { title: '好友ID', dataIndex: 'friendId', key: 'friendId', - align: 'center', + align: 'center' }, { title: '消息类型', dataIndex: 'type', key: 'type', - align: 'center', + align: 'center' }, { title: '消息内容', dataIndex: 'content', key: 'content', - align: 'center', + align: 'center' }, { title: '未读消息', dataIndex: 'unRead', key: 'unRead', - align: 'center', + align: 'center' }, { title: '状态, 0未读, 1已读', dataIndex: 'status', key: 'status', - align: 'center', + align: 'center' }, { title: '是否删除, 0否, 1是', dataIndex: 'deleted', key: 'deleted', - align: 'center', + align: 'center' }, { title: '注册时间', @@ -162,7 +173,7 @@ title: '修改时间', dataIndex: 'updateTime', key: 'updateTime', - align: 'center', + align: 'center' }, { title: '操作', @@ -219,7 +230,9 @@ maskClosable: true, onOk: () => { const hide = message.loading('请求中..', 0); - removeBatchChatConversation(selection.value.map((d) => d.chatConversationId)) + removeBatchChatConversation( + selection.value.map((d) => d.chatConversationId) + ) .then((msg) => { hide(); message.success(msg); diff --git a/src/views/user/company/components/user-info.vue b/src/views/user/company/components/user-info.vue index a737d2f..9f70344 100644 --- a/src/views/user/company/components/user-info.vue +++ b/src/views/user/company/components/user-info.vue @@ -49,7 +49,9 @@ v-bind="styleResponsive ? { md: 12, sm: 24, xs: 24 } : { span: 12 }" > - ¥{{ formatNumber(user.balance) }} + ¥{{ formatNumber(user.balance) }} {{ user.points }} diff --git a/src/views/user/index/components/user-info.vue b/src/views/user/index/components/user-info.vue index a737d2f..9f70344 100644 --- a/src/views/user/index/components/user-info.vue +++ b/src/views/user/index/components/user-info.vue @@ -49,7 +49,9 @@ v-bind="styleResponsive ? { md: 12, sm: 24, xs: 24 } : { span: 12 }" > - ¥{{ formatNumber(user.balance) }} + ¥{{ formatNumber(user.balance) }} {{ user.points }} diff --git a/src/views/user/order/index.vue b/src/views/user/order/index.vue index dfdb518..071da92 100644 --- a/src/views/user/order/index.vue +++ b/src/views/user/order/index.vue @@ -66,7 +66,7 @@ import Search from '@/views/system/order/components/search.vue'; import { ExclamationCircleOutlined } from '@ant-design/icons-vue'; import { removeBatchCompany } from '@/api/system/company'; - import { getUserId } from "@/utils/common"; + import { getUserId } from '@/utils/common'; // 表格实例 const tableRef = ref | null>(null); diff --git a/src/views/user/recharge/components/recharge.vue b/src/views/user/recharge/components/recharge.vue index 6db337d..1baf16f 100644 --- a/src/views/user/recharge/components/recharge.vue +++ b/src/views/user/recharge/components/recharge.vue @@ -39,7 +39,7 @@ import useFormData from '@/utils/use-form-data'; import { recharge } from '@/api/user/recharge/order'; import type { User } from '@/api/system/user/model'; - import { RechargeOrder } from "@/api/user/recharge/order/model"; + import { RechargeOrder } from '@/api/user/recharge/order/model'; // 是否开启响应式布局 const themeStore = useThemeStore();