[ // 市场人员绩效配置 'market_staff' => [ 'name' => '市场人员绩效', 'description' => '市场人员按录入学员数量计算绩效', 'enabled' => true, 'config_structure' => [ 'weekly_rules' => [ 'label' => '每周价格规则', 'description' => '不同工作日的学员录入价格配置', 'type' => 'object', 'properties' => [ 'mon' => ['label' => '周一', 'type' => 'price_rule'], 'tue' => ['label' => '周二', 'type' => 'price_rule'], 'wed' => ['label' => '周三', 'type' => 'price_rule'], 'thu' => ['label' => '周四', 'type' => 'price_rule'], 'fri' => ['label' => '周五', 'type' => 'price_rule'], 'sat' => ['label' => '周六', 'type' => 'price_rule'], 'sun' => ['label' => '周日', 'type' => 'price_rule'], ] ] ], 'field_types' => [ 'price_rule' => [ 'label' => '价格规则', 'type' => 'object', 'properties' => [ 'basePrice' => [ 'label' => '基础单价', 'type' => 'number', 'min' => 0, 'max' => 1000, 'unit' => '元/人', 'description' => '未超过限额时每录入一个学员的绩效' ], 'limitCount' => [ 'label' => '超量阈值', 'type' => 'integer', 'min' => 0, 'max' => 100, 'unit' => '人', 'description' => '当日录入超过此数量时按超量单价计算' ], 'extraPrice' => [ 'label' => '超量单价', 'type' => 'number', 'min' => 0, 'max' => 1000, 'unit' => '元/人', 'description' => '超过阈值后每录入一个学员的绩效' ] ] ] ], 'default_values' => [ 'weekly_rules' => [ 'mon' => ['basePrice' => 5, 'limitCount' => 3, 'extraPrice' => 8], 'tue' => ['basePrice' => 5, 'limitCount' => 3, 'extraPrice' => 8], 'wed' => ['basePrice' => 5, 'limitCount' => 3, 'extraPrice' => 8], 'thu' => ['basePrice' => 5, 'limitCount' => 3, 'extraPrice' => 8], 'fri' => ['basePrice' => 5, 'limitCount' => 3, 'extraPrice' => 8], 'sat' => ['basePrice' => 8, 'limitCount' => 2, 'extraPrice' => 12], 'sun' => ['basePrice' => 8, 'limitCount' => 2, 'extraPrice' => 12], ] ] ], // 销售人员绩效配置 'sales_staff' => [ 'name' => '销售人员绩效', 'description' => '销售人员按订单和续费率计算绩效', 'enabled' => true, 'config_structure' => [ 'renewal_rate_rules' => [ 'label' => '续费率绩效规则', 'description' => '不同续费率区间的绩效单价', 'type' => 'array', 'items' => 'renewal_rule' ], 'course_commission' => [ 'label' => '课程提成配置', 'description' => '不同课程的销售提成单价', 'type' => 'array', 'items' => 'course_price' ], 'sharing_rules' => [ 'label' => '分成规则', 'description' => '录入人与成交人的分成比例', 'type' => 'object', 'properties' => [ 'first_visit' => ['label' => '一访成交分成', 'type' => 'sharing_rule'], 'second_visit' => ['label' => '二访成交分成', 'type' => 'sharing_rule'], 'chase_order' => ['label' => '追单分成', 'type' => 'sharing_rule'], 'internal_staff' => ['label' => '内部员工分成', 'type' => 'sharing_rule'] ] ] ], 'field_types' => [ 'renewal_rule' => [ 'label' => '续费率规则', 'type' => 'object', 'properties' => [ 'min_rate' => ['label' => '最低续费率', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'max_rate' => ['label' => '最高续费率', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'commission' => ['label' => '绩效单价', 'type' => 'number', 'min' => 0, 'unit' => '元/单'], 'description' => ['label' => '规则说明', 'type' => 'string'] ] ], 'course_price' => [ 'label' => '课程价格', 'type' => 'object', 'properties' => [ 'course_id' => ['label' => '课程ID', 'type' => 'integer'], 'course_name' => ['label' => '课程名称', 'type' => 'string', 'readonly' => true], 'sales_commission' => ['label' => '销售提成', 'type' => 'number', 'unit' => '元'], 'coach_commission' => ['label' => '教练提成', 'type' => 'number', 'unit' => '元'] ] ], 'sharing_rule' => [ 'label' => '分成规则', 'type' => 'object', 'properties' => [ 'input_ratio' => ['label' => '录入人比例', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'close_ratio' => ['label' => '成交人比例', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'enabled' => ['label' => '是否启用', 'type' => 'boolean'] ] ] ], 'default_values' => [ 'renewal_rate_rules' => [ ['min_rate' => 0, 'max_rate' => 80, 'commission' => 10, 'description' => '续费率低于80%'], ['min_rate' => 80, 'max_rate' => 90, 'commission' => 25, 'description' => '续费率80%-90%'], ['min_rate' => 90, 'max_rate' => 100, 'commission' => 40, 'description' => '续费率90%以上'] ], 'sharing_rules' => [ 'first_visit' => ['input_ratio' => 70, 'close_ratio' => 30, 'enabled' => true], 'second_visit' => ['input_ratio' => 60, 'close_ratio' => 40, 'enabled' => true], 'chase_order' => ['input_ratio' => 30, 'close_ratio' => 70, 'enabled' => true], 'internal_staff' => ['input_ratio' => 100, 'close_ratio' => 0, 'enabled' => true] ] ] ], // 教练绩效配置 'coach_staff' => [ 'name' => '教练绩效', 'description' => '教练按课时和订单计算绩效', 'enabled' => true, 'config_structure' => [ 'course_commission' => [ 'label' => '课时提成配置', 'description' => '教练上课的课时提成', 'type' => 'array', 'items' => 'course_price' ], 'order_commission' => [ 'label' => '订单提成配置', 'description' => '教练作为销售时的订单提成', 'type' => 'array', 'items' => 'renewal_rule' ] ], 'field_types' => [ 'course_price' => [ 'label' => '课程价格', 'type' => 'object', 'properties' => [ 'course_id' => ['label' => '课程ID', 'type' => 'integer'], 'course_name' => ['label' => '课程名称', 'type' => 'string', 'readonly' => true], 'sales_commission' => ['label' => '销售提成', 'type' => 'number', 'unit' => '元'], 'coach_commission' => ['label' => '教练提成', 'type' => 'number', 'unit' => '元'] ] ], 'renewal_rule' => [ 'label' => '续费率规则', 'type' => 'object', 'properties' => [ 'min_rate' => ['label' => '最低续费率', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'max_rate' => ['label' => '最高续费率', 'type' => 'number', 'min' => 0, 'max' => 100, 'unit' => '%'], 'commission' => ['label' => '绩效单价', 'type' => 'number', 'min' => 0, 'unit' => '元/单'], 'description' => ['label' => '规则说明', 'type' => 'string'] ] ] ], 'default_values' => [ 'course_commission' => [], // 从课程表动态加载 'order_commission' => [ ['min_rate' => 0, 'max_rate' => 80, 'commission' => 8, 'description' => '续费率低于80%'], ['min_rate' => 80, 'max_rate' => 90, 'commission' => 20, 'description' => '续费率80%-90%'], ['min_rate' => 90, 'max_rate' => 100, 'commission' => 35, 'description' => '续费率90%以上'] ] ] ] ] ];