<%= Gon::Base.render_data %>

<%= @business.name %>

基本信息


<%= @business.department.school.name %>
<%= @business.department.name %>
<%= @business.department&.department_majors&.pluck(:name).present? ? @business.department&.department_majors&.pluck(:name).join(",") : "" %>

<%= @business.clazz&.name %>
<%= select_tag "stage_id", options_for_select(@stages, @last_follow_up&.stage_id), { 'lay-filter': 'stage_id', class: 'required' } %>
<%= @last_follow_up&.bidded_date %>

<%= @last_follow_up&.key_person.present? ? @last_follow_up&.key_person.map { |d| d.teacher&.name }.join("、") : '' %>
<%= @last_follow_up&.key_person.present? ? @last_follow_up&.key_person.pluck(:tel).select { |d| d.present? }.join("、") : '' %>
<%= @last_follow_up&.key_person.present? ? @last_follow_up&.key_person.pluck(:remark).select { |d| d.present? }.join("、") : '' %>

<%= @last_follow_up&.assign_follow_ups.present? ? (@last_follow_up&.assign_follow_ups.map { |d| d.staff&.user&.real_name }.join("、")) : @business&.staff&.user&.real_name %>
<%= @last_follow_up&.assign_follow_ups.present? ? (@last_follow_up&.assign_follow_ups.map { |d| d.staff&.user&.phone }.join("、")) : @business&.staff&.user&.phone %>

<%= select_tag "o_business_deployment", options_for_select(@deployment_type, @last_follow_up&.o_business_deployment), class: 'required' %>
<%= @last_follow_up&.place&.name.present? ? '渠道' : '直销' %>
<%= select_tag "funding_source", options_for_select([''] + EducodeSales::FollowUp::funding_sources.keys, @last_follow_up&.funding_source), class: 'required' %>

签单


<%= select_tag "signed_clazz", options_for_select(@signed_clazz, @last_follow_up&.signed_clazz), class: 'required' %>


交货

<% @list['交货'].each_with_index do |d, i| %>
<% if i == 0 %>
<% end %>
<% end %>

验收

<% @list['验收'].each_with_index do |d, i| %>
<% if i == 0 %>
<% end %>
<% end %>

回款


预收款

<% @list['预收款'].each_with_index do |d, i| %>
工作日
<% if i == 0 %>
<% end %>
<% end %>

交付款

<% @list['交付款'].each_with_index do |d, i| %>
<% if i == 0 %>
<% end %>
<% end %>

验收款

<% @list['验收款'].each_with_index do |d, i| %>
<% if i == 0 %>
<% end %>
<% end %>

质保金

<% @list['质保金'].each_with_index do |d, i| %>
<% if i == 0 %>
<% end %>
<% end %>

服务期

-