first version

This commit is contained in:
liu
2026-07-23 20:41:25 +08:00
parent 00a0938a1b
commit 10cff754a4
211 changed files with 11577 additions and 842 deletions
+10
View File
@@ -0,0 +1,10 @@
import createAxios from '@/utils/request';
import type ICustomerLevel from '@/domain/iCustomerLevel.ts';
/** 客户等级下拉选项(门店表单 / 价格矩阵用) */
export async function getLevelOptions() {
return createAxios<ICustomerLevel[]>({
url: '/customer/level/options',
method: 'get',
});
}
+26
View File
@@ -0,0 +1,26 @@
import createAxios from '@/utils/request';
export interface MiniUserBindParams {
/** 1门店 2供应商 */
type: number;
store_id?: number;
supplier_id?: number;
}
/** 绑定门店/供应商 */
export async function bindMiniUser(id: number, data: MiniUserBindParams) {
return createAxios({
url: `/customer/miniUser/${id}/bind`,
method: 'put',
data,
});
}
/** 启用/停用小程序用户 */
export async function toggleMiniUserStatus(id: number, status: number) {
return createAxios({
url: `/customer/miniUser/${id}/status`,
method: 'put',
data: { status },
});
}
+10
View File
@@ -0,0 +1,10 @@
import createAxios from '@/utils/request';
import type IStore from '@/domain/iStore.ts';
/** 门店下拉选项(小程序用户绑定、订单筛选用) */
export async function getStoreOptions() {
return createAxios<IStore[]>({
url: '/customer/store/options',
method: 'get',
});
}
+10
View File
@@ -0,0 +1,10 @@
import createAxios from '@/utils/request';
import type ISupplier from '@/domain/iSupplier.ts';
/** 供应商下拉选项 */
export async function getSupplierOptions() {
return createAxios<ISupplier[]>({
url: '/customer/supplier/options',
method: 'get',
});
}