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_business, to: "home#staff_business" get :staff_departments, to: "home#staff_departments" get :filter, to: "application#filter" get :search_activity, to: "home#search_activity" get :search_customer, to: "home#search_customer" get :search_contracts, to: "home#search_contracts" get :search_money_plans, to: "home#search_money_plans" resources :sessions do end resources :invoices do collection do get :apply_records get :apply get :details get :invoice_amount post :create_apply post :add_invoice get :list end member do get :sales_details end end resources :sales_details do collection do post :upload end end resources :contracts do collection do get :follow_ups get :list get :new_follow_up post :add_follow_ups get :product_list get :new_product post :product_catalog get :show_follow_record get :new_sales_detail get :select_product post :sales_detail post :upload_products end member do post :advise get :assign post :assign_staff get :edit_product put :update_product_catalog end end resources :logs resources :user_behaviors resources :customer_extensions do end resources :customer_follows do end resources :money_plans do collection do get :list get :add end end resources :money_plan_records do collection do get :add get :confirm_plan post :upload end member do post :confirm end 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 get :file get :upload_file get :add_tag post :update_tags get :add_assign post :update_assign 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 get :goal_forecast get :user_stat get :visit_analysis get :return_money_forecast 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 get :follow_up end member do get :restore_plans get :restore_reports get :restore_businesses get :restore_follow_up 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 get :week_plan get :weekly get :month_plan get :monthly get :year_plan get :target_track end member do delete :delete_business_info end end ###### resources :assessments do collection do get :progress # 考核完成情况 post :get_export_data # 导出数据 get :finished get :attendances get :import post :import_attendances post :batch_delete end member do get :edit_attendance put :update_attendance delete :delete_attendance 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 get :assign post :assign_staff 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 get :show_teachers get :new_follow_up get :show_follow get :follow_list get :edit_follow_record get :follow_ups post :add_advise get :upload_file end member do get :assign post :assign_staff get :assign_sale_staff post :update_sale_staff get :show_schools post :follow_up put :update_advise get :files 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 resources :idea_follows end