自动化结算规则配置

@if (isAddingNew()) { 新建自动化规则 配置自动处理结算的条件和动作
规则名称 优先级 规则描述 启用规则

条件配置

@for (condition of newRule.conditions; let i = $index; track i) {
条件 {{ i + 1 }}
条件类型 @for (type of conditionTypes; track type.value) { {{ type.label }} } 操作符 @for (op of getOperatorOptions(condition.type); track op.value) { {{ op.label }} }
}

动作配置

@for (action of newRule.actions; let i = $index; track i) {
动作 {{ i + 1 }}
动作类型 @for (type of actionTypes; track type.value) { {{ type.label }} } @if (action.type === 'sendReminder') {
发送渠道 微信 短信 邮件 系统通知 发送频率 立即发送 每天 每周
} @if (action.type === 'applyDiscount') {
折扣类型 百分比 固定金额 折扣值 最大金额
}
}
}
@for (rule of rules(); track rule.id) {
{{ rule.name }} 优先级: {{ rule.priority }}
{{ rule.description }}

条件:

@if (rule.conditions.length > 0) {
@for (condition of rule.conditions; track $index) { {{ formatCondition(condition) }} }
} @else {

暂无条件配置

}

动作:

@if (rule.actions.length > 0) {
@for (action of rule.actions; track $index) { {{ formatAction(action) }} }
} @else {

暂无动作配置

}
}
@if (rules().length === 0 && !isAddingNew()) {
settings_suggest

暂无自动化规则

点击"添加新规则"按钮开始配置自动化结算规则

}