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_edu_user,to: "home#search_edu_user" 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 :staff_departments, to: "home#staff_departments" get :filter, to: "application#filter" resources :sessions do end resources :logs 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 get :list get :show_majors get :show_customer_follow 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 get :edit_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 put :update_advise put :comment 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 get :contract get :advise end member do put :updateMoney post :add_follow_up get :unfinish_plans put :update_follow_up put :audit put :update_advise get :key_person end end resources :places do end resources :recycles do collection do get :monthly get :weekly get :monthPlan get :weekPlan get :business get :yearPlan 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 get :new_year get :years_plan post :create_business_info get :business_infos get :edit_bussiness_info post :update_business_info post :create_sales_plan get :edit_year_plan get :plan_business_infos get :edit_bussiness_info_extra post :update_business_info_extra get :staff_businesses end member do delete :delete_business_info 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 get :daily_paper 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 :projects do collection do get :detail get :history post :recycle end member do end end resources :project_charts 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 :ideas do collection do get :detail get :history end member do end end resources :idea_recycles do collection do get :detail get :history end member do end end resources :activities do collection do get :show_teachers get :new_follow_up get :follow_ups post :add_advise get :upload_file end member do get :show_schools post :follow_up put :update_advise get :files 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 get :list post :transfer end end resources :roles do collection do get :rename end member do put :view put :update_role end end resources :teacher_follows end