Sha256: b4288541a1c2d39e6faa1dfc0e9683e79436c4030c298c67f61ee30790b98abd
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
json.data do json.array! @data do |d| json.id d.id json.staff d.staff.user.real_name json.clazz EducodeSales::SalePlan::CLAZZ_NAME.invert[d.clazz] json.year d.year json.business_name d.business.name json.department d.business.department&.name json.school d.business.department&.school&.name json.stage d.business.last_follow_up&.stage&.name json.staff_manages d.business.last_follow_up&.assign_follow_ups.present? ? (d.business.last_follow_up.assign_follow_ups.map{ |d| d.staff.user.real_name}.join("、")) : d.business.staff&.user&.real_name json.created_at d.created_at.to_s json.sale_way d.business.last_follow_up&.place&.name.present? ? '渠道' : '直销' json.budget_amount d.business&.last_follow_up ? d.business.last_follow_up.budget_amount.to_f.round(2) : 0 json.plan_bid_on d.plan_bid_on || '' json.plan_sign_on d.plan_sign_on || '' json.prepayment_plan_on d.prepayment_plan_on || '' json.prepayment_amount d.prepayment_amount || '' json.business_clazz d.business.clazz&.name || "" if d.business&.department&.school json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、") else json.property '' end end end json.code 0 json.count @data.total_count
Version data entries
3 entries across 3 versions & 1 rubygems