feat: 流程类型筛选改从后端字典接口加载(保留静态兜底)
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import type { ApiResult } from '@/api';
|
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';
|
import { THINK_API_URL } from '@/config/setting';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,3 +36,16 @@ export async function searchApprovalUsers(params?: {
|
|||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程类型选项(flowCode → 流程名称),新增单据自动出现
|
||||||
|
*/
|
||||||
|
export async function listApprovalFlows() {
|
||||||
|
const res = await request.get<ApiResult<ApprovalFlowOption[]>>(
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
|||||||
@@ -168,6 +168,14 @@ export interface ApprovalInstance {
|
|||||||
permissions?: ApprovalPermissions;
|
permissions?: ApprovalPermissions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程类型选项
|
||||||
|
*/
|
||||||
|
export interface ApprovalFlowOption {
|
||||||
|
flowCode?: string;
|
||||||
|
flowName?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审批目录组织
|
* 审批目录组织
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
|||||||
import type { ApiResult, PageResult } from '@/api';
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { BookingCashier, BookingCashierParam } from './model';
|
import type { BookingCashier, BookingCashierParam } from './model';
|
||||||
import { MODULES_API_URL } from '@/config/setting';
|
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';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询收银
|
* 分页查询收银
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-cooperate/batch',
|
MODULES_API_URL + '/booking/booking-cooperate/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<BookingCooperateLog>>>(
|
const res = await request.get<ApiResult<PageResult<BookingCooperateLog>>>(
|
||||||
MODULES_API_URL + '/booking/booking-cooperate-log/page',
|
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<ApiResult<BookingCooperateLog[]>>(
|
const res = await request.get<ApiResult<BookingCooperateLog[]>>(
|
||||||
MODULES_API_URL + '/booking/booking-cooperate-log',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-cooperate-log/batch',
|
MODULES_API_URL + '/booking/booking-cooperate-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-emergency/batch',
|
MODULES_API_URL + '/booking/booking-emergency/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-integral-log/batch',
|
MODULES_API_URL + '/booking/booking-integral-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-order-info/batch',
|
MODULES_API_URL + '/booking/booking-order-info/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-user-coupon/batch',
|
MODULES_API_URL + '/booking/booking-user-coupon/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<BookingUserEmergency>>>(
|
const res = await request.get<ApiResult<PageResult<BookingUserEmergency>>>(
|
||||||
MODULES_API_URL + '/booking/booking-user-emergency/page',
|
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<ApiResult<BookingUserEmergency[]>>(
|
const res = await request.get<ApiResult<BookingUserEmergency[]>>(
|
||||||
MODULES_API_URL + '/booking/booking-user-emergency',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-user-emergency/batch',
|
MODULES_API_URL + '/booking/booking-user-emergency/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/booking/booking-user-invoice/batch',
|
MODULES_API_URL + '/booking/booking-user-invoice/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { PageParam } from '@/api';
|
import type { PageParam } from '@/api';
|
||||||
import { OrderInfo } from "@/api/shop/orderInfo/model";
|
import { OrderInfo } from '@/api/shop/orderInfo/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 场馆场地
|
* 场馆场地
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/cms-article-comment/batch',
|
MODULES_API_URL + '/cms/cms-article-comment/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/cms-article-content/batch',
|
MODULES_API_URL + '/cms/cms-article-content/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
|||||||
import type { ApiResult, PageResult } from '@/api';
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { CmsProduct, CmsProductParam } from './model';
|
import type { CmsProduct, CmsProductParam } from './model';
|
||||||
import { SERVER_API_URL } from '@/config/setting';
|
import { SERVER_API_URL } from '@/config/setting';
|
||||||
import type { ArticleParam } from "@/api/cms/article/model";
|
import type { ArticleParam } from '@/api/cms/article/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询产品
|
* 分页查询产品
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/cms-product-comment/batch',
|
MODULES_API_URL + '/cms/cms-product-comment/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/cms-product-record/batch',
|
MODULES_API_URL + '/cms/cms-product-record/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<CmsProductSpecValue>>>(
|
const res = await request.get<ApiResult<PageResult<CmsProductSpecValue>>>(
|
||||||
MODULES_API_URL + '/cms/cms-product-spec-value/page',
|
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<ApiResult<CmsProductSpecValue[]>>(
|
const res = await request.get<ApiResult<CmsProductSpecValue[]>>(
|
||||||
MODULES_API_URL + '/cms/cms-product-spec-value',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/cms-product-spec-value/batch',
|
MODULES_API_URL + '/cms/cms-product-spec-value/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/cms/navigation/status',
|
MODULES_API_URL + '/cms/navigation/status',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-dealer-capital/batch',
|
MODULES_API_URL + '/mall/shop-dealer-capital/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-dealer-referee/batch',
|
MODULES_API_URL + '/mall/shop-dealer-referee/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-dealer-setting/batch',
|
MODULES_API_URL + '/mall/shop-dealer-setting/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-dealer-withdraw/batch',
|
MODULES_API_URL + '/mall/shop-dealer-withdraw/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-goods-category/batch',
|
MODULES_API_URL + '/mall/shop-goods-category/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-goods-comment/batch',
|
MODULES_API_URL + '/mall/shop-goods-comment/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-goods-relation/batch',
|
MODULES_API_URL + '/mall/shop-goods-relation/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<ShopMerchantAccount>>>(
|
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-account/page',
|
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<ApiResult<ShopMerchantAccount[]>>(
|
const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-account',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-account/batch',
|
MODULES_API_URL + '/mall/shop-merchant-account/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-apply/batch',
|
MODULES_API_URL + '/mall/shop-merchant-apply/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-count/batch',
|
MODULES_API_URL + '/mall/shop-merchant-count/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-merchant-type/batch',
|
MODULES_API_URL + '/mall/shop-merchant-type/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-order-cart-info/batch',
|
MODULES_API_URL + '/mall/shop-order-cart-info/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-order-info-log/batch',
|
MODULES_API_URL + '/mall/shop-order-info-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-user-collection/batch',
|
MODULES_API_URL + '/mall/shop-user-collection/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/mall/shop-wechat-deposit/batch',
|
MODULES_API_URL + '/mall/shop-wechat-deposit/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { PageParam } from '@/api';
|
import type { PageParam } from '@/api';
|
||||||
import type { User } from '@/api/system/user/model';
|
import type { User } from '@/api/system/user/model';
|
||||||
import {AssetsUser} from "@/api/oa/assets/user/model";
|
import { AssetsUser } from '@/api/oa/assets/user/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资产
|
* 资产
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import type { ApiResult } from '@/api';
|
import type { ApiResult } from '@/api';
|
||||||
import { ChatParam } from '@/api/oa/chatgpt/model';
|
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) {
|
export async function send(data: ChatParam) {
|
||||||
const res = await request.post<ApiResult<unknown>>(MODULES_API_URL + '/open/chat/send', data);
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
|
MODULES_API_URL + '/open/chat/send',
|
||||||
|
data
|
||||||
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { PageParam } from '@/api';
|
import type { PageParam } from '@/api';
|
||||||
import {Company} from "@/api/system/company/model";
|
import { Company } from '@/api/system/company/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品
|
* 产品
|
||||||
|
|||||||
@@ -179,7 +179,6 @@ export async function getByGroup(groupId: number) {
|
|||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除整单
|
* 删除整单
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/goods-description/batch',
|
MODULES_API_URL + '/shop/goods-description/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<ShopMerchantAccount>>>(
|
const res = await request.get<ApiResult<PageResult<ShopMerchantAccount>>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-account/page',
|
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<ApiResult<ShopMerchantAccount[]>>(
|
const res = await request.get<ApiResult<ShopMerchantAccount[]>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-account',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-account/batch',
|
MODULES_API_URL + '/shop/shop-merchant-account/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-apply/batch',
|
MODULES_API_URL + '/shop/shop-merchant-apply/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-count/batch',
|
MODULES_API_URL + '/shop/shop-merchant-count/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/shop-merchant-type/batch',
|
MODULES_API_URL + '/shop/shop-merchant-type/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import type {ApiResult} from '@/api';
|
import type { ApiResult } from '@/api';
|
||||||
import {Area} from "@/api/system/area/model";
|
import { Area } from '@/api/system/area/model';
|
||||||
import { THINK_API_URL } from "@/config/setting";
|
import { THINK_API_URL } from '@/config/setting';
|
||||||
|
|
||||||
|
|
||||||
export async function listArea(param: any) {
|
export async function listArea(param: any) {
|
||||||
const res = await request.post<ApiResult<Area[]>>(`${THINK_API_URL}/common/area/list-by-level`, param);
|
const res = await request.post<ApiResult<Area[]>>(
|
||||||
|
`${THINK_API_URL}/common/area/list-by-level`,
|
||||||
|
param
|
||||||
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function listCity() {
|
export async function listCity() {
|
||||||
const res = await request.post<ApiResult<Area[]>>(`${THINK_API_URL}/common/area/city-list`);
|
const res = await request.post<ApiResult<Area[]>>(
|
||||||
|
`${THINK_API_URL}/common/area/city-list`
|
||||||
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
export interface Area {
|
export interface Area {
|
||||||
id?: any,
|
id?: any;
|
||||||
name?: any,
|
name?: any;
|
||||||
fid?: any,
|
fid?: any;
|
||||||
levelId?: any,
|
levelId?: any;
|
||||||
children?: any,
|
children?: any;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/shop/chat-conversation/batch',
|
MODULES_API_URL + '/shop/chat-conversation/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ export async function deleteParentMenu(id?: number) {
|
|||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 安装应用
|
* 安装应用
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { PageParam } from "@/api";
|
import type { PageParam } from '@/api';
|
||||||
import type { Role } from "../../role/model";
|
import type { Role } from '../../role/model';
|
||||||
import type { Menu } from "../../menu/model";
|
import type { Menu } from '../../menu/model';
|
||||||
import { Company } from "@/api/system/company/model";
|
import { Company } from '@/api/system/company/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户
|
* 用户
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type {
|
|||||||
WebsiteField,
|
WebsiteField,
|
||||||
WebsiteFieldParam
|
WebsiteFieldParam
|
||||||
} from '@/api/cms/website/field/model';
|
} 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';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询项目参数
|
* 分页查询项目参数
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ export async function updateThinkCardRemaining(data: {
|
|||||||
remainingMoney?: string;
|
remainingMoney?: string;
|
||||||
}) {
|
}) {
|
||||||
const res = await request.put<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
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;
|
if (res.data.code === 0) return res.data.message;
|
||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-card-balance/batch',
|
MODULES_API_URL + '/think/think-card-balance/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -79,7 +79,9 @@ export async function removeThinkCardEditLog(id?: number) {
|
|||||||
/**
|
/**
|
||||||
* 批量删除IC卡编辑日志
|
* 批量删除IC卡编辑日志
|
||||||
*/
|
*/
|
||||||
export async function removeBatchThinkCardEditLog(data: (number | undefined)[]) {
|
export async function removeBatchThinkCardEditLog(
|
||||||
|
data: (number | undefined)[]
|
||||||
|
) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-card-edit-log/batch',
|
THINK_API_URL + '/think/think-card-edit-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -107,7 +107,8 @@ export async function getThinkCardLog(id: number) {
|
|||||||
|
|
||||||
export async function thinkCardLogExport(data: ThinkCardLog) {
|
export async function thinkCardLogExport(data: ThinkCardLog) {
|
||||||
const res = await request.post<ApiResult<ThinkCardLog>>(
|
const res = await request.post<ApiResult<ThinkCardLog>>(
|
||||||
THINK_API_URL + '/think/think-card-log/export', data
|
THINK_API_URL + '/think/think-card-log/export',
|
||||||
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import type { ApiResult, PageResult } from '@/api';
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { ThinkCardsBills, ThinkCardsBillsParam } from './model';
|
import type { ThinkCardsBills, ThinkCardsBillsParam } from './model';
|
||||||
import { THINK_API_URL } from "@/config/setting";
|
import { THINK_API_URL } from '@/config/setting';
|
||||||
import type { ThinkVipCardsBillsParam } from "@/api/think/thinkVipCardsBills/model";
|
import type { ThinkVipCardsBillsParam } from '@/api/think/thinkVipCardsBills/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询Vip卡每日账单
|
* 分页查询Vip卡每日账单
|
||||||
@@ -35,7 +35,9 @@ export async function listThinkCardsBills(params?: ThinkCardsBillsParam) {
|
|||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.data.message));
|
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<ApiResult<any>>(
|
const res = await request.get<ApiResult<any>>(
|
||||||
THINK_API_URL + '/think/think-cards-bills/total-amount',
|
THINK_API_URL + '/think/think-cards-bills/total-amount',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import type { ApiResult, PageResult } from '@/api';
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { ThinkDepositItem, ThinkDepositItemParam } from './model';
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-deposit-item/batch',
|
THINK_API_URL + '/think/think-deposit-item/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-ftp-check-bill/batch',
|
THINK_API_URL + '/think/think-ftp-check-bill/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { PageParam } from "@/api";
|
import type { PageParam } from '@/api';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-gate-passreord/batch',
|
THINK_API_URL + '/think/think-gate-passreord/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { PageParam } from "@/api";
|
import type { PageParam } from '@/api';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-goods-category/batch',
|
THINK_API_URL + '/think/think-goods-category/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<ThinkGoodsOrderInfo>>>(
|
const res = await request.get<ApiResult<PageResult<ThinkGoodsOrderInfo>>>(
|
||||||
THINK_API_URL + '/think/think-goods-order-info/page',
|
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<ApiResult<ThinkGoodsOrderInfo[]>>(
|
const res = await request.get<ApiResult<ThinkGoodsOrderInfo[]>>(
|
||||||
THINK_API_URL + '/think/think-goods-order-info',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-goods-order-info/batch',
|
THINK_API_URL + '/think/think-goods-order-info/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-goods-spec-rel/batch',
|
THINK_API_URL + '/think/think-goods-spec-rel/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import request from "@/utils/request";
|
import request from '@/utils/request';
|
||||||
import type { ApiResult, PageResult } from "@/api";
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { ThinkInvoice, ThinkInvoiceParam } from "./model";
|
import type { ThinkInvoice, ThinkInvoiceParam } from './model';
|
||||||
import { THINK_API_URL } from "@/config/setting";
|
import { THINK_API_URL } from '@/config/setting';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询
|
* 分页查询
|
||||||
*/
|
*/
|
||||||
export async function pageThinkInvoice(params: ThinkInvoiceParam) {
|
export async function pageThinkInvoice(params: ThinkInvoiceParam) {
|
||||||
const res = await request.get<ApiResult<PageResult<ThinkInvoice>>>(
|
const res = await request.get<ApiResult<PageResult<ThinkInvoice>>>(
|
||||||
THINK_API_URL + "/think/think-invoice/page",
|
THINK_API_URL + '/think/think-invoice/page',
|
||||||
{
|
{
|
||||||
params
|
params
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ export async function pageThinkInvoice(params: ThinkInvoiceParam) {
|
|||||||
*/
|
*/
|
||||||
export async function listThinkInvoice(params?: ThinkInvoiceParam) {
|
export async function listThinkInvoice(params?: ThinkInvoiceParam) {
|
||||||
const res = await request.get<ApiResult<ThinkInvoice[]>>(
|
const res = await request.get<ApiResult<ThinkInvoice[]>>(
|
||||||
THINK_API_URL + "/think/think-invoice",
|
THINK_API_URL + '/think/think-invoice',
|
||||||
{
|
{
|
||||||
params
|
params
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ export async function listThinkInvoice(params?: ThinkInvoiceParam) {
|
|||||||
*/
|
*/
|
||||||
export async function addThinkInvoice(data: ThinkInvoice) {
|
export async function addThinkInvoice(data: ThinkInvoice) {
|
||||||
const res = await request.post<ApiResult<unknown>>(
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice",
|
THINK_API_URL + '/think/think-invoice',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -54,7 +54,7 @@ export async function addThinkInvoice(data: ThinkInvoice) {
|
|||||||
*/
|
*/
|
||||||
export async function updateThinkInvoice(data: ThinkInvoice) {
|
export async function updateThinkInvoice(data: ThinkInvoice) {
|
||||||
const res = await request.put<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice",
|
THINK_API_URL + '/think/think-invoice',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -68,7 +68,7 @@ export async function updateThinkInvoice(data: ThinkInvoice) {
|
|||||||
*/
|
*/
|
||||||
export async function removeThinkInvoice(id?: number) {
|
export async function removeThinkInvoice(id?: number) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice/" + id
|
THINK_API_URL + '/think/think-invoice/' + id
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data.message;
|
return res.data.message;
|
||||||
@@ -81,7 +81,7 @@ export async function removeThinkInvoice(id?: number) {
|
|||||||
*/
|
*/
|
||||||
export async function removeBatchThinkInvoice(data: (number | undefined)[]) {
|
export async function removeBatchThinkInvoice(data: (number | undefined)[]) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice/batch",
|
THINK_API_URL + '/think/think-invoice/batch',
|
||||||
{
|
{
|
||||||
data
|
data
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,7 @@ export async function removeBatchThinkInvoice(data: (number | undefined)[]) {
|
|||||||
*/
|
*/
|
||||||
export async function getThinkInvoice(id: number) {
|
export async function getThinkInvoice(id: number) {
|
||||||
const res = await request.get<ApiResult<ThinkInvoice>>(
|
const res = await request.get<ApiResult<ThinkInvoice>>(
|
||||||
THINK_API_URL + "/think/think-invoice/" + id
|
THINK_API_URL + '/think/think-invoice/' + id
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -107,7 +107,8 @@ export async function getThinkInvoice(id: number) {
|
|||||||
|
|
||||||
export async function thinkInvoiceData(params?: ThinkInvoiceParam) {
|
export async function thinkInvoiceData(params?: ThinkInvoiceParam) {
|
||||||
const res = await request.get<ApiResult<ThinkInvoice>>(
|
const res = await request.get<ApiResult<ThinkInvoice>>(
|
||||||
THINK_API_URL + "/think/think-invoice/data", { params }
|
THINK_API_URL + '/think/think-invoice/data',
|
||||||
|
{ params }
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -120,7 +121,7 @@ export async function thinkInvoiceData(params?: ThinkInvoiceParam) {
|
|||||||
*/
|
*/
|
||||||
export async function doInvoice(data: ThinkInvoice) {
|
export async function doInvoice(data: ThinkInvoice) {
|
||||||
const res = await request.post<ApiResult<unknown>>(
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice/doInvoice",
|
THINK_API_URL + '/think/think-invoice/doInvoice',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -134,7 +135,7 @@ export async function doInvoice(data: ThinkInvoice) {
|
|||||||
*/
|
*/
|
||||||
export async function getInvoiceRes(data: ThinkInvoice) {
|
export async function getInvoiceRes(data: ThinkInvoice) {
|
||||||
const res = await request.post<ApiResult<string>>(
|
const res = await request.post<ApiResult<string>>(
|
||||||
THINK_API_URL + "/think/think-invoice/getRes",
|
THINK_API_URL + '/think/think-invoice/getRes',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -145,7 +146,7 @@ export async function getInvoiceRes(data: ThinkInvoice) {
|
|||||||
|
|
||||||
export async function doInvoiceByListReq(data: ThinkInvoice) {
|
export async function doInvoiceByListReq(data: ThinkInvoice) {
|
||||||
const res = await request.post<ApiResult<unknown>>(
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-invoice/doInvoiceByList",
|
THINK_API_URL + '/think/think-invoice/doInvoiceByList',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -159,7 +160,7 @@ export async function doInvoiceByListReq(data: ThinkInvoice) {
|
|||||||
*/
|
*/
|
||||||
export async function showInvoice(id: number) {
|
export async function showInvoice(id: number) {
|
||||||
const res = await request.get<ApiResult<ThinkInvoice>>(
|
const res = await request.get<ApiResult<ThinkInvoice>>(
|
||||||
THINK_API_URL + "/think/think-invoice/showInvoice/" + id
|
THINK_API_URL + '/think/think-invoice/showInvoice/' + id
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
|
|||||||
@@ -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<ApiResult<PageResult<ThinkMachineOpenLog>>>(
|
const res = await request.get<ApiResult<PageResult<ThinkMachineOpenLog>>>(
|
||||||
MODULES_API_URL + '/think/think-machine-open-log/page',
|
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<ApiResult<ThinkMachineOpenLog[]>>(
|
const res = await request.get<ApiResult<ThinkMachineOpenLog[]>>(
|
||||||
MODULES_API_URL + '/think/think-machine-open-log',
|
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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-machine-open-log/batch',
|
MODULES_API_URL + '/think/think-machine-open-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import request from "@/utils/request";
|
import request from '@/utils/request';
|
||||||
import type { ApiResult, PageResult } from "@/api";
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type {
|
import type {
|
||||||
ThinkOrder,
|
ThinkOrder,
|
||||||
ThinkOrderParam,
|
ThinkOrderParam,
|
||||||
ThinkTrainingBusinessSection
|
ThinkTrainingBusinessSection
|
||||||
} from "./model";
|
} from './model';
|
||||||
import { THINK_API_URL } from "@/config/setting";
|
import { THINK_API_URL } from '@/config/setting';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询
|
* 分页查询
|
||||||
*/
|
*/
|
||||||
export async function pageThinkOrder(params: ThinkOrderParam) {
|
export async function pageThinkOrder(params: ThinkOrderParam) {
|
||||||
const res = await request.get<ApiResult<PageResult<ThinkOrder>>>(
|
const res = await request.get<ApiResult<PageResult<ThinkOrder>>>(
|
||||||
THINK_API_URL + "/think/think-order/page",
|
THINK_API_URL + '/think/think-order/page',
|
||||||
{
|
{
|
||||||
params
|
params
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ export async function pageThinkOrder(params: ThinkOrderParam) {
|
|||||||
*/
|
*/
|
||||||
export async function listThinkOrder(params?: ThinkOrderParam) {
|
export async function listThinkOrder(params?: ThinkOrderParam) {
|
||||||
const res = await request.get<ApiResult<ThinkOrder[]>>(
|
const res = await request.get<ApiResult<ThinkOrder[]>>(
|
||||||
THINK_API_URL + "/think/think-order",
|
THINK_API_URL + '/think/think-order',
|
||||||
{
|
{
|
||||||
params
|
params
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ export async function listThinkOrder(params?: ThinkOrderParam) {
|
|||||||
|
|
||||||
export async function thinkOrderTotalAmount(params?: ThinkOrderParam) {
|
export async function thinkOrderTotalAmount(params?: ThinkOrderParam) {
|
||||||
const res = await request.get<ApiResult<any>>(
|
const res = await request.get<ApiResult<any>>(
|
||||||
THINK_API_URL + "/think/think-order/total-amount",
|
THINK_API_URL + '/think/think-order/total-amount',
|
||||||
{
|
{
|
||||||
params
|
params
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ export async function thinkOrderTotalAmount(params?: ThinkOrderParam) {
|
|||||||
*/
|
*/
|
||||||
export async function addThinkOrder(data: ThinkOrder) {
|
export async function addThinkOrder(data: ThinkOrder) {
|
||||||
const res = await request.post<ApiResult<unknown>>(
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order",
|
THINK_API_URL + '/think/think-order',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -71,7 +71,7 @@ export async function addThinkOrder(data: ThinkOrder) {
|
|||||||
*/
|
*/
|
||||||
export async function updateThinkOrder(data: ThinkOrder) {
|
export async function updateThinkOrder(data: ThinkOrder) {
|
||||||
const res = await request.put<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order",
|
THINK_API_URL + '/think/think-order',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -85,7 +85,7 @@ export async function updateThinkOrder(data: ThinkOrder) {
|
|||||||
*/
|
*/
|
||||||
export async function setThinkOrderInvoice(ids: (number | undefined)[]) {
|
export async function setThinkOrderInvoice(ids: (number | undefined)[]) {
|
||||||
const res = await request.put<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order/set-invoice",
|
THINK_API_URL + '/think/think-order/set-invoice',
|
||||||
ids
|
ids
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -96,7 +96,7 @@ export async function setThinkOrderInvoice(ids: (number | undefined)[]) {
|
|||||||
|
|
||||||
export async function updateBatchThinkOrder(data: ThinkOrder[]) {
|
export async function updateBatchThinkOrder(data: ThinkOrder[]) {
|
||||||
const res = await request.put<ApiResult<unknown>>(
|
const res = await request.put<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order/batch",
|
THINK_API_URL + '/think/think-order/batch',
|
||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -110,7 +110,7 @@ export async function updateBatchThinkOrder(data: ThinkOrder[]) {
|
|||||||
*/
|
*/
|
||||||
export async function removeThinkOrder(id?: number) {
|
export async function removeThinkOrder(id?: number) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order/" + id
|
THINK_API_URL + '/think/think-order/' + id
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data.message;
|
return res.data.message;
|
||||||
@@ -123,7 +123,7 @@ export async function removeThinkOrder(id?: number) {
|
|||||||
*/
|
*/
|
||||||
export async function removeBatchThinkOrder(data: (number | undefined)[]) {
|
export async function removeBatchThinkOrder(data: (number | undefined)[]) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + "/think/think-order/batch",
|
THINK_API_URL + '/think/think-order/batch',
|
||||||
{
|
{
|
||||||
data
|
data
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,8 @@ export async function removeBatchThinkOrder(data: (number | undefined)[]) {
|
|||||||
*/
|
*/
|
||||||
export async function thinkOrderExport(params?: ThinkOrderParam) {
|
export async function thinkOrderExport(params?: ThinkOrderParam) {
|
||||||
const res = await request.post<ApiResult<ThinkOrder>>(
|
const res = await request.post<ApiResult<ThinkOrder>>(
|
||||||
THINK_API_URL + "/think/think-order/export", params
|
THINK_API_URL + '/think/think-order/export',
|
||||||
|
params
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -149,7 +150,8 @@ export async function thinkOrderExport(params?: ThinkOrderParam) {
|
|||||||
|
|
||||||
export async function thinkOrderExportData(params?: ThinkOrderParam) {
|
export async function thinkOrderExportData(params?: ThinkOrderParam) {
|
||||||
const res = await request.post<ApiResult<ThinkOrder>>(
|
const res = await request.post<ApiResult<ThinkOrder>>(
|
||||||
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) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -159,7 +161,7 @@ export async function thinkOrderExportData(params?: ThinkOrderParam) {
|
|||||||
|
|
||||||
export async function getThinkOrder(id: number) {
|
export async function getThinkOrder(id: number) {
|
||||||
const res = await request.get<ApiResult<ThinkOrder>>(
|
const res = await request.get<ApiResult<ThinkOrder>>(
|
||||||
THINK_API_URL + "/think/think-order/" + id
|
THINK_API_URL + '/think/think-order/' + id
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -169,7 +171,8 @@ export async function getThinkOrder(id: number) {
|
|||||||
|
|
||||||
export async function getThinkOrderExcelData(params?: ThinkOrderParam) {
|
export async function getThinkOrderExcelData(params?: ThinkOrderParam) {
|
||||||
const res = await request.post<ApiResult<ThinkOrder>>(
|
const res = await request.post<ApiResult<ThinkOrder>>(
|
||||||
THINK_API_URL + "/think/think-order/excel-data", params
|
THINK_API_URL + '/think/think-order/excel-data',
|
||||||
|
params
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -179,7 +182,8 @@ export async function getThinkOrderExcelData(params?: ThinkOrderParam) {
|
|||||||
|
|
||||||
export async function getThinkOrderExcelDataForCard(params?: ThinkOrderParam) {
|
export async function getThinkOrderExcelDataForCard(params?: ThinkOrderParam) {
|
||||||
const res = await request.post<ApiResult<ThinkOrder>>(
|
const res = await request.post<ApiResult<ThinkOrder>>(
|
||||||
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) {
|
if (res.data.code === 0) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
@@ -191,7 +195,7 @@ export async function getThinkOrderTrainingBusinessData(
|
|||||||
params?: ThinkOrderParam
|
params?: ThinkOrderParam
|
||||||
) {
|
) {
|
||||||
const res = await request.post<ApiResult<ThinkTrainingBusinessSection[]>>(
|
const res = await request.post<ApiResult<ThinkTrainingBusinessSection[]>>(
|
||||||
THINK_API_URL + "/think/think-order/training-business-data",
|
THINK_API_URL + '/think/think-order/training-business-data',
|
||||||
params
|
params
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
@@ -204,7 +208,7 @@ export async function exportThinkOrderTrainingBusiness(
|
|||||||
params?: ThinkOrderParam
|
params?: ThinkOrderParam
|
||||||
) {
|
) {
|
||||||
const res = await request.post<ApiResult<ThinkOrder>>(
|
const res = await request.post<ApiResult<ThinkOrder>>(
|
||||||
THINK_API_URL + "/think/think-order/training-business-export",
|
THINK_API_URL + '/think/think-order/training-business-export',
|
||||||
params
|
params
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-order-off-check/batch',
|
MODULES_API_URL + '/think/think-order-off-check/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { PageParam } from "@/api";
|
import type { PageParam } from '@/api';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信退款记录
|
* 微信退款记录
|
||||||
|
|||||||
@@ -109,7 +109,8 @@ export async function getThinkRechargeLog(id: number) {
|
|||||||
|
|
||||||
export async function thinkRechargeLogRefund(data: ThinkRechargeLog) {
|
export async function thinkRechargeLogRefund(data: ThinkRechargeLog) {
|
||||||
const res = await request.post<ApiResult<ThinkRechargeLog>>(
|
const res = await request.post<ApiResult<ThinkRechargeLog>>(
|
||||||
THINK_API_URL + '/think/think-recharge-log/refund', data
|
THINK_API_URL + '/think/think-recharge-log/refund',
|
||||||
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-small-recharge/batch',
|
MODULES_API_URL + '/think/think-small-recharge/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-user-in-access/batch',
|
MODULES_API_URL + '/think/think-user-in-access/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ import { MODULES_API_URL } from '@/config/setting';
|
|||||||
/**
|
/**
|
||||||
* 分页查询Vip购卡记录
|
* 分页查询Vip购卡记录
|
||||||
*/
|
*/
|
||||||
export async function pageThinkUsersVipBuyLog(params: ThinkUsersVipBuyLogParam) {
|
export async function pageThinkUsersVipBuyLog(
|
||||||
|
params: ThinkUsersVipBuyLogParam
|
||||||
|
) {
|
||||||
const res = await request.get<ApiResult<PageResult<ThinkUsersVipBuyLog>>>(
|
const res = await request.get<ApiResult<PageResult<ThinkUsersVipBuyLog>>>(
|
||||||
MODULES_API_URL + '/think/think-users-vip-buy-log/page',
|
MODULES_API_URL + '/think/think-users-vip-buy-log/page',
|
||||||
{
|
{
|
||||||
@@ -22,7 +24,9 @@ export async function pageThinkUsersVipBuyLog(params: ThinkUsersVipBuyLogParam)
|
|||||||
/**
|
/**
|
||||||
* 查询Vip购卡记录列表
|
* 查询Vip购卡记录列表
|
||||||
*/
|
*/
|
||||||
export async function listThinkUsersVipBuyLog(params?: ThinkUsersVipBuyLogParam) {
|
export async function listThinkUsersVipBuyLog(
|
||||||
|
params?: ThinkUsersVipBuyLogParam
|
||||||
|
) {
|
||||||
const res = await request.get<ApiResult<ThinkUsersVipBuyLog[]>>(
|
const res = await request.get<ApiResult<ThinkUsersVipBuyLog[]>>(
|
||||||
MODULES_API_URL + '/think/think-users-vip-buy-log',
|
MODULES_API_URL + '/think/think-users-vip-buy-log',
|
||||||
{
|
{
|
||||||
@@ -79,7 +83,9 @@ export async function removeThinkUsersVipBuyLog(id?: number) {
|
|||||||
/**
|
/**
|
||||||
* 批量删除Vip购卡记录
|
* 批量删除Vip购卡记录
|
||||||
*/
|
*/
|
||||||
export async function removeBatchThinkUsersVipBuyLog(data: (number | undefined)[]) {
|
export async function removeBatchThinkUsersVipBuyLog(
|
||||||
|
data: (number | undefined)[]
|
||||||
|
) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
MODULES_API_URL + '/think/think-users-vip-buy-log/batch',
|
MODULES_API_URL + '/think/think-users-vip-buy-log/batch',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -107,7 +107,8 @@ export async function getThinkVip(id: number) {
|
|||||||
|
|
||||||
export async function thinkVipTotal(params?: ThinkVipParam) {
|
export async function thinkVipTotal(params?: ThinkVipParam) {
|
||||||
const res = await request.get<ApiResult<ThinkVip[]>>(
|
const res = await request.get<ApiResult<ThinkVip[]>>(
|
||||||
THINK_API_URL + '/think/think-vip/total', {params}
|
THINK_API_URL + '/think/think-vip/total',
|
||||||
|
{ params }
|
||||||
);
|
);
|
||||||
if (res.data.code === 0 && res.data.data) {
|
if (res.data.code === 0 && res.data.data) {
|
||||||
return res.data.data;
|
return res.data.data;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -61,7 +60,7 @@ export interface ThinkVip {
|
|||||||
/**
|
/**
|
||||||
* 搜索条件
|
* 搜索条件
|
||||||
*/
|
*/
|
||||||
export interface ThinkVipParam{
|
export interface ThinkVipParam {
|
||||||
id?: number;
|
id?: number;
|
||||||
isSale?: number;
|
isSale?: number;
|
||||||
trainingInstitutionId?: number;
|
trainingInstitutionId?: number;
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ export async function listThinkVipCardsBills(params?: ThinkVipCardsBillsParam) {
|
|||||||
return Promise.reject(new Error(res.data.message));
|
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<ApiResult<ThinkVipCardsBills[]>>(
|
const res = await request.get<ApiResult<ThinkVipCardsBills[]>>(
|
||||||
THINK_API_URL + '/think/think-vip-cards-bills/total-amount',
|
THINK_API_URL + '/think/think-vip-cards-bills/total-amount',
|
||||||
{
|
{
|
||||||
@@ -92,7 +94,9 @@ export async function removeThinkVipCardsBills(id?: number) {
|
|||||||
/**
|
/**
|
||||||
* 批量删除Vip卡每日账单
|
* 批量删除Vip卡每日账单
|
||||||
*/
|
*/
|
||||||
export async function removeBatchThinkVipCardsBills(data: (number | undefined)[]) {
|
export async function removeBatchThinkVipCardsBills(
|
||||||
|
data: (number | undefined)[]
|
||||||
|
) {
|
||||||
const res = await request.delete<ApiResult<unknown>>(
|
const res = await request.delete<ApiResult<unknown>>(
|
||||||
THINK_API_URL + '/think/think-vip-cards-bills/batch',
|
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) {
|
export async function thinkVipCardsBillsExport(data: ThinkVipCardsBillsParam) {
|
||||||
const res = await request.post<ApiResult<ThinkVipCardsBills>>(
|
const res = await request.post<ApiResult<ThinkVipCardsBills>>(
|
||||||
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) {
|
if (res.data.code === 0) {
|
||||||
return res.data
|
return res.data;
|
||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
label: 'IC卡支付',
|
label: 'IC卡支付',
|
||||||
key: 'ICCardPay',
|
key: 'ICCardPay',
|
||||||
icon: 'IdcardOutlined'
|
icon: 'IdcardOutlined'
|
||||||
},
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/* 更新选中数据 */
|
/* 更新选中数据 */
|
||||||
|
|||||||
@@ -50,8 +50,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<a-radio @click="onDone(record)" />
|
<a-radio @click="onDone(record)" />
|
||||||
<span class="ele-text-secondary">选择</span>
|
<span class="ele-text-secondary">选择</span>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
</ele-pro-table>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onRadio = (record: Design) => {
|
const onRadio = (record: Design) => {
|
||||||
pageId.value = Number(record.pageId)
|
pageId.value = Number(record.pageId);
|
||||||
updateVisible(false);
|
updateVisible(false);
|
||||||
emit('done', record);
|
emit('done', record);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -107,10 +107,10 @@
|
|||||||
<a-radio v-model:checked="checked" @click="onRadio(record)" />
|
<a-radio v-model:checked="checked" @click="onRadio(record)" />
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<lebal>
|
<lebal>
|
||||||
<a-radio @click="onRadio(record)" />
|
<a-radio @click="onRadio(record)" />
|
||||||
<a class="ele-text-success">选择</a>
|
<a class="ele-text-success">选择</a>
|
||||||
</lebal>
|
</lebal>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
import { EditOutlined, UploadOutlined } from '@ant-design/icons-vue';
|
import { EditOutlined, UploadOutlined } from '@ant-design/icons-vue';
|
||||||
import { DictData } from '@/api/system/dict-data/model';
|
import { DictData } from '@/api/system/dict-data/model';
|
||||||
import { pageDictData } from '@/api/system/dict-data';
|
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 { message } from 'ant-design-vue/es';
|
||||||
import FileRecordEdit from './file-record-edit.vue';
|
import FileRecordEdit from './file-record-edit.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -44,11 +44,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { PlusOutlined, CloseOutlined, YoutubeOutlined } from '@ant-design/icons-vue';
|
import {
|
||||||
|
PlusOutlined,
|
||||||
|
CloseOutlined,
|
||||||
|
YoutubeOutlined
|
||||||
|
} from '@ant-design/icons-vue';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import SelectData from './components/select-data.vue';
|
import SelectData from './components/select-data.vue';
|
||||||
import { FileRecord } from '@/api/system/file/model';
|
import { FileRecord } from '@/api/system/file/model';
|
||||||
import { isImage } from "@/utils/common";
|
import { isImage } from '@/utils/common';
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
import { Spec } from '@/api/shop/spec/model';
|
import { Spec } from '@/api/shop/spec/model';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { MerchantType } from '@/api/shop/merchantType/model';
|
import { MerchantType } from '@/api/shop/merchantType/model';
|
||||||
import {listMerchantType} from "@/api/shop/merchantType";
|
import { listMerchantType } from '@/api/shop/merchantType';
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -53,14 +53,14 @@
|
|||||||
|
|
||||||
const data = ref<MerchantType[]>([]);
|
const data = ref<MerchantType[]>([]);
|
||||||
|
|
||||||
listMerchantType({}).then(list => {
|
listMerchantType({}).then((list) => {
|
||||||
data.value = list.map(d => {
|
data.value = list.map((d) => {
|
||||||
return {
|
return {
|
||||||
name: d.name,
|
name: d.name,
|
||||||
value: d.name
|
value: d.name
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
const onChange = (value: string) => {
|
const onChange = (value: string) => {
|
||||||
props.specDict?.map((d) => {
|
props.specDict?.map((d) => {
|
||||||
|
|||||||
@@ -54,11 +54,11 @@
|
|||||||
|
|
||||||
const onChange = (value: any) => {
|
const onChange = (value: any) => {
|
||||||
console.log(value);
|
console.log(value);
|
||||||
data.value.map(d => {
|
data.value.map((d) => {
|
||||||
if(d.value == value){
|
if (d.value == value) {
|
||||||
emit('done',d, Number(props.index))
|
emit('done', d, Number(props.index));
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
(specId) => {
|
(specId) => {
|
||||||
if (specId) {
|
if (specId) {
|
||||||
listSpecValue({ specId }).then((list) => {
|
listSpecValue({ specId }).then((list) => {
|
||||||
data.value = list.map(v => {
|
data.value = list.map((v) => {
|
||||||
v.label = v.specValue
|
v.label = v.specValue;
|
||||||
v.value = v.specValue
|
v.value = v.specValue;
|
||||||
return v;
|
return v;
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
data.value = [];
|
data.value = [];
|
||||||
|
|||||||
@@ -83,11 +83,11 @@
|
|||||||
<span style="white-space: nowrap">{{ item.title }}</span>
|
<span style="white-space: nowrap">{{ item.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <MpMenuEdit-->
|
<!-- <MpMenuEdit-->
|
||||||
<!-- v-model:visible="showMpMenuEdit"-->
|
<!-- v-model:visible="showMpMenuEdit"-->
|
||||||
<!-- :data="current"-->
|
<!-- :data="current"-->
|
||||||
<!-- @done="reload"-->
|
<!-- @done="reload"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
</template>
|
</template>
|
||||||
<!-- 商户列表 -->
|
<!-- 商户列表 -->
|
||||||
<template v-if="form.showShopCard">
|
<template v-if="form.showShopCard">
|
||||||
|
|||||||
@@ -107,16 +107,25 @@
|
|||||||
<a-menu-divider />
|
<a-menu-divider />
|
||||||
<a-menu-item key="profile">
|
<a-menu-item key="profile">
|
||||||
<div class="ele-cell">
|
<div class="ele-cell">
|
||||||
<div class="ele-cell-content"> {{ t('layout.header.profile')}} </div>
|
<div class="ele-cell-content">
|
||||||
|
{{ t('layout.header.profile') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-divider />
|
<a-menu-divider />
|
||||||
<a-menu-item key="password">
|
<a-menu-item key="password">
|
||||||
<div class="ele-cell">
|
<div class="ele-cell">
|
||||||
<div class="ele-cell-content"> {{ t('layout.header.password') }} </div>
|
<div class="ele-cell-content">
|
||||||
|
{{ t('layout.header.password') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<template v-if="loginUser.username == 'admin' || loginUser.username == 'superAdmin'">
|
<template
|
||||||
|
v-if="
|
||||||
|
loginUser.username == 'admin' ||
|
||||||
|
loginUser.username == 'superAdmin'
|
||||||
|
"
|
||||||
|
>
|
||||||
<!-- <a-menu-divider />-->
|
<!-- <a-menu-divider />-->
|
||||||
<!-- <a-menu-item key="accessKey">-->
|
<!-- <a-menu-item key="accessKey">-->
|
||||||
<!-- <div class="ele-cell">-->
|
<!-- <div class="ele-cell">-->
|
||||||
@@ -126,7 +135,9 @@
|
|||||||
<a-menu-divider />
|
<a-menu-divider />
|
||||||
<a-menu-item key="system">
|
<a-menu-item key="system">
|
||||||
<div class="ele-cell">
|
<div class="ele-cell">
|
||||||
<div class="ele-cell-content"> {{ t('layout.header.system') }} </div>
|
<div class="ele-cell-content">
|
||||||
|
{{ t('layout.header.system') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -50,5 +50,4 @@
|
|||||||
const onChange = (item: any) => {
|
const onChange = (item: any) => {
|
||||||
emit('done', item);
|
emit('done', item);
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+4
-4
@@ -5,8 +5,8 @@ import router from './router';
|
|||||||
import permission from './utils/permission';
|
import permission from './utils/permission';
|
||||||
import i18n from './i18n';
|
import i18n from './i18n';
|
||||||
import './styles/index.less';
|
import './styles/index.less';
|
||||||
import VueTianditu from "vue-tianditu"
|
import VueTianditu from 'vue-tianditu';
|
||||||
import "vue-tianditu/lib/style.css";
|
import 'vue-tianditu/lib/style.css';
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
@@ -15,8 +15,8 @@ app.use(router);
|
|||||||
app.use(permission);
|
app.use(permission);
|
||||||
app.use(i18n);
|
app.use(i18n);
|
||||||
app.use(VueTianditu, {
|
app.use(VueTianditu, {
|
||||||
v: "4.0", //目前只支持4.0版本
|
v: '4.0', //目前只支持4.0版本
|
||||||
tk: "bfbc6bd9e85fcda67b62788705aa6427"
|
tk: 'bfbc6bd9e85fcda67b62788705aa6427'
|
||||||
});
|
});
|
||||||
|
|
||||||
app.mount('#app');
|
app.mount('#app');
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ export function approvalStatusColor(status?: string): string {
|
|||||||
/**
|
/**
|
||||||
* 流程类型(flowCode)显示名。
|
* 流程类型(flowCode)显示名。
|
||||||
*
|
*
|
||||||
* 后端目前没有暴露 flowCode 字典接口,选项在此静态维护;
|
* 运行时优先用 `GET /approval/directory/flows` 的返回值覆盖本表;
|
||||||
* 新增单据类型时需同步本文件,后端提供字典接口后可改为远程加载。
|
* 静态表只作首屏兜底与接口不可用时的降级,因此新增单据不必再改前端。
|
||||||
*/
|
*/
|
||||||
export const APPROVAL_FLOW_NAMES: Record<string, string> = {
|
export const APPROVAL_FLOW_NAMES: Record<string, string> = {
|
||||||
completion: '业务完成确认单',
|
completion: '业务完成确认单',
|
||||||
@@ -88,12 +88,37 @@ export const APPROVAL_FLOW_NAMES: Record<string, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程类型下拉选项
|
* 流程类型下拉选项(静态兜底;页面以 `loadApprovalFlowOptions` 的返回为准)
|
||||||
*/
|
*/
|
||||||
export const APPROVAL_FLOW_OPTIONS = Object.keys(APPROVAL_FLOW_NAMES).map(
|
export const APPROVAL_FLOW_OPTIONS = Object.keys(APPROVAL_FLOW_NAMES).map(
|
||||||
(value) => ({ label: APPROVAL_FLOW_NAMES[value], value })
|
(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)
|
* 按 flowCode 取流程显示名;未知编码原样返回(降级为 docTypeName)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
ApprovalQueryParam,
|
ApprovalQueryParam,
|
||||||
ApprovalUser
|
ApprovalUser
|
||||||
} from '@/api/approval/instance/model';
|
} from '@/api/approval/instance/model';
|
||||||
import { APPROVAL_FLOW_OPTIONS } from '../../format';
|
import { loadApprovalFlowOptions } from '../../format';
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'search', where?: ApprovalQueryParam): void;
|
(e: 'search', where?: ApprovalQueryParam): void;
|
||||||
@@ -159,8 +159,11 @@
|
|||||||
{ prop: 'status', label: '状态' }
|
{ prop: 'status', label: '状态' }
|
||||||
];
|
];
|
||||||
|
|
||||||
// 流程类型选项(后端暂未提供字典接口,见 format.ts)
|
// 流程类型选项:取自后端单据实现注册表,新增单据自动出现
|
||||||
const flowOptions = APPROVAL_FLOW_OPTIONS;
|
const flowOptions = ref<Array<{ label: string; value: string }>>([]);
|
||||||
|
loadApprovalFlowOptions().then((options) => {
|
||||||
|
flowOptions.value = options;
|
||||||
|
});
|
||||||
|
|
||||||
// 单据类型选项
|
// 单据类型选项
|
||||||
const docTypeOptions = [
|
const docTypeOptions = [
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
} from '@/api/approval/instance/model';
|
} from '@/api/approval/instance/model';
|
||||||
import { pageApprovalTodo } from '@/api/approval/instance';
|
import { pageApprovalTodo } from '@/api/approval/instance';
|
||||||
import {
|
import {
|
||||||
APPROVAL_FLOW_OPTIONS,
|
loadApprovalFlowOptions,
|
||||||
approvalStatusColor,
|
approvalStatusColor,
|
||||||
formatApprovalTime
|
formatApprovalTime
|
||||||
} from '../format';
|
} from '../format';
|
||||||
@@ -113,8 +113,11 @@
|
|||||||
keywords: undefined
|
keywords: undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
// 流程类型选项(后端暂未提供字典接口,见 format.ts)
|
// 流程类型选项:取自后端单据实现注册表,新增单据自动出现
|
||||||
const flowOptions = APPROVAL_FLOW_OPTIONS;
|
const flowOptions = ref<Array<{ label: string; value: string }>>([]);
|
||||||
|
loadApprovalFlowOptions().then((options) => {
|
||||||
|
flowOptions.value = options;
|
||||||
|
});
|
||||||
|
|
||||||
// 状态选项
|
// 状态选项
|
||||||
const statusOptions = [
|
const statusOptions = [
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<BookingCardPlanEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<BookingCardPlanEdit
|
||||||
|
v-model:visible="showEdit"
|
||||||
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,8 +66,15 @@
|
|||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
import BookingCardPlanEdit from './components/bookingCardPlanEdit.vue';
|
import BookingCardPlanEdit from './components/bookingCardPlanEdit.vue';
|
||||||
import { pageBookingCardPlan, removeBookingCardPlan, removeBatchBookingCardPlan } from '@/api/booking/bookingCardPlan';
|
import {
|
||||||
import type { BookingCardPlan, BookingCardPlanParam } from '@/api/booking/bookingCardPlan/model';
|
pageBookingCardPlan,
|
||||||
|
removeBookingCardPlan,
|
||||||
|
removeBatchBookingCardPlan
|
||||||
|
} from '@/api/booking/bookingCardPlan';
|
||||||
|
import type {
|
||||||
|
BookingCardPlan,
|
||||||
|
BookingCardPlanParam
|
||||||
|
} from '@/api/booking/bookingCardPlan/model';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -105,37 +116,37 @@
|
|||||||
dataIndex: 'cardPlanId',
|
dataIndex: 'cardPlanId',
|
||||||
key: 'cardPlanId',
|
key: 'cardPlanId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '会员卡名称',
|
title: '会员卡名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '标识',
|
title: '标识',
|
||||||
dataIndex: 'code',
|
dataIndex: 'code',
|
||||||
key: 'code',
|
key: 'code',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
dataIndex: 'comments',
|
dataIndex: 'comments',
|
||||||
key: 'comments',
|
key: 'comments',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序号',
|
title: '排序号',
|
||||||
dataIndex: 'sortNumber',
|
dataIndex: 'sortNumber',
|
||||||
key: 'sortNumber',
|
key: 'sortNumber',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -150,7 +161,7 @@
|
|||||||
title: '修改时间',
|
title: '修改时间',
|
||||||
dataIndex: 'updateTime',
|
dataIndex: 'updateTime',
|
||||||
key: 'updateTime',
|
key: 'updateTime',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@@ -207,7 +218,9 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchBookingCardPlan(selection.value.map((d) => d.bookingCardPlanId))
|
removeBatchBookingCardPlan(
|
||||||
|
selection.value.map((d) => d.bookingCardPlanId)
|
||||||
|
)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
|
|||||||
@@ -107,9 +107,7 @@
|
|||||||
import { listMerchant } from '@/api/shop/merchant';
|
import { listMerchant } from '@/api/shop/merchant';
|
||||||
import { getNext7day, getServerTime } from '@/api/layout';
|
import { getNext7day, getServerTime } from '@/api/layout';
|
||||||
import { getWeek } from '@/utils/common';
|
import { getWeek } from '@/utils/common';
|
||||||
import {
|
import { listBookingPeriod } from '@/api/booking/bookingPeriod';
|
||||||
listBookingPeriod
|
|
||||||
} from '@/api/booking/bookingPeriod';
|
|
||||||
import {
|
import {
|
||||||
BookingPeriod,
|
BookingPeriod,
|
||||||
BookingPeriodParam
|
BookingPeriodParam
|
||||||
|
|||||||
@@ -33,17 +33,15 @@
|
|||||||
v-model:value="form.phone"
|
v-model:value="form.phone"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item label="图片" name="image">
|
||||||
label="图片"
|
<SelectFile
|
||||||
name="image">
|
:placeholder="`请选择图片`"
|
||||||
<SelectFile
|
:limit="1"
|
||||||
:placeholder="`请选择图片`"
|
:data="images"
|
||||||
:limit="1"
|
@done="chooseImage"
|
||||||
:data="images"
|
@del="onDeleteItem"
|
||||||
@done="chooseImage"
|
/>
|
||||||
@del="onDeleteItem"
|
</a-form-item>
|
||||||
/>
|
|
||||||
</a-form-item>
|
|
||||||
<a-form-item label="备注" name="comments">
|
<a-form-item label="备注" name="comments">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
:rows="4"
|
:rows="4"
|
||||||
@@ -75,7 +73,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
import { assignObject, uuid } from 'ele-admin-pro';
|
||||||
import { addBookingCooperate, updateBookingCooperate } from '@/api/booking/bookingCooperate';
|
import {
|
||||||
|
addBookingCooperate,
|
||||||
|
updateBookingCooperate
|
||||||
|
} from '@/api/booking/bookingCooperate';
|
||||||
import { BookingCooperate } from '@/api/booking/bookingCooperate/model';
|
import { BookingCooperate } from '@/api/booking/bookingCooperate/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -168,7 +169,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingCooperate : addBookingCooperate;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingCooperate
|
||||||
|
: addBookingCooperate;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -191,12 +194,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<BookingCooperateEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<BookingCooperateEdit
|
||||||
|
v-model:visible="showEdit"
|
||||||
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,8 +66,15 @@
|
|||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
import BookingCooperateEdit from './components/bookingCooperateEdit.vue';
|
import BookingCooperateEdit from './components/bookingCooperateEdit.vue';
|
||||||
import { pageBookingCooperate, removeBookingCooperate, removeBatchBookingCooperate } from '@/api/booking/bookingCooperate';
|
import {
|
||||||
import type { BookingCooperate, BookingCooperateParam } from '@/api/booking/bookingCooperate/model';
|
pageBookingCooperate,
|
||||||
|
removeBookingCooperate,
|
||||||
|
removeBatchBookingCooperate
|
||||||
|
} from '@/api/booking/bookingCooperate';
|
||||||
|
import type {
|
||||||
|
BookingCooperate,
|
||||||
|
BookingCooperateParam
|
||||||
|
} from '@/api/booking/bookingCooperate/model';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -105,43 +116,43 @@
|
|||||||
dataIndex: 'cooperateId',
|
dataIndex: 'cooperateId',
|
||||||
key: 'cooperateId',
|
key: 'cooperateId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '部门名称',
|
title: '部门名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '咨询电话',
|
title: '咨询电话',
|
||||||
dataIndex: 'phone',
|
dataIndex: 'phone',
|
||||||
key: 'phone',
|
key: 'phone',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '图片',
|
title: '图片',
|
||||||
dataIndex: 'image',
|
dataIndex: 'image',
|
||||||
key: 'image',
|
key: 'image',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
dataIndex: 'comments',
|
dataIndex: 'comments',
|
||||||
key: 'comments',
|
key: 'comments',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序号',
|
title: '排序号',
|
||||||
dataIndex: 'sortNumber',
|
dataIndex: 'sortNumber',
|
||||||
key: 'sortNumber',
|
key: 'sortNumber',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -207,7 +218,9 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchBookingCooperate(selection.value.map((d) => d.bookingCooperateId))
|
removeBatchBookingCooperate(
|
||||||
|
selection.value.map((d) => d.bookingCooperateId)
|
||||||
|
)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
|
|||||||
@@ -40,17 +40,15 @@
|
|||||||
v-model:value="form.phone"
|
v-model:value="form.phone"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item label="图片" name="image">
|
||||||
label="图片"
|
<SelectFile
|
||||||
name="image">
|
:placeholder="`请选择图片`"
|
||||||
<SelectFile
|
:limit="1"
|
||||||
:placeholder="`请选择图片`"
|
:data="images"
|
||||||
:limit="1"
|
@done="chooseImage"
|
||||||
:data="images"
|
@del="onDeleteItem"
|
||||||
@done="chooseImage"
|
/>
|
||||||
@del="onDeleteItem"
|
</a-form-item>
|
||||||
/>
|
|
||||||
</a-form-item>
|
|
||||||
<a-form-item label="备注" name="comments">
|
<a-form-item label="备注" name="comments">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
:rows="4"
|
:rows="4"
|
||||||
@@ -82,7 +80,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
import { assignObject, uuid } from 'ele-admin-pro';
|
||||||
import { addBookingCooperateLog, updateBookingCooperateLog } from '@/api/booking/bookingCooperateLog';
|
import {
|
||||||
|
addBookingCooperateLog,
|
||||||
|
updateBookingCooperateLog
|
||||||
|
} from '@/api/booking/bookingCooperateLog';
|
||||||
import { BookingCooperateLog } from '@/api/booking/bookingCooperateLog/model';
|
import { BookingCooperateLog } from '@/api/booking/bookingCooperateLog/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -181,7 +182,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingCooperateLog : addBookingCooperateLog;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingCooperateLog
|
||||||
|
: addBookingCooperateLog;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -204,12 +207,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<BookingCooperateLogEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<BookingCooperateLogEdit
|
||||||
|
v-model:visible="showEdit"
|
||||||
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,8 +66,15 @@
|
|||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
import BookingCooperateLogEdit from './components/bookingCooperateLogEdit.vue';
|
import BookingCooperateLogEdit from './components/bookingCooperateLogEdit.vue';
|
||||||
import { pageBookingCooperateLog, removeBookingCooperateLog, removeBatchBookingCooperateLog } from '@/api/booking/bookingCooperateLog';
|
import {
|
||||||
import type { BookingCooperateLog, BookingCooperateLogParam } from '@/api/booking/bookingCooperateLog/model';
|
pageBookingCooperateLog,
|
||||||
|
removeBookingCooperateLog,
|
||||||
|
removeBatchBookingCooperateLog
|
||||||
|
} from '@/api/booking/bookingCooperateLog';
|
||||||
|
import type {
|
||||||
|
BookingCooperateLog,
|
||||||
|
BookingCooperateLogParam
|
||||||
|
} from '@/api/booking/bookingCooperateLog/model';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -105,49 +116,49 @@
|
|||||||
dataIndex: 'logId',
|
dataIndex: 'logId',
|
||||||
key: 'logId',
|
key: 'logId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '关联ID',
|
title: '关联ID',
|
||||||
dataIndex: 'cooperateId',
|
dataIndex: 'cooperateId',
|
||||||
key: 'cooperateId',
|
key: 'cooperateId',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '部门名称',
|
title: '部门名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '咨询电话',
|
title: '咨询电话',
|
||||||
dataIndex: 'phone',
|
dataIndex: 'phone',
|
||||||
key: 'phone',
|
key: 'phone',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '图片',
|
title: '图片',
|
||||||
dataIndex: 'image',
|
dataIndex: 'image',
|
||||||
key: 'image',
|
key: 'image',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
dataIndex: 'comments',
|
dataIndex: 'comments',
|
||||||
key: 'comments',
|
key: 'comments',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序号',
|
title: '排序号',
|
||||||
dataIndex: 'sortNumber',
|
dataIndex: 'sortNumber',
|
||||||
key: 'sortNumber',
|
key: 'sortNumber',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -213,7 +224,9 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchBookingCooperateLog(selection.value.map((d) => d.bookingCooperateLogId))
|
removeBatchBookingCooperateLog(
|
||||||
|
selection.value.map((d) => d.bookingCooperateLogId)
|
||||||
|
)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
|
|||||||
@@ -147,7 +147,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
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 { BookingCoupon } from '@/api/booking/bookingCoupon/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -256,7 +259,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingCoupon : addBookingCoupon;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingCoupon
|
||||||
|
: addBookingCoupon;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -279,12 +284,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<BookingCouponEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<BookingCouponEdit
|
||||||
|
v-model:visible="showEdit"
|
||||||
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,8 +66,15 @@
|
|||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
import BookingCouponEdit from './components/bookingCouponEdit.vue';
|
import BookingCouponEdit from './components/bookingCouponEdit.vue';
|
||||||
import { pageBookingCoupon, removeBookingCoupon, removeBatchBookingCoupon } from '@/api/booking/bookingCoupon';
|
import {
|
||||||
import type { BookingCoupon, BookingCouponParam } from '@/api/booking/bookingCoupon/model';
|
pageBookingCoupon,
|
||||||
|
removeBookingCoupon,
|
||||||
|
removeBatchBookingCoupon
|
||||||
|
} from '@/api/booking/bookingCoupon';
|
||||||
|
import type {
|
||||||
|
BookingCoupon,
|
||||||
|
BookingCouponParam
|
||||||
|
} from '@/api/booking/bookingCoupon/model';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -105,103 +116,103 @@
|
|||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
key: 'id',
|
key: 'id',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '优惠券名称',
|
title: '优惠券名称',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '优惠券类型(10满减券 20折扣券)',
|
title: '优惠券类型(10满减券 20折扣券)',
|
||||||
dataIndex: 'type',
|
dataIndex: 'type',
|
||||||
key: 'type',
|
key: 'type',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '满减券-减免金额',
|
title: '满减券-减免金额',
|
||||||
dataIndex: 'reducePrice',
|
dataIndex: 'reducePrice',
|
||||||
key: 'reducePrice',
|
key: 'reducePrice',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '折扣券-折扣率(0-100)',
|
title: '折扣券-折扣率(0-100)',
|
||||||
dataIndex: 'discount',
|
dataIndex: 'discount',
|
||||||
key: 'discount',
|
key: 'discount',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '最低消费金额',
|
title: '最低消费金额',
|
||||||
dataIndex: 'minPrice',
|
dataIndex: 'minPrice',
|
||||||
key: 'minPrice',
|
key: 'minPrice',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '到期类型(10领取后生效 20固定时间)',
|
title: '到期类型(10领取后生效 20固定时间)',
|
||||||
dataIndex: 'expireType',
|
dataIndex: 'expireType',
|
||||||
key: 'expireType',
|
key: 'expireType',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '领取后生效-有效天数',
|
title: '领取后生效-有效天数',
|
||||||
dataIndex: 'expireDay',
|
dataIndex: 'expireDay',
|
||||||
key: 'expireDay',
|
key: 'expireDay',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '有效期开始时间',
|
title: '有效期开始时间',
|
||||||
dataIndex: 'startTime',
|
dataIndex: 'startTime',
|
||||||
key: 'startTime',
|
key: 'startTime',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '有效期结束时间',
|
title: '有效期结束时间',
|
||||||
dataIndex: 'endTime',
|
dataIndex: 'endTime',
|
||||||
key: 'endTime',
|
key: 'endTime',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '适用范围(10全部商品 20指定商品)',
|
title: '适用范围(10全部商品 20指定商品)',
|
||||||
dataIndex: 'applyRange',
|
dataIndex: 'applyRange',
|
||||||
key: 'applyRange',
|
key: 'applyRange',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '适用范围配置(json格式)',
|
title: '适用范围配置(json格式)',
|
||||||
dataIndex: 'applyRangeConfig',
|
dataIndex: 'applyRangeConfig',
|
||||||
key: 'applyRangeConfig',
|
key: 'applyRangeConfig',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否过期(0未过期 1已过期)',
|
title: '是否过期(0未过期 1已过期)',
|
||||||
dataIndex: 'isExpire',
|
dataIndex: 'isExpire',
|
||||||
key: 'isExpire',
|
key: 'isExpire',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序(数字越小越靠前)',
|
title: '排序(数字越小越靠前)',
|
||||||
dataIndex: 'sortNumber',
|
dataIndex: 'sortNumber',
|
||||||
key: 'sortNumber',
|
key: 'sortNumber',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态, 0待使用, 1已使用, 2已失效',
|
title: '状态, 0待使用, 1已使用, 2已失效',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '是否删除, 0否, 1是',
|
title: '是否删除, 0否, 1是',
|
||||||
dataIndex: 'deleted',
|
dataIndex: 'deleted',
|
||||||
key: 'deleted',
|
key: 'deleted',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '用户ID',
|
title: '用户ID',
|
||||||
dataIndex: 'userId',
|
dataIndex: 'userId',
|
||||||
key: 'userId',
|
key: 'userId',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
@@ -216,7 +227,7 @@
|
|||||||
title: '修改时间',
|
title: '修改时间',
|
||||||
dataIndex: 'updateTime',
|
dataIndex: 'updateTime',
|
||||||
key: 'updateTime',
|
key: 'updateTime',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@@ -78,7 +78,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
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 { BookingEmergency } from '@/api/booking/bookingEmergency/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -177,7 +180,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingEmergency : addBookingEmergency;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingEmergency
|
||||||
|
: addBookingEmergency;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -200,12 +205,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<BookingEmergencyEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<BookingEmergencyEdit
|
||||||
|
v-model:visible="showEdit"
|
||||||
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,8 +66,15 @@
|
|||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
import BookingEmergencyEdit from './components/bookingEmergencyEdit.vue';
|
import BookingEmergencyEdit from './components/bookingEmergencyEdit.vue';
|
||||||
import { pageBookingEmergency, removeBookingEmergency, removeBatchBookingEmergency } from '@/api/booking/bookingEmergency';
|
import {
|
||||||
import type { BookingEmergency, BookingEmergencyParam } from '@/api/booking/bookingEmergency/model';
|
pageBookingEmergency,
|
||||||
|
removeBookingEmergency,
|
||||||
|
removeBatchBookingEmergency
|
||||||
|
} from '@/api/booking/bookingEmergency';
|
||||||
|
import type {
|
||||||
|
BookingEmergency,
|
||||||
|
BookingEmergencyParam
|
||||||
|
} from '@/api/booking/bookingEmergency/model';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -105,49 +116,49 @@
|
|||||||
dataIndex: 'emergencyId',
|
dataIndex: 'emergencyId',
|
||||||
key: 'emergencyId',
|
key: 'emergencyId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '姓名',
|
title: '姓名',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '手机号',
|
title: '手机号',
|
||||||
dataIndex: 'phone',
|
dataIndex: 'phone',
|
||||||
key: 'phone',
|
key: 'phone',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '关联用户',
|
title: '关联用户',
|
||||||
dataIndex: 'userId',
|
dataIndex: 'userId',
|
||||||
key: 'userId',
|
key: 'userId',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '商户ID',
|
title: '商户ID',
|
||||||
dataIndex: 'merchantId',
|
dataIndex: 'merchantId',
|
||||||
key: 'merchantId',
|
key: 'merchantId',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
dataIndex: 'comments',
|
dataIndex: 'comments',
|
||||||
key: 'comments',
|
key: 'comments',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序号',
|
title: '排序号',
|
||||||
dataIndex: 'sortNumber',
|
dataIndex: 'sortNumber',
|
||||||
key: 'sortNumber',
|
key: 'sortNumber',
|
||||||
align: 'center',
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -213,7 +224,9 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchBookingEmergency(selection.value.map((d) => d.bookingEmergencyId))
|
removeBatchBookingEmergency(
|
||||||
|
selection.value.map((d) => d.bookingEmergencyId)
|
||||||
|
)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
|
|||||||
@@ -106,7 +106,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
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 { BookingField } from '@/api/booking/bookingField/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -209,7 +212,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingField : addBookingField;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingField
|
||||||
|
: addBookingField;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -232,12 +237,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -55,11 +55,7 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="天" name="day">
|
<a-form-item label="天" name="day">
|
||||||
<a-input
|
<a-input allow-clear placeholder="请输入天" v-model:value="form.day" />
|
||||||
allow-clear
|
|
||||||
placeholder="请输入天"
|
|
||||||
v-model:value="form.day"
|
|
||||||
/>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</ele-modal>
|
</ele-modal>
|
||||||
@@ -69,7 +65,10 @@
|
|||||||
import { ref, reactive, watch } from 'vue';
|
import { ref, reactive, watch } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'ant-design-vue';
|
||||||
import { assignObject, uuid } from 'ele-admin-pro';
|
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 { BookingIntegral } from '@/api/booking/bookingIntegral/model';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
@@ -167,7 +166,9 @@
|
|||||||
const formData = {
|
const formData = {
|
||||||
...form
|
...form
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateBookingIntegral : addBookingIntegral;
|
const saveOrUpdate = isUpdate.value
|
||||||
|
? updateBookingIntegral
|
||||||
|
: addBookingIntegral;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -190,12 +191,12 @@
|
|||||||
images.value = [];
|
images.value = [];
|
||||||
if (props.data) {
|
if (props.data) {
|
||||||
assignObject(form, props.data);
|
assignObject(form, props.data);
|
||||||
if(props.data.image){
|
if (props.data.image) {
|
||||||
images.value.push({
|
images.value.push({
|
||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
url: props.data.image,
|
url: props.data.image,
|
||||||
status: 'done'
|
status: 'done'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
isUpdate.value = true;
|
isUpdate.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user