Files
xk-admin/apps/web-antd/src/views/system/store-input/api/index.ts
李琦 28ed398581
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
1. 业务员看板
2026-07-11 16:12:42 +08:00

79 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { requestClient } from '#/api/request';
const prefix = 'store-input/';
/**
* 创建录入
* @param data
*/
export async function createStoreInput(data: Record<string, any>) {
return requestClient.post<any>(`${prefix}create`, data);
}
/**
* 获取录入列表
* @param data
*/
export async function getStoreInputList(data: any) {
return requestClient.get<any>(`${prefix}list`, { params: data });
}
/**
* 获取录入详情
* @param id
*/
export async function getStoreInputDetail(id: number) {
return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}
/**
* 更新录入
* @param data
*/
export async function updateStoreInput(data: Record<string, any>) {
return requestClient.post<any>(`${prefix}update`, data);
}
/**
* 审核录入
* @param data
*/
export async function getPromoterOptions() {
return requestClient.get<{
id: number;
nick_name: string;
avatar: string;
code: string;
phone: string;
role_id: number;
role_name: string;
}[]>(`${prefix}promoter-options`);
}
export async function getPromoterDetailApi(params: { id?: number; code?: string }) {
return requestClient.get<{
id: number;
nick_name: string;
avatar: string;
code: string;
phone: string;
role_name: string;
clinic_input_count: number;
pharmacy_input_count: number;
clinic_store_count: number;
pharmacy_store_count: number;
}>(`${prefix}promoter-detail`, { params });
}
export async function auditStoreInput(data: {
id: number;
status: number; // 1=审核通过2=审核拒绝
audit_remark?: string;
erp_id?: number | string;
mes_id?: number | string;
/** 门店审核通过时一并审核的医生预填 ID */
doctor_input_ids?: number[];
}) {
return requestClient.post<any>(`${prefix}audit`, data);
}