EducodeSales::Engine.routes.draw do root to: "home#index" get :statistics, to: "home#statistics" get :login, to: "sessions#login" get :logout, to: "sessions#logout" get :search_users, to: "home#search_users" get :search_teacher, to: "home#search_teacher" get :search_edu_teacher,to: "home#search_edu_teacher" get :search_operation_teacher,to: "home#search_operation_teacher" get :search, to: "home#search" get :no_permission, to: "home#no_permission" get :sales_staff, to: "home#sales_staff" get :sales_place, to: "home#sales_place" get :staff_schools, to: "home#staff_schools" get :filter, to: "application#filter" resources :sessions do end resources :user_behaviors resources :customer_extensions do end resources :customer_follows do end resources :money_plans do end resources :customers do collection do get :show_follow get :show_department get :new_follow_record get :show_follow_record get :edit_follow_record get :new_department get :edit_department get :give post :batch_update_school_tags get :majors get :new_major end member do post :create_follow_up put :update_follow_up post :create_department put :update_department post :major put :update_major delete :delete_major end end resources :operation_reports do member do get :plans get :audit put :update_audit end end resources :sale_reports do member do get :plans get :audit put :update_audit end end resources :key_person resources :follow_ups do member do get :teachers post :add_keys post :add_money get :money_plans put :update_money delete :delete_money end end resources :sale_trends do collection do get :trends post :sale_trends get :business_followup_analysis get :sales_analysis get :business_area get :sales_followup_analysis end end resources :businesses do collection do post :following get :export_records post :get_export_data get :add_export_records get :show_keys get :add_keys get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :edit_plan get :file get :time_line get :upload_file get :following_businesses get :followed get :daily_paper get :search end member do put :updateMoney post :add_follow_up get :unfinish_plans put :update_follow_up end end resources :places do end resources :recycles do collection do get :monthly get :weekly get :monthPlan get :weekPlan get :business end member do get :restore_plans get :restore_reports get :restore_businesses end end resources :plans do collection do get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly get :my_week get :my_month end end ###### resources :assessments do collection do get :progress # 考核完成情况 post :get_export_data # 导出数据 get :finished end end resources :operation_plans do collection do get :operation get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly get :my_week get :my_month end end resources :import_teachers resources :upload_files do collection do get :download end member do end end resources :results do collection do end member do end end resources :teachers do collection do get :import get :add_keys get :search_new get :add_courses get :add_event get :show_class get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :course_list get :activities end member do post :create_course put :update_course delete :delete_course post :add_follow_up get :unfinish_plans get :course_subject put :update_follow_up end end resources :activities do collection do get :show_teachers end end resources :sales do collection do get :trends post :sale_trends get :operations get :school get :xschool end end resources :commons resources :operations do collection do get :trends post :sale_trends end end resources :staffs do member do delete :disable get :follow_up_schools get :follow_up_departments end end resources :roles do collection do get :rename end member do put :view put :update_role end end resources :teacher_follows end