educode_sales 0.9.27 → 0.9.29

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: 119cce9127a2cb5ef9fdb03dbe2d257bc99722abc0e57ed0c990a520318df846
4
- data.tar.gz: 90c778d25c76e16ac29d7c61a9b054bcedcb744a105297b3fea0db4c027313de
3
+ metadata.gz: f0916e70d7b1d843bcfc73d0cb46bae0d2ea24607af4370e949c0794e6ad5c5a
4
+ data.tar.gz: dd6dfbdae1de1ad91a5a6d525dea33a5bccfdfebc90a3b0317c2e7c9cc7df2b4
5
5
  SHA512:
6
- metadata.gz: 2a2ccb6dc4bd37ba0524b8c1f2ac0ed4a33976863c5e73fc527d5de39826b85309bda84acdabb4bcfb06520b073fd39065a36570d296f3793d4a5af836d6e0ec
7
- data.tar.gz: 1826e5444d78935cc0730c11bd8ac3fcaeedc0cc60f336c1be54ce4a9ddf849af50307f28e0bc9152dd367fe3de97fb2e357d0849adb9fbaba5cf2e4267d29c3
6
+ metadata.gz: a3df0e9c3f3da1c7b13042101fd8df450d99177c6eaeba578bfd041d808e183d74d61a3ac5940f45edc43eba732a7a6db42096f22e811e8b19d86f166e32a54b
7
+ data.tar.gz: 428c1bbf876168570b6f763ee70d6415db15b05c2b3a94985f7ba81721b16690eee0f0278a813e8c21cf028b3a0f1488e358f7622d9d101c08c6c01ffd244485
@@ -80,7 +80,7 @@
80
80
  <div class="layui-inline">
81
81
  <label class="layui-form-label">中标额(万)</label>
82
82
  <div class="layui-input-inline">
83
- <input name="total_amount" type="number" class="layui-input" value="<%= @follow_up.total_amount %>">
83
+ <input name="total_amount" type="number" class="layui-input" value="<%= @follow_up.total_amount.to_f.round(6) %>">
84
84
  </div>
85
85
  客户采购支出的费用。中标额的生命历程:1.在最初阶段,是商机的预算总额;2.在挂网阶段,是项目的挂网预算总额;3.在中标阶段,是项目的中标总额。
86
86
  </div>
@@ -88,7 +88,7 @@
88
88
  <div class="layui-inline">
89
89
  <label class="layui-form-label">合同额(万)</label>
90
90
  <div class="layui-input-inline">
91
- <input name="actual_amount" type="number" class="layui-input" placeholder="本单位的签单金额" value="<%= @follow_up.actual_amount %>">
91
+ <input name="actual_amount" type="number" class="layui-input" placeholder="本单位的签单金额" value="<%= @follow_up.actual_amount.to_f.round(6) %>">
92
92
  </div>
93
93
  客户签给头歌的费用。合同额的生命历程:1.在中标之前,合同额都是0;2.在中标之后,实际与头歌签合同的金额。
94
94
  </div>
@@ -103,7 +103,7 @@
103
103
  <div class="layui-inline">
104
104
  <label class="layui-form-label">渠道分成(万)</label>
105
105
  <div class="layui-input-inline">
106
- <input name="divide_amount" class="layui-input" value="<%= @follow_up.divide_amount%>">
106
+ <input name="divide_amount" class="layui-input" value="<%= @follow_up.divide_amount.to_f.round(6) %>">
107
107
  </div>
108
108
  中标额里,渠道拿到的部分。
109
109
  </div>
@@ -111,7 +111,7 @@
111
111
  <div class="layui-inline">
112
112
  <label class="layui-form-label">预算金额(万)</label>
113
113
  <div class="layui-input-inline">
114
- <input name="budget_amount" class="layui-input" value="<%= @last_follow_up&.budget_amount.to_f.round(2) %>">
114
+ <input name="budget_amount" class="layui-input" value="<%= @last_follow_up&.budget_amount.to_f.round(6) %>">
115
115
  </div>
116
116
  </div>
117
117
  <div class="layui-form-item">
@@ -23,8 +23,8 @@ json.data do
23
23
  json.service_end_time d.last_follow_up&.service_start_time.to_s + "-" + d.last_follow_up&.service_end_time.to_s
24
24
 
25
25
  json.divide_rate d.divide_rate
26
- json.divide_money d.divide_amount
27
- json.budget_amount d.budget_amount #d.follow_ups.where(stage_id: @budget_stage_ids).order("created_at desc").first&.total_amount&.round(2) || 0
26
+ json.divide_money d.divide_amount.to_f.round(2)
27
+ 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
28
28
  json.area d.department.school.province
29
29
  school_property = d.department.school.school_property
30
30
  property = []
@@ -87,7 +87,7 @@
87
87
  <label class="layui-form-label">中标额(万)</label>
88
88
  <div class="layui-input-inline">
89
89
  <input name="total_amount" type="number" class="layui-input" autocomplete="off"
90
- value="<%= @last_follow_up&.total_amount.to_f.round(2) %>">
90
+ value="<%= @last_follow_up&.total_amount.to_f.round(6) %>">
91
91
  </div>
92
92
  客户采购支出的费用。中标额的生命历程:1.在最初阶段,是商机的预算总额;2.在挂网阶段,是项目的挂网预算总额;3.在中标阶段,是项目的中标总额。
93
93
  </div>
@@ -96,7 +96,7 @@
96
96
  <label class="layui-form-label">合同额(万)</label>
97
97
  <div class="layui-input-inline">
98
98
  <input name="actual_amount" type="number" class="layui-input" autocomplete="off" placeholder="本单位的签单金额"
99
- value="<%= @last_follow_up&.actual_amount.to_f.round(2) %>">
99
+ value="<%= @last_follow_up&.actual_amount.to_f.round(6) %>">
100
100
  </div>
101
101
  客户签给头歌的费用。合同额的生命历程:1.在中标之前,合同额都是0;2.在中标之后,实际与头歌签合同的金额。
102
102
  </div>
@@ -111,7 +111,7 @@
111
111
  <div class="layui-inline">
112
112
  <label class="layui-form-label">渠道分成(万)</label>
113
113
  <div class="layui-input-inline">
114
- <input name="divide_amount" class="layui-input" value="<%= @last_follow_up&.divide_amount.to_f.round(2) %>">
114
+ <input name="divide_amount" class="layui-input" value="<%= @last_follow_up&.divide_amount.to_f.round(6) %>">
115
115
  </div>
116
116
  中标额里,渠道拿到的部分。
117
117
  </div>
@@ -119,7 +119,7 @@
119
119
  <div class="layui-inline">
120
120
  <label class="layui-form-label">预算金额(万)</label>
121
121
  <div class="layui-input-inline">
122
- <input name="budget_amount" class="layui-input" value="<%= @last_follow_up&.budget_amount.to_f.round(2) %>">
122
+ <input name="budget_amount" class="layui-input" value="<%= @last_follow_up&.budget_amount.to_f.round(6) %>">
123
123
  </div>
124
124
  </div>
125
125
  <div class="layui-form-item">
@@ -83,13 +83,13 @@
83
83
  <div class="layui-inline">
84
84
  <label class="layui-form-label">中标额:</label>
85
85
  <div class="layui-input-inline">
86
- <%= @follow_up.total_amount.to_f.round(2) %>万
86
+ <%= @follow_up.total_amount.to_f.round(6) %>万
87
87
  </div>
88
88
  </div>
89
89
  <div class="layui-inline">
90
90
  <label class="layui-form-label">合同额:</label>
91
91
  <div class="layui-input-inline">
92
- <%= @follow_up.actual_amount.to_f.round(2) %>万
92
+ <%= @follow_up.actual_amount.to_f.round(6) %>万
93
93
  </div>
94
94
  </div>
95
95
  <br>
@@ -99,12 +99,19 @@
99
99
  <%= @follow_up.place&.name %>
100
100
  </div>
101
101
  </div>
102
- <!-- <div class="layui-inline">
102
+ <div class="layui-inline">
103
103
  <label class="layui-form-label">渠道分成:</label>
104
104
  <div class="layui-input-inline">
105
- <%= @follow_up.divide_amount.to_f.round(2) %>万
105
+ <%= @follow_up.divide_amount.to_f.round(6) %>万
106
+ </div>
107
+ </div>
108
+ <br/>
109
+ <div class="layui-inline">
110
+ <label class="layui-form-label">预算金额:</label>
111
+ <div class="layui-input-inline">
112
+ <%= @follow_up.budget_amount.to_f.round(6) %>万
106
113
  </div>
107
- </div> -->
114
+ </div>
108
115
  <div class="layui-inline">
109
116
  <label class="layui-form-label">分成比例:</label>
110
117
  <div class="layui-input-inline">
@@ -1,6 +1,7 @@
1
1
  json.data do
2
2
  json.array! @money_plans do |d|
3
- json.(d, :id, :amount, :clazz)
3
+ json.(d, :id, :clazz)
4
+ json.amount d.amount.to_f.round(6)
4
5
  json.date_at d.date_at.present? ? d.date_at.to_s(:date) : ''
5
6
  end
6
7
  end
@@ -74,9 +74,9 @@
74
74
  })
75
75
  table.render({
76
76
  elem: '#followup_table',
77
- height: 312,
77
+ height: 600,
78
78
  url: '',
79
- // limit: 30,
79
+ limit: 1000,
80
80
  page: false,
81
81
  data: table_data,
82
82
  cols: [fields]
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '0.9.27'
2
+ VERSION = '0.9.29'
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: 0.9.27
4
+ version: 0.9.29
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-01-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 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
@@ -490,7 +491,7 @@ homepage: https://www.educoder.net
490
491
  licenses:
491
492
  - MIT
492
493
  metadata: {}
493
- post_install_message:
494
+ post_install_message:
494
495
  rdoc_options: []
495
496
  require_paths:
496
497
  - lib
@@ -505,8 +506,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
505
506
  - !ruby/object:Gem::Version
506
507
  version: '0'
507
508
  requirements: []
508
- rubygems_version: 3.0.0
509
- signing_key:
509
+ rubygems_version: 3.0.9
510
+ signing_key:
510
511
  specification_version: 4
511
512
  summary: Summary of EducodeSales.
512
513
  test_files: []