educode_sales 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20755b572d19ee3c58ffca868b9fc6d5e3829024f1c34863ed6707c83009af41
4
- data.tar.gz: 4289012ab4ee0794bdf7c0cc49b57ae46305b16f0b724ec135f82d04e9662b91
3
+ metadata.gz: 8319a1ab978e05583c3bf97bba97c61d872dbb3165d8e7f62888dc43747732fa
4
+ data.tar.gz: 12b16d2e7c5c4d8c0c0e6051625308c1dc50693d5dfc26452cf2336ca796736f
5
5
  SHA512:
6
- metadata.gz: 62d94ce651961ec7a4a41e40b5993bcd0dfb400d2bf53f66ba0b8d25b81015962f5a8e0553935a854cd40779a9eb710a6f842ba85ada1e349248b786e58390cb
7
- data.tar.gz: 95517fc542d7c80d8c40513fcb612a4efa422f9697b7168b4151b599419d999b56dfd0dcab077935abb0c6facf2174b0a1497bcae1952d2ed81b29258c57ad38
6
+ metadata.gz: 3a134e29aa9a9f3543be3edc4e63ee1e9d5f87f4879905a7b166a2cafb6e85ace9b14d2aa736a3e3e0d0797723da19050a590abd6fff4eec7cd56aa012dc983f
7
+ data.tar.gz: baf71ec0ec85d306725c0c75f6445b89c7f8953dabc7914a569cecb963fd183d95eafe92540023739d82c07c32819406a40ff8265c602340ea5239d1587c8ccf
@@ -195,8 +195,6 @@ module EducodeSales
195
195
  LEFT JOIN educode_sales_businesses AS d ON d.department_id = departments.id AND d.deleted_at is NULL
196
196
  GROUP BY schools.id, departments.id
197
197
  ) AS de ON m.id = de.id AND m.department_id = de.department_id
198
-
199
-
200
198
  ) AS s")
201
199
  if @current_admin.is_admin?
202
200
  # @customers = School.all
@@ -230,10 +228,10 @@ module EducodeSales
230
228
  LEFT JOIN departments ON s.department_id = departments.id
231
229
  ")
232
230
 
233
- part_a_ids = CustomerFollow.all.pluck(:school_id)
234
- part_b_ids = Business.pluck(:school_id)
235
- ids = part_a_ids + part_b_ids + CustomerAdd.all.pluck(:school_id)
236
- @customers = @customers.where(id: ids.uniq)
231
+ # part_a_ids = CustomerFollow.all.pluck(:school_id)
232
+ # part_b_ids = Business.pluck(:school_id)
233
+ # ids = part_a_ids + part_b_ids + CustomerAdd.all.pluck(:school_id)
234
+ # @customers = @customers.where(id: ids.uniq)
237
235
  if params[:q].present? && params[:q][:name].present?
238
236
  @customers = @customers.where("schools.name like ?", "%#{params[:q][:name]}%")
239
237
  end
@@ -246,7 +244,7 @@ module EducodeSales
246
244
  end
247
245
  if params[:q].present? && params[:q][:property].present?
248
246
  property = params[:q][:property].split(",").map(&:to_i)
249
- @customers = @customers.joins(:school_tags).where("school_tags.id in (?)", property).distinct
247
+ @customers = @customers.joins("JOIN school_tag_middles ON school_tag_middles.school_id = s.id INNER JOIN school_tags ON school_tags.id = school_tag_middles.school_tag_id").where("school_tags.id in (?)", property).distinct
250
248
  end
251
249
 
252
250
  if params[:q].present? && params[:q][:date].present?
@@ -119,7 +119,8 @@ module EducodeSales
119
119
  end
120
120
 
121
121
  def search_money_plans
122
- @data = MoneyPlan.joins(business: :school)
122
+ # @data = MoneyPlan.joins(business: [:school, :last_follow_up])
123
+ @data = MoneyPlan.joins("JOIN educode_sales_businesses ON educode_sales_businesses.last_follow_up_id = educode_sales_money_plans.follow_up_id JOIN schools ON schools.id = educode_sales_businesses.school_id")
123
124
  if params[:q].present?
124
125
  @data = @data.where("educode_sales_businesses.name like :q OR educode_sales_businesses.number like :q OR schools.name like :q ", q: "%#{params[:q]}%").limit(20)
125
126
  end
@@ -23,7 +23,7 @@ module EducodeSales
23
23
  enum status: %w[未完成 已完成]
24
24
  enum types: %w[低定制 非定制 高定制 全定制]
25
25
  enum model: %w[本地版 线上版 混合版]
26
- enum idea_type: %w[售前 售后]
26
+ enum idea_type: %w[建设方案 申报论证 市场调研 课程建设 报价清单 交流汇报 招标参数 资质申报 产品手册 宣传海报 课题论文 投标支持 其他类]
27
27
 
28
28
  serialize :assist_staff_ids,Array
29
29
  serialize :attachment_ids, Array
@@ -399,202 +399,7 @@
399
399
  toolbar: '#toolbarDemo',
400
400
  totalRow:true,
401
401
  defaultToolbar: ['filter'],
402
- cols: [
403
- [
404
- {
405
- field: 'id',
406
- width: 60,
407
- title:'序号',type: 'numbers',
408
- totalRowText:'合计',
409
- fixed: 'left'
410
-
411
- },
412
- {
413
- field: 'name',
414
- width: 100,
415
- title: '姓名',
416
- fixed: 'left',
417
- templet: "#name"
418
- },
419
- {
420
- field: 'realname',
421
- width: 100,
422
- title: '真实姓名',
423
- },
424
- {
425
- field: 'school',
426
- width: 160,
427
- title: '单位',
428
- templet:'<div><span title="{{d.school}}">{{d.school}}</span></div>'
429
-
430
- },
431
- {
432
- field: 'department',
433
- width: 130,
434
- title: '部门',
435
- templet:'<div><span title="{{d.department}}">{{d.department}}</span></div>'
436
- },
437
- {
438
- field: 'majors',
439
- width: 160,
440
- title: '专业',
441
- },
442
- {
443
- field: 'area',
444
- width: 80,
445
- title: '区域',
446
- },
447
- {
448
- field: 'business_count',
449
- width: 120,
450
- title: '单位商机数',
451
- },
452
- {
453
- field: 'professional_title',
454
- title: '职称',
455
- width: 80,
456
- templet: '#show_follow'
457
- },
458
- {
459
- field: 'job',
460
- width: 80,
461
- title: '职务',
462
- templet: '#show_keys'
463
-
464
- },
465
- {
466
- field: 'source',
467
- width: 90,
468
- title: '来源',
469
- },
470
- {
471
- field: 'attitude',
472
- width: 60,
473
- title: '态度',
474
- },
475
- {
476
- field: 'course_subjects_count',
477
- width: 90,
478
- title: '课程方向',
479
- templet: "#courses"
480
- },
481
- {
482
- field: 'teacher_follows_count',
483
- width: 90,
484
- title: '跟进情况',
485
- totalRow:true,
486
- templet: "#follow"
487
- },
488
- {
489
- field: 'sales_manage',
490
- width: 160,
491
- title: '销售经理',
492
- },
493
- {
494
- field: 'staff_manage',
495
- width: 160,
496
- title: '生态经理',
497
- },
498
- {
499
- field: 'follow_person',
500
- width: 120,
501
- title: '最新跟进人',
502
- },
503
- {
504
- field: 'followup_at',
505
- width: 180,
506
- title: '最新跟进时间',
507
- },
508
- {
509
- field: 'latest_time',
510
- width: 120,
511
- title: '无跟进天数',
512
- sort: true,
513
- },
514
- {
515
- field: 'teacher_used',
516
- width: 120,
517
- title: '学院渗透率',
518
- },
519
- {
520
- field: 'students',
521
- width: 60,
522
- totalRow:'{{ parseInt(d.TOTAL_NUMS) }}',
523
- title: '学生',
524
- },
525
- {
526
- field: 'courses_count',
527
- width: 60,
528
- title: '课堂',
529
- totalRow:true,
530
- templet: "#class"
531
- },
532
- {
533
- field: 'activities_count',
534
- width: 100,
535
- title: '参与活动',
536
- templet: "#event"
537
- },
538
- {
539
- field: 'created_on',
540
- width: 120,
541
- title: '注册时间',
542
- sort: true,
543
- },
544
- {
545
- field: 'last_login_on',
546
- width: 120,
547
- title: '最近登录',
548
- sort: true,
549
- },
550
- {
551
- field: 'created_at',
552
- width: 120,
553
- title: '添加时间',
554
- sort: true,
555
- },
556
- {
557
- field: 'experience',
558
- width: 120,
559
- title: '经验值',
560
- sort: true,
561
- },
562
- {
563
- field: 'grade',
564
- width: 120,
565
- title: '金币',
566
- sort: true,
567
- },
568
- {
569
- field: 'mobile',
570
- width: 120,
571
- title: '联系电话',
572
- },
573
- {
574
- field: 'wechat',
575
- width: 120,
576
- title: '微信号',
577
- },
578
- {
579
- field: 'teacher_assist',
580
- width: 120,
581
- title: '教研助理',
582
- },
583
- {
584
- field: 'is_contact',
585
- width: 120,
586
- title: '是否联系上'
587
- },
588
- {
589
- title: '操作',
590
- minWidth: 270,
591
- toolbar: '#currentTableBar',
592
- align: "center",
593
- fixed: 'right'
594
- }
595
- ]
596
- ],
597
-
402
+ cols: cols_table,
598
403
  limit: 20,
599
404
  limits: [10,15,20,30,40,50,60,70,80,90],
600
405
  page: true,
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '1.10.1'
2
+ VERSION = '1.10.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: educode_sales
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2023-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -105,6 +105,7 @@ files:
105
105
  - app/assets/images/educode_sales/icon-login.png
106
106
  - app/assets/images/educode_sales/icon.png
107
107
  - app/assets/images/educode_sales/indexLogo.png
108
+ - app/assets/images/educode_sales/indexlogo.png
108
109
  - app/assets/images/educode_sales/loading-0.gif
109
110
  - app/assets/images/educode_sales/loading-1.gif
110
111
  - app/assets/images/educode_sales/loading-2.gif
@@ -727,7 +728,7 @@ homepage: https://www.educoder.net
727
728
  licenses:
728
729
  - MIT
729
730
  metadata: {}
730
- post_install_message:
731
+ post_install_message:
731
732
  rdoc_options: []
732
733
  require_paths:
733
734
  - lib
@@ -743,7 +744,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
743
744
  version: '0'
744
745
  requirements: []
745
746
  rubygems_version: 3.0.9
746
- signing_key:
747
+ signing_key:
747
748
  specification_version: 4
748
749
  summary: Summary of EducodeSales.
749
750
  test_files: []