v4.0.18版本提交
This commit is contained in:
@@ -29,6 +29,7 @@ export const HQ_LIST_COLUMN_KEYS = [
|
||||
'finance-partner-bills',
|
||||
'finance-winery-bills',
|
||||
'finance-logistics-bills',
|
||||
'finance-bank-accounts',
|
||||
'finance-store-withdrawals',
|
||||
'benefit-coupons',
|
||||
'benefit-ledgers',
|
||||
|
||||
@@ -74,6 +74,45 @@ export interface StoreBankAccountInputDto {
|
||||
bankBranch?: string;
|
||||
}
|
||||
|
||||
/** HQ 财务银行账户总目录类型(v4.0.18) */
|
||||
export const FINANCE_BANK_ACCOUNT_TYPES = ['STORE', 'WINERY', 'PARTNER', 'LOGISTICS', 'OTHER'] as const;
|
||||
export type FinanceBankAccountType = (typeof FINANCE_BANK_ACCOUNT_TYPES)[number];
|
||||
|
||||
export const FINANCE_BANK_ACCOUNT_TYPE_LABELS: Record<FinanceBankAccountType, string> = {
|
||||
STORE: '门店',
|
||||
WINERY: '酒厂',
|
||||
PARTNER: '合伙人',
|
||||
LOGISTICS: '物流',
|
||||
OTHER: '其他',
|
||||
};
|
||||
|
||||
export interface FinanceBankAccountDto {
|
||||
id: string;
|
||||
type: FinanceBankAccountType;
|
||||
ownerName: string;
|
||||
ownerId?: string | null;
|
||||
cityId?: string | null;
|
||||
cityName?: string | null;
|
||||
bankAccountName: string;
|
||||
bankAccountNo: string;
|
||||
bankBranch?: string | null;
|
||||
remark?: string | null;
|
||||
isDefault?: boolean;
|
||||
editable: boolean;
|
||||
}
|
||||
|
||||
export interface FinanceBankAccountInputDto {
|
||||
name?: string;
|
||||
bankAccountName: string;
|
||||
bankAccountNo: string;
|
||||
bankBranch?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface FinanceBankAccountRemarkDto {
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface StoreWithdrawSummaryDto {
|
||||
availableAmount: number;
|
||||
pendingReviewAmount: number;
|
||||
|
||||
@@ -75,6 +75,26 @@ export interface UpdateShopStaffRequest {
|
||||
storeIds?: string[];
|
||||
}
|
||||
|
||||
/** HQ 管理门店子账号:创建体与门店端一致,更新可改登录手机。 */
|
||||
export type CreateAdminStoreStaffRequest = CreateShopStaffRequest;
|
||||
|
||||
export interface UpdateAdminStoreStaffRequest extends UpdateShopStaffRequest {
|
||||
phone?: string;
|
||||
}
|
||||
|
||||
export interface AdminStoreStaffItem {
|
||||
id: string;
|
||||
name: string;
|
||||
phone: string;
|
||||
staffRole: StoreStaffRole;
|
||||
permissions: string[];
|
||||
status: AccountStatus;
|
||||
storeIds: string[];
|
||||
stores: Array<{ id: string; name: string; status: string }>;
|
||||
lastLoginAt?: string | null;
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export const STORE_STAFF_ROLE_LABELS: Record<StoreStaffRole, string> = {
|
||||
MANAGER: '店长',
|
||||
CASHIER: '收银员',
|
||||
@@ -82,3 +102,8 @@ export const STORE_STAFF_ROLE_LABELS: Record<StoreStaffRole, string> = {
|
||||
|
||||
/** Default permissions for store sub-accounts (首版). */
|
||||
export const STORE_STAFF_DEFAULT_PERMISSIONS = ['redeem', 'records'] as const;
|
||||
|
||||
export const STORE_STAFF_PERMISSION_LABELS: Record<(typeof STORE_STAFF_DEFAULT_PERMISSIONS)[number], string> = {
|
||||
redeem: '核销',
|
||||
records: '核销记录',
|
||||
};
|
||||
|
||||
@@ -40,7 +40,7 @@ export const WECOM_PUSH_CONDITION_LABELS: Record<WecomPushCondition, string> = {
|
||||
'redeem.success': '门店核销成功',
|
||||
'invoice.pending': '发票申请待开票',
|
||||
'finance.store_bill': '门店日账单已生成',
|
||||
'finance.partner_bill': '合伙人月账单已生成',
|
||||
'finance.partner_bill': '合伙人账单',
|
||||
'finance.winery_bill': '酒厂日账单已生成',
|
||||
'finance.logistics_bill': '物流月对账已生成',
|
||||
};
|
||||
@@ -183,7 +183,7 @@ export const WECOM_TEMPLATE_EVENT_LABELS: Record<WecomTemplateEventKey, string>
|
||||
'store.withdraw_approved': '门店手动提现已通过',
|
||||
'invoice.pending': '发票申请待开票',
|
||||
'finance.store_bill': '门店日账单已生成',
|
||||
'finance.partner_bill': '合伙人月账单已生成',
|
||||
'finance.partner_bill': '合伙人账单',
|
||||
'finance.winery_bill': '酒厂日账单已生成',
|
||||
'finance.logistics_bill': '物流月对账已生成',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user