educode_sales 1.10.13 → 1.10.14

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: e1f2900e20d8d02f6f0fbaa6a05a857523a48ddbc6bf5109490b3a03c867dbc0
4
- data.tar.gz: 7315b80cdbb66086120ca83a0e3727c3c7b75ec926c842001f7516379423a560
3
+ metadata.gz: b595ce61a977409f8c8fbc7147c1fa6712d50f9a3ee9196c3a558311866ae2ab
4
+ data.tar.gz: 3f942636105c5cd52c67f2d52f3da562fa7789f1377f66e0c0bf50a2484db1af
5
5
  SHA512:
6
- metadata.gz: 3f3cb902472a53c44add57b45c082f7f42ba04e18e07d84f8a903a04f3395fc24ed759bd90d315ebb2e73055399f61648bcf23620232badc46f131ac4782cafa
7
- data.tar.gz: 91b19a1cbfa4770b4e78e9347a47ed0b14412b00d3c1f66663b560b714133ba6aa5faedf16e38cb3e520562041185081f90c35b8cc5751bfeb8595d3384633d0
6
+ metadata.gz: fb5eb5e79b46a3b1286233ff1b283dad90e6c7f666c90e155fa1485f7ae44beeb031395d7199c109ac68cf04160bd674dcf913b6f37cce2ed345c5091b65ff27
7
+ data.tar.gz: 0aac91efda64a27e6b994255cb271d925f2bb70540ed72cfa14d7d5c20403f8056748e70d09658b3505da0c181d54dcd7011b0404e3d87f08ca5fb745d01933b
@@ -234,6 +234,7 @@ module EducodeSales
234
234
  @last_follow_up = @business.last_follow_up
235
235
  @deployment_type = EducodeSales::FollowUp::BUSINESS_DEPLOYMENT
236
236
  @signed_clazz = EducodeSales::FollowUp.signed_clazzs.keys
237
+ @stages = Common.where(clazz: 'business_step', name: ['已中标', '已签单', '已验收', '回款中', '服务中', '已结束']).order("position").pluck(:name, :id)
237
238
 
238
239
  signed_department = @last_follow_up.signed_department
239
240
  if signed_department
@@ -327,6 +328,7 @@ module EducodeSales
327
328
  def add_follow_ups
328
329
  @business = Business.find(params[:business_id])
329
330
  last_follow_up = @business.last_follow_up
331
+
330
332
  data = []
331
333
  6.times do |i|
332
334
  data[i] = []
@@ -527,7 +529,7 @@ module EducodeSales
527
529
 
528
530
  private
529
531
  def follow_up_params
530
- params.permit(:o_business_deployment, :plan_signed_date, :actual_amount, :bidded_days, :signed_date, :signed_department_id, :service_years, :service_start_time, :service_end_time, :funding_source, :signed_clazz)
532
+ params.permit(:o_business_deployment, :plan_signed_date, :actual_amount, :bidded_days, :signed_date, :signed_department_id, :service_years, :service_start_time, :service_end_time, :funding_source, :signed_clazz, :stage_id)
531
533
  end
532
534
 
533
535
  def product_up_params
@@ -12,7 +12,7 @@ module EducodeSales
12
12
 
13
13
  enum signed_clazz: ['直签', '代签', '总集', '渠道']
14
14
 
15
- enum funding_source: ['贷款资金', '财政资金', '自由资金']
15
+ enum funding_source: ['贷款资金', '财政资金', '自有资金']
16
16
 
17
17
  include ::Deletable
18
18
  belongs_to :business, counter_cache: true # counter_cache(自动计算 business对应follow_up表中对应的个数)
@@ -32,7 +32,7 @@
32
32
  <div class="layui-inline">
33
33
  <label class="layui-form-label">项目阶段:</label>
34
34
  <div class="layui-input-inline" style="line-height: 38px;">
35
- <%= @last_follow_up&.stage&.name%>
35
+ <%= select_tag "stage_id", options_for_select(@stages, @last_follow_up&.stage_id), { 'lay-filter': 'stage_id', class: 'required' } %>
36
36
  </div>
37
37
  </div>
38
38
  <div class="layui-inline">
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '1.10.13'
2
+ VERSION = '1.10.14'
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.13
4
+ version: 1.10.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails