educode_sales 1.10.71 → 1.10.73

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bb3032484ff8a665cb7f216b4a99850b3cf4d4fa863dd533102458ab865b603
4
- data.tar.gz: 14451a898ca11a00b18c19604c471bb7d14acca2c5fd30ff2db13202bd38cc4b
3
+ metadata.gz: 15f942191d49adf14251131ca42b9b52f90632a87a66d39aec6fc35bc74003ff
4
+ data.tar.gz: 0bc063e437a008ac318812d7fed49b9c9e7536d4f0f5065685c90505ad3dd40b
5
5
  SHA512:
6
- metadata.gz: a9c9a067531e4a5c6ea32d614206f962d042f5a876d0c0786bb654167f87e8a7dda940629aa63baaaf94be010bbbfb1a1ca3c1d1d4a321de41c3c7220574d1df
7
- data.tar.gz: 2fc32f16d342cd16105de2faff7438fe16a6cf1496e2228fff2211ea4e99aa1b2bf35ec54265adfc5e5ddf8840c343f0a6114274ddad4b6f58e7721046808666
6
+ metadata.gz: 2c235442e8c83921301a06be4ea22a46bcd98acd1079691c8f1c0fd06da09e85529f3397e6d99af5b5390e68ee33c7c3a3822d684559686edb390f244b3d0b10
7
+ data.tar.gz: 6c519c179301c3f6b454fedc8149734d5f7e34a07b2e8e4c2ed6a19400d4431a42addae70ecf72a2ab6824867f74ea1070cfffbd48facb3628b2388fcd392da6
@@ -39,11 +39,11 @@ json.data do
39
39
  # property << '企业' if school_property.enterprise
40
40
  # end
41
41
  if d.department&.school
42
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
42
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
43
43
  else
44
44
  json.property ''
45
45
  end
46
- # json.property d.school.school_property.school_tags.where(for_missions: true).pluck(:name).join("、")#property.join("、")
46
+ # json.property d.school.school_property.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")#property.join("、")
47
47
  json.sale_way d.last_follow_up&.place&.name.present? ? '渠道' : '直销'
48
48
  json.year d.last_follow_up&.year.to_s
49
49
  json.total_amount d.last_follow_up&.total_amount.to_f.round(2)
@@ -52,7 +52,7 @@ json.data do
52
52
  # end
53
53
  # json.property property.join("、")
54
54
  if d.department&.school
55
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
55
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
56
56
  else
57
57
  json.property ''
58
58
  end
@@ -47,13 +47,13 @@ json.data do
47
47
  # property << '企业' if school_property.enterprise
48
48
  # end
49
49
  if d.department&.school
50
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
50
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.uniq.join("、")
51
51
  else
52
52
  json.property ''
53
53
  end
54
54
  json.delete_reason d.delete_reason
55
55
  json.state_id d.state_id
56
- # json.property d.school.school_property.school_tags.where(for_missions: true).pluck(:name).join("、")#property.join("、")
56
+ # json.property d.school.school_property.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")#property.join("、")
57
57
  json.sale_way d.last_follow_up&.place&.name.present? ? '渠道' : '直销'
58
58
  json.year d.last_follow_up&.year.to_s
59
59
  json.total_amount d.last_follow_up&.total_amount.to_f.round(2)
@@ -38,7 +38,7 @@ json.data do
38
38
 
39
39
 
40
40
  if d.department&.school
41
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
41
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
42
42
  else
43
43
  json.property ''
44
44
  end
@@ -45,7 +45,7 @@
45
45
  <div class="layui-inline">
46
46
  <label class="layui-form-label">项目联系人:</label>
47
47
  <div class="layui-input-inline" style="line-height: 38px;">
48
- <%= @last_follow_up&.key_person.present? ? @last_follow_up&.key_person.map { |d| d.teacher.name }.join("、") : '' %>
48
+ <%= @last_follow_up&.key_person.present? ? @last_follow_up&.key_person.map { |d| d.teacher&.name }.join("、") : '' %>
49
49
  </div>
50
50
  </div>
51
51
  <div class="layui-inline">
@@ -64,13 +64,13 @@
64
64
  <div class="layui-inline">
65
65
  <label class="layui-form-label">销售经理:</label>
66
66
  <div class="layui-input-inline" style="line-height: 38px;">
67
- <%= @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 %>
67
+ <%= @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 %>
68
68
  </div>
69
69
  </div>
70
70
  <div class="layui-inline">
71
71
  <label class="layui-form-label">销售经理电话:</label>
72
72
  <div class="layui-input-inline" style="line-height: 38px;">
73
- <%= @last_follow_up&.assign_follow_ups.present? ? ( @last_follow_up&.assign_follow_ups.map{ |d| d.staff.user.phone}.join("、")) : @business&.staff&.user&.phone %>
73
+ <%= @last_follow_up&.assign_follow_ups.present? ? (@last_follow_up&.assign_follow_ups.map { |d| d.staff&.user&.phone }.join("、")) : @business&.staff&.user&.phone %>
74
74
  </div>
75
75
  </div>
76
76
  <div class="layui-inline">
@@ -15,7 +15,7 @@ json.data do
15
15
  json.id d.id
16
16
  json.name d.name
17
17
  json.area d.province
18
- json.property d.school_tags.where(for_missions: true).pluck(:name).join("、")
18
+ json.property d.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
19
19
  json.department d.departments.size
20
20
  json.business EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", x).where("educode_sales_businesses.school_id = ?", d.id).size
21
21
  json.o_business EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id = ?", o).where("educode_sales_businesses.school_id = ?", d.id).size
@@ -18,7 +18,7 @@ json.data do
18
18
  json.key_people d.key_person.map { |d| d.name }.join("、")# key_people(teacher_ids)
19
19
 
20
20
  if d.business.department&.school
21
- json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
21
+ json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
22
22
  else
23
23
  json.property ''
24
24
  end
@@ -22,7 +22,7 @@ json.data do
22
22
  json.state '待认领'
23
23
  end
24
24
  if d.business&.department&.school
25
- json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
25
+ json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
26
26
  else
27
27
  json.property ''
28
28
  end
@@ -35,7 +35,7 @@ json.data do
35
35
  json.claim_num d['claim_num']
36
36
 
37
37
  if d.business.department&.school
38
- json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
38
+ json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
39
39
  else
40
40
  json.property ''
41
41
  end
@@ -18,7 +18,7 @@ json.data do
18
18
  json.prepayment_amount d.prepayment_amount || ''
19
19
  json.business_clazz d.business.clazz&.name || ""
20
20
  if d.business&.department&.school
21
- json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
21
+ json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
22
22
  else
23
23
  json.property ''
24
24
  end
@@ -37,7 +37,7 @@ json.data do
37
37
 
38
38
  json.business_clazz d.business.clazz&.name || ""
39
39
  if d.business&.department&.school
40
- json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
40
+ json.property d.business.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
41
41
  else
42
42
  json.property ''
43
43
  end
@@ -37,7 +37,7 @@ json.data do
37
37
  json.budget_amount d.budget_amount.to_f.round(2) #d.follow_ups.where(stage_id: @budget_stage_ids).order("created_at desc").first&.total_amount&.round(2) || 0
38
38
  json.area d.department&.school&.province
39
39
  if d.department&.school
40
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
40
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
41
41
  else
42
42
  json.property ''
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '1.10.71'
2
+ VERSION = '1.10.73'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: educode_sales
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.71
4
+ version: 1.10.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460